Install on Windows¶
This page installs SQDR, both parts, on one Windows server, the Stelo VM (see The Stelo VM), in the order of its sections. Check the requirements first. To upgrade an existing installation, see Upgrade on Windows.
Install Db2 for LUW¶
Stelo Capture keeps the captured changes in Db2 for LUW on the same server, and its installer doesn't include Db2: install Db2 first.
- Get Db2 for LUW 11.5 (fix pack 9 or later): Stelo provides it with the SQDR Plus distribution (ask Stelo Support or your Stelo contact for the download), or use IBM's free Db2 Community Edition (IBM limits the cores and memory it uses; check IBM's terms for your server).
- Run IBM's installer as an administrator and choose a typical installation. Keep the default instance,
DB2, and let the installer create the instance's service account.- The Db2 port: Stelo Capture and the Replicator Service connect to Db2 on port 50000. New installations of Db2
11.5.6 and later can propose port 25000. If you choose a custom installation, set the port to 50000 under
Configure DB2 instances › Configure.... To check or change it after installing: in a Db2 command window,
db2 get dbm cfg | findstr SVCENAMEshows the service name (for exampledb2c_DB2); its port is on that name's line inC:\Windows\System32\drivers\etc\services. Set it to 50000 there, then rundb2stopanddb2start. - A drive other than C: if you install Db2 (or keep its installer) on another drive, check that Windows short
(8.3) file names are on for that drive (
fsutil 8dot3name query D:), or use a folder without spaces such asD:\DB2\SQLLIB. See 'C:\Program' is not recognized. - If the installation fails, its log is in the
DB2LOGfolder of your Documents folder (see also Db2 installation fails).
- The Db2 port: Stelo Capture and the Replicator Service connect to Db2 on port 50000. New installations of Db2
11.5.6 and later can propose port 25000. If you choose a custom installation, set the port to 50000 under
Configure DB2 instances › Configure.... To check or change it after installing: in a Db2 command window,
- Choose (or create) the Db2 user: the Windows account Stelo Capture connects to Db2 with (for example
sqdr), and note its password. You enter it in the SQDR Plus installer (see SQDR Plus Service Parameters); the Stelo Capture services connect to Db2 with it, you sign in to the SQDR Control Center with it, and the Replicator Service connects to its control database SQDRC with it.- The account: a local or a domain Windows account that already exists: the SQDR Plus installer doesn't create
it. Give it a password that doesn't expire. For a domain account, enter the user name without the domain
(
sqdr, notMYDOMAIN\sqdr): Db2 looks the name up on the server first, then in the domain, so don't also have a local account with the same name. See also Running SQDR under a domain user. - Authority: none to give: no administrator rights, DB2ADMNS membership, SYSADM or SYSCTRL (see Why the Db2 user needs no authority).
- Keep Db2's default SYSADM_GROUP (not set). If you set the
SYSADM_GROUPdatabase manager parameter, Db2 no longer treats the Local System account as SYSADM, and Stelo Capture can't create SQDRC or staging databases.
- The account: a local or a domain Windows account that already exists: the SQDR Plus installer doesn't create
it. Give it a password that doesn't expire. For a domain account, enter the user name without the domain
(
- Check that the instance is running: in a Db2 command window,
db2startreports that it's already active, or starts it.
The SQDR Plus installer then configures Db2 itself (see Changes to Db2) and creates the control database SQDRC.
Why the Db2 user needs no authority¶
The Db2 user needs no administrator rights, DB2ADMNS membership, SYSADM or SYSCTRL. The databases are created by the SQDR Plus installer (the control database SQDRC) and the SQDR Plus Launch Agent (each Capture Agent's staging database), which both run as the Local System account, which Db2 on Windows gives SYSADM authority. The Launch Agent then grants the Db2 user DBADM authority on each staging database. In SQDRC, the Db2 user creates the Stelo Capture control tables, which it then owns, with the privileges Db2 gives every user of a new database (connect, create tables).
This is also why Db2's SYSADM_GROUP must stay unset (see step 3 of Install Db2 for LUW).
Install SQDR¶
Plan a short Db2 outage. On a first install, the installer restarts the Db2 instance (see Changes to Db2): other databases in it are briefly unavailable, and their connections are closed.
- Sign in to the server as an administrator and run
setup.exefrom the SQDR Plus distribution, which you get from Stelo (ask Stelo Support or your Stelo contact for the download). - The setup program installs the missing prerequisites. When it offers SQDR (64-bit), answer Yes to install Stelo Apply on this server too, or No if Stelo Apply runs elsewhere or is already installed.
- SQDR Plus Service Parameters: enter the Db2 user, its password and the SQDR Control Center ports. See SQDR Plus Service Parameters.
- DB2 LUW Parameters: choose where Db2 keeps the databases and their logs, and check the Db2 instance and service. See DB2 LUW Parameters.
- Destination Folder: default
C:\Program Files\StarQuest\sqdrplus. - ProgramData Folder: the configuration, Capture Agent files and logs (default
C:\ProgramData\StarQuest\; Stelo Capture uses thesqdrplusfolder in it). - Click Install. A command window shows the Db2 configuration (see Changes to Db2) and closes by itself after about 20 seconds.
- Click Finish. The Stelo Capture services start automatically.
To check the installation, sign in to the SQDR Control Center.
SQDR Plus Service Parameters¶
| Option | What to enter | Default |
|---|---|---|
| Enter the local Db2 user: | The Db2 user (see step 3 of Install Db2 for LUW); for a domain account, the user name without the domain. | — |
| Enter the password for the local Db2 user: | Its Windows password. | — |
| Validate Db2 LUW user | Optional: click it before Next to catch a mistyped password (see More about the installer pages). | — |
| Enter Port for SQDR Control Center (jetty): | The HTTP port of the SQDR Control Center. Change it if another program on the server uses 8080. | 8080 |
| Enter SSL Port for SQDR Control Center (jetty): | The HTTPS port. Change it if another program on the server uses 8443. | 8443 |
DB2 LUW Parameters¶
| Option | What it does | Default | When to change it |
|---|---|---|---|
| Location of DB2 databases: | The drive where Db2 creates SQDRC and, later, the Capture Agents' staging databases. The SQDR Control Center's Dashboard shows the free space on this drive. | The drive Db2 is installed on | Choose a drive with room for the staged changes. |
| Location of DB2 logs: | The drive Db2 is installed on | Choose a different drive from the databases, for performance. | |
| DB2 Instance: | The Db2 instance in which SQDRC is created and configured. | The DB2INSTANCE environment variable (usually DB2) |
When Stelo Capture should use another instance. |
| DB2 Service: | The Db2 instance's service name (see More about the installer pages). | The instance name, or <instance>-0 (for example DB2-0) |
If Db2's service has a different name on this server. |
More about the installer pages¶
- The Db2 user and password: the Launch Agent connects to SQDRC with them; the installer stores the password. If the password is empty, Next shows "You must enter a value for the Derby password". When the password changes later, see Change the passwords Stelo Capture uses.
- Validate Db2 LUW user checks the user and password against Windows, first as entered and then as
<computer name>\<user>, and shows Credentials VALID or Credentials INVALID in a command window. It doesn't stop you from continuing. - DB2 Service is the name under which the Db2 instance's service writes to the Windows Application event log. A
scheduled task watches for its start event to activate SQDRC (see
Changes to Db2). The installer proposes
<instance>-0when Db2 uses that naming.
Stelo Apply on the same server¶
If you answered Yes to SQDR (64-bit), the setup program installed Stelo Apply silently: the Replicator Service, the Data Replicator Manager and the tools in What gets installed. Configure it with the SQDR Configuration Tool, with SQDRC (created by the SQDR Plus installer) as its control database.
If you answered No and Stelo Apply isn't installed yet, install it with its own installer (see Install Stelo Apply on its own), then configure it the same way.
Configure the Replicator Service (SQDR Configuration Tool)¶
The SQDR Configuration Tool (sqdrconf.exe, Start menu: Data
Replicator Configuration) connects the Replicator Service to its control database, creates or upgrades the control
tables, and sets up the Windows service. Run it after installing (and again when needed: see
More about the SQDR Configuration Tool).
- Start Data Replicator Configuration (the installer can start it for you).
- Control Database Logon: keep Use Connection String selected. For the local SQDRC database created by
Stelo Capture, the defaults are right: the StarSQL driver and
Server=SQDRC;hostname=127.0.0.1;port=50000;PkgColID=STARSQL. Enter the User ID and Password of the Db2 user. - Control Tables: choose Create new control tables for a new installation, or Use existing control tables to reconnect to a control database that already holds your configuration.
- Control Table Qualifier: keep the proposed qualifier (on Db2, the schema, for example
SQDR; on SQL Server, the Database and the Owner) unless you have a reason to use another one. - Windows Registry, Windows Service, RBAC Service Properties and Data Replicator Service Properties: the defaults suit most installations. For the service, choose Automatic Start and the account it runs under (Local System by default; when the account matters, see More about the SQDR Configuration Tool).
- Review: click Next to run the configuration steps.
- Final: keep Start the Service selected. Clear Start the Manager: it starts the classic Windows manager, which is discontinued. Click Finish. You connect the Data Replicator Manager to the service in Open the Data Replicator Manager and connect.
Existing control tables
If you choose Create new control tables and control tables already exist with that qualifier, the wizard asks whether to drop and re-create them. All the configuration they hold is lost. To keep it, go back and choose Use existing control tables.
More about the SQDR Configuration Tool¶
- Run it again after the control database user's password changes, when you move the control database, or to change the service account or access control.
- The service account (Local System by default) matters later for a SQL Server destination with Use Integrated Security: use the account the SQL Server login was created for (see Create the login and user); and for the folder that holds a Snowflake key file (see Set up a Snowflake destination).
- Another control database: for a remote Db2 or a SQL Server control database, see Sample connection strings.
Enter the licenses¶
Both keys are entered on the Replicator Service's Licenses tab in the Data Replicator Manager, or in License Configuration, which is installed with SQDR.
- In the Data Replicator Manager, open Service Settings › Licenses and note the Disk ID shown under Status: it's the server's Node ID (License Configuration shows the same value under Host ID when you add a key).
- Request the license keys from Stelo with that Node ID (see Obtaining, transferring and upgrading a license).
- When the keys arrive, add each one with Add key on the Licenses tab, or in License Configuration.
- Restart the Replicator Service (SQDRSVC) and the SQDR Plus Launch Agent service, so that they read the new keys.
You can go on with the next steps while you wait: enter the keys before the first baseline runs (Run, or Automatic Snapshot on a group, which baselines new members by itself). Until then, the Replicator Service doesn't run replications, and each Capture Agent is limited to 2 cores. See Licenses.
Install the ODBC drivers¶
SQDR installs StarSQL (for Db2) and the SQDR bundled drivers (for Oracle, Informix, Amazon Redshift and text files). For your other sources and destinations, install the vendor's 64-bit ODBC driver on the Stelo VM, for example Microsoft ODBC Driver 18 for SQL Server, psqlODBC for PostgreSQL or the Snowflake ODBC driver, then restart the Replicator Service. Which driver each database needs: ODBC drivers.
Sign in to the SQDR Control Center¶
- Open the SQDR Control Center shortcut in the SQDR Plus (64-bit) Start menu folder, or browse to
http://127.0.0.1:8080/SQDRManager(use the port you chose). - Sign in with the Db2 user and its Windows password.
- Add a Capture Agent for each source database with Add Capture Agent: see your source's page under Sources.
See SQDR Control Center for connecting from other computers and HTTPS. If sign-in fails, see More about signing in; if you can't connect, see Cannot connect to SQDR Control Center.
Open the Data Replicator Manager and connect¶
- In a browser (for example Chrome or Edge), open
http://localhost:9119on the Stelo VM, orhttp://<server>:9119from another computer. - The first time, Connect To Service opens. For the Replicator Service on the same server, keep Host Name
*Defaultand Port7737, and click Connect. If RBAC is on, enter your User and Password. - You can now create sources and destinations.
See Data Replicator Manager for the details. If it can't connect, see Data Replicator Manager cannot connect to the Replicator service.
What gets installed¶
| Component | Product | What it is |
|---|---|---|
| Stelo Capture services | Stelo Capture | Three Windows services (see Stelo Capture services): the Launch Agent, which runs the Capture Agents; the SQDR Control Center web server (Jetty); and SQDR Plus Derby. |
| SQDR Control Center | Stelo Capture | The web application for Stelo Capture, at http://<server>:8080/SQDRManager and https://<server>:8443/SQDRManager. See SQDR Control Center. |
| Prerequisites | Stelo Capture | Separate products the setup program installs before Stelo Capture: a Java 21 runtime, Jetty, Apache Derby, the BigQuery client package, and the Microsoft Visual C++ 2015-2022 redistributable (x64). Kafka replication uses the Kafka client built into Stelo Capture. Before 7.0: it also installs Stelo distribution of Kafka. |
| Control database SQDRC | Stelo Capture | A Db2 database the installer creates in your Db2 instance, for the Launch Agent and SQDR. See Changes to Db2. |
| Replicator Service | SQDR | The Windows service SQDRSVC, which runs the replications; it starts automatically (delayed start). |
| Data Replicator Manager | SQDR | The web application: the Windows service SteloRepMgr-runtime in C:\Program Files\Stelo\SteloRepMgr, on port 9119, listed in Settings › Apps as Stelo Data Replicator Manager. The service runs as its own virtual account, NT SERVICE\SteloRepMgr-runtime, which can write only to the application's configuration, logs and cache folders. Before 7.0: it's listed as SteloRepMgr, and the service runs as Local System. |
| SQDR Configuration Tool | SQDR | The wizard (sqdrconf.exe) that connects the Replicator Service to its control database and configures the service (Start menu: Data Replicator Configuration). See SQDR Configuration Tool. |
| License Configuration | SQDR | The utility for entering license keys (Start menu: License Configuration). See Licenses. |
| SQDR Service Properties | SQDR | A utility for the Replicator Service's properties (Start menu: SQDR Service Properties). |
| PowerShell cmdlets | SQDR | See PowerShell cmdlets. |
| StarSQL, SQDR ODBC Drivers | SQDR | ODBC drivers: StarSQL connects to Db2, including the Stelo Capture staging database and a Db2 control database; the SQDR bundled drivers connect to Oracle, Informix, Amazon Redshift and text files. See ODBC drivers. |
| ODBC Administrator shortcut | SQDR | For creating ODBC data sources, if you use them instead of connection strings. |
The installer doesn't include Db2 for LUW (see Install Db2 for LUW). Where each program, service, file and log goes: Programs, services and files.
Install Stelo Apply on its own¶
Stelo Apply has its own installer, named SQDR, which installs it without Stelo Capture: on a server that runs only Stelo Apply, or on the Stelo VM if you answered No to SQDR (64-bit). A server of its own needs its own control database (see Control database) and the sizing in Sizing for Stelo Apply on its own server.
- Log on to the server as an administrator.
- Download SQDR with the link from Stelo. If Windows blocks the zip file, open its Properties and select Unblock. Extract it to a temporary folder.
- Run
setup.exefrom the extracted folder. (Always start the installer withsetup.exe: it installs the prerequisites, including the Data Replicator Manager, before SQDR.) - On the last page, select the option to start the Data Replicator Configuration, and click Finish. Continue with the SQDR Configuration Tool and the licenses.
The installer refuses to run if a 32-bit SQDR or the stand-alone classic Data Replicator Manager is installed; uninstall those first.
Related¶
- Ports
- The Stelo VM
- Control database and Replicator Service: starting, stopping, backing up and moving
- Set up incremental replication (SQDR)
- Replication stops because the staging Db2 isn't running, SQL1646N or SQL1042C in the staging database (fenced user ID), SQL4306N on SQDR.GETJARVERSION after an upgrade or migration, Errors creating or updating the control database, SQDRSVC error 1010 or 2012: cannot access the control database, Error loading a recently installed ODBC driver