Skip to content

Upgrade on Windows

Installing a new version over an existing one upgrades SQDR in place. Stelo Apply keeps its configuration in the control database; Stelo Capture keeps the settings you chose at installation (Db2 user and password, ports, ProgramData folder, Db2 instance and service), the Capture Agents and their configuration. The installers won't install an older version over a newer one. For the container, see Upgrade the Docker container.

Before you upgrade

  • Read the release notes of the versions between yours and the new one: SQDR and SQDR Plus release notes.
  • Plan a way back. The Replicator Service upgrades its control database when it first starts after the upgrade, and that can't be undone: to go back, restore the backup you take below (see Control database upgrades).
  • One thing at a time. Don't combine an upgrade with a move to another computer; see Change one thing at a time.
  • Keep your changes to the shipped files. Every install, upgrade or repair replaces the connection templates (connector-templates.json), the type configuration (type-config.json) and the built-in macros (builtin-macros.json) in the Replicator Service's data folder (C:\ProgramData\StarQuest\SQDR\) with the shipped files: keep a copy of your changes, and apply them again after upgrading.
  • Upgrade the Data Replicator Manager at the same time. A version that doesn't match the service can fail to connect (for example with "method is not implemented"). SQDR's setup.exe installs it as one of its prerequisites.

Upgrade

On a server that runs both products, upgrade both in the same maintenance window, with the groups paused. On separate servers, follow the steps on each.

  1. Let running group runs finish, and pause the incremental groups that replicate from the Stelo VM, so they don't report errors while the Capture Agents are stopped.
  2. Back up the control database (SQDRC on the Stelo VM) with the database's tools, and the other files of Back up the configuration: sqdr.properties and the registry key HKEY_LOCAL_MACHINE\SOFTWARE\StarQuest\SQDRSVC.
  3. Run the SQDR Plus installer: run the new SQDR Plus setup.exe as an administrator. It upgrades both parts, Stelo Apply first:

    • It stops the Stelo Capture services and updates the prerequisites.
    • When it offers SQDR (64-bit), answer Yes: it upgrades Stelo Apply, stopping the Replicator Service and starting it again. It offers it only when the installed Stelo Apply is older than the version it includes.
    • It then upgrades Stelo Capture, without changing the Db2 configuration again, and starts the Stelo Capture services. See What the Stelo Capture upgrade changes.

    You don't stop any service yourself. Run Stelo Apply's own setup.exe, named SQDR (see Install Stelo Apply on its own), only on a server with Stelo Apply alone, or to install a Stelo Apply version newer than the one the SQDR Plus setup includes; it too stops the Replicator Service, upgrades it and starts the service again. 4. The control database is upgraded by the Replicator Service when it first starts: nothing to run. The service does this in one step and records it in the control database. Control tables older than version 6.10 (SQDR 5.x) need the SQDR Configuration Tool first; see Control tables. 5. Reload the Data Replicator Manager and the SQDR Control Center in your browser. If signing in to the SQDR Control Center fails with "The response could not be deserialized", refresh the page (see Cannot sign in to SQDR Control Center after an upgrade). 6. Db2 for i sources: stop each Db2 for i Capture Agent, run Update Host, and start it again. 7. Resume the incremental groups: resume one small group first, check that it applies changes, then resume the rest. 8. Do the checks after the upgrade.

What the Stelo Capture upgrade changes

  • When a Capture Agent starts after the upgrade, it upgrades the stored procedures in its staging database if they're from an older version.
  • When the Launch Agent starts, before any Capture Agent, it checks which version of the Java stored procedure jar (UDBProcs.jar) Db2 runs in SQDRC and in each Db2 for LUW staging database. If it's older than the installed Stelo Capture (or can't be read), the Launch Agent replaces the jar through Db2 and reloads its classes: Db2 11.5 keeps a copy of the jar per database, so copying the file during the install doesn't update it. Staging databases of disabled or standby Capture Agents, and databases without the jar, are skipped. Each replacement is logged in the Launch Agent log; a SEVERE message means Db2 still reports another version afterwards.
  • Upgrading from an earlier version to 7.0 or later: the old Stelo distribution of Kafka stays installed but isn't used any more; you can uninstall it in Settings › Apps.
  • From a release before 6.60: those releases kept the Launch Agent's configuration in a local Derby database (the SQDR Plus Derby service). The upgraded Launch Agent moves the agent definitions to SQDRC the first time it starts; its log shows Starting Configuration Switch from Derby to DB2/UDB. The Derby service stays installed. For the old Derby password, see Change the passwords Stelo Capture uses.

Control tables

The current control table version is 6.10.

  • From an SQDR 6 release to SQDR 7.0 or later: nothing to run. The Replicator Service upgrades the control database itself when it first starts, in one step, and records it there.
  • From 5.10 or a later 5.x release, run Data Replicator Configuration, choose Use existing control tables, and keep Upgrade Control Tables selected. Until then, the Replicator Service doesn't start: it reports that the control database version doesn't match and asks you to run the configuration. (The service then applies the 7.0 upgrade itself when it starts.) The installer removes SQDR 5.x before it installs the new version: when the removal asks whether to remove the control tables and registry entries, answer No. There's no way back to 5.x other than reinstalling it and restoring the control database backup from step 2, and changes made since are lost.
  • From a release earlier than 5.10, contact Stelo Support: the SQDR Configuration Tool can't upgrade those control tables directly.

Checks after the upgrade

  • Versions: connect with the Data Replicator Manager and check the service version on the Service tab.
  • Control database: each time the service starts, its log says which level the control database is at ("Control database level ..."); see Control database upgrades.
  • Capture Agents: on the SQDR Control Center's Dashboard, check that the agents are running.
  • Groups: check that the incremental groups are running and apply changes; see The Groups page.
  • Your changes to the shipped files: apply your copies of connector-templates.json, type-config.json and builtin-macros.json again.

Upgrading to SQDR 7.0

  • A run-history limit of 0 changed meaning. Check Service Settings › Logging after upgrading; see How long history is kept.
  • Existing subscriptions aren't remapped. SQDR 7.0 maps some column types differently; existing subscriptions keep their columns. See Data type mapping.