Configure the Change Data Capture node to capture
all the changed data from your database into IBM® App Connect Enterprise.
About this task
When you put an instance of the Change Data Capture node
into a message flow, you can configure it. For more information about configuring message flow
nodes, see Configuring a message flow node. The properties of the node are displayed in the Properties
view. All mandatory properties that do not have a defined default value are marked with an asterisk.
By configuring a Change Data Capture node, you can enable it to
respond to changes in your database.
For Db2, use the Debezium setup scripts to automatically start and stop data capture work only on
Linux®. On other platforms, use Db2 control commands to put tables
into capture mode. For more information about Db2 commands, see https://www.ibm.com/docs/en/idr/11.4.0?topic=reference-system-commands-sql-replication-linux-unix-windows-zos.
Procedure
- In the IBM App Connect
Enterprise Toolkit, create a flow that contains a Change Data Capture node.
- Select the Change Data Capture node in the flow to
show the node properties in the editor.
- Optional: On the Description tab, enter a Short description, a Long
description, or both. You can also rename the node on this tab.
- On the Basic tab, specify a policy by completing
one of the following steps:
- Specify an existing policy by entering a value for Policy, or click
Browse and select a property policy from your file system.
- Create a new policy by clicking Browse and then clicking
Create policy.
- Update the policy that you specified in step 4.
Right click the policy in the Application
Development view of the IBM App Connect
Enterprise Toolkit to open the menu and select . Edit the policy
properties by completing the following steps:
- Database Name: Set to the name of the database to connect
to.
- Connector Class: Set the entry classname for the downloaded
plug-in. Some examples are shown in the following list:
- Db2: io.debezium.connector.db2.Db2Connector
- PostgreSQL: io.debezium.connector.postgresql.PostgresConnector
- SQL Server: io.debezium.connector.sqlserver.SqlServerConnector
- Oracle: io.debezium.connector.oracle.OracleConnector
- Hostname: Hostname or IP address of database
server.
- Port number: TCP port of database server.
- Security Identity: Credential to use for authentication to the
server.
- Optional: Database Partition Name (PDB): Name of the
PDB that is used for Oracle databases when you use containerized databases.
- Optional: Advanced Properties File: Path name for the
properties file.
If the target database requires custom Debezium properties, they can be
added to a Java Properties file and placed in the file system of the integration server and in the
path to the file that is specified in this property. Any properties in the properties file override
any properties that were set in the policy.
- On the Basic tab of the Change Data Capture node, click Add,
Edit, or Delete to add, edit, or delete entries in the
List of Database Tables.
The tables that you add to the
List of Database Tables are the only tables that the Change Data Capture node captures. Changes to any other tables are
ignored.
- Optional: If you need to capture data from Db2, obtain a license for IBM
InfoSphere Data Replication (IIDR). For more information, see InfoSphere Data Replication.
- Set up the database server by completing the following steps:
- Go to the Connectors page for Debezium.
- Select your database; for example, Db2.
- In the scrollable side menu, click the link for setting up your database server; for
example, Setting up Db2.
- Follow the instructions in the link.
- In IBM App Connect Enterprise versions before 12.0.12.12, the Change Data Capture node requires an integration server to run Java
11. In IBM App Connect Enterprise versions 12.0.12.12 or later, the Change Data Capture node requires an integration server to run Java
17. For more information about using a specified version of the Java Runtime Environment, see Configuring an integration server to use a specified Java Runtime Environment (JRE).
- The Change Data Capture node requires extra JAR
files specific to your database, which you can obtain by completing the following steps:
- Go to the Connectors page for Debezium.
- Select your database; for example, Db2.
- Follow the link to download the plug-in archive from Maven Central.
- Extract the file into /opt/mqsi/server/cdc (or an
equivalent path if you installed elsewhere) so that you have a directory similar to
/opt/mqsi/server/cdc/debezium-connector-db2 that contains several JAR files.
(This example is for Db2).
- Optional: If your database is Db2, you must also complete the following
steps:
- Optional: If your database is Oracle, you must also complete the following
steps:
- On the Instances tab, select an option for Additional
instances pool to determine the pool from which additional instances are obtained. The
options are Use Pool Associated with Message Flow, and Use Pool
Associated with node.
Specify a value for Additional
instances to determine the number of additional instances that the node can start if the
Additional instances pool property is set to Use Pool Associated with
node. The default value is 0
.
- On the Monitoring tab, use Add,
Edit, and Delete to create, change, or delete
monitoring events for the node. For more information, see Configuring monitoring event sources by using monitoring properties.