Skip to content

SQDR Configuration Tool (sqdrconf)

The SQDR Configuration Tool, sqdrconf.exe, is a wizard that connects the Replicator Service to its control database, creates or upgrades the control tables, configures the Windows service SQDRSVC, and sets up Role Based Access Control (RBAC). Start it from the Start menu with Data Replicator Configuration (folder StarQuest Data Replicator). Run it:

  • when you first install SQDR (the installer offers to start it);
  • after the control database user's password changes, or to connect to a moved control database;
  • to upgrade control tables from an SQDR 5 release;
  • to change the account the service runs under;
  • to turn RBAC on or off or change its key seed.

It runs as an administrator on the Stelo VM, configures the Replicator Service on that computer, and is installed as C:\Program Files\StarQuest\SQDR\sqdrconf.exe.

Docker

The Stelo Replicator Docker container comes configured, with its control database inside the container. See Manage the Docker container.

How it works

The wizard collects your choices page by page and changes nothing until the Review page, where it runs the configuration steps in one go. Until then, Back and Cancel leave everything as it was, except the RBAC Manage..., Export Log and Clear Log buttons, which act on the control database at once.

The Review steps write:

What Where
The control database connection (driver or data source, connection string, user, encrypted password, qualifier) and the listener properties C:\ProgramData\StarQuest\SQDR\sqdr.properties, shown as Properties Path on the Service tab
The service's registry entries and, optionally, their access control list HKEY_LOCAL_MACHINE\SOFTWARE\StarQuest\SQDRSVC
The account and start type of the Windows service The service SQDRSVC
New or upgraded control tables, and the RBAC settings The control database

Control Database Logon

How the Replicator Service connects to its control database. The database must already exist: the wizard creates control tables, not the database. For the supported databases, see Before you start.

On Next, the wizard connects with these settings; if it can't, you get "Cannot connect to Data Source" with the driver's message.

Option What it does Default When to change it
Use Connection String Connects with an ODBC driver and a connection string, instead of an ODBC data source (DSN). Recommended: nothing else to set up on the computer. Selected (with the settings of the last configuration) Clear it to use a system DSN you created in the ODBC Administrator.
Driver or Data Source name With a connection string: the ODBC driver. Without: a DSN that uses one of these drivers. StarSQL (64-bit) For a SQL Server control database, choose ODBC Driver 17 for SQL Server or ODBC Driver 18 for SQL Server.
Connection String Details Where the control database is. Don't include the driver, user or password: the wizard adds the driver, User ID and Password. Server=SQDRC;hostname=127.0.0.1;port=50000;PkgColID=STARSQL For any control database other than the local SQDRC. See Sample connection strings.
User ID, Password The database user the Replicator Service connects as. It owns the control tables, so it needs the right to create tables and indexes. The password is saved encrypted in sqdr.properties. sqdr Always enter the password. On a server with Stelo Capture, it's the Db2 user entered when Stelo Capture was installed.
Use Windows integrated security Connects with a Windows account instead of a user and password (the wizard adds Trusted_Connection=Yes). Not available with StarSQL. Cleared A SQL Server control database with Windows authentication. The wizard connects as you, the service as its own account: both need rights in the database. See Windows Service.

Sample connection strings

Replace the host, port and database names with yours. For a remote database, the host name must resolve on the SQDR server.

Control database Driver Connection String Details
Local Db2 SQDRC (the default; created by Stelo Capture) StarSQL (64-bit) Server=SQDRC;hostname=127.0.0.1;port=50000;PkgColID=STARSQL
Db2 on another server StarSQL (64-bit) Server=SQDRC;hostname=db2host.example.com;port=50000;PkgColID=STARSQL
Db2, with IBM's driver The IBM Db2 ODBC driver Hostname=db2host.example.com;Port=50000;Database=SQDRC;Protocol=TCPIP;Authentication=SERVER
SQL Server, local default instance ODBC Driver 17 or 18 for SQL Server Server=(local);Database=controlDB (or Server=., Server=127.0.0.1)
SQL Server, local named instance ODBC Driver 17 or 18 for SQL Server Server=.\SQLEXPRESS;Database=controlDB
SQL Server on another server ODBC Driver 17 or 18 for SQL Server Server=sqlhost;Database=controlDB, or Server=sqlhost\SQLEXPRESS for a named instance
SQL Server on a port other than 1433 ODBC Driver 17 or 18 for SQL Server Server=sqlhost,1450;Database=controlDB; for a named instance without the SQL Server Browser service, Server=sqlhost,1450\SQLEXPRESS
SQL Server, encrypted ODBC Driver 17 or 18 for SQL Server Add Encrypt=Yes, and TrustServerCertificate=Yes to encrypt without verifying the server's certificate (for example a self-signed one, or one issued for another name). Encrypt=No or Encrypt=Optional turns encryption off.

Database= sets the database the connection starts in, which the Control Table Qualifier page then proposes. More about the drivers: Connection strings (StarSQL, IBM Db2 ODBC driver, SQL Server).

A Db2 control database you create yourself

With StarSQL, the StarSQL packages must be bound in the database (collection STARSQL, the PkgColID above), for example with StarAdmin. The SQDRC database that Stelo Capture creates is ready to use.

Control Tables

Option What it does
Create new control tables Creates new, empty control tables: a new installation.
Use existing control tables Keeps the control tables and the configuration in them: reinstalling, upgrading, moving the control database, or changing a password or the service account.

The choice is checked against the database when you leave the Control Table Qualifier page:

  • Create new, with control tables already under that qualifier: the wizard asks whether to drop and re-create them, then warns that all their configuration will be lost. Answer No to use the existing tables instead.
  • Use existing, with none under that qualifier: the wizard offers to create new ones.
  • Existing tables from a newer version of SQDR, or a version too old to upgrade, can't be used; the wizard says so.

Warning

Re-creating the control tables deletes every source, destination, group, subscription and setting in them. To keep them, choose Use existing control tables.

Control Table Qualifier

Where the control tables are in the database. On SQL Server, Database is the catalog and Owner the schema.

What's proposed:

  • With the same driver or data source as the last configuration, the last configuration's qualifier (SQDR on a new installation with StarSQL).
  • Otherwise, the connected user's name as the database reports it for the schema (on SQL Server typically dbo for the database owner) and, on SQL Server, the database the connection starts in (the login's default database, or Database= in the connection string).

Change the qualifier only when the control tables must be under another schema, or to pick the right database on SQL Server.

Upgrade Control Database

Shown only when you chose Use existing control tables and they're from an earlier version (the current control table version is 6.10). Upgrade Control Tables (selected) upgrades them in the Review step; the earlier version of SQDR can't use them afterwards. If you clear it, the wizard warns that the tables must be upgraded: the Replicator Service doesn't start with tables that aren't. Upgrades are possible from 5.10 and later; see Upgrade SQDR.

Windows Registry

Option What it does Default When to change it
Secure Registry Sets an access control list on the SQDR registry key, so that only administrators, the service account, LocalSystem and the user running the wizard can use it. The same list limits access to the service's automation interface. Selected Rarely. Clearing it doesn't remove a list set earlier (the wizard says so).
Reset Registry Entries Resets all SQDR registry entries to their defaults, including anything edited directly in the registry, and the service properties in the control database when the tables are neither created nor upgraded. Asks for confirmation. Cleared Only when Stelo Support asks.

Windows Service

Option What it does Default When to change it
Run under the LocalSystem account. Selected on a new installation Clear it when the service needs a Windows account, for example for Windows authentication to the control database, sources or destinations.
Account, Password The Windows account and its password, as DOMAIN\user, user@domain, .\user or user (a local account). The wizard checks them on Next. The password isn't shown: enter it again whenever you change the account or its password. — When the account or its password changes.

The account also decides which ODBC data sources the service sees (system DSNs, or that account's user DSNs) and which Windows credentials it uses. See Running SQDR under a domain user.

RBAC Service Properties

With existing control tables, the values come from the control database; new control tables get the defaults. They're saved in the Review step.

Option What it does Default When to change it
Use RBAC Users must sign in to the Replicator Service, and each request is allowed according to their role. Cleared To control who may manage the service. Read Before you turn it on first.
Enable logging Records actions in the audit journal. Works with or without RBAC. Selected Clear it to stop journaling.
Log Details Also records the request and reply of each action. Selected Clear it to keep the journal small.
Retention policy (days) How many days of journal entries are kept. 0 keeps them forever. 7 To keep the journal longer.
Encryption seed The key seed: a separate secret that lets you manage users, roles and groups without signing in as a user who may, for example when the Data Replicator Manager asks for the key. *DEFAULT Always, before you turn RBAC on. See Update seed.
Export Log Saves the whole audit journal as a JSON file. For an audit, or before Clear Log.
Clear Log Deletes all audit journal entries. Rarely: the retention policy removes old entries.

Manage..., Export Log and Clear Log are unavailable when the control tables have no RBAC tables yet (for example, tables that still need upgrading).

The Data Replicator Manager shows the same settings as rbacEnabled, rbacLoggingEnabled, rbacLogDetails, rbacRetentionPolicy and rbacKeySeed in Service properties. Change Use RBAC and the key seed here, not on the Advanced tab.

Update seed

Default sets the key seed back to *DEFAULT. A new seed can't be empty; it's saved encrypted, in the Review step. Keep it safe: it's the way back in when no user can manage users.

Manage: users, roles, groups, members and methods

The wizard works on the control database as the database user of Control Database Logon, without an RBAC sign-in: anyone who can run the wizard can manage access. Keep sqdr.properties and the control database password protected.

Users, Roles, Groups and Members work as in the Data Replicator Manager; see Users, Roles, Groups and Members. Methods is only in the SQDR Configuration Tool.

Methods

Every operation a client can ask of the service (a method, such as StartReplication) is listed here.

  • A user may call a method when one of their groups has a role at or above its Minimum Role Required; see Default roles. Loggable journals the operation, Details also its request and reply.
  • Reset... sets every method, and also the five default roles (super, admins, power, ops, public), back to their default levels.

If the method list is empty, the wizard fills it with the defaults.

Data Replicator Service Properties

The Replicator Service's startup properties. The service reads them when it starts.

Property Default What it is
grpcADDRPORT 0.0.0.0:7737 The address and port the Data Replicator Manager connects to.
grpcTransADDRPORT 127.0.0.1:7738 The address and port the PowerShell cmdlets connect to (this computer only).
grpcKEEPALIVE_TIME_MS, grpcKEEPALIVE_PERMIT_WITHOUT_CALLS, grpcHTTP2_BDP_PROBE, grpcHTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS, grpcHTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS 10000, 1, 1, 5000, 10000 Keep-alive settings of the client connections.
grpcMAX_RECV_LENGTH, grpcMAX_SEND_LENGTH 8388608 (8 MB) The largest message the service receives or sends.
svcLocale See the reference The locale the service sets when it starts.

What each property does and when to change it: Service listeners and locale. Change the keep-alive and message-size values only when Stelo Support asks. A wrong address can make the service unreachable.

Review

Next runs the configuration steps. Write to the registry also writes sqdr.properties.

If the Replicator Service is running, the wizard offers to stop it:

  • OK stops the service, then runs the steps.
  • Cancel leaves the service running; the steps still run, except that the Windows service's account and start type aren't changed. Settings the service reads at startup (the control database connection, the listener properties) take effect only when it restarts.

A failed step shows an error message naming it ("Cannot create control tables: ..."); Next then runs all the steps again from the beginning.

The scripts that create or upgrade control tables log each statement to %LOCALAPPDATA%\StarQuest\SQDR of the user who runs the wizard (for example CNTRLDB_UDB.log or UPDATEDB610_MSSQL.log). Send them to Stelo Support if a step fails.

Final

Start the Manager starts the classic Windows Data Replicator Manager (drmgr.exe), which is discontinued: clear it, and open the web Data Replicator Manager instead.

Common tasks

Change the control database password

When the control database user's password changes (or you connect as another user):

  1. Run Data Replicator Configuration. On Control Database Logon, enter the new Password (or the new User ID and Password).
  2. Choose Use existing control tables and keep the proposed qualifier.
  3. Finish the wizard, letting it stop the service on Review and start it on Final.

On a server with Stelo Capture, the Launch Agent uses the same Db2 user: see Change the passwords Stelo Capture uses.

Change the service account

Run the tool with Use existing control tables. On Windows Service, clear Run under the LocalSystem account. (or select it), enter the Account and Password, and finish the wizard. Use the tool rather than Services: with Secure Registry selected, it also gives the new account access to the secured registry key.

Other tasks

Task See
Upgrade control tables from SQDR 5 Upgrade SQDR
Connect to a moved or restored control database Move the control database, Move the service to another computer
Turn access control on or off, set the key seed Turn on access control
Uninstall Uninstall SQDR: the uninstaller runs the tool to ask whether to remove SQDR from the registry and drop the control tables.

Messages

Message What to do
Cannot access StarQuest Data Replicator registry key ... Check your permissions Run the tool as an administrator, as the user who configured the service, or as the service account: a secured registry key admits only those.
Cannot connect to Data Source Check the driver, connection string, user and password on Control Database Logon. The rest of the message is the driver's.
Error accessing the Control Database The wizard couldn't look for control tables under the qualifier; the rest of the message is the database's. Check Control Table Qualifier and the user's rights.
The selected, existing Control Database appears to be from a newer version The tables belong to a newer SQDR. Install that version, or use other tables.
These Control Tables must be upgraded to work with this version of Data Replicator. Keep Upgrade Control Tables selected.
Cannot access Windows service properties The Windows service SQDRSVC isn't installed. Reinstall SQDR.

For errors while creating or upgrading control tables, see Errors creating or updating the control database.