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

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

WBOY
WBOYOriginal
2016-06-07 15:54:121728browse

监听器启动时报错: 版本为: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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:MongoDB增删查改Next article:追踪DBCA建库log