To configure Db2 for CDC on Linux, UNIX, or Windows, perform the following tasks:
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.
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.
Verify that the DB2 source tables are defined with the DATA CAPTURE CHANGES clause.
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
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.