create database link to225[U1]
connect to ultranms[U2] identified by ultranms[U3]
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS =(PROTOCOL = TCP)(HOST = 192.168.2.225[U4] )(PORT= 1521))
)
(CONNECT_DATA =
(SID = nms[U5] )
(SERVER =DEDICATED)
)
)';
[U1]创建的dblink的名字
[U2]b机数据库里的用户名
[U3]b机数据库里的用户名密码
[U4]b机的ip地址和端口号
[U5]b机数据库的实例名