Oracle dblink创建

-- 删除dblink
DROP PUBLIC DATABASE DBLINK名称;
-- 创建dblink
CREATE PUBLIC DATABASE LINK DBLINK名称
CONNECT TO 用户名 IDENTIFIED BY 密码
USING '套接字';

-- 示例
CREATE PUBLIC DATABASE LINK SUB_TO_HQ
CONNECT TO sss IDENTIFIED BY sfpwd123
USING '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 10.202.46.36)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = ssssit)))';

  

posted @ 2018-11-08 14:06  天蓝隐湘  阅读(95)  评论(0编辑  收藏  举报