首页  >  文章  >  数据库  >  监听器启动时报错:TNS-12537:TNS:connectionclosed/TNS-00507:C

监听器启动时报错:TNS-12537:TNS:connectionclosed/TNS-00507:C

WBOY
WBOY原创
2016-06-07 15:54:121732浏览

监听器启动时报错: 版本为:LSNRCTL for Linux: Version 10.2.0.1.0 [oracle@ocm1 ~]$ lsnrctl start LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-MAR-2014 15:05:43 Copyright (c) 1991, 2005, Oracle. All rights reserved. Starting /u01

监听器启动时报错:

版本为:LSNRCTL for Linux: Version 10.2.0.1.0

[oracle@ocm1 ~]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-MAR-2014 15:05:43
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0.1/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

经查询是127.0.0.1 localhost.localdomain localhost 这一条没写对,127后面少了0,更改后正常。

[oracle@ocm1 bin]$ sudo vi /etc/hosts

127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.57.217 ocm1.bys.com ocm1

修改后重新启动监听器,正常。

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn