create database link 数据库链名
connect to 用户名 identified by 密码
using
‘(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 要连接的地址10.18.88.89)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = 你的数据库SID)
)
)‘
‘’里面是数据路径(\oracle\product\11.2.0\dbhome_1\NETWORK\ADMIN\tnsnames.ora)
使用:
select * from SYS_USER(EMIS_SYSTEM数据库里存在的表)@EMIS_SYSTEM(数据库链名)
原文:https://www.cnblogs.com/mwd-banbo/p/12662770.html