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谢谢您