DB2 10.5 for Linux, UNIX, and Windows

The IBM® Replication Tools by Component

IBM offers two primary replication solutions: Q replication and SQL replication.

The primary components of Q replication are the Q Capture program and the Q Apply program. The primary components of SQL replication are the Capture program and Apply program. Both types of replication share the Replication Alert Monitor tool. You can set up and administer these replication components using the Replication Center and the ASNCLP command-line program.

The following list briefly summarizes these replication components:

Q Capture program

Reads the DB2® recovery log looking for changes to DB2 source tables and translates committed source data into WebSphere® MQ messages that can be published in XML format to a subscribing application, or replicated in a compact format to the Q Apply program.

Q Apply program

Takes WebSphere MQ messages from a queue, transforms the messages into SQL statements, and updates a target table or stored procedure. Supported targets include DB2 databases or subsystems and Oracle, Sybase, Informix® and Microsoft SQL Server databases that are accessed through federated server nicknames.

Capture program

Reads the DB2 recovery log for changes made to registered source tables or views and then stages committed transactional data in relational tables called change-data (CD) tables, where they are stored until the target system is ready to copy them. SQL replication also provides Capture triggers that populate a staging table called a consistent-change-data (CCD) table with records of changes to non-DB2 source tables.

Apply program

Reads data from staging tables and makes the appropriate changes to targets. For non-DB2 data sources, the Apply program reads the CCD table through that table's nickname on the federated database and makes the appropriate changes to the target table.

Replication Alert Monitor

A utility that checks the health of the Q Capture, Q Apply, Capture, and Apply programs. It checks for situations in which a program terminates, issues a warning or error message, reaches a threshold for a specified value, or performs a certain action, and then issues notifications to an email server, pager, or the z/OS® console.

Use the Replication Center to:
  • Define registrations, subscriptions, publications, queue maps, alert conditions, and other objects.
  • Start, stop, suspend, resume, and reinitialize the replication programs.
  • Specify the timing of automated copying.
  • Specify SQL enhancements to the data.
  • Define relationships between the source and the target tables.