昨天晚上接到一個問題:
所管的一套11202的單點asm 監聽不正常,應用無法正常連接,系統是hp-ux
登入系統後,查看監聽的日誌,發現類似WARNING,從網上查
引用:http://www.xifenfei.com/3980.html
SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF will prevent the messages
from being written to the log file and may also prevent the TNS Listener from hanging periodically.
Setting SUBSCRIBE_FOR_NODE_DOWN_<listener_name> to OFF disables
a necessary RAC functionality(Oracle Notification Service[ONS],fast application notification[FAN]).
The above workaround is recommended only for non-RAC environments.
The issue may be present in all 10g and newer installations.
設置SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF 將不寫這個報警日誌,也會預防掉週期性的hanging
會將把rac中的ONS關閉(這是rac的必要服務,不推薦在rac上使用這個參數)。
恰好我處理的當前的庫,是使用了asm,但只是一個單點庫。所以寫入了這個參數。
在監聽文件中寫入:
SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF
reload監聽:
lsnrctl reload
問題還沒有解決。還是無法連接,將監聽都關閉後查看相應端口
netstat -tpn(root 執行)
還是有端口占用,且是listener程序,但該程序已經kill掉了,端口卻沒有釋放
這時候通過修改local_listener 將端口指向了1521默認端口(當前實例平日使用別的端口)
手動執行:alter system register
這時候查看原端口,已經釋放掉了
再將local_listener修改回去
alter system register
這時查看相關listener,狀態已經正常了