Recovering the Db2 object after terminating or canceling a LOADPLUS job
The following table describes the recovery steps that you need to take.
Recovering after termination
Phase in which job terminated | Specified options | Other conditions | Is object usable? | Recovery steps |
---|---|---|---|---|
Any phase other than UTILTERM | SHRLEVEL REFERENCE or LOAD REPLACE SHRLEVEL CHANGE or LOAD RESUME YES SHRLEVEL CHANGE PART n REPLACE | The object is usable (with original data). | No recovery steps are required. | |
UTILINIT | Any | The object is usable. | No recovery steps are required. | |
DSNUTILB | Any | The object might be usable. | For information about any recovery required, see the appropriate IBM DB2 documentation. | |
PRELOAD | LOAD REPLACE | The object is usable. | No recovery steps are required. | |
PRELOAD | Any option other than LOAD REPLACE | The object is usable. | Start the table space and index spaces. | |
LOAD | LOAD RESUME YES SHRLEVEL NONE with one of the following specifications:
| The table space contains data before the load job. | The object is not usable. | Complete the following steps:
|
LOAD | LOAD RESUME YES SHRLEVEL NONE PART n REPLACE | The object is not usable. | Complete the following steps:
| |
LOAD or COMBINED | LOAD RESUME YES INTO TABLE tableName REPLACE | The object is not usable. | Complete the following steps:
| |
LOAD or COMBINED | LOAD REPLACE SHRLEVEL NONE | The object is not usable. | Complete the following steps:
| |
COMBINED | LOAD RESUME YES SHRLEVEL NONE, single-phase | The object is not usable. | Complete the following steps:
| |
LOAD or COMBINED | SHRLEVEL NONE or LOAD RESUME YES SHRLEVEL CHANGE SQLAPPLY or LOAD RESUME YES SHRLEVEL CHANGE without PART n REPLACE | The table space has been loaded and all discard processing has completed. | It might be only the indexes that are not usable. | Complete the following steps:
|
UTILTERM | SHRLEVEL NONE or LOAD RESUME YES SHRLEVEL CHANGE SQLAPPLY or LOAD RESUME YES SHRLEVEL CHANGE without PART n REPLACE | The object is usable. | No recovery steps are required. | |
UTILTERM | SHRLEVEL REFERENCE or LOAD REPLACE SHRLEVEL CHANGE or LOAD RESUME YES SHRLEVEL CHANGE PART n REPLACE | The rename or FASTSWITCH process started but did not complete. | The object is not usable. | Manually complete or back out the rename or FASTSWITCH process and remove pending statuses. Note: We strongly recommend that you restart your job rather than attempt to rename the staging data sets manually. |