监听启动报TNS-12537、TNS-12560错误

简介: 环境说明: OS:Centos6.5 DB:Oracle  11.2.0.3   问题:数据库启动监听的时候,报如下错误: [oracle@localhost admin]$ lsnrctl start Connecting to (DESCRIPTION...

环境说明:

OS:Centos6.5

DB:Oracle  11.2.0.3

 

问题:数据库启动监听的时候,报如下错误:

[oracle@localhost admin]$ lsnrctl start

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date                27-NOV-2015 08:44:40

Uptime                    0 days 0 hr. 0 min. 18 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /ora01/app/oracle/product/11.2.0/db_01/network/admin/listener.ora

Listener Log File         /ora01/app/oracle/diag/tnslsnr/dbtest001/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST= )(PORT=1521)))

TNS-12537: TNS:connection closed

TNS-12560: TNS:protocol adapter error

TNS-00507: Connection closed

Linux Error: 29: Illegal seek

 

解决方法:

1、修改计主机名,安装系统的时候默认的主机名为localhost,这个主机名进行解析的时候会出现很多诡异的问题,强烈建议大家记得修改主机名;

2、修改/etc/hosts 的文件

[root@localhost tmp]# cat /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.1.100 dbtest001   

 

经过以上操作后,再次启动监听

 

[oracle@dbtest001 ~]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-NOV-2015 09:21:55

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Starting /ora01/app/oracle/product/11.2.0/db_01/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production

System parameter file is /ora01/app/oracle/product/11.2.0/db_01/network/admin/listener.ora

Log messages written to /ora01/app/oracle/diag/tnslsnr/dbtest001/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.26)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date                27-NOV-2015 09:21:55

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /ora01/app/oracle/product/11.2.0/db_01/network/admin/listener.ora

Listener Log File         /ora01/app/oracle/diag/tnslsnr/dbtest001/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.100)(PORT=1521)))

The listener supports no services

The command completed successfully

 

显示已完成监听的启动。

相关文章
|
监控 Oracle 关系型数据库
TNS-12541: TNS: 无监听程序 TNS-12560: TNS: 协议适配器错误 TNS-00511: 无监听程序
文章转自:http://www.luocs.com/archives/464.html 此文版权归作者 – yaogang所有,转载请注明yaogang©www.luocs.com。 Luocs说:这是我一个朋友的一个监听器问题解决案例,这是昨天发生的事情,我一直跟朋友一起Troubleshooting,折腾了半天最后是BUG所致。
1808 0
|
Oracle 关系型数据库 Windows
ORA-12154 和 TNS-03505 监听错误的解决方法
                                   ORA-12154 和 TNS-03505 监听错误的解决方法   今天在笔记本上本来想做个exp的测试的时候突然报错: ORA-03505:TNS: 无法解析指定...
1213 0
|
Oracle 网络协议 关系型数据库
|
Oracle 关系型数据库 Linux
【故障|监听】TNS-12545、TNS-12560、TNS-00515和Linux Error: 111
【故障|监听】TNS-12545、TNS-12560、TNS-00515和Linux Error: 111: Connection refused  Linux Error: 111: Connection refused [orac...
1922 0
|
关系型数据库 数据库 Windows
ORA-12537 TNS:连接关闭
今天遇到:ORA-12537 TNS:连接关闭,监听正常,集群正常,数据库正常,查了一下才发现问题。 LISTENER日志报错 TNS-12546: TNS:permission denied  TNS-12560: TNS:protocol adapter error   TNS-00516: Permission denied 设置限制登录 tcp.
2992 0
|
数据库 网络协议
创建OEM无监听:配置: ORA-12541: TNS:no listener
今天在重建OEM出现如下错误: 严重: 监听程序未启动或数据库服务未注册到该监听程序。启动该监听程序并注册数据库服务, 然后重新运行 EM Configuration Assistant。
1177 0

热门文章

最新文章