Oracle中dblink的创建与删除
Posted 小策一喋技术博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle中dblink的创建与删除相关的知识,希望对你有一定的参考价值。
查询数据库中有哪些dblink连接
select * from dba_objects where object_type=‘DATABASE LINK‘;
删除公有的EMIS_PRODUCTOIN连接
drop public database link EMIS_PRODUCTION;
创建公有的EMIS_PRODUCTION连接
create public database link EMIS_PRODUCTION connect to EMIS_FRAME identified by EMIS_FRAME using ‘(DESCRIPTION = (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = testdb)) )‘;
删除EMIS_PRODUCTION连接
drop database link EMIS_PRODUCTION;
创建EMIS_PRODUCTION连接
create database link EMIS_PRODUCTION connect to EMIS_FRAME identified by EMIS_FRAME using ‘(DESCRIPTION = (ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = testdb)) )‘;
测试是否可用
select * from [email protected]_PRODUCTION;
以上是关于Oracle中dblink的创建与删除的主要内容,如果未能解决你的问题,请参考以下文章