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 我的數字生活論壇 . 。
Related Articles相關文章
- Oracle Database Import Error 3113/3114 Oracle數據庫的進口錯誤三千一百一十四分之三千一百十三
- View and Retrieve Oracle Database Link Details查看和檢索Oracle數據庫的連接細節
- Change Oracle Database User Password改變Oracle數據庫的用戶密碼
- Check Oracle Version檢查的Oracle版本
- How Drop Tablespace and Recover Oracle Database When Accidentally Delete Datafile如何下拉表和恢復Oracle數據庫時,不小心刪除datafile
- Oracle EXP-00091 Error When Export Database甲骨文進出口- 00091時發生錯誤,進出口數據庫
- Manual and Clean Uninstall Oracle for Windows手冊和乾淨的卸載甲骨文為Windows
- Create, Add or Split Oracle Database Partition Fails with ORA-14080 Error創建,添加或分裂Oracle數據庫分區失敗,庫存- 14080錯誤
- Oracle JDeveloper Reviews甲骨文的JDeveloper評語
- Oracle ORA-01658 Unable to Create INITIAL Extent for Segment in Tablespace Error甲骨文庫存- 01658無法建立初步的程度,為部分在表錯誤



















June 6th, 2008 05:19 2008年6月6日5時19分
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謝謝您