TNS-12537, TNS-12560,TNS-00507 Linux Error: 29: Illegal seek error

TNS-12537, TNS-12560,TNS-00507 Linux Error: 29: Illegal seek error

错误现象:

TNS-12537: TNS:connectionclosed

 TNS-12560: TNS:protocol adapter error

  TNS-00507: Connection closed

   Linux Error: 29: Illegal seek

 

参考文档:

参考:Metalink[ID 315720.1] TNS Listener Fails To Start With Errors:TNS-12537…Error: 29: Illegal seek [ID 315720.1]

且我已经转载http://www.prudentwoo.com/archives/704?preview=true

 

问题分析:

主要是因为系统的host文件中的默认值被修改导致。

 

解决办法:

只需要将host文件中默认的如下这句话添加上去即可。

127.0.0.1                      localhost.localdomainlocalhost

 

[root@prudentwoo ~]# vi /etc/hosts

# thatrequire network functionality will fail.

127.0.0.1               localhost.localdomain localhost

 

修改完毕之后,监听可以启动:

[oracle@prudentwoo admin]$ lsnrctl start

 

LSNRCTLfor Linux: Version 11.2.0.1.0 – Production on 12-DEC-2012 03:01:27

 

Copyright(c) 1991, 2009, Oracle.  All rightsreserved.

 

Starting/DBSOFT/produce/11.2.0/db_1/bin/tnslsnr: please wait…

 

TNSLSNRfor Linux: Version 11.2.0.1.0 – Production

Systemparameter file is /DBSOFT/produce/11.2.0/db_1/network/admin/listener.ora

Logmessages written to /DBSOFT/diag/tnslsnr/prudentwoo/listener/alert/log.xml

Listeningon: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.168.9.10)(PORT=1521)))

 

Connectingto (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.168.9.10)(PORT=1521)))

STATUSof the LISTENER

————————

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version11.2.0.1.0 – Production

StartDate                12-DEC-2012 03:01:27

Uptime                    0 days 0 hr. 0 min. 0 sec

TraceLevel               off

Security                  ON: Local OS Authentication

SNMP                      OFF

ListenerParameter File  /DBSOFT/produce/11.2.0/db_1/network/admin/listener.ora

ListenerLog File        /DBSOFT/diag/tnslsnr/prudentwoo/listener/alert/log.xml

ListeningEndpoints Summary…

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

Thelistener supports no services

Thecommand completed successfully

点赞