datalink

 
select owner,object_name from dba_objects where object_type='DATABASE LINK';

或者

select * from dba_db_links;

 

oracle 9i 中 创建 datalink

drop  database link dsdits;
create database link dsdits
connect to "its_kk"
identified by "1111"
using '(DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST =192.168.0.11)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = dsdits)
      (SERVER = DEDICATED)
    )
  )';
commit;

红色字体为要注意的地方。网上好多人的连接代码都是错误的。

你可能感兴趣的:(数据库开发)