Quote:
|
Originally Posted by Ayusman
1)I want to know all the locks that are held on a database at any point of
time. Can any one please help me on that.
|
GET SNAPSHOT FOR LOCKS ON <database>
Quote:
|
Originally Posted by Ayusman
2) Please correct me if I am wrong.
I want to CHECK and then CHANGE the lock level in my database from
table level to row level how do I do that?
|
Normally DB2 takes row-level locks. Only if the lock list space is exhausted the locks are escalated to the table level. You can only control that indirectly, by changing MAXLOCKS and LOCKLIST parameters, changing the transaction isolation level, and optimizing queries.
You can force a table-leve lock by issuing the LOCK TABLE statement.