oralistener resource does not get restarted automatically after the failure due to "stop on oralistener '<name>' returned 1 (generic error)" in RHEL 5 or 6
Issue
- If my Oracle listener dies for some reason, the
oralistenerresource is unable to recover
Dec 20 10:19:03 node1 clurgmgrd[9904]: <notice> Stopping service service:myDB
Dec 20 10:19:03 node1 logger[19846]: Validating configuration for MYLISTENER
Dec 20 10:19:03 node1 logger[19849]: Validation checks for MYLISTENER succeeded
Dec 20 10:19:03 node1 logger[19850]: Stopping listener MYLISTENER
Dec 20 10:22:10 node1 root[26329]: stop listener MYLISTENER failed LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 20-DEC-2013 10:22:09 Copyright (c) 1991, 2011, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=node1.example.com)(PORT=2578))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=PROD_EXTPROC2578))) TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux Error: 111: Connection refused
Dec 20 10:19:03 node1 logger[19852]: stop listener MYLISTENER failed
Dec 20 10:19:03 node1 clurgmgrd[9904]: <notice> stop on oralistener "MYLISTENER" returned 1 (generic error)
- The Oracle database listener resource is configured as a
non-criticalresource within the cluster service, but during testing when we have manually killed the listener process, cluster is unable to restart/recover the listener resource automatically.
Dec 17 14:07:04 node1 logger[13753]: Listener lsnr not running
Dec 17 14:07:04 node1 clurgmgrd[9904]: <notice> status on oralistener "lsnr" returned 1 (generic error)
Dec 17 14:07:04 node1 clurgmgrd[9904]: <warning> Some independent resources in service:ora1 failed; Attempting inline recovery
[...]
Dec 17 14:07:04 node1 logger[13791]: Stopping listener LN001057
Dec 17 14:07:06 node1 clurgmgrd[9904]: <notice> stop on oralistener "lsnr" returned 1 (generic error)
[...]
Environment
- Red Hat Enterprise Linux (RHEL) 5 or 6 with the High Availability Add On
- One or more
<oralistener/>resources in/etc/cluster/cluster.conf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
