DB2 Version 9.7 for Linux, UNIX, and Windows

Using rollforward

Use the ROLLFORWARD DATABASE command to apply transactions that were recorded in the database log files to a restored database backup image or table space backup image.

About this task

Do not restore table spaces without cancelling a rollforward operation that is in progress; otherwise, you might have a table space set in which some table spaces are in rollforward in progress state, and some table spaces are in rollforward pending state. A rollforward operation that is in progress will only operate on the tables spaces that are in rollforward in progress state.

The database can be local or remote.

The following restrictions apply to the rollforward utility:

The rollforward utility can be invoked through the command line processor (CLP), the Restore wizard in the Control Center, or the db2Rollforward application programming interface (API).

Following is an example of the ROLLFORWARD DATABASE command issued through the CLP:

db2 rollforward db sample to end of logs and stop

To open the Restore wizard:

Before you begin

You should not be connected to the database that is to be rollforward recovered: the rollforward utility automatically establishes a connection to the specified database, and this connection is terminated at the completion of the rollforward operation.

Procedure

  1. From the Control Center, expand the object tree until you find the database or table space object that you want to restore.
  2. Right-click on the object and select Roll-forward from the pop-up menu. The Rollforward wizard opens.

What to do next

Detailed information is provided through the contextual help facility within the Control Center.