Skip to content

Change Capture Guide

Stelo Capture captures the changes committed on your source databases, so that SQDR can replicate them incrementally: after a table's first full copy (the baseline), SQDR applies only the changes. For each source database, a Capture Agent reads the database's log (the journal on Db2 for i) and keeps the committed changes to the tables you replicate in its staging database until SQDR has applied them. You manage the agents in the SQDR Control Center.

This guide covers setting up, running and looking after capture. What SQDR does with the changes is in the Replication Guide (SQDR), and what each source database needs is under Databases.

Find your task

Get started

Set up capture for a source database

Change how an agent works

Check that capture is working, and find out why it isn't

Keep capture running

Recover after a failure, a restore or a large change on the source

Look after the Stelo VM

Script these tasks

How capture works

Stelo Capture components and the ports between them

The usual setup: both parts of SQDR on one server, the Stelo VM (they can also run on separate servers). The ports are the defaults; the source's port depends on the database (see Ports). The Launch Agent is the Stelo Capture service that starts and stops the Capture Agents on a server and keeps their configuration. The staging databases are Look after the Db2 databases on the Stelo VM.

  1. Baseline. When a table joins an incremental group, the Replicator Service copies it in full, reading the source table through its own ODBC connection (see Incremental groups).
  2. Capture. The Capture Agent reads the changes the source database records, from its last position on, and stages the changes to the tables you subscribed to in its staging database. It saves its position with the staged changes, so after a restart it reads on from there. If the source no longer holds changes the agent hasn't read (a log file was deleted, or a retention period passed), the agent loses its position and the tables need a new baseline. Large object (LOB) values are usually not staged: the Replicator Service reads them from the source table when it applies the change (see LOB and long columns).
  3. Apply. The Replicator Service asks the agent for the staged changes and applies them to the destination.
  4. Schema changes. Where the source supports ALTER processing, an altered table goes on replicating without a new baseline; otherwise it needs one, which the group runs by itself when Automatic Snapshot is on. Each source's page says whether it supports ALTER processing.

For Java connector destinations (Snowflake, Databricks, BigQuery, Microsoft Fabric, Kafka, Amazon S3 Tables), SQDR Plus Apply extensions also write the data the Replicator Service passes them (see ODBC and Java connectors).