Recovering databases
The recovery process for IMS databases can include these three basic steps, although the details of the process can vary with the type of database to be recovered.
Procedure
The following figure illustrates a simple database recovery.

Information for a database recovery can come from any or all of the following sources:
- Image copies of the database
- Database reorganization data sets
- Log data sets (SLDSs and RLDSs)
- Change accumulation data sets
You can use DBRC to track all of these information sources, greatly simplifying the task of database recovery.
Related reading: Refer to Understanding the recovery task for more information about the recovery process.
If you register recoverable databases in the RECON data set, DBRC records the association of the databases to the log data sets containing database change records.
DBRC also records information about:
- Database image copies
- Reorganizations (except DEDB online reorganizations)
- Recoveries
- Change accumulations
- Backout
DBRC can generate JCL for executing a database recovery, because DBRC records this information in the RECON data set. Whether you use the GENJCL commands to generate JCL or provide the JCL yourself, DBRC uses information in the RECON data set to determine exactly which data sets are required for input. The Database Recovery utility runs only if DBRC verifies that the JCL is correct.
You can omit all logged changes after a certain time from the input by performing a time-stamp recovery. A time-stamp recovery is equivalent to backing out the omitted changes from the database.
Most time-stamp recoveries require DBRC in order to be successful. When you involve DBRC in your request for a time-stamp recovery, DBRC selects the correct logs and, at execution time, communicates to the Database Recovery utility where to stop processing the input to correctly perform your request.
The following figure shows how DBRC works with the Database Recovery utility.
