oracle创建dblink的脚本
创建dblink的脚本
create public database link wsbsbb_27(dblink名字)
connect to wsbsbb(用户名) IDENTIFIED BY wsbsbb (密码)
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST =10.92.131.27)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME =wsbsbb) (实例)
)
)';
CREATE PUBLIC DATABASE LINK wsbsbb_27
CONNECT TO wsbsbb IDENTIFIED BY wsbsbb
USING '(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 10.92.131.48)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = esb2)))'
SELECT * FROM ac56_nh@wsbsbb_27;