Review of REORG TABLESPACE output

The output from the REORG TABLESPACE utility consists of a reorganized table space, partition, or a range of partitions.

The following table summarizes the effect of REORG on a table space partition and on the corresponding index partition.

Table 1. Summary of the results of REORG TABLESPACE according to the type of specification.
Specification Results
REORG TABLESPACE All data + entire partitioning index + all nonpartitioning indexes
REORG TABLESPACE PART n Data for PART n + PART n of the partitioning index + index entries for PART n in all nonpartitioning indexes
REORG TABLESPACE PART n1:n2

Data for PART n1 through n2 + PART n1 through n2 of the partitioning index + index entries for those partitions in all nonpartitioning indexes

REORG TABLESPACE SCOPE PENDING Specified table space or partitions that are in REORG-pending status.
REORG SHRLEVEL CHANGE PART and SHRLEVEL REFERENCE PART Unloads and builds entire NPIs, so that the NPI is largely reorganized even though only a part of the data is actually reorganized.

When reorganizing a segmented (non-UTS) table space, REORG leaves free pages and free space on each page in accordance with the current values of the FREEPAGE and PCTFREE parameters. (You can set those values by using the CREATE TABLESPACE, ALTER TABLESPACE, CREATE INDEX, or ALTER INDEX statements). REORG leaves one free page after reaching the FREEPAGE limit for each table in the table space. When reorganizing a nonsegmented table space, REORG leaves one free page after reaching the FREEPAGE limit, regardless of whether the loaded records belong to the same or different tables.