I know how to check the DB is in a lock state or not, but my question is how to find out which query caused the lock on table /db.
IS there any log file getting created if something unexpected happens to the database?
db2deadlocklocking
I know how to check the DB is in a lock state or not, but my question is how to find out which query caused the lock on table /db.
IS there any log file getting created if something unexpected happens to the database?
Best Answer
List the current database activities:
This command will show you database locks: