You can used values in the SYSIBM.SYSTABLESPACESTATS catalog table determine when to
reorganize a table space.
Before you begin
For best results, consider calling the DSNACCOX stored procedure to determine whether to reorganize database objects. For more information, see DSNACCOX stored procedure.
Procedure
-
Reorganize table spaces when any of the following conditions are true.
These conditions are based on values in the SYSIBM.SYSTABLESPACESTATS table.
-
Reorganize table spaces if any of the following conditions are true:
- The table space is in the advisory REORG-pending state (AREO*) as a result of an ALTER TABLE
statement.
- An index on a table in the table space is in the advisory REBUILD-pending state (ARBDP) as
result an ALTER TABLE statement.