RAC hosts is not configured causing TNS-12541: TNS: no listener

Source: Internet
Author: User

TNS-12541: TNS: no listener
This error is summarized in three cases.
1. The local listener is not enabled
2. The network from the server network to the client is disconnected
3. configuration problems in Hosts

[Oracle @ his1 admin] $ tnsping crds3db2 client tnsping prompt program not listening

TNS Ping Utility for Linux: Version 11.2.0.2.0-Production on 28-MAY-2014 11:11:57
 
Copyright (c) 1997,201 0, Oracle. All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.20.8) (PORT = 1521) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = crds3db )))
TNS-12541: TNS: no listener
Check that the listening status is normal for oracle users, but one node 1 IP address is not registered to node 2 listening.
[Oracle @ his1 ~] $ Lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0-Production on 28-MAY-2014 10:56:09

Copyright (c) 1991,201 0, Oracle. All rights reserved.

Connecting to (ADDRESS = (PROTOCOL = tcp) (HOST =) (PORT = 1521 ))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0-Production
Start Date 28-MAY-2014 10:09:10
Uptime 0 days 0 hr. 46 min. 59 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File/app/grid/product/11.2.0/grid/network/admin/listener. ora
Listener Log File/app/grid/grid_base/diag/tnslsnr/his1/listener/alert/log. xml
Listening Endpoints Summary...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = LISTENER )))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = 127.0.0.1) (PORT = 1521 )))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = 192.168.20.6) (PORT = 1521 )))
Services Summary...
Service "+ ASM" has 1 instance (s ).
Instance "+ ASM1", status READY, has 1 handler (s) for this service...
Service "crdsdb" has 1 instance (s ).
Instance "crds3db1", status READY, has 1 handler (s) for this service...
The command completed successfully
 
[Root @ his1 admin] # vi/etc/hosts
Delete his1 from it. Because Two Computing names conflict, the listener only registers for 127.0.0.1.
# Do not remove the following line, or various programs
# That require network functionality will fail.
127.0.0.1 his1 localhost. localdomain localhost
#: 1 localhost6.localdomain6 localhost6
192.168.20.1 his1
192.168.20.2 his2
192.168.20.5 his-scan
192.168.20.6 his1-vip
192.168.20.7 his2-vip
192.168.000015 hisdg
10.0.0.1 his1-priv
His2-priv 10.0.0.2
[Grid @ his2 ~] $ Lsnrctl status

LSNRCTL for Linux: Version 11.2.0.2.0-Production on 28-MAY-2014 11:18:14

Copyright (c) 1991,201 0, Oracle. All rights reserved.

Connecting to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = LISTENER )))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0-Production
Start Date 28-MAY-2014 11:06:52
Uptime 0 days 0 hr. 11 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File/app/grid/product/11.2.0/grid/network/admin/listener. ora
Listener Log File/app/grid/grid_base/diag/tnslsnr/his2/listener/alert/log. xml
Listening Endpoints Summary...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = LISTENER )))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = 192.168.20.2) (PORT = 1521 )))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = 192.168.20.7) (PORT = 1521 )))
Services Summary...
Service "+ ASM" has 1 instance (s ).
Instance "+ ASM2", status READY, has 1 handler (s) for this service...
Service "crdsdb" has 1 instance (s ).
Instance "crds3db2", status READY, has 1 handler (s) for this service...
The command completed successfully
C: \ Users \ oracle> tnsping crdsdb 3 dB

TNS Ping Utility for 32-bit Windows: Version 11.2.0.1.0-Production on 28-5-
11:32:16 2014

Copyright (c) 1997,201 0, Oracle. All rights reserved.

Used parameter files:
D: \ app \ mxq \ product \ 11.2.0 \ dbhome_1 \ network \ admin \ sqlnet. ora


Alias resolved using TNSNAMES Adapter
Try to connect (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.1
68.20.1) (PORT = 1521) (CONNECT_DATA = (SERVICE_NAME = crdsdb dB )))
OK (10 ms)
-
--- The end ---

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.