create shared public database link temp connect to 用户名 identified by 密码 using 'tns name'; 当对端数据库中有与当前数据库中相同的用户名与密码时,可以下列方式创建链接数据库 REATE PUBLIC DATABASE LINK remote USING 'remote';
create database link LINKNAME connect to USER_ID identified by "<pwd>" using 'TNS_NAM';
connect to 用户名 identified by 密码
using 'tns name';
当对端数据库中有与当前数据库中相同的用户名与密码时,可以下列方式创建链接数据库
REATE PUBLIC DATABASE LINK remote USING 'remote';
connect to USER_ID
identified by "<pwd>"
using 'TNS_NAM';