create public database link 连接名
connect to 需要连接数据库名 identified by 需要连接数据库密码
USING '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 需要连接服务器的ip)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = 服务器名称)
)
)';
connect to 需要连接数据库名 identified by 需要连接数据库密码
USING '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 需要连接服务器的ip)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = 服务器名称)
)
)';
If opportunity doesn’t knock, build a door