oracle監聽啟動時報TNS-00507問題解決一例

cnhtm發表於2010-04-16

Linux系統中,啟動oracle監聽的時候報如下錯誤:

[oracle@centos ~]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-APR-2010 00:25:22

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
[@more@]

經過檢查,發現hosts檔案,內容如下:

[root@centos ~]# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost.localdomain localhost
192.168.19.219 centos

缺少了 127.0.0.1 localhost行,加上這行後,如下所示,監聽就可以正常啟動了。

[root@centos ~]# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
::1 localhost.localdomain localhost
127.0.0.1 localhost
192.168.19.219 centos

--end--

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22049049/viewspace-1032963/,如需轉載,請註明出處,否則將追究法律責任。

相關文章