一早上班,启动一下测试用的oracle服务器监听器,出现下列错误:
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 14-AUG-2009 13:46:11
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /oracle/product/10.2.0/bin/tnslsnr: please wait...
TNS-12537: TNS:connection closed
TNS-12560: TNS:protocol adapter error
TNS-00507: Connection closed
Linux Error: 29: Illegal seek
这个时候vi /etc/hosts,查看hosts文件。
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 linux_19.xiangyong.com
# that require network functionality will fail.
127.0.0.1 linux_19.xiangyong.com
在127.0.0.1对应的主机名后面添加一个“localhost”就可以了!这么做的具体原因不详