CREATE DATABASE LINK dblinkName CONNECT TO dbLoginName IDENTIFIED BY dbLoginPwd USING '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=orcl)))'; select * from orclLoginName.tableName1@dblinkName; drop DATABASE LINK dblinkName; /*dblinkName:dblink名称 dbLoginName:登录名 dbLoginPwd:登录密码 */