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)
)
)'
‘’里面是数据路径(oracleproduct11.2.0dbhome_1NETWORKADMIN nsnames.ora)
使用:
select * from SYS_USER(EMIS_SYSTEM数据库里存在的表)@EMIS_SYSTEM(数据库链名)