Enabling Change Capture
Configure DB2 to log data changes in the expanded format that is supplied by the DATA CAPTURE CHANGES
feature of the CREATE TABLE
and ALTER TABLE
commands. This format provides Oracle GoldenGate with the entire before and after images of rows that are changed by update statements. You can use GGSCI to issue the ALTER TABLE
command as follows.
To Enable Change Capture from GGSCI:
Example 3-1 To Exclude LONGVAR
Logging:
To omit the INCLUDE LONGVAR COLUMNS
clause from the ALTER TABLE
command, use ADD TRANDATA
with the EXCLUDELONG
option.
ADD TRANDATA owner.table
, EXCLUDELONG
Note:
If LONGVAR
columns are excluded from logging, the Oracle GoldenGate features that require before images, such as the GETUPDATEBEFORES
, NOCOMPRESSUPDATES
, and NOCOMPRESSDELETES
parameters, might return errors if tables contain those columns. For a workaround, see the REQUIRELONGDATACAPTURECHANGES
| NOREQUIRELONGDATACAPTURECHANGES
options of the TRANLOGOPTIONS
parameter.