Start of Content Area

Procedure documentation Preparing for a Restore with the SAPDBA Recovery Report (ON-Archive)  Locate the document in its SAP Library structure

Use

You can use SAPDBA for Informix to produce a report that helps you restore your database. The report lists the tape volumes required to restore the database, so shortening the difficult job of identifying the required tapes. Refer to Recovery Report with SAPDBA.

Prerequisites

Procedure

  1. Look at the most recent recovery report. See Listing Recovery Report with SAPDBA.
  2. Starting at the top of the report, locate the volumes listed. To make this easier, you should previously have physically labeled your tape volumes with:
  3. · At creation time (that is, when the volume was initialized in ON-Archive ), the volume label and the label name for the volume set.

    · At archive/logical-log backup time, the save set id and date. For archives, you should also have written the level (that is, 0, 1 or 2) on the tapes.

    Caution

    Make sure that the tape volumes that you use in all ON-Archive archives and logical-log backups are physically labeled (that is, write on the actual tape volume itself) with the information given above. If not, you need much longer to recover your database in the event of failure.

  4. If your tapes are not correctly labeled, execute the following command outside SAPDBA to determine the ids of save sets on your tape:
  5. $ ondatartr 'list/tape=(/dev/rmt/0m)'

    The parameter /dev/rmt/0m refers to the physical name of the tape device on which the tape is mounted. This command is extremely time-consuming and you need to perform it for each archive and logical-log backup volume. You can interrupt it with CTRL-C . However, it is best to avoid this situation by correctly labeling your tape volumes.

  6. If any volumes are missing, decide what to do next:

· If level-0 archive volumes are missing, you must look at previous reports until you find one that starts with earlier level-0 archive volumes. This unfortunately means that your database is less up-to-date after the restore is finished.

· If other volumes are missing, you can still restore with the volumes listed above the missing one, but you can not continue the restore to include the most recent data (that is, the volumes listed below the missing one). This means that your database is less up-to-date when the restore is finished.

· In the case of a parallel archive (at level-0, 1 or 2), you need the accompanying logical-log backups to synchronize the parts of the archive. This means you need the logical-log backups from the time of the archive if you want to perform a restore. If these are not available, you cannot use the parallel archive.

Result

Having gathered the best complete set of tapes, you can now start the restore.

 

See also:

Informix documentation