dblink

--授权--
grant CREATE PUBLIC DATABASE LINK to userName;
grant DROP PUBLIC DATABASE LINK to userName;
--创建DBLINK--
create public database link
  to_test connect to userName identified by password using 'SID';--SID需要在tnsnames.ora里做配置--
--使用--
select * from tname@to_test.regress.rdbms.dev.us.oracle.com;

你可能感兴趣的:(dblink)