服务器和服务器时如何配置oracle监听器客户在同一个盒子上
我有 2 台 Oracle 数据库服务器。如何在本地服务器上配置侦听器和 TNS 名称,以便本地服务器可以运行外部程序并访问远程服务器?
到目前为止,我有以下非工作配置。这有什么问题吗?非常感谢。
****TNSNAMES.ORA****
local_instance =
(description =
(address_list =
(address = (protocol = tcp)(host = localhost)(port = 1521))
(address = (protocol = ipc)(key=extproc0))
)
(connect_data =
(service_name = local_instance)
)
)
remote_instance =
(description =
(address_list =
(address = (protocol = tcp)(host = xxx.xxx.xxx.xxx)(port = 1521))
)
(connect_data =
(service_name = remote_instance)
)
)
****LISTENER.ORA****
listener =
(description =
(address = (protocol = tcp)(host = localhost)(port = 1526))
)
I have 2 Oracle database servers. How can I configure the listener(s) and TNS names on the local server so that the local server can run external procedures and access the remote one?
So far I have the following non-working configurations. What is wrong with it? Many thanks.
****TNSNAMES.ORA****
local_instance =
(description =
(address_list =
(address = (protocol = tcp)(host = localhost)(port = 1521))
(address = (protocol = ipc)(key=extproc0))
)
(connect_data =
(service_name = local_instance)
)
)
remote_instance =
(description =
(address_list =
(address = (protocol = tcp)(host = xxx.xxx.xxx.xxx)(port = 1521))
)
(connect_data =
(service_name = remote_instance)
)
)
****LISTENER.ORA****
listener =
(description =
(address = (protocol = tcp)(host = localhost)(port = 1526))
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这对我们有用:
This is what works for us: