Recovering a table space and rebuilding a partitioned index and a nonpartitioned index
The LOGSORT/MERGE strategy for recovering a table space allows you to concurrently extract the keys for nonpartitioned indexes and rebuild one or more partitioned indexes.
After running these concurrent jobs, you can build the nonpartitioned index. The following combination of RECOVER TABLESPACE, REBUILD INDEX, and RECOVER UNLOADKEYS command statements illustrates this method:
Run jobs 1 and 2 concurrently.
RECOVER TABLESPACE X.Y DSNUM 1
REBUILD INDEX (X.YCLUS) PART 1
RECOVER UNLOADKEYS (X.YNCLUS) PART 1RECOVER TABLESPACE X.Y DSNUM 2
REBUILD INDEX (X.YCLUS) PART 2
RECOVER UNLOADKEYS (X.YNCLUS) PART 2When jobs 1 and 2 are complete, run job 3.
RECOVER BUILDINDEX (X.YNCLUS)
Because BMC AMI Recover reads all of the contents of SYSIN before deciding on a recovery plan, the utility can process the RECOVER TABLESPACE, REBUILD INDEX, and RECOVER UNLOADKEYS command statements for each run as a single unit.
For more information, see LOGSORT-strategy and UNLOADKEYS-and-BUILDINDEX-strategy.
Related topic