Hi,
I face some locking problem in production database. I delete all records in a table by issuing 4 different delete sqls in 4 sessions, so that each session delete a subset of the table. However, 2 of the 4 sessions are locktimeout.
It is very likely caused by next key exclusive lock. However, I checked the registry parameter db2_rr_to_rs that it is already set to yes. I know this setting takes effect only after instant restart. I am not sure if we have restarted the instance after setting this parameter to yes, and it is impossible to restart the instance at the moment (as it is a 7 x 24 production database). How can I know if db2_rr_to_rs=yes is taking effect?
Also, I tried getting snapshot for locks report but it doesn't show that an application is waiting for lock which is next key exclusive locked by other application(it doesn't show the hang session in lock-wait status), and the locking application shows only type X lock on deleted row as well as row next to the deleted row. How can I get more information on those locks?
Are that any other case apart from next key exclusive lock which may have outcome similar to the problem I described here?
Thanks!
