服务器之间建立oracle之间的关联语句

create public database link DBLINK_WZGTAMS CONNECT TO  WZGTAMS identified by WZGTAMS

using '
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.112)(PORT = ))
)
(CONNECT_DATA =
(SID = orcl11g)
(SERVER = DEDICATED)
)
)';

接下来建立一个简单的查询验证效果

select * from 用户名下的.表@建立的远程连接名字

连接成功,

其中using里面的内容是ora文件的内容但是要去掉开始的实例名

 CONNECT TO 远程用户名identified by 远程用户密码
上一篇:Qt5利用自绘QPainter实现旋转按钮MySpinButton


下一篇:[poj]1050 To the Max dp