Table space specification
The syntax diagram for the table space specification is in RECOVER TABLESPACE, RECOVER INDEX, and RECOVER INDEXSPACE syntax.
TABLESPACE databaseName.tableSpaceName
The TABLESPACE option specifies the table space to be recovered.
databaseName is the name of the database containing the table space. The default is DSNDB04. The name cannot be DSNDB01, DSNDB06, DSNDB07, or any database that is defined with TYPE='W' in SYSIBM.SYSDATABASE.
tableSpaceName is the name of the table space within the named database. BMCUTIL, BMCSYNC, and BMCXCOPY (tables that are used by BMC utilities) cannot be used.
OBJECTSET specification | Use the OBJECTSET specification with TABLESPACE to recover only the table spaces that are in a defined group. For more information, see OBJECTSET specification and Using BMC AMI Recovery Manager groups. Important To include the indexes in a recovery using TABLESPACE OBJECTSET, specify INDEXES YES. | ||||||
---|---|---|---|---|---|---|---|
INDEXES | The INDEXES option allows you to specify that you want BMC AMI Recover to recover the indexes associated with the table space(s) given by the TABLESPACE option of the RECOVER command. The default is INDEXES NO indicating no indexes recovery. Important The use of INDEX is synonymous to INDEXES for this option. The INDEXES option is not applicable to INDEXSPACE or INDEX specifications.
| ||||||
DSNUM | DSNUM specifies a single data set in the specified table space or the entire table space for recovery.
| ||||||
AUX | The AUX option specifies if auxiliary objects will be included with the recovery of the base table spaces. For more information, see AUX. | ||||||
RICHK | RICHK specifies if BMC AMI Recover will check for referential integrity constraints on the objects being recovered.
| ||||||
DROPRECOVERY | DROPRECOVERY specifies that you want to recover a dropped table space. The DROPRECOVERY keyword requires either INCOPY, INLOG, LOGONLY, or LOGAPPLY ONLY. When DROPRECOVERY is coded, the utility attempts to locate the point at which the table space was re-created and uses that point as a stopping point or verifies it against the TORBA or TOLOGPOINT value. If the space was dropped and re-created several times, you must specify a TORBA or TOLOGPOINT value in the BMC AMI Recover job to tell BMC AMI Recover when to stop applying log records. Use DSN1LOGP to identify the log point of the first CREATE TABLESPACE statement after the drop. This is the log point that you should specify with the TORBA or TOLOGPOINT option. If you do not specify a TORBA or TOLOGPOINT value in this case, the recovery will result in an empty table space. If the dropped space was versioned, you must recreate the space with the same versions, or in some cases, you can use DB2 REPAIR VERSIONS.
Warning Use DROPRECOVERY only if the table space has been dropped (not just a table within the table space). Important DROPRECOVERY is not valid for index recovery. For examples on how to use DROPRECOVERY, see Recovering a dropped table space or table. |
Comments
Log in or register to comment.