Backing up and recovering the Db2 catalog and directory
This procedure generates backup or recovery JCL for the Db2 catalog and directory for the specified Db2 subsystem. You can exclude any spaces or indexes that you do not want to include in the generated JCL.
Before you begin
To perform this procedure, you need the following items:
- EXECUTE authority for BMC AMI Recovery Manager
- Db2 SYSADM authority to execute the recovery JCL
Authority to execute backup JCL (for further information, see the IBM Db2 utility reference or the BMC AMI Copy for Db2 documentation)
- The following information that is specific to catalog and directory backup or recovery:
- Any spaces or indexes that you do not want to back up or recover
- The following work unit information for index recovery:
- The work unit (disk file) name
- Primary and secondary allocations (if the sizing is not available)
- Whether the allocations are for cylinders or tracks
- Whether you want extracted index keys to be written to a work file before sorting
To generate JCL for Db2 catalog and directory recovery or backup
- In the BMC AMI Recovery for Db2 Main Menu, select System resources.
- In the System Resource Recovery and Maintenance panel, select Catalog and Directory to list all of the spaces and indexes in the catalog and directory.
Generate JCL as follows:
- To generate recovery JCL, select Gen recover JCL in foreground and press Enter.
- To generate backup JCL, select Gen backup JCL and press Enter.
- If you selected Gen backup JCL, continue with Step 6. If you selected Gen recover JCL in foreground, the Work File Options panel is displayed.
- Enter information as required and press Enter. For option descriptions, see Work-file-option-descriptions.
- When the JCL Specification panel appears, enter a fully qualified output data set name. Be aware of the following information:
- The output data set is used for saving the JCL and must be cataloged. If not enclosed in quotes, the output data set will be prefixed by your TSO prefix.
- The job statement must contain a symbolic variable (&#) for the job number. For more information, see Output-data-sets-job-cards-and-symbolic-variables.
- Save the JCL data set or submit the job as required.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*