Common listener Fault Handling Methods

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.