Skip to content

Remove Stelo Capture from the source databases

When a source is no longer replicated, remove what Stelo Capture added to it. SQDR runs on its own server or in the container, which you can simply retire; this page is about the source databases. Review what was done when the source was prepared (the Prepare the database section of the source's page, see Databases) and your own notes from then.

For every source:

  1. In the Data Replicator Manager, delete the source's incremental groups and their subscriptions.
  2. In the SQDR Control Center, delete the publications, if the agent uses them (see Unpublishing tables), then delete the Capture Agent (see Delete). That removes the agent's log positions on the source, but not its control schema or library, nor the users.
  3. If you created users for Stelo Capture, delete them. Deleting a user normally revokes what was granted to it.

Then, by database:

Source What to remove
Db2 for i The exit program registration (see Remove the Db2 for i exit program). The authorization lists you created (DLTAUTL; the CL setup suggests SQDR and SQDRADM). The user profiles (default SQDRADM and SQDR), with DLTUSRPRF ... OWNOBJOPT(*DLT), which also deletes the objects they own, normally the SQDR library; if the library is still there, check its contents and delete it. See Remove the programs from the remote system.
Db2 for LUW The agent's user, and the SQDR schema. If you switched the database from circular to archive logging for Stelo Capture, you can switch it back. If the log reader stored procedure was installed, drop SQDR.SQ_GET_INITIAL_LRI and SQDR.SQ_READLOG and delete the StarQuestSP library from the instance's function directory.
SQL Server If no other application needs Change Tracking, turn it off on the tables (ALTER TABLE ... DISABLE CHANGE_TRACKING) and the database (ALTER DATABASE ... SET CHANGE_TRACKING = OFF); likewise Change Data Capture. Remove the rights given to a domain account or to the Stelo VM's computer account (see Windows authentication for the agent). Delete the agent's user (default SQDR) and drop the SQDR schema.
Oracle For each subscribed table, if no other application needs it: ALTER TABLE <table> DROP SUPPLEMENTAL LOG DATA (ALL) COLUMNS. Delete the agent's user (default SQDR) and any user created for publishing, and drop the SQDR schema. Revert the database's supplemental logging and ARCHIVELOG mode, and remove anything you added to keep log files, if nothing else uses them.
Informix The agent's user (default sqdr, usually an operating system user), and the SQDR schema. The syscdcv1 database, if you created it for Stelo Capture and nothing else uses it.
MySQL, MariaDB The agent's user (default SQDR) and the SQDR schema (database). Revert log_bin_trust_function_creator and binary logging if you changed them for Stelo Capture and nothing else needs them, and remove anything you added to keep binlogs.
PostgreSQL The agent's replication slot, if it's still there (see Delete), its user and the SQDR schema.

StarSQL packages

On Db2 for i and Db2 for LUW, the SQDR library or schema usually also holds the SQL packages of the StarSQL driver. If other applications use StarSQL, check that their data sources use another package collection, or keep those packages.