ORDER
For performance information about this option, see Memory requirements of the ORDER command option.
YES
When ORDER YES (the default) is in effect, REORG PLUS orders the rows in the tables of the table space by their clustering key or, if there is no clustering key, by partitioning key. REORG PLUS orders the data in segmented table spaces, even if no clustering index exists for the table space.
Restrictions
REORG PLUS ignores ORDER YES or changes it to ORDER NO when any of the following conditions exist:
- You are reorganizing a LOB table space and SHRLEVEL REFERENCE is in effect.
- All of the following conditions exist:
- You are reorganizing a table space that has only one table.
- The table space is not partitioned or is partition-by-growth.
- No clustering index exists.
- You are performing a two-phase reorganization (UNLOAD CONTINUE).
Option | Description | ||||||
---|---|---|---|---|---|---|---|
ASSOCIATE | This option does not apply to an index-only reorganization. Use the ASSOCIATE option to specify how you want REORG PLUS to order rows for multi-table table spaces.
|
NO
For table space reorganizations, if you specify ORDER NO, REORG PLUS performs no ordering, and the data rows retain the order of the table before the reorganization. REORG PLUS processes clustering indexes together with non clustering indexes.
For index reorganizations, ORDER NO performs no ordering of the key/RID pairs.
When invoking DSNUTILB, REORG PLUS passes this option as SORTDATA NO to the IBM Db2 REORG utility for processing.
Restrictions
ORDER NO has the following restrictions:
- REORG PLUS changes ORDER NO to ORDER YES when you are rebalancing partitions.
- REORG PLUS terminates when you specify ORDER NO under any of the following conditions:
- You are reorganizing a multi-table, segmented table space.
- For a single-phase reorganization, you are performing a SHRLEVEL NONE reorganization.
- For an index-only reorganization, you are performing a SHRLEVEL CHANGE reorganization.