Need process to find locks and timeouts in a DB2 database rc=-911

Our application periodically fails with what appears to be a lock time out, rc=-911.

How would I go about monitoring for locks? This happens late at night when the scheduled processes run and so its hard to catch it in the act.

This is DB2 V9.7 on AIX 7. LOCKTIMEOUT is set to 60.

I have the monitor switches enabled and have a script to take snapshots during the time when the process runs. But i haven't been able to get the information.

I'm wondering about setting the event monitor for LOCKEVMON. I'm not very familiar with setting up event monitors, how to enable/disable them or how to gather the information and generate readable reports from it.

Any help would be appreciated.

THanks!
data_bitsdbaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mustaccioCommented:
Firstly, SQLCODE -911 may mean either a lock timeout or a deadlock; the actual event is indicated by the additional reason code value. You can check db2diag.log -- deadlocks would appear there as well.

The procedure for setting up a lock event monitor and generating a report is described in the manual in great detail: http://pic.dhe.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.admin.mon.doc/doc/t0055093.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB2

From novice to tech pro — start learning today.