Skip to content

Change the passwords Stelo Capture uses

Stelo Capture keeps the passwords it needs to reach the source databases, the staging databases and the control database. When one of them changes on the database or operating system side, change it in Stelo Capture too, or the agent that uses it can't connect.

The simplest way to avoid this work is to give the Stelo Capture users passwords that don't expire. If your security rules require periodic changes, use the procedures below.

Change a password

Use this when the agent is running, or at least the Control Center can reach the Launch Agent.

  1. In the SQDR Control Center, select the agent and open its Configuration tab (select the server node for the Launch Agent).
  2. Set the property to the new password in plain text: sourcePassword, password, xstreamPassword or mailPassword (see Which password is which).
  3. Click Save.

The Launch Agent encrypts the password, updates its own record of the agent's credentials, and restarts the agent if it's running. For an Oracle container database, a new sourcePassword also goes to its pluggable-database agents. See Change a Capture Agent's configuration.

When the agent can't start because of the password

If the password changed before you could update it, the agent fails at startup and the Configuration tab may not help. Edit the file instead:

  1. Open the agent's sqagent.properties in a text editor: C:\ProgramData\StarQuest\sqdrplus\conf\agtN on Windows, /var/sqdrplus/conf/agtN in the Docker container. The Home Directory column of the server's Agents tab shows which folder belongs to which agent.
  2. Replace the value of sourcePassword (or password) with the new password in plain text and save the file.
  3. In the Control Center, select the agent and click Start/Restart.
  4. Once the agent runs, save the password again on the Configuration tab, as above. This encrypts it in the file and updates the copies Stelo Capture keeps in its databases, which a hand edit doesn't.

Change the control database password (Launch Agent)

The Launch Agent connects to the control database SQDRC with the Db2 user entered when Stelo Capture was installed, a local or domain Windows user. The SQDR Control Center signs you in by connecting to SQDRC with the user and password you type, normally this same user.

When that user's password changes:

  1. Sign in to the SQDR Control Center as that user, with the new password. The Control Center keeps it, encrypted, in conf\init.properties for the Launch Agent. (Signing in as another user doesn't help the Launch Agent.)
  2. When the Launch Agent's stored password is rejected, it tries the new one. If it works, it saves it (encrypted). No need to restart the Launch Agent service.

You can also set the new password directly: select the server, open Configuration, change password and Save. The Launch Agent re-encrypts it without restarting, and updates its copy in the control database.

Capture Agents that use the same user. Each Capture Agent keeps its own copy of the staging database password (password on its Configuration tab). If the agents use the same Db2 user, change their password as well.

The Replicator Service. If the Replicator Service connects to the staging database with the same user, update its source too: in the Data Replicator Manager, open the source's properties and save them again (see Source properties).

Which password is which

Password Property Used for
Control database user password of the Launch Agent The Launch Agent's connection to SQDRC. It's the Db2 user entered during installation.
Staging database user password of each Capture Agent The agent's connection to its staging database. A new agent gets the Launch Agent's user and password.
Source database user sourcePassword of each Capture Agent The agent's connection to the source database, for example the agent user profile (default SQDR) on Db2 for i.
Oracle XStream user xstreamPassword Oracle agents that use XStream.
Mail server mailPassword, starquestMailPassword Email notification.

Each is stored encrypted in the agent's sqagent.properties (see Where the properties are stored).

The Control Center doesn't store the password you sign in with, nor the privileged user you enter to publish tables: those are kept only for your session.

The Derby password after an upgrade

Releases before SQDR Plus 6.60 kept the Launch Agent's configuration in a local Derby database, with a password entered during installation. Stelo Capture uses SQDRC instead (see The Stelo VM and Upgrade Stelo Capture), and the Derby password no longer controls access to the Control Center.