Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange CDC Introduction
  3. Part 2: PowerExchange CDC Components
  4. Part 3: PowerExchange CDC Data Sources
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: DTL__CAPXTIMESTAMP Time Stamps

CDC Guide for Linux, UNIX, and Windows

CDC Guide for Linux, UNIX, and Windows

Limiting the Redo Logs From Which Express CDC Reads Changes

Limiting the Redo Logs From Which Express CDC Reads Changes

In the READER statement of the PowerExchange Express CDC configuration file, you can specify parameters that limit the archived log destinations and the active redo logs from which the Express CDC log reader reads change records. Express CDC uses these parameters to build a list of the redo logs to read.
For archived logs, Express CDC attempts to identify a primary copy and a secondary copy of each log that it must read. Express CDC identifies the primary and secondary archived log destinations based on the order of the archive destination numbers, where an archive destination number is the
n
value in an Oracle LOG_ARCHIVE_DEST_
n
parameter. The primary destination is the destination that 1) contains available logs that are suitable for PowerExchange use and 2) has the lower
n
value compared to any other destination with available archived logs. You can override this behavior by specifying the ARCHIVEDEST parameter in the READER statement of the Express CDC configuration file.
If you specify MODE=ACTIVE in the READER statement, you can use any of the following optional parameters to filter active redo logs or archived log destinations:
  • ACTIVELOGMASK
    . Specifies a mask for selecting active redo logs for the PowerExchange Express CDC log reader when the Oracle instance uses multiplexing of redo logs.
  • ARCHIVEDEST
    . Specifies a list of log destinations in which PowerExchange Express CDC looks for valid archived logs. If you create more than one copy of each archive log, use this parameter to indicate the primary and secondary log destinations.
For more information, see READER Statement.
In both ACTIVE and ARCHIVEONLY modes, PowerExchange Express CDC uses the ARCHIVEDEST parameter to filter archived log destinations, as follows:
  • If you specify one ARCHIVEDEST log destination, PowerExchange Express CDC uses only the log destination that is specified in the LOG_ARCHIVE_DEST_
    n
    parameter to which the ARCHIVEDEST setting points. For example, if ARCHIVEDEST=(2), PowerExchange Express CDC uses the log destination specified in the LOG_ARCHIVE_DEST_2 parameter.
    Specifying one log destination for ARCHIVEDEST limits the resilience of the PowerExchange Express CDC log reader because the log reader then processes logs from only one archive log destination.
  • If you specify two ARCHIVEDEST destinations, PowerExchange Express CDC first attempts to use the first ARCHIVEDEST specification. If the log reader cannot read the archived logs from this destination, PowerExchange Express CDC attempts to use the second ARCHIVEDEST log destination specification. For example, if you specify ARCHIVEDEST=(2,4), PowerExchange Express CDC first attempts to read the archived logs in the log destination that is specified in the LOG_ARCHIVE_DEST_2 parameter. If PowerExchange Express CDC cannot read the logs in this primary destination, it attempts to read the logs in the destination that is specified in the LOG_ARCHIVE_DEST_4 parameter.
  • If you specify more than two ARCHIVEDEST destinations, PowerExchange queries v$archived_log for the first two valid archive logs, based on the destinations and the order specified in ARCHIVEDEST. If the log reader cannot read the first log retrieved, it tries to read the log in the second destination retrieved. If it cannot read the log in the second destination retrieved, the process terminates.
    For example, if you specify ARCHIVEDEST=(7,6,5,4,3,1), the query might return archive logs in destinations 6 and 1. Therefore, the first log PowerExchange Express CDC tries to read is the log from destination 6. If PowerExchange Express CDC cannot read the log, it tries to read the log from destination 1. If PowerExchange Express CDC cannot read the log from destination 1, the process terminates.
  • If you do not specify the ARCHIVEDEST parameter, PowerExchange Express CDC does not filter the archived log query by destination.
If you specify MODE=ARCHIVECOPY in the READER statement, the PowerExchange Express CDC log reader reads copies of the archived redo logs that are located on a file system. You must specify the DIR parameter to identify the base directory that includes the copies of the archived redo logs. To filter the subdirectories under the base directory that the log reader scans and the copies of the archived log files in these subdirectories, also specify the FILE parameter with masks for the subdirectory names, log file names, or both.

Back to Top

0 COMMENTS

We’d like to hear from you!