求oracle创建DBLINK的方式
还有我是没配置本地服务.createdatabaselinklinkserverconnecttossssidentifiedbyssssusing'(DESCRIPTI...
还有我是没配置本地服务.
create database link linkserver
connect to ssss identified by ssss
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.206.222)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = orcl)
)
)
上面那个怎么不行。
如果配置本地服务应该怎么配置。 展开
create database link linkserver
connect to ssss identified by ssss
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.9.206.222)(PORT = 1521))
)
(CONNECT_DATA = (SERVICE_NAME = orcl)
)
)
上面那个怎么不行。
如果配置本地服务应该怎么配置。 展开
1个回答
展开全部
把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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询