Limited supportBMC provides limited support for this version of the product. As a result, BMC no longer accepts comments in this space. If you encounter problems with the product version or the space, contact BMC Support.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see BMC AMI Recover for Db2 13.1.

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:

  1. Run jobs 1 and 2 concurrently.

    RECOVER TABLESPACE X.Y DSNUM 1
    REBUILD INDEX (X.YCLUS) PART 1
    RECOVER UNLOADKEYS (X.YNCLUS) PART 1
    RECOVER TABLESPACE X.Y DSNUM 2
    REBUILD INDEX (X.YCLUS) PART 2
    RECOVER UNLOADKEYS (X.YNCLUS) PART 2
  2. When 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.

Important

When you run a RECOVER BUILDINDEX job, ensure that no updates or other changes have been made to the table space since the keys were extracted. Otherwise, the integrity of the data cannot be guaranteed. For a discussion, see Concurrency with RECOVER UNLOADKEYS and RECOVER BUILDINDEX.

For more information, see LOGSORT-strategy and UNLOADKEYS-and-BUILDINDEX-strategy.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*