Running a redirected recovery
A redirected recovery is when the RECOVER utility redirects the recovery of an object (the source) to another object (the target). Specifically, the target table space, index space, or index is recovered by using image copies and log records of the associated source object. The data or index keys in the source object and the applications on the source object are unaffected by the recovery.
Redirected recoveries are useful for testing recovery procedures and data analysis. By running a redirected recovery, you can verify that the recovery procedure is valid and determine an estimated time for the recovery. You can also determine whether recovering indexes from image copies is faster than rebuilding the indexes. Additionally, you can use redirected recovery to generate production data at specific points in time with consistency. All of these tasks can be performed without impacting data availability.
Before you begin
Before you can run a redirected recovery, ensure that the source objects are recoverable. In general, events on source objects that affect recovery have the same effect on a redirected recovery to target objects. Conversely, events on target objects that normally restrict recovery are ignored during redirected recovery. For a list of actions that affect recoverability, see Actions that can affect recovery status. To determine if any events occurred that could affect recovery, run the REPORT utility with the RECOVERY option on the source object and analyze the output.


About this task
You can run redirected recovery to the current state or to a previous point in time. In both cases, redirected recovery leaves objects in a transactionally consistent state.
- SEGSIZE
- DSSIZE (for a partition-by-range table space with absolute page numbers)
- BUFFERPOOL
- MEMBER CLUSTER
For example, suppose the following operations were run on a source object:
- ALTER TABLESPACE BUFFERPOOL (This operation is a pending definition change to the page size.)
- REORG TABLESPACE (The utility materialized the change.)
Redirected recovery from the source object to a point in time prior to step 2 is not allowed.
You can run redirected recovery on multiple table spaces, index spaces, or indexes at the space level or the partition level. Piece level (data set level) recovery for LOB table spaces is also supported.
LISTDEF lists are not supported, because association of the source and target objects must be done explicitly for each object pair.
- Although redirected recovery is allowed for partitions and pieces, recover all of the partitions or pieces when possible. If partitions of an object are recovered in different jobs, they should all be recovered to the same recovery point.
FL 100 Specify DSNUM ALL to recover partitions. For those objects on which space-level recovery from data set-level copies is supported (see DSNUM ALL), redirected recovery can use partition-level, piece-level, or space-level image copies.
During a redirected recovery, the source objects are available to applications for read and write access. However, the target objects are placed in the exclusive utility state, UTUT, and are not available for read or write access.
If the table in a target table space contains an identity column or an XML column or columns, the MAXASSIGNEDVAL column value in SYSIBM.SYSSEQUENCES is set to the MAXASSIGNEDVAL value in the corresponding row in SYSIBM.SYSSEQUENCES for the source.
Real-time statistics information for the target objects will be invalidated by redirected recovery.
The restore of sequential image copies and FlashCopy® image copies to target objects is supported. For restore of a FlashCopy image copy using FlashCopy during redirected recovery, the target object and the FlashCopy image copy must reside in the same ESS (Enterprise Storage Server®) subsystem. If z/OS® determines that FlashCopy cannot be used, the FlashCopy image copy is restored using traditional I/O methods when the REC_FASTREPLICATION subsystem parameter is set to PREFERRED or NONE. If FlashCopy cannot be used and REC_FASTREPLICATION is set to REQUIRED, the restore of the FlashCopy image copy fails. For more information about considerations when using FlashCopy image copies, see FlashCopy image copies and Recovering with FlashCopy image copies.
Restore of concurrent copies and system-level backups is not supported; these types of backups are ignored by redirected recovery.
You can run multiple redirected recoveries on target objects either to the current state or to a point in time. These recoveries are supported, because the image copies and log records from the source objects are used to recover the target objects each time.
Procedure
To run a redirected recovery:
What to do next
After you run redirected recovery, you can calculate the estimated recovery time by using the formulas in "Estimate recovery time using redirected recovery" in Tips for maximizing data availability during backup and recovery .