Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange Change Data Capture Introduction
  3. Part 2: CDC Components Configuration and Management
  4. Part 3: CDC Sources Configuration and Management
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: CDC for z/OS Troubleshooting
  8. Appendix B: DTL__CAPXTIMESTAMP Time Stamps

Recovering Damaged Active Log Data Sets

Recovering Damaged Active Log Data Sets

To recover damaged active log data sets, you can delete the damaged set and replace it with a copy of the corresponding backup log data set. Use this procedure only if you defined dual logging to create a backup.
Before you run the procedure to recover the damaged data sets, you must stop the PowerExchange Logger. After recovery, restart the PowerExchange Logger.
Use the following sample JCL in the #RCOVADS member of the
hlq
.SAMPLIB library, where
hlq
is the high-level qualifier that you specified at installation, to recover damaged active log data sets:
// JOB //*-------------------------------------------------------------------* //* PowerExchange Change Data Capture - RECOVER PRIMARY LOG FROM SECONDARY LOG //*-------------------------------------------------------------------* //* REPLACE THE FOLLOWING ITEMS WITH PROPER INSTALLATION VALUES //* 1. JCL DATA SET NAMES //* 2. IDCAMS COMMAND SPECIFICATIONS //* 3. REPLACE ???? WITH YOUR LOGGER NAME. USING THE LOGGER NAME AS A //* DATA SET NAME QUALIFIER PROVIDES A STANDARD TO INDICATE WHICH //* DATA SET BELONGS TO WHICH LOGGER. //*-------------------------------------------------------------------* //ALLOCLOG EXEC PGM=IDCAMS,REGION=0M //SYSPRINT DD SYSOUT=* //SYSIN DD * DELETE (YOUR.????.PRILOG.DS01) ERASE SET MAXCC = 0 DEFINE CLUSTER - (NAME(YOUR.????.PRILOG.DS01) - LINEAR - VOLUMES(VVVVVV) - CYL(CC) ) - DATA - (NAME(YOUR.????.PRILOG.DS01.DATA) ) /* //*-------------------------------------------------------------------* //REPROLOG EXEC PGM=IDCAMS,REGION=0M //SYSPRINT DD SYSOUT=* //SYSIN DD * REPRO INDATASET(YOUR.????.SECLOG.DS01) - OUTDATASET(YOUR.????.PRILOG.DS01) //*-------------------------------------------------------------------* //* NOTE: THE NEXT STEP WILL *NOT* DESTROY THE DATA THAT WAS JUST //* COPIED INTO THE PRILOG DATASET. INSTEAD, THE UTILITY DETECTS //* WHETHER ANY PART OF THE DATASET HAS BEEN ALLOCATED, BUT NOT //* YET FORMATTED, AND ONLY FORMATS *THAT* PART OF THE DATASET. //*-------------------------------------------------------------------* //FORMATLOG EXEC PGM=EDMLUTL0,REGION=0M //STEPLIB DD DISP=SHR,DSN=HLQ.LOAD <=== CDM LOADLIB //PRILOG DD DISP=OLD,DSN=YOUR.????.PRILOG.DS01 <=== LOG DATASET //*-------------------------------------------------------------------*
To recover damaged active log data sets:
  1. Make a working copy of the sample #RCOVADS member. Then edit the copy as required.
    The following table describes the JCL statements in this member.
    JCL Statement
    Description
    EXEC
    For the allocation step and the REPRO command, specify the IDCAMS program.
    To format the active log data sets for the PowerExchange Logger, specify the EDMLUTL0 program.
    STEPLIB DD
    Include the PowerExchange CDC load library.
    If you added the load library to your system's LNKLST concatenation, you do not need to add it to the STEPLIB concatenation.
    SYSPRINT DD
    Specify the output data set for MVS system messages.
    SYSIN DD
    Specify the IDCAMS commands DELETE, SET, DEFINE, and REPRO.
    For more information about these IDCAMS utility commands, see your IBM documentation.
    PRILOG DD
    Specify the log data set names you used when you created the log data sets.
  2. Stop the PowerExchange Logger.
  3. Run the JCL procedure or job.
  4. Restart the PowerExchange Logger.

0 COMMENTS

We’d like to hear from you!