Oracle创建数据库链接

**********创建数据库链接******************
create public database link link_gzzl
connect to system identified by "123456"
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.20)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = GZZL)
)
)';
***********从A库取B库的数据
select * from pat_master_index@likn_gzzl;

 

posted @ 2016-12-20 17:13  向阳的影子  阅读(1942)  评论(0编辑  收藏  举报