Change Data Capture sample program

The Change Data Capture sample program provides an example of using the Change Data Capture API to capture and process data.

The sample program, cdcapi.ec, is located in the ONEDB_HOME/demo/cdc directory. The program creates an application that captures data from multiple tables. The program runs Change Data Capture functions, reads CDC records, and displays the column values of the captured data to stdout. The program also queries the syscdc system tables to display information about CDC records and error messages. The program terminates when it encounters an error or a CDC_REC_TIMEOUT record.

The program has a command-line interface that you use to enter the database name, the table name, column names, and the timeout value.

This program requires that the getopt parser function is implemented on your computer.