Go Several situations in DB2 that require reorg operation

Source: Internet
Author: User
Tags db2

Question: In the DB2 database, do you need to do a reorg operation on the table to get the table state back to normal when the table's structure is modified?

A: There are 4 kinds of operations, you need to do reorg operation of the table

1. SET DATA TYPE Altered-data-type

However, the following two cases are exceptions and do not require reorg:
1). Increasing the length of a VARCHAR or vargraphic column
2). Decreasing the length of a VARCHAR or vargraphic column without truncating trailing blanks from existing Data
2. SET not NULL
3. DROP not NULL
Other operations, theoretically do not need to reorg, but some operations, it is necessary to reorg after the actual effect, such as "ALTER TABLE ... COMPRESS YES ", the syntax does not need to reorg operation, also does not affect the table additions and deletions to the operation, but only after reorg, can really turn on compression:
After a table have been altered to enable row compression, all rows in the table can is compressed immediately by performin G One of the following actions:
1. REORG command
2. Online table Move
3. Data Unload and Reload

Go Several situations in DB2 that require reorg operation

Related Article

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.