Db2 active logs
- A loss of synchronization occurs between logs in a subsystem where dual logs are employed. BMC AMI Recovery Manager generates JCL to reproduce one log from the other. Logs can be out of synchronization if, for example, a volume was recovered outside of Db2 that contained one or more active data sets.
See the IBM Db2 Administration documentation for a discussion of input/output (I/O) and other errors that can occur with Db2 logs.
If Db2 is active, BMC AMI Recovery Manager ascertains from Db2 the archive log data set prefixes and whether single or dual archive logs are in use. If Db2 is not active, the information comes from the BMC AMI Recovery Manager option set (ARM$OPTS). You should, therefore, always verify the information in the option set before starting to generate active log recovery JCL.
Use the procedure described in Generating JCL to recover a Db2 archive log to generate recovery JCL.
Generating JCL to recover a Db2 active log
This procedure generates recovery JCL for the most common Db2 active log errors.
You select the error type, provide the required data, and then generate recovery JCL. The JCL must be submitted when Db2 is not active.
Before you begin
To perform this procedure, you need the following authorizations:
- EXECUTE authority for BMC AMI Recovery Manager
- Data set authority to run the JCL
To generate JCL to recover a Db2 active log
- In the BMC AMI Recovery for Db2 Main Menu, select 3. DB2 Subsystem Toolbox.
- In the Db2 Subsystem Toolbox panel, select 2. Active Logs.
- In the Active Log Recovery panel, select the appropriate error condition.
- A second panel appears, allowing you to specify options about the error condition. Enter the information as required and press Enter. for more information about the error conditions, see Log error conditions.
- When the JCL Specification panel appears, enter a fully qualified output data set name. Be aware of the following information:
- The output data set is used for saving the JCL and must be cataloged. If not enclosed in quotes, the output data set will be prefixed by your TSO prefix.
- The job statement must contain a symbolic variable (&#) for the job number. For more information, see Output-data-sets-job-cards-and-symbolic-variables.
Save the JCL data set or submit the job as required.
Log error conditions
The following table describes the log error conditions you might need to specify.
Error condition | Options |
|---|---|
I/O error with dual logs |
|
I/O error with single log |
|
I/O error with both dual logs |
|
Out of synchronization |
|
Initialize active logs | Initializes all unformatted active logs |
Display, Add or Remove | You can display, add, or remove active logs while Db2 is still up and running.
For more information about adding and removing active logs, see the IBM documentation. |