Start of Content Area

Function documentation Informix Restore  Locate the document in its SAP Library structure

Use

A restore recreates Informix database data that has become accessible because of hardware or software failure, hardware replacement or user error. For example, the following might mean that you have to perform a restore:

Features

There are the following types of restore:

You must use this type of restore when any of the "critical" dbspaces (that is, rootdbs , physdbs , and logdbs ) have been damaged or affected by the failure. The Informix server is offline during this process because it cannot function without the critical dbspaces.

You can use this type of restore when the critical dbspaces are still operational and the Informix server is therefore online. It can be used to restore selected (but not all) dbspaces.

Activities

You perform a restore in the following steps:

  1. Salvage logical-log files
  2. When a severe failure has caused the database server to go offline, you must do a full-system cold restore. At this point, a number of logical-log files have not yet been backed up. In this case, the first step is to back up these files before starting the physical restore. You can then use the files after the normally backed up logical-log files in the logical restore phase to make sure that the database is completely up-to-date. To salvage logical-log files, the dbspace containing them (that is, logdbs ) must be intact.

    If the database server has not gone offline as a result of the failure, make sure that you back up the logical log in the normal way immediately before bringing the database server down. Then you do not have to salvage the logical-log files as described above.

  3. Physical restore
  4. This is the process of restoring storage space (that is, dbspace and blobspace) data from an archive ( ON-Archive or ontape ) or a whole-system or storage-space backup ( ON-Bar ).

  5. Logical restore

This is the process of recreating transactions in the physically restored storage space from the first step. The transactions occurred after the archive ( ON-Archive or ontape ) or whole-system or storage-space backup ( ON-Bar ) was taken. By performing this step you make sure that your database is as up to date as possible (and, if you restored using data from a parallel archive or backup in the physical restore step, that the database is consistent).

The following graphic illustrates what a database restore involves:

Database Restore

This graphic is explained in the accompanying text

Note

You should normally also create logical-log backups between times t0, t1, and t2. The diagram only shows the logical-log backups taken between t2 and the failure at tf because these are all that are required for the logical restore, assuming you are restoring from a sequential archive ( ON-Archive or ontape ) or a whole-system backup ( ON-Bar ).

If you are restoring from a parallel archive ( ON-Archive ) or a storage-space backup ( ON-Bar ), then you must have the transactions from the time between the level-0 archive or storage-space backup and the point of failure. That is, you must have backups of the transactions between t0 and tf.

For further information about restores, see the following:

You can do a restore to a specified point-in-time if necessary. Refer to Performing Logical Restore for Full-System Cold Restore (ON-Archive).

You can do a restore to a specified point in the logical-log files.

This report is very useful to help you identify the tapes required for the archive. Refer to Recovery Report with SAPDBA.

 

See also:

Restore

Informix documentation at http://www.informix.com