Quick fix for DB2 execution of INSERT statement 57016 sqlcode=-668 Reason code "7" error

Source: Internet
Author: User
Tags db2

DB2 Database Execution Insert INSERT statement 57016 Error (table inactive)

Reason: 1. The table structure has been modified.
2. The primary key is removed. Or the primary key has been modified.

If you are using the console, you can use the

REORG table name;

If you use the tool to execute the above statement and then a 42601 error, you can try the following statement

Example: Call Sysproc. Admin_cmd (' REORG TABLE test ')

Some people say that after executing the above statement, it is also performed:

RUNSTATS Collecting information
RUNSTATS on TABLE <tbschema>.<tbname>

Collect statistics for tables <tbname>.

I did not execute follow-up statements, interested in can try, welcome to share. Reference

Quick fix for DB2 execution of INSERT statement 57016 sqlcode=-668 Reason code "7" error

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.