Oracle Database Link Oracle數據庫的連接

In distributed Oracle environments, database links can be used to define a communications path between two databases.在分佈式的Oracle環境,數據庫鏈接,可以用來定義一個通信路徑之間的兩個數據庫。 A database link defines a network connection, and, optionally, a username and password, to use when Oracle accesses and establishes a database session in the remote database on behalf of the local application request.一個數據庫連接定義了一個網絡連接,並選擇用戶名和密碼,使用時,甲骨文的通道,並建立一個數據庫,會議在遠程數據庫中代表地方的應用要求。

Database link enable SQL statements to be isolated from the underlying physical network topology.資料庫連結,使SQL語句被孤立從背後的物理網絡拓撲。 Thus, whenever the location of a remote database changes, only the link need be updated, and not each and every SQL queries, significantly the tasks of programmer.因此,每當的位置,遠程數據庫的變化,只有鏈接需要更新,而不是每一個SQL查詢,顯著的任務,程序員。

Oracle database link is defined in a specific database, and may be used only by users of that database. Oracle數據庫的連接是指在一個特定的數據庫,並只可用於用戶數據庫。 If the same database link name was to be used from all databases in the network, the links must be defined identically with that name in each of each databases.如果相同的資料庫連結名稱是用於從所有數據庫中的網絡,鏈接必須定義相同的名稱與在每個每個數據庫。 For this scenario, the easier way is to be global database link.對於這種情況下,更簡單的方法是要全球數據庫鏈接。

Database Link Creation 數據庫建立連結

Login into Oracle database (with SQL*Plus, for example) as a user who has the privilege to create a database link and execute the following command:登錄到Oracle數據庫(與SQL *加,例如)作為用戶誰擁有特權,以建立一個數據庫鏈接,並執行下列命令:

CREATE DATABASE LINK link_name創建數據庫連接link_name
CONNECT TO user_name IDENTIFIED BY password連接到所確定的用戶名密碼
USING ‘connection_string’;使用' connection_string ' ;

where connection_string is an entry is tnsnames.ora (usually located in $ORACLE_HOME/network/admin), which enables the Oracle to know the network path to remote database.凡connection_string是一個條目是tnsnames.ora (通常設在元oracle_home /網絡/管理) ,從而使甲骨文公司知道的網絡路徑遠程數據庫。

connection_string has the following structure: connection_string有下列結構:

(DESCRIPTION = (說明=
(ADDRESS = (地址=
(PROTOCOL = TCP) (Host = host_name/ip_address) (Port = 1521) (第一號議定書= TCP )的(主持人= host_name / IP地址) (港口= 1521 )
)
(CONNECT_DATA = ( connect_data =
(SERVER = DEDICATED) ( =專用服務器)
(SERVICE_NAME = database_name) ( service_name = database_name )
)
)

Database Link Deletion 數據庫的鏈接刪除

To delete a database link:刪除數據庫鏈接:

DROP DATBASE LINK link_name;下拉datbase鏈接link_name ;

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原版的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 .



One Response to “Oracle Database Link” 1回應“ Oracle數據庫連接”

  1. Ru
    June 6th, 2008 05:19 2008年6月6日5時19分
    1

    Need help :需要幫助:
    I want to access my SQL server 2005 database from Oracle 10G, but I have a problem.我要訪問我的SQL Server 2005數據庫從Oracle十克,但我有一個問題。 Could you guide me how to do it?你能指導我怎樣做呢?
    Thank you謝謝您

Leave a Reply離開的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <刪除日期時間= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱無評論


Custom Search

New Articles新的條款,

Incoming Search Terms for the Article傳入的搜索條件文章

oracle dblink 甲骨文dblink - - Oracle database link Oracle數據庫的連接 - - dblink oracle dblink甲骨文 - - database link oracle 甲骨文資料庫連結 - - dblink in oracle dblink在Oracle - - create database link oracle 創建數據庫連接甲骨文 - - oracle create dblink 甲骨文公司創建dblink - - drop database link 下降的數據庫連接 - - delete dblink 刪除dblink - - CREATE DBLINK ORACLE 創建dblink甲骨文 - - oracle create db link 甲骨文公司創造分貝鏈接 - - database link in oracle 數據庫連接在Oracle - - link oracle 鏈接甲骨文 - - create DBLINK in oracle 創建dblink在Oracle - - oracle db link 甲骨文分貝鏈接 - - Oracle Create Database Link 甲骨文公司創建數據庫連接 - - remove database link 刪除數據庫連接 - - delete dblink oracle 刪除dblink甲骨文 - - remove dblink 刪除dblink - - delete db_link 刪除db_link - - oracle link 甲骨文鏈接 - - oracle database links Oracle數據庫鏈接 - - DELETE DB LINK 刪除分貝鏈接 - - Create link Oracle 建立連結甲骨文 - - create dblink command 創建dblink指揮 - - oracle databaselink 甲骨文databaselink - - oracle dblink command 甲骨文dblink指揮 - - DB link creation in oracle 分貝的聯繫建立在Oracle - - oracle dblink delete 甲骨文dblink刪除 - - "link Oracle database" “鏈接Oracle數據庫” - - how to delete dblink 如何刪除dblink - - oracle DBLink 甲骨文dblink - - DELETE DB_LINK ORACLE 刪除db_link甲骨文 - - datbase link datbase鏈接 - - Orcale DBLINK orcale dblink - - database links oracle 甲骨文數據庫鏈接 - - dblink creation dblink創造 - - create Database Link + oracle 創建數據庫連接+甲骨文 - - dblink+oracle dblink +甲骨文 - - all 全部 - - oracle megaupload 甲骨文megaupload - - delete db link oracle 刪除分貝鏈接甲骨文 - - oracle "database link" 甲骨文“數據庫鏈接” - - linking 2 DBS in Oracle 連接二區議會在Oracle - - oracle database link creation Oracle數據庫的連接建立 - - how to delete DB links in oracle 如何刪除分貝鏈接在Oracle - - dblink oracle example dblink甲骨文為例, - - drop db link 下拉分貝鏈接 - - oracle dblink view 甲骨文dblink的看法 - - create global database link 建立全球數據庫鏈接 - -