Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to check the Lock level in database ?

Status
Not open for further replies.

lcklee

Programmer
Feb 19, 2003
12
HK
Can someone tell me how to check the DB2 lock level or isolation level ??

Now, my application on DB2 encounter lock time out error. The application developer said the DB2's isolation level is "Cursor Stability", how can I check that setting in database, moreover, how can I know the locking is on row or table ??

Pls help.
 
The error message returned at the time of the lock should tell you what table is being locked. If you look in the DB2 log, you should be able to see messages telling you who was holding the lock.
hth
Marc
 
Thx for your reply.

I m beginner on the DB2, can you tell me where is the DB2 log ? I m using AIX with DB2.

Moreover, my database only have one user since my application is java base and it connect to database by that user account. So who lock the account is not important.

However, what I put the eyes on is how the lock time out occur, since the application developer claim that the DB2 lock level is on row. To me, if the lock is base on row and the application just insert new record into the table, how come the table is lock, my new record is a new row, why it have lock time out ? Is there anything I can check the lock level is row or table ??

Moveover, can someone tell me what is the use of BIND command ??

Thx a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top