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

File Switches

File Switches

When running in continuous mode, the PowerExchange Logger periodically closes its open log files if they contain data and then opens a new set of log files. This process is called a
file switch
.
The PowerExchange Logger automatically performs a file switch when the criteria in the following parameters of the pwxccl configuration file are met:
  • FILE_SWITCH_CRIT
  • FILE_SWITCH_VAL
If the open log files do not contain data when the file-switch criteria in these parameters are met, the file switch does not occur. The PowerExchange Logger waits until the next time the file-switch criteria are met. If the files still do not contain data, the PowerExchange Logger continues to check the log files at set intervals. Only when the log files contain data does the file switch occur.
Also, you can force a file switch by entering the
fileswitch
command from the command line. Alternatively, on Linux, UNIX, or Windows, you can send a
pwxcmd fileswitch
command to a PowerExchange Logger process running on the local system or a remote system.
If a file switch is initiated automatically or by the
fileswitch
command when the PowerExchange Logger is not on a commit boundary in the change stream, the PowerExchange Loggers waits 10 seconds for the commit to occur and then forces the file switch.

0 COMMENTS

We’d like to hear from you!