Object status for SHRLEVEL REFERENCE UNLOADONLY, SHRLEVEL REFERENCE, and SHRLEVEL CHANGE
Initial status
The database that is associated with the objects that are participating in the reorganization must have one of the following initial statuses requirements for SHRLEVEL REFERENCE UNLOADONLY, SHRLEVEL REFERENCE, and SHRLEVEL CHANGE:
Condition | Requirement |
|---|---|
You are using a DDLIN data set or the REBALANCE command option | Read/write (RW) |
All other SHRLEVEL CHANGE | RW |
All other SHRLEVEL REFERENCE UNLOADONLY or SHRLEVEL REFERENCE | One of the following statuses:
|
The objects that you are reorganizing can be in any status except those that the Statuses that are not permitted for SHRLEVEL REFERENCE UNLOADONLY, SHRLEVEL REFERENCE, and SHRLEVEL CHANGE table describes. If the object is in a status that REORG PLUS does not permit, REORG PLUS terminates. An X in a column in this table indicates the following information:
- For a full table space reorganization, the table space cannot be in that restrictive status (but any indexes, if applicable, can be unless otherwise noted).
- For a partial table space reorganization, the partitions that are participating in the reorganization and any nonpartitioned indexes (if applicable) cannot be in that restrictive status (but partitioned indexes, if applicable, can be).
- For an index reorganization, the index cannot be in that restrictive status.
The following table describes the statuses that are not permitted for SHRLEVEL REFERENCE UNLOADONLY, SHRLEVEL REFERENCE, and SHRLEVEL CHANGE:
Status that is not permitted | SHRLEVEL REFERENCE UNLOADONLY reorganization fails | SHRLEVEL REFERENCE reorganization fails | SHRLEVEL CHANGE reorganization fails |
|---|---|---|---|
AREST (advisory restart pending) | X | X | X |
GRECP (group RECOVER pending) |
| X | X |
LPL (logical page list) | X | X | X |
PRO (persistent read only) 1 | X | X | X |
PSRBD (page set REBUILD pending) | X | X 2 | X |
RBDP (REBUILD pending) | X | X 2 | X |
RBDP* (logical part REBUILD pending) | X | X | X |
RECP (RECOVER pending) | X | X | X |
REFP (refresh pending) | X | X | X |
RESTP (restart pending) | X | X | X |
RO (read-only) |
|
| X |
RREPL (read-or-replication-only) | X | X | X |
UTRO (utility restrictive state, read-only access allowed) | X | X | X |
UTRW (utility restrictive state, read/write access allowed) | X | X | X |
UTUT (utility restrictive state, utility exclusive control) | X | X | X |
WEPR (write page error range) | X | X | X |
1 The reorganization terminates if one or more of the partitions being reorganized is in this status.
2 When reorganizing a LOB table space, REORG PLUS also fails if the associated auxiliary index is in this status.
Status changes for SHRLEVEL REFERENCE UNLOADONLY, SHRLEVEL REFERENCE, and SHRLEVEL CHANGE
The following tables list status changes (for the database and the table space or index space) that occur during specific phases of a SHRLEVEL REFERENCE UNLOADONLY, SHRLEVEL REFERENCE, or SHRLEVEL CHANGE reorganization. The following additional considerations apply:
- For SHRLEVEL REFERENCE UNLOADONLY and SHRLEVEL REFERENCE, for a partial reorganization, REORG PLUS starts or stops only partitions that you specify with the PART option of the REORG command. REORG PLUS starts or stops nonpartitioned indexes in their entirety.
- REORG PLUS does not set CHECK pending status for reorganizations that result in referential integrity violations.
- If ENBLUTXX=Y is in use, for SHRLEVEL REFERENCE UNLOADONLY and SHRLEVEL REFERENCE, REORG PLUS sets UTRO status in UTILINIT phase on the object being reorganized and resets it only when reorganization completes. For SHRLEVEL CHANGE, REORG PLUS sets UTRW status on the object in UTILINIT phase and resets it only when the reorganization completes. For partial reorganizations, only the participating parts will be set to UTRO or UTRW status for SHRLEVEL REFERENCE (UNLOADONLY) or SHRLEVEL CHANGE respectively.
The following table describes the status changes during a SHRLEVEL REFERENCE UNLOADONLY reorganization:
Phase | Status |
|---|---|
UTILINIT and ANALYZE | The status of the spaces remains RW, RO, or UT (the initial status). |
Beginning of UNLOAD | REORG PLUS starts the table space and all associated indexes (for a table space reorganization) or the index space (for an index reorganization) in RO status. |
Beginning of RELOAD |
|
The following table describes the status changes during a SHRLEVEL REFERENCE reorganization:
Phase | Status |
|---|---|
UTILINIT and ANALYZE | The status of the spaces remains RW, RO, or UT (the initial status). |
Beginning of UNLOAD (two-phase reorganization) or beginning of REORG (single-phase reorganization) | REORG PLUS starts the table space and all associated indexes (for a table space reorganization) or the index space (for an index reorganization) in RO status. |
UTILTERM |
|
The following table describes the status changes during a SHRLEVEL CHANGE reorganization:
Phase | Status |
|---|---|
UTILINIT and ANALYZE | The status of the spaces remains RW, RO, or UT (the initial status). |
Beginning of LOGFINAL | |
UTILTERM |
|
1 For a partial reorganization, REORG PLUS prevents updates only to partitions that you specify (using the PART option of the REORG command) while it initializes XBM. In addition, REORG PLUS prevents updates to any nonpartitioned indexes.
2 If the value of the ORIGDISP installation option or the ORIGINALDISP command option is DELETE, REORG PLUS deletes the now-obsolete original data sets. If this option is set to RENAME and the FASTSWITCH process is not in effect, REORG PLUS renames the original data sets to the staging data set names. This renaming process preserves the space that the original data sets initially used. The process results in staging data sets that are ready for use in the next SHRLEVEL CHANGE reorganization.