时间:2021-07-01 10:21:17 帮助过:25人阅读
grant CREATE PUBLIC DATABASE LINK,CREATE DATABASE LINK,DROP PUBLIC DATABASE LINK to local_username;
create public database link dblink_name
connect to remote_username identified by remote_password
using ‘(DESCRIPTION =(ADDRESS_LIST =(ADDRESS =(PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = orcl)))‘;
select * from dba_db_links;
select * from all_db_links;
select owner,object_name from dba_objects where object_type=‘DATABASE LINK‘;
select * from table_name@dblink_name;
drop public database link dblink_name;
local_username:
本地数据库用户名dblink_name:
创建dblink的名称remote_username:
远程数据库用户名remote_password:
远程数据库密码HOST:
远程数据库IPSERVICE_NAME:
远程数据库实例名table_name:
远程数据库表名参考资料
oracle 中 dblink 的简单使用
标签:sele 技术 def 访问 host using 注释 img art