-- Drop existing database link
drop database link DBLTEST;
-- Create database link
create database link DBLTEST//连接名称
connect to REP
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.90.132.10)(PORT = 1521))//ip地址和端口
)
(CONNECT_DATA =
(SERVICE_NAME = calltrdb)//数据库实例
)
)';