Skip to content

Uninstall and reinstall on Windows

Uninstalling SQDR removes the programs from the Windows server; the control database and the Db2 databases stay unless you drop them. To stop capturing from a source database, first remove what Stelo Capture added to it: see Remove Stelo Capture from the source databases. For the container, see Remove the Docker container.

Uninstall Stelo Capture

  1. If a Capture Agent captures from Db2 for i, first remove the exit-program registration on the IBM i (see Remove the Db2 for i exit program). To also remove the control library and the user profiles, follow the steps in Remove the programs from the remote system, which apply to any IBM i.
  2. In Settings › Apps (or Programs and Features), uninstall SQDR Plus (64-bit).

The uninstaller removes the services and the scheduled task, and renames the working folder C:\ProgramData\StarQuest\sqdrplus to sqdrplus.prev (replacing an older sqdrplus.prev), keeping the configuration and logs. It doesn't uninstall Db2 or drop its databases (SQDRC and the staging databases); the prerequisites and SQDR stay installed: uninstall them separately if you no longer need them.

Reinstall Stelo Capture

The SQDR Plus installer only moves forward: it upgrades an existing installation, but won't install an older version or repair a damaged one. To do either, uninstall Stelo Capture and install it again, keeping the Capture Agents. The databases stay where they are, so this is quicker than moving to a new server: you only put the agents' folders and the encryption key back.

Before you start:

  • If the reason is to go back to an earlier version, ask Stelo Support first: a later version may have changed the staging databases (for example their stored procedures), and those changes must be handled.
  • Note the settings you chose at installation: the Db2 user and its password, the SQDR Control Center ports if they aren't 8080 and 8443, and the drives that hold the Db2 databases and logs. You enter them again.
  • Have the installer of the version you want.

Steps:

  1. Pause the incremental groups that use the Stelo VM in the Data Replicator Manager, and stop the Replicator Service if it runs on this server.
  2. Stop the SQDR Plus Launch Agent and SQDR Plus Jetty services. Optionally, back up the staging databases (see Look after the Db2 databases on the Stelo VM).
  3. Stop the SQDR Plus Derby service, and check in Task Manager that no Java process is left.
  4. Uninstall Stelo Capture (see Uninstall Stelo Capture, without the Db2 for i steps), and restart Windows if asked. Check that C:\ProgramData\StarQuest\sqdrplus was renamed to sqdrplus.prev.
  5. Install Stelo Capture with the same settings (see Install SQDR). You can skip SQDR, which is still installed. The installer keeps the existing SQDRC, which holds the list of Capture Agents.
  6. When the installer has finished, stop the SQDR Plus Launch Agent and SQDR Plus Jetty services again.
  7. Put the agents back: copy the agtN folders from C:\ProgramData\StarQuest\sqdrplus.prev\conf to C:\ProgramData\StarQuest\sqdrplus\conf. Rename the new conf\node.properties (keep it) and copy the one from sqdrplus.prev\conf in its place. In the new conf\sqagent.properties, replace the value of password with the value in sqdrplus.prev\conf\sqagent.properties. The old node.properties holds the key that encrypted the stored passwords (see What the move carries over).
  8. Start the Stelo Capture services, and check in the SQDR Control Center that the agents are listed and start.
  9. Start the Replicator Service if you stopped it, and resume the groups.

Uninstall SQDR

  1. In Settings › Apps (or Programs and Features), uninstall StarQuest Data Replicator.
  2. When asked whether to remove SQDR from the registry and drop the control tables, answer No to keep your configuration (for example, to reinstall later), or Yes to delete the control tables and everything they hold.
  3. The prerequisites installed with SQDR stay installed. Uninstall them separately if you no longer need them: StarSQL, SQDR ODBC Drivers and Stelo Data Replicator Manager. Uninstalling the Data Replicator Manager removes the SteloRepMgr-runtime service but keeps the configuration and logs folders in C:\Program Files\Stelo\SteloRepMgr (the port and other settings, and the logs), so a later install picks up the same settings; delete the folder if you don't need them.