監聽異常關閉

11g監聽啓動後自動關閉
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 06-SEP-2013 21:39:37

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.67.6)(PORT=1522)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                28-AUG-2013 16:53:12
Uptime                    9 days 4 hr. 46 min. 25 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/11g/network/admin/listener.ora
Listener Log File         /oracle/diag/tnslsnr/dw1/listener/alert/log.xml
Listening Endpoints Summary...
 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.67.6)(PORT=1522)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
 Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "dw" has 1 instance(s).
 Instance "dw", status UNKNOWN, has 1 handler(s) for this service...

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 06-SEP-2013 21:59:36

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.67.6)(PORT=1522)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
 TNS-00511: No listener
  Linux Error: 111: Connection refused
檢查監聽日誌../listener/alert/log.xml 中發現如下內容
WARNING: Subscription for node down event still pending

通過mos查看文檔《'Warning: Subscription For Node Down Event Still Pending' In Listener Log (文檔 ID 372959.1》
Applies to:
Oracle Net Services - Version 10.1.0.2.0 to 11.2.0.0 [Release 10.1 to 11.2]
Information in this document applies to any platform.
Checked for relevance on 29-Aug-2012
This issue affects only 10g and newer listeners.
Symptoms

You are receiving the following warning messages in the listener.log file constantly:

'WARNING: Subscription for node down event still pending'


Changes

This may be a new installation or a recent upgrade to 10g or newer.
Cause

These messages are related to the Oracle TNS Listener's default subscription to the Oracle Notification Service (ONS). In a non-RAC environment it is recommended to disable this subscription.   This feature was introduced in Oracle 10g.
Solution

Set the following parameter in the listener.ora:

SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF

Where <listener_name> should be replaced with the actual listener name configured in the
LISTENER.ORA file.

SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name> parameter is to be placed by itself on an empty line.

It will be necessary to restart or reload the listener following the addition of this parameter.

This will prevent the messages from being written to the log file and may also prevent the TNS
Listener from hanging periodically.  See NOTE 340091.1

Please Note: Setting SUBSCRIBE_FOR_NODE_DOWN_<listener_name> to OFF disables a necessary RAC functionality. The above workaround is recommended only for non-RAC environments.
The issue may be present in all 10g and newer installations.

Note:  The use of this undocumented parameter may cause problems with the use of the Net Manager (NetMgr) configuration utility.  See Note 437598.1.
References
NOTE:340091.1 - Intermittent TNS Listener Hang, New Child Listener Process Forked
NOTE:437598.1 - NetMGR May Error When Listener.ora File Contains:SUBSCRIBE_FOR_NODE_DOWN_EVENT

設置SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF,重啓監聽恢復正常;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章