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

Configuring Db2 for CDC

Configuring Db2 for CDC

To configure Db2 for CDC on Linux, UNIX, or Windows, perform the following tasks:
  1. In the Db2 Control Center Configure Database Logging wizard, enable archive logging for the Db2 database. For more information, see the IBM Db2 documentation.
    If archive logging is not enabled, PowerExchange issues the error messages PWX-20204 and PWX-20229 during CDC.
  2. Set the following user environment variables in any process that runs PowerExchange CDC or the DTLUCUDB program:
    • Set DB2NOEXITLIST to ON.
    • Set DB2CODEPAGE to 1208.
  3. Verify that the DB2 source tables are defined with the DATA CAPTURE CHANGES clause.
  4. To enable PowerExchange to report the authorization ID and application that is associated with a DB2 transaction in monitoring message PWX-20177, set the DB2_LOGGING_DETAIL registry variable to APPLINFO in Db2.
    To set this variable for the current DB2 instance, enter the following command:
    db2set DB2_LOGGING_DETAIL=APPLINFO
    To set this varaible for all Db2 instances on the system, enter the following command:
    db2set -g DB2_LOGGING_DETAIL=APPLINFO
  5. If a table that is selected for change data capture includes columns with a LONG datatype, use the INCLUDE LONGVAR COLUMNS clause to alter the table so that PowerExchange can capture data for the LONG columns. Otherwise, PowerExchange might issue the error message PWX-20094 during CDC processing.

0 COMMENTS

We’d like to hear from you!