时间:2021-07-01 10:21:17 帮助过:507人阅读
但有以下两种情况是例外,不需要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
4. DROP COLUMN
其他的操作,理论上都不需要REORG,但有些操作,是需要REORG之后才能实际生效的,比如"ALTER TABLE ... COMPRESS YES",语法上不需要REORG操作,也不会影响表的增删改查操作,但只有REORG之后,才能真正开启压缩:
After a table has been altered to enable row compression, all rows in the table can be compressed immediately by performing one of the following actions:
1. REORG command
2. Online table move
3. Data unload and reload
[转]DB2中需要REORG操作的几种情况
标签:immediate iat reload and nbsp trunc one 数据 been