Answers:
您要使用数据库链接(DBLink)。
http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm
http://psoug.org/reference/db_link.html
-- create tnsnames entry for conn_link
conn_link =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = perrito2)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orabase)
)
)
CREATE DATABASE LINK conn_user
USING 'conn_link';
SELECT table_name, tablespace_name FROM user_tables@conn_user;
过程或表名末尾的@conn_user将告诉pl / sql引擎查询为该信息指定的数据库链接。