DB2 table is locked, how to unlock

Source: Internet
Author: User
Tags db2 db2 error prepare
Reasons and Solutions

1. Reason: Modify the table structure table structure changes and then any operation on the table is not allowed, SQLState is 57016 (because the table is not active, so it cannot be accessed), because the table field permissions are modified, resulting in tables are not available state, another small suggestion, If you used DB2 in your usual work, you'd better prepare a copy of the DB2 error document


2. Solution: The process of reconstructing and reconstructing a table is the process of breaking up and re-assembling part of the data.

The statement needs to be executed:

Command line execution: REORG TABLE tablename

Non-command line execution: Call Sysproc. Admin_cmd (' REORG TABLE tablename ')


3. Suggestion: A small suggestion, if the usual work with DB2 more, it is best to prepare a DB2 error document, can quickly cut into the problem to find

DB2 table is locked, how to unlock

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.