DB2 Kill Lock Process

Source: Internet
Author: User
Tags db2

DB2 kill lock-in command
Get  for Locks    on (Requires snapshot access)
DB2 List Applications
" Force Application (8) "

In the fourth paragraph of snapshot, an application with an application handle of 8 has a lock present, and the locked table is us_catalog in its corresponding lock list.


If you are sure that a deadlock has occurred on the Us_catalog table, you can kill the application's connection to the database by command DB2 "Force application (8)".


Note If the force command causes the application's transaction to be rolled back, the Force command cannot immediately disconnect the application on the database, but wait until the rollback is complete before disconnecting the application's database connection.

You can use db2top-d db_name, enter the name of the table by pressing U, and see which application the lock is added to the table.

If you want to release the lock, just force the application off. DB2 "Force application (APPL_ID)"
However, before force application, take care of what the application is doing, force, will be rolled back, some operations can not be rolled back,
The object is invalid.

DB2 Kill Lock Process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.