The information in this document applies to:
此文档中的信息适用于:
Oracle Net Services - Version: 10.1.0.3
This problem can occur on any platform.
Symptoms
现象:
The listener fails to start with the following errors:
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
Cause
原因:
Generic to Unix platforms.
通常发生于Unix平台
Wrong syntax in hosts file and also due to the the tnslsnr process was enhanced in
10.1.0.3 to support FAN(Fast Application Notification) via
ONS (Oracle Notification Services). This new code opens a socket open on localhost. Therefore
"localhost" should be defined on the system.
hosts文件中存在语法错误。由于tnslsnr进程在10.1.0.3版本中被加强,通过ONS(oracle 提醒服务)来支持FAN(快速应用服务)。这些新代码将在localhost上打开一个通信。所以“localhsot”应该在系统被定义。
Fix
解决办法
Change /etc/hosts file to include
127.0.0.1 localhost.localdomain localhost
修改/etc/hosts文件,使其包含
127.0.0.1 localhost.localdomain localhost
其实,只要在/etc/hosts文件中有localhost的体现就可以了。