今天学习使用adrci工具,
[grid@bdspoc_st ~]$ adrci ADRCI: Release 11.2.0.3.0 - Production on Fri Aug 30 14:28:14 2013 Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved. ADR base = "/u01/app/11.2.0" adrci> show alert Choose the alert log from the following homes to view: 1: diag/tnslsnr/bdspoc_st/listener 2: diag/asm/+asm/+ASM Q: to quit Please select option: 1
查看了下grid用户下的listener日志,发现有大量的告警出现:
2013-08-30 11:31:58.789000 +08:00WARNING: Subscription for node down event still pending
30-AUG-2013 11:31:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=bdspoc_st.bdstar.com)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
2013-08-30 11:32:58.797000 +08:00WARNING: Subscription for node down event still pending
30-AUG-2013 11:32:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=bdspoc_st.bdstar.com)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
2013-08-30 11:33:58.803000 +08:00WARNING: Subscription for node down event still pending
30-AUG-2013 11:33:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=bdspoc_st.bdstar.com)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
2013-08-30 11:34:58.816000 +08:00
WARNING: Subscription for node down event still pending
30-AUG-2013 11:34:58 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=bdspoc_st.bdstar.com)(USER=grid))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186647296)) * status * 0
几乎是每分钟都出现警告.通过查找metalink,发现文档372959.1有相关描述:
[root@bdspoc_st ~]# cd /u01/app/11.2.0/grid/network/admin
[root@bdspoc_st admin]# ls
listener.ora listener.ora.bak.bdspoc_st samples shrept.lst sqlnet.ora
[root@bdspoc_st admin]# vim sqlnet.ora
[root@bdspoc_st admin]# vim listener.ora
添加 SUBSCRIBE_FOR_NODE_DOWN_EVENT_<listener_name>=OFF
[root@bdspoc_st admin]# su - grid
[grid@bdspoc_st ~]$ lsnrctl reload --重新载入监听信息
再次查看监听告警,WARNING警告消失。
This will prevent the messages from being written to the log file and may also prevent the TNS
Listener from hanging periodically.
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.
我的是一个单机的asm 11.2.0.3.7的数据,所以可以修改。