Recovering the Db2 object after terminating or canceling a reorganization
After you terminate or cancel a reorganization job, you might need to perform steps to recover your Db2 objects.
The following table lists the recovery steps for each phase and SHRLEVEL specification.
If REORG PLUS dynamically allocated your data sets, (by using the DDTYPE command option or through installation options), manually delete the data sets.
Phase in which you terminated or canceled the job | SHRLEVEL specified | Recovery steps |
---|---|---|
UTILINIT or UNLOAD | Any | All objects are usable and no additional steps are required. |
DSNUTILB | SHRLEVEL NONE, SHRLEVEL REFERENCE, or SHRLEVEL CHANGE | For information about any recovery required, see the appropriate IBM Db2 documentation. |
Terminated in RELOAD or REORG | SHRLEVEL NONE or SHRLEVEL REFERENCE UNLOADONLY | Recover any unusable objects.1 |
SHRLEVEL REFERENCE or SHRLEVEL CHANGE | Restart the objects in their original statuses to make them usable. | |
Canceled in RELOAD or REORG | SHRLEVEL NONE or SHRLEVEL REFERENCE UNLOADONLY |
|
SHRLEVEL REFERENCE or SHRLEVEL CHANGE | Restart the objects in their original statuses to make them usable. | |
UTILTERM | SHRLEVEL NONE or SHRLEVEL REFERENCE UNLOADONLY | All objects are usable and no additional steps are required. |
SHRLEVEL REFERENCE or SHRLEVEL CHANGE | We recommend that you restart your job rather than attempting to rename the staging data sets manually. |
1 Use the highest log RBA or LRSN listed in message BMC51281I or BMC51282I to recover TORBA. For its method of specifying the RBA or LRSN value when performing a RECOVER TORBA, see the documentation for your recovery software.