Migration step 5: Take image copies of the directory and catalog: DSNTIJIC

For backup purposes, create a copy of the catalog and directory of the system that you are migrating.

About this task

Attention: If you do not create this copy, Db2 can start. However, if errors in the catalog or directory require you to fall back to your previous version, you risk losing some of your tables and data.

Procedure

To create an image copy of the directory and catalog, perform the following steps with the Db2 11 copy of DSNTIJIC:

  1. Examine job DSNTIJIC for the following items, and modify as needed:
    • The tape unit name. The job lists the tape unit name as TAPE. If this is incorrect for your site, correct it. The name TAPE is also used as the unit name for the default archive log data sets.
    • Expiration date or retention period. You can add a retention period or an expiration date to the job.
    • The user on the JOB statement. Ensure that the user is authorized. If Db2 is started under ACCESS(MAINT), this must be the same user that you specified for either the SYSTEM ADMIN 1 option or the SYSTEM ADMIN 2 option on installation panel DSNTIPP1.
  2. Run the Db2 11 DSNTIJIC job.

    Job DSNTIJIC contains a list of all the Db2 directory and catalog table spaces. When you run DSNTIJIC, it invokes the Db2 image copy utility to copy these table spaces to tape. The copied table spaces allow you to recover the Db2 catalog and directory in case of a failure.

  3. If job DSNTIJIC fails or abends, look for problems with the tape that is set up for image copy. If you do not find a problem, examine the log for problems. For example, look for incorrect size or I/O errors.

What to do next

After migration, periodically run the Db2 12 job DSNTIJIC against the Db2 12 directory and catalog, perhaps daily or weekly. This action reduces the amount of time that is required for recovering the Db2 directory or catalog. The copied data and log data sets are needed for recovery.

If you are remigrating, you need to complete one of the following actions:

  • Change the names of the data sets in which the new image copies are to reside. (Migration image copies use the current data set names.)
  • Run the MODIFY utility to remove the migration image copies. If you select this option, ensure that you are familiar with the MODIFY utility.