You can use the BACKUP SYSTEM and RESTORE SYSTEM utilities
to recover your Db2 subsystem.
Procedure
To recover your Db2 subsystem:
- Prepare for recovery:
- Use BACKUP SYSTEM FULL to take the system backup.
- Transport the system backups to the remote site.
- Recover:
- Run the DSNJU003 utility using either of the following
control statements:
- In this control statement, substitute log-truncation-point with
the RBA or LRSN of the point to which you want to recover
CRESTART CREATE, SYSPITR=log-truncation-point
where
.
- In this control statement, substitute log-truncation-timestamp with
the timestamp of the point to which you want to recover.
CRESTART CREATE,SYSPITRT=log-truncation-timestamp
- Start Db2.
- Run the RESTORE SYSTEM utility by issuing the RESTORE
SYSTEM control statement.
This utility control
statement performs a recovery to the current time (or to the time
of the last log transmission from the local site).