create database link xxx----即将建立的dblink名
connect to 数据库用户名 identified by "密码"
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xx-----数据库IP)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = xxx----要连接的数据库的SID)
)
)';