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 删除数据库连接 - - oracle link 甲骨文链接 - - delete dblink oracle 删除dblink甲骨文 - - remove dblink 删除dblink - - delete db_link 删除db_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 建立全球数据库链接 - -