Online reorganization process
When online reorganization is started, the ID of the IMS that is responsible for the reorganization is assigned to the partition.
After the cursor-active status is recorded in the RECON data set and copying begins between the A-through-J and M-through-V data sets, these changes also occur:
- The DB record for the partition indicates that online reorganization is active (OLREORG CURSOR ACTIVE =YES).
- The status of the active DBDSs shows that both data sets are active (ACTIVE DBDS=A-J and M-V).
- REORG records that show the start time of the online reorganization are written. The stop time is zero.
- The REORG record associated with the output data set now indicates that this data set can be used as input for recovery.
- The REORG record associated with the input data set does not indicate that this data set can be used for recovery. DBRC uses this record to ensure that this data set cannot be recovered after online reorganization completes.
- The M-through-V and Y data sets are defined in the RECON data set if they do not already exist.
- The M-through-V and Y DBDSs are added to the same change accumulation group as the A-through-J, L, and X DBDSs, if a change accumulation group is assigned.
- The M-through-V and Y DBDSs are added to any DBDS group where the A-through-J, L, and X DBDSs are found.
After these changes take place, the online reorganization must complete; otherwise, you must run an offline reorganization to reset the HALDB online reorganization settings.
You cannot start online reorganization if it is already running for a partition. However, another IMS can take over the online reorganization if it is terminated; that is, when there is no IMS ID assigned.
You can instruct the IMS system assigned to the reorganization to release its ownership if the system terminates with one of the following options:
- OPTION(REL) on the INITIATE OLREORG or UPDATE OLREORG commands
- RELOLROWNER=Y in the DATABASE section of the DFSDFxxx member of the IMS.PROCLIB data set.
Another IMS system can then resume the suspended reorganization.
When the online reorganization process completes successfully, these changes occur:
- The REORG records are updated to include the HALDB OLR stop time.
- The DB record for the partition is changed to indicate that online reorganization is not active (OLREORG CURSOR ACTIVE = NO).
- The status of the active DBDSs is switched to the newly reorganized data sets.
- The online reorganization IMS ID is cleared.