Writing an application to capture data changes
Use the Change Data Capture functions to control the data capture process. Process CDC records to extract the data. Query syscdc tables to retrieve the symbolic names and descriptions of CDC records and errors.
Before you begin
Your
application should contain the following structures and functions:
- A structure to store table schema information. You use the table schema to parse the column data.
- A function to interpret the table schema information and populate the table schema structure. You can obtain the table schema information from the CDC_REC_TABSCHEMA record.
- A function to retrieve and parse the column values from the data buffer.
- A function to handle errors. You can query the syscdcerrcodes table to determine the symbolic name and description of the error code.