监听配置

Posted 输入啊

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了监听配置相关的知识,希望对你有一定的参考价值。

# tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST=10.20.81.155)(PORT = 1521))


ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=10.20.81.155)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)

 

# listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST=10.20.81.155)(PORT = 1521))
)
)

ADR_BASE_LISTENER = /home/oracle/app/oracle

 其中host的不能使用localhost或者127.0.0.1或者外网的ip,要使用服务器在其局域网的ip地址,也可使用主机名

以上是关于监听配置的主要内容,如果未能解决你的问题,请参考以下文章

如果配置监听始终不成功,需要重新配置监听,解决办法:

oracle linux配置监听时报错端口占用

3配置/管理Oracle数据库---监听程序配置

如何查看windows下oracle的监听配置文件

Tomcat哪个参数配置监听队列的大小

oracle 多个实例需要配置多个监听么