A method to view the db2diag.log file is found DeadLock or Lock timeout search deadlock or lock timeout information db2 force application (handle ID) directly to the end of the process. Method two, DB2 snapshot information 1, look at DB2 snapshot information the DB2 GET Snapshot for Locks ON the Sample
can get similar information: Database Lock Snapshot Database name = SAMPLE database path = D: \ IBM \ DB2 \ NODE0000 \ SQL00001 \ Enter the database alias = SAMPLE pending locking = 8
applications that are currently connected = 2 currently waiting for a lock number agent = 1 application handle = 54 application identification number = 00001 = * LOCAL.DB2.140304192925 application name = db2bp.exe authorization ID = CONNECT the DB2ADMIN application status = locked waiting for the application code page pending locking = 1208 = 4 total wait time (ms) = 247867Lock Lock List Name = 0x5359534C564C3031DDECEF2841 property = 0x00000000 lock release flag = 0x40000000 lock count = 1 = suspend count 0 Lock object type object name = 2312 = row of the table space name = IBMDB2SAMPLEREL table mode = DB2ADMIN table name = TEST mode = IX
View for more information locked: the DB2 GET Snapshot for locks for the application agentid 1728 ---- (1728 is the handle ID)
3 , to see if the output of the application to view the state of the command db2 list applications lock wait (LOCK- the wait) state occurs. Applications Run List for db the Sample Show the Detail; 4 , the DB2 Force the Application (handle ID) directly to the end of the process.