IBM Db2 CDC
The Micro-Integration for IBM Db2 CDC captures changes (inserts, updates, deletes) from an IBM Db2 database table (using Debezium) and streams them to a topic on an event broker service.
You can configure IBM Db2 only as a source.
To configure the connection details for IBM Db2 in your Micro-Integration, see IBM Db2 CDC Connection Parameters.
You must also define at least one Micro-Integration Flow that specifies:
-
the endpoints where data is consumed from and published to. For more information, see Micro-Integration Flow Parameters.
-
how the header and payload fields should be mapped. For more information, see Mapping Headers and Payloads.
For message headers, see IBM Db2 CDC Message Headers .
IBM Db2 CDC Connection Parameters
The following table describes the connection parameters for IBM Db2.
| Field | Description |
|---|---|
| Database Hostname | The hostname of the IBM Db2 database server. |
| Database Port | The port of the IBM Db2 database server. |
| Database Name | The name of the IBM Db2 database. |
| Authentication |
The authentication scheme to use when connecting to IBM Db2. Select one of:
|
| Skip Delete Events | Select to skip the processing of delete events from the database change stream. The option is enabled by default. |
| Additional Properties |
(Optional) Any additional configuration related to IBM Db2. Click Add Context if you need to specify additional context properties. For more information, see Additional Properties. |
| Checkpoint Queue | The name of the Last Value Queue (LVQ) on the event broker service to use for checkpointing. The LVQ stores information about the files that have been processed and the files that are currently being processed. The LVQ must exist on the same event broker service and VPN as the target destination. |
| Auto Create Checkpoint Queue | Select this option to automatically create the LVQ if it does not exist. |
Basic Authentication Parameters
| Field | Description |
|---|---|
| Username | The username to use for logging in to IBM Db2. |
| Password | The password use for authenticating with the IBM Db2 database. |
Client Certificate Authentication Parameters
| Field | Description |
|---|---|
| Enable SSL |
Select to enable SSL connections to IBM Db2. |
| SSL Truststore | The truststore file containing trusted certificates for the IBM Db2 server. |
| Truststore Type | The type of the SSL truststore, either JKS or PKCS12. |
| Truststore Password | The password for the SSL truststore. |
| Username | The username to use for logging in to IBM Db2. |
| Password | The password to authenticate with the IBM Db2 database. |
Micro-Integration Flow Parameters
You must configure the endpoint parameters for each Flow. Each Flow can have different settings, but they all share the connection details of the parent Micro-Integration.
IBM Db2 CDC Source Parameters
The following table describes the parameters for configuring IBM Db2 as a source.
| Field | Description |
|---|---|
| Destination | The name of the table, including the database name. Use the <database>.<table> format. |
| DB2 Boolean Column Selector | Regular expression used to select SMALLINT columns that should be interpreted as boolean values. This is optional and should only be set when SMALLINT columns represent boolean semantics. |
| Additional Properties |
(Optional) Any additional configuration related to IBM Db2. Click Add Context if you need to specify additional context properties. For more information, see Additional Properties. |
Additional Properties
The following table lists additional properties that are available.
|
|
Default Value | Description |
|---|---|---|
|
|
|
Controls initial snapshot behavior. Select one of the following snapshot options:
|
|
|
|
The maximum number of events to batch. |
|
|
|
The maximum size of the queue for change events read from the database log but not yet recorded or forwarded. Always set this value to be larger than the maximum batch size. |
includeSchemaChanges
|
false
|
When true, indicates that the Micro-Integration captures DDL schema changes. |
tombstonesOnDelete
|
true
|
Controls whether a delete event is followed by a tombstone event:
|
|
|
|
Specifies how the Micro-Integration handles exceptions during processing of events. The possible values are:
|
schemaNameAdjustmentMode
|
None
|
Controls how schema and table names are adjusted to comply with serialization constraints:
|
decimalHandlingMode
|
double
|
Specifies how DECIMAL and NUMERIC types are represented in change events:
|
timePrecisionMode
|
adaptive
|
Determines how temporal types are represented in emitted events. Values include:
|
tableExcludeList
|
null
|
A comma-separated list of regular expressions that match the fully-qualified names of tables to be excluded from monitoring. |
|
|
|
A comma-separated list of the operation types that you want the Micro-Integration to skip during streaming. You can configure the Micro-Integration to skip the following types of operations:
|
schemaHistoryInternalStoreOnlyCapturedTablesDdl
|
true
|
Property that controls the Debezium DDL; if set to false, it captures all available tables. |