在RedHatLinux9下安装完Oracle10.2.0.1后,发现启动监听器老是报错如下:
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
重建监听器也不能解决,最后在metalink上找到答案,原来不知道谁将/etc/hosts下的127.0.0.1 localhost.localdomain localhost给删除了,Oracle从10.1.0.3开始在启动监听器时需要使用到localhost这个本地名字来支持ONS (Oracle Notification Services).
解决方法就是将127.0.0.1 localhost.localdomain localhost添加到/etc/hosts即可.
参考metatlink:
https://metalink.oracle.com/metalink/plsql/f?p=130:14:5183098549748742839::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,315720.1,1,1,1,helvetica
https://metalink.oracle.com/metalink/plsql/f?p=130:14:5183098549748742839::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,294730.1,1,0,1,helvetica
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3898/viewspace-845747/ ,如需转载,请注明出处,否则将追究法律责任。