【Vegas原创】Oracle Dblink(链接服务器)创建(Oracle对Oracle的链接)以及SQL对Oracle的互访方法
Oracle对Oracle的链接:
创建:
CREATE PUBLIC DATABASE LINK linkname
CONNECT TO username IDENTIFIED BY password
USING ‘tnsname’
CONNECT TO username IDENTIFIED BY password
USING ‘tnsname’
删除:
DROP PUBLIC DATABASE LINK linkname
Oracle对Oracle的insert demo:
insert into seq_head
SELECT A.*,'HUB' from seq_head@histest A;
SELECT A.*,'HUB' from seq_head@histest A;
SQL对Oracle的链接:
参看:http://www.cnblogs.com/vegaslee/archive/2008/12/02/1345613.html
Oracle对SQL的链接(Gateway):
参看:http://www.cnblogs.com/vegaslee/archive/2009/02/24/1397087.html
http://www.cnblogs.com/vegaslee/archive/2009/02/24/1397132.html
喜欢请赞赏一下啦^_^