启动监听报错:TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek

启动监听程序报错:

说明:在rhel5.8上安装完成oracle11g数据库后,使用netca创建完监听,启动监听时报错。还未使用dbca创建实例。

[oracle@rusky-oracle11g ~]$ lsnrctl start



LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-APR-2015 08:33:53



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



Starting /u01/app/oracle/product/11.2.0.1/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

处理方法:修改/etc/hosts文件如下

[root@rusky-oracle11g ~]# cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

#127.0.0.1 rusky-oracle11g.com rusky-oracle11g 把此行注释,添加第二行如下,否则启动监听程序时报错。 127.0.0.1    localhost.localdomain    localhost 

192.168.1.203 rusky-oracle11g.com rusky-oracle11g

/etc/resolve.con文件默认如下,未做修改:

 

[oracle@rusky-oracle11g ~]$ cat /etc/resolv.conf 

search com

 

再次启动监听正常:

[oracle@rusky-oracle11g ~]$ lsnrctl start



LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 02-APR-2015 08:37:38



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



Starting /u01/app/oracle/product/11.2.0.1/db_1/bin/tnslsnr: please wait...



TNSLSNR for Linux: Version 11.2.0.1.0 - Production

System parameter file is /u01/app/oracle/product/11.2.0.1/db_1/network/admin/listener.ora

Log messages written to /u01/app/oracle/diag/tnslsnr/rusky-oracle11g/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rusky-oracle11g.com)(PORT=1521)))



Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rusky-oracle11g.com)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias LISTENER

Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date 02-APR-2015 08:37:38

Uptime 0 days 0 hr. 0 min. 0 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/11.2.0.1/db_1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/rusky-oracle11g/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rusky-oracle11g.com)(PORT=1521)))

The listener supports no services

The command completed successfully

参考资料:

http://blog.csdn.net/zengmuansha/article/details/22686231

http://blog.chinaunix.net/uid-24612962-id-3194611.html

你可能感兴趣的:(Connection)