在一个db2 instance下面,设置了 db2set DB2_CAPTURE_LOCKTIMEOUT=ON,为了create event monitor xxx for locking同时设置了
db2 update db cfg using mon_deadlock hist_and_values
db2 update db cfg using mon_locktimeout hist_and_values
db2 update db cfg using mon_lw_thresh 10000
db2 update db cfg using mon_lockwait hist_and_values
db2 update db cfg using MON_LCK_MSG_LVL 3 immediate
当模拟了锁事件以后,在DB2 diag路径下,没有产生 db2locktimeout.xxx文件
花了一个小时调查原因,没有找到结果,但是把db cfg的参数恢复成原来的值以后,就可以正常生成db2locktimeout.xxx文件了。
db2 update db cfg using MON_LOCKTIMEOUT NONE
db2 update db cfg using MON_DEADLOCK WITHOUT_HIST
db2 update db cfg using MON_LOCKWAIT NONE
db2 update db cfg using MON_LW_THRESH 5000000
db2 update db cfg using MON_LCK_MSG_LVL 1
不知道这是不是DB2的一个bug,这里mark一下,留待以后调查。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/725820/viewspace-2850399/ ,如需转载,请注明出处,否则将追究法律责任。