在创建db link时,指向远程数据库的连接字符串的配置方式有以下哪些方式
1个回答
2015-01-23 · 知道合伙人数码行家
关注
展开全部
把Address_list 去掉试试:
create database link linkserver
connect to ssss identified by ssss
using '(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.206.222)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = orcl)
)
)
就是用Oracle的 Net Configuration Assistant 配置一个 连接到Oracle服务器的 “本地网络服务名”
配置好后,在tnsnames.ora中有一段类似
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.206.222)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
的内容
然后语法换成:
create database link linkserver
connect to ssss identified by ssss
using orcl
create database link linkserver
connect to ssss identified by ssss
using '(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.206.222)(PORT = 1521))
(CONNECT_DATA = (SERVICE_NAME = orcl)
)
)
就是用Oracle的 Net Configuration Assistant 配置一个 连接到Oracle服务器的 “本地网络服务名”
配置好后,在tnsnames.ora中有一段类似
orcl =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.206.222)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
的内容
然后语法换成:
create database link linkserver
connect to ssss identified by ssss
using orcl
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询