lsnrclt start 出错!TNS-12537, TNS-12560,TNS-00507 解决方法,oracle监听启动出错

[oracle@qw admin]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 15-MAR-2010 11:29:38

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

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNS-12537: TNS:connection closed
 TNS-12560: TNS:protocol adapter error
  TNS-00507: Connection closed
   Linux Error: 29: Illegal seek

更改了主机名,更改过hosts文件。首先查看$ORACLE_HOME/network/admin/listener.ora 文件中的host是什么。

另外需在/etc/hosts文件中查看是否有

127.0.0.1       localhost.localdomain   localhost

这条记录,如果后边的localhost被改为了其他也需增加这条记录。如你改为了

127.0.0.1       localhost.localdomain   qw

这时增加进去这条记录就是由两条记录:

127.0.0.1       localhost.localdomain   qw

127.0.0.1       localhost.localdomain   localhost

两条记录了。

就是hosts文件里没有127.0.0.1       localhost.localdomain   localhost,折腾了我好几天。

请使用浏览器的分享功能分享到微信等