You might need to stop change data capture for a Db2 source table to perform troubleshooting or routine maintenance tasks, such as maintenance on the capture catalog table or redistribution of table data across reconfigured database partitions.
To stop change data capture, use one of the following methods:
Open the capture registration for a source table, and change the
Status
option from
Active
to
History
.
After you set the status to
History
, you cannot activate the registration again. This status change permanently stops change data capture based on the capture registration.
To temporarily stop change data capture, alter the Db2 table to specify the DATA CAPTURE NONE clause:
ALTER
owner
.
table_name
DATA CAPTURE NONE
When DATA CAPTURE NONE is specified, Db2 no longer writes changes to the Db2 log files in expanded format. Because CDC requires expanded format, PowerExchange can no longer capture change data for the table from the log files. If you set it back to DATA CAPTURE CHANGES, you might need to rematerialize the targets.