1: TNS-12537, TNS-12560, TNS-00507 Processing
The following error is reported when the listener is started. Generally, the information about the loopback address in the/etc/hosts file is deleted by mistake.
[Oracle @ jason admin] $ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0-Production on 21-JUL-2011 23:10:10
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Starting/orac/orahome/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
[Oracle @ jason admin] $ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0-Production on 21-JUL-2011 23:13:19
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Starting/orac/orahome/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
[Oracle @ jason admin] $
Modify the content of the/etc/hosts file as follows.
[Root @ jason etc] # cat hosts
# Do not remove the following line, or various programs
# That require network functionality will fail.
127.0.0.1 jason localhost. localdomain localhost
: 1 localhost6.localdomain6 localhost6
2: TNS-12545, TNS-12560, TNS-00515 Processing
[Oracle @ jason admin] $ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0-Production on 21-JUL-2011 23:07:50
Copyright (c) 1991,200 5, Oracle. All rights reserved.
Starting/orac/orahome/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0-Production
System parameter file is/orac/orahome/app/oracle/product/10.2.0/db_1/network/admin/listener. ora
Log messages written to/orac/orahome/app/oracle/product/10.2.0/db_1/network/log/listener. log
Error listening on: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = jason) (PORT = 1521 )))
TNS-12545: Connect failed because target host or object does not exist
TNS-12560: TNS: protocol adapter error
TNS-00515: Connect failed because target host or object does not exist
Linux Error: 11: Resource temporarily unavailable
The above error occurs because the host name is set to the listening address, and the host name is not parsed in/etc/hosts, so the target host cannot be found.
Solution:
(1): Change the listening address to an IP address.
(2) Add "Host ip host name" to the hosts file ".
This article is from "carefully taste life !" Blog