且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

lsnrctl启动报错,Linux Error: 29: Illegal seek

更新时间:2022-04-09 12:41:04

lsnrctl启动报错,Linux Error: 29: Illegal seek

lsnrctl启动报错,信息如下

[oracle@sap admin]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 15-SEP-2014 02:33:08

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

Starting /home/oracle/app/oracle/product/11.2.0/dbhome_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

[oracle@sap admin]$ /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr
Unable to resolve address for localhost:6150
ONS runtime exiting

解决方法,保证localhost这行存在,127.0.0.1 localhost.localdomain localhost

[root@sap ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1        localhost6.localdomain6 localhost6
10.1.1.21    sap   
[root@sap ~]#