If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Somebody can tell me how to view the lock level in tables. por example page or row. what in the command to display this information and how to define this lock level in table.
The default behavior is to do row level locking. If too many row locks are held DB2 will escalate the locks to a table level lock. The only control you have is to issue "LOCK TABLE" statement--see the manual. Use the snapshot monitor to view the locks currently being held.
Hi ARWinner, thank you for you quick answer. I am DBA Informix and some activities DB2. at informix when create a table exist the statement lock mode (page or row) then you can modify this lock level if you it prefers. also you can view the lock level for any table in specific.
In my database there are a table lock in lock mode Z, ¿Anybody can tell me an procedure for detect what process or application is locking this table in DB2?
The version DB2 is the 9.5 and the system operation is Linux Suse 11.
select a.*
from sysibmadm.snaplock as l
inner join sysibm.snapappl_info as a on (l.agent_id = a.agent_id)
where l.tabschema = MyTableSchema and l.tabname = MyTableName and
l.lock_mode = 'Z'
Thank you for you quick answer, ¿in db2 exist an sequence of command for monitoring lock en tables? and any method for look the statement is executing in database?, what applications is generating the locks and what user?