StarQuest Technical Documents
Quick Start Guide for the StarQuest Data Replicator
Updated: 31 January 2010
Product: StarQuest Data Replicator
Version: 3.4 or later
Article ID: SQV00DR0001
Abstract
This Quick Start Guide describes how to install and configure the
software you need, including the StarSQL ODBC driver for DB2, to perform
snapshot replication operations using the StarQuest Data Replicator (SQDR). Read the complete document before starting your installation.
Note: if you require incremental replication support from a DB2 database (on iSeries or Windows/Unix/Linux) using SQDR Plus, refer to the SQDR Plus Quick Start Guides on the StarQuest Customer Support Quick Start Guides page.
This document is intended for first-time users of SQDR. Users who are upgrading an existing installation should refer to the SQDR Release Notes and the SQDR online help for upgrade instructions.
The estimated time to complete
all tasks is 1 hour.
SQDR Quick Start Guide Outline
The same individual or a combination of individuals must be capable of performing in the following three roles in order to successfully complete the installation.
- DB2 Administrator (required only if replicating to/from DB2) is someone with user credentials suitable for creating collections and binding packages on the database host. The DB2 Database Administrator runs the standalone GUI application StarAdmin to bind StarSQL packages on the database host.
- SQL Server Administrator is someone with user credentials belonging to the sysadmin fixed server role. The SQL Server Database Administrator runs the Data Replicator Configuration utility to create the SQDR control database and database objects on the local SQL Server.
- Client-Platform Administrator is someone with administrative authority to install SQDR (and StarSQL, if needed) on a Windows computer. This person must also have a set of user credentials on the source and destination database hosts that can be used to test database connectivity and that have sufficient read/write privileges to perform data replication.
General considerations
The Windows platform that will run SQDR must have:
- TCP-IP access to the source and destination database hosts.
- A version of Microsoft SQL Server installed. This is because SQDR uses a SQL Server database to store replication subscription information. If you do not already
have a SQL Server installation, you can obtain the Microsoft SQL Server 2000
Desktop Engine (MSDE 2000) or the SQL Server 2005/2008 Express Edition free of
charge from Microsoft to use as a control database for the Data Replicator. The
StarQuest Technical Document Installing SQL Server for a Control Database provides details for using MSDE 2000 or 2005/2008 Express with SQDR.
- ODBC drivers that can access the source and destination database
servers (if replicating to/from non-DB2 databases).
SQL Server considerations
- SQL Server 2008 users must install the SQL Distributed Management Objects (SQL-DMO), which are included in the Microsoft SQL Server 2005 Backward Compatibility Components available at the Microsoft Download Center.
- The SQL Server 2005/2008 Express
Edition does not include the SQL Server Agent component, which the Data
Replicator Manager uses to schedule subscriptions to run automatically. If
you use the free SQL Server 2005/2008 Express Edition as a control database for
Data Replicator, you can still use the Data Replicator Manager to run
subscriptions manually, and you can use other methods, such as Windows
Scheduler, to schedule them to run automatically.
- Depending on the type of authentication that is configured for the SQL Server, you must have a SQL Server user ID (if using SQL Server and Windows authentication) or a Windows user ID (if using Windows-only authentication) that is a member of the System Administrators (sysadmin) server role.
Summary of tasks
Perform the tasks in the order described, noting that some of the steps provide information used in subsequent steps. The detailed instructions for each task follow this summary. If you do not plan to use the StarSQL ODBC Driver for DB2, skip step 3.
- Request to download SQDR.
- Receive the e-mail with a Registration Key and download links for the SQDR, StarSQL, and StarAdmin.
- DB2 Administrator: Follow the instructions in the StarQuest Technical Document Binding StarSQL Packages Using StarAdmin to install StarAdmin and bind StarSQL host packages. Provide database connectivity information to the Client-Platform Administrator to be used in step 4c. Skip this step if not using StarSQL.
- Client-Platform Administrator:
- Download StarSQL using the download link from step 2 and install the software. If not using StarSQL, install the ODBC driver(s) needed to connect to your source and destination database hosts.
- Configure a StarSQL ODBC System Data Source Name (DSN) using the information provided in step 3, above. Or configure ODBC System DSNs using ODBC drivers appropriate for your source and destination database hosts.
- SQL Server Administrator: Start the SQL Server service and configure ODBC DSN for the control database.
- Client-Platform Administrator:
- Download SQDR using the download link from step 2 and install the software.
- Run the SQDR configuration, connecting to the local SQL Server using the DSN created in step 5.
- License the StarQuest software using the Registration Key from step 2.
- Configure an SQDR replication subscription.
- Review the subscription status.
Step 1: Request SQDR Software
Estimated Time: 5 minutes
All software packages are distributed as compressed files that you download
from the StarQuest Ventures Web site. From a
web browser enter the address http://www.starquest.com/ and click on Download for Trial under the Products menu. Request to download SQDR. When the request is fulfilled, you will also receive StarSQL and StarAdmin.
Step 2: Receive the Download Confirmation E-mail from StarQuest
Estimated Time: Less than 5 minutes
After submitting a request to download SQDR, you will receive an e-mail containing a Registration Key and download links for the StarAdmin, StarSQL and SQDR software. The registration key will be used in step 6c to obtain temporary licenses valid for 15 days and the download links will be used in steps 3, 4a, and 6a.
Step 3: (DB2 Database Administrator task) Bind Host Packages Using StarAdmin
Estimated Time: 15 minutes
If you are not using the StarSQL ODBC Driver for DB2, skip this section and proceed to step 4a.
The user who installs StarAdmin must be an administrator on the Windows platform. The database connectivity information collected in this section will be provided to the SQDR Client-Platform Administrator for use in step 4b. Follow the instructions in the StarQuest Technical Document Binding StarSQL Packages Using StarAdmin to install and bind StarSQL host packages.
Step 4a: (Client-Platform Administrator task) Download and Install StarSQL
Estimated Time: 5 minutes
The SQDR Client Platform must have ODBC connectivity to the source and destination database hosts. If using StarSQL for DB2 connectivity, download and install the StarSQL ODBC Driver as described below. Otherwise, install the ODBC drivers needed to connect to your source and destination database servers and proceed to step 4b.
To install StarSQL:
- Log on to the SQDR platform computer as an Administrator.
- Download StarSQL using the download link provided in step 2 and uncompress the file into a temporary directory.
- Run the setup.exe program
from the StarSQL installer image.
- Select the option to perform a Typical installation and respond to the prompts accordingly.
At the end of the installation, a License Configuration dialog
prompts you to enter your license key(s) for using the StarQuest products. Click OK to close the dialog as you will request and enter license keys during step 6c.
Step 4b: (Client-Platform Administrator task) Create ODBC DBMS Data Sources
Estimated Time: Less than 5 minutes
An ODBC data source name (DSN) defines the information that a
driver needs to access a specific instance of data in a DBMS. You must define
an ODBC System DSN for each host DBMS that you want to replicate to and from.
Create ODBC DSN for the DB2 source database
The
following steps describe how to create a StarSQL ODBC DSN to connect to a DB2 source database. If not using StarSQL, refer to the documentation for your ODBC drivers for instructions on creating an ODBC DSN.
- Launch the ODBC Administrator from the Windows Control Panel. For most
versions of Windows the ODBC Administrator is typically found in the menu path
Settings—>Control Panel —>Administrative Tools—>Data Sources (ODBC).
- Click the System DSN tab of the ODBC Data Source Administrator window.
Click Add and, in the next dialog, select StarSQL 32
for the driver and click Finish.
- In the first dialog of the StarSQL Data Source Wizard, enter a name for
the data source and, optionally, a description. Click Next to step through the
Wizard panes, specifying the database connectivity parameter values obtained by the DB2 Administrator in step 3.
- From the Network pane of the StarSQL Data Source Wizard, click the Test Connection button to ensure you can connect to the
host database. On the next pane, enter a valid AS/400 user ID and password so
that the data source can connect to the database and set default values, and
click Summary. If the connection fails, modify the data source configuration
until the ODBC DSN can successfully connect to the host.
- Click the Expert Page item in the left pane of the StarSQL Data Source
Wizard. Select IsolationLevel in the Data Source Entry list box, and select
Read Committed in the Values list box. Click Next to display the summary page
and click OK to save the DSN.
Create ODBC DSN for the destination database
The
following steps describe how to create a SQL Server ODBC data source that connects to the SQL Server destination database. If your destination database is not SQL Server, refer to the documentation for the ODBC driver specific for your database for instructions on creating ODBC DSNs.
- Launch the ODBC Administrator from the Windows Control Panel. For most
versions of Windows this is located in the menu path Control
Panel—>Administrative Tools—>Data Sources (ODBC). If using a Windows 64-bit
operating system, create a 32-bit ODBC DSN using the 32-bit ODBC
Data Source Administrator (odbcad32.exe) found in
the \WINDOWS\SysWOW64 directory.
- Click the System DSN tab of the ODBC Data Source Administrator window.
- To create a new data source for the SQL Server database, click Add. In
the next dialog, select SQL Server for the driver and click Finish. (If you
are using SQL Server 2005/2008, be sure to select the SQL Server driver
instead of the SQL Server Native Client driver.)
- Specify a name and select which SQL Server you want the data source to
connect to, and click Next to proceed.
- Continue through the remainder of the wizard and click Test Data Source
to ensure the DSN can connect to the specified SQL Server. If you do not see
TESTS COMPLETED SUCCESSFULLY, modify the data source configuration until it
can successfully connect to the server.
Additional References
StarSQL Quick Start Guide
StarSQL User’s Guide
StarSQL Online Help
Step 5: (SQL Server Administrator task) Start the SQL Server Service and Configure ODBC DSN
Estimated Time: 5 minutes
The client computer on which you will install SQDR must have a supported version of Microsoft SQL Server installed. If you do not already
have a SQL Server installation, you can obtain the Microsoft SQL Server 2000
Desktop Engine (MSDE 2000) or the SQL Server 2005/2008 Express Edition free of
charge from Microsoft to use as a control database for the Data Replicator. Review the SQL Server considerations above for more information.
SQL Server 2008 users should verify that they have already installed the SQL Distributed Management Objects (SQL-DMO), which are included in the Microsoft SQL Server 2005 Backward Compatibility Components available at the Microsoft Download Center.
Start SQL Server Service
The SQL
Server service must be running for the Data Replicator Service to access its control
database. If you intend to configure replication subscriptions to run according
to a schedule, also start the SQL Server Agent service. Start the SQL Server and
SQL Server Agent services from Windows Services, typically found under Control
Panel—> Administrative Tools—> Services.
Create a SQL Server ODBC DSN for the Control Database
Define the ODBC DSN for the SQL Server database that the Data Replicator
Service will use as a control database. If the destination database is also SQL Server, create a new DSN instead of using the one previously created in step 4b.
- Launch the ODBC Administrator from the Windows Control Panel. For most
versions of Windows this is located in the menu path Control
Panel—>Administrative Tools—>Data Sources (ODBC).
NOTE |
If using a 64-bit SQL Server, you will need to create both a 32-bit and a 64-bit ODBC DSN for
the SQL Server database with identical data source names. This is because the SQDR Configuration uses SQL Server's 64-bit osql application to create its control database, while the SQDR service uses the 32-bit DSN to communicate with the control database. Create the 64-bit DSN using the (64-bit) ODBC Data Source Administrator found in Administrative Tools. To create the 32-bit DSN, use the 32-bit ODBC
Data Source Administrator (odbcad32.exe) typically located in
\WINDOWS\SysWOW64 directory. |
- Click the System DSN tab of the ODBC Data Source Administrator window.
- To create a new data source for the SQL Server database, click Add. In
the next dialog, select SQL Server for the driver and click Finish. (If you
are using SQL Server 2005/2008 Express, be sure to select the SQL Server driver
instead of the SQL Server Native Client driver.) If you already have a
data source defined for the SQL Server database you want to use for the Data
Replicator control tables, select it and click Configure to verify the
properties.
- Specify a name and select which SQL Server you want the data source to
connect to, and click Next to proceed.
- Continue through the remainder of the wizard and click Test Data Source
to ensure the DSN can connect to the specified SQL Server. If you do not see
TESTS COMPLETED SUCCESSFULLY, modify the data source configuration until it
can successfully connect to the server.
Step 6a: (Client-Platform Administrator) Install
the StarQuest Data Replicator Software
Estimated Time: Less than 5 minutes
The StarQuest Data Replicator software is distributed as a
compressed file that you download from the StarQuest Ventures Web site.
- Log on as an Administrator.
- Download SQDR using the download link provided in step 2 and uncompress the file into a temporary directory.
- Run the setup.exe program
from the SQDR installer image.
- Respond to the prompts accordingly to complete the installation.
At the end of the installation, the installer prompts you to start the ODBC Administrator and/or the SQDR Configuration. You do not need to launch the ODBC Administrator, as ODBC DSNs were already created in steps 4b and 5. Select the option to launch the Configuration after the installation completes and proceed to the next step.
Step 6b: (Client-Platform Administrator) Configure
the StarQuest Data Replicator Service
Estimated Time: Less than 5 minutes
You must configure the Data Replicator service to specify which
SQL Server data source to use for the control tables and how the Data
Replicator service should log in to the SQL Server.
- In the first pane of the Configuration Wizard, select the SQL Server
data source that you configured (in step 5) to access SQDR's control database and
enter the SQL Server credentials for a user who is a member of the sysadmin server role.
Click Next to proceed.
| NOTE |
If you receive an error that
the data source cannot be found, launch the ODBC Data Source Administrator
from Control Panel--> Administrative Tools-->Data Sources (ODBC),
double-click the SQL Server System DSN, and review the configuration. At the
configuration summary verify that the Test Connection succeeds. Exit the ODBC
Administrator and return to the SQDR Configuration Wizard. |
- Select the default option Create a new control database and click Next.
- Leave the default database name of ControlDB or enter an alternative name. Leave the schema name field blank, as it will default to "dbo". Click Next.
- Select Automatic as the Service Startup Type and choose the System Account as the Log On As user. If you would like to change the Data Replicator service properties, we recommend doing this in Windows Services once the SQDR configuration has been completed. Choose the correct Service Locale for the local Windows system and click Next.
- Review the configuration summary, choose to start the Data Replicator Service and Manager and click Finish to save
the Data Replicator configuration.
When the Data Replicator Manager launches for the first time, a License Configuration dialog
prompts you to enter your license keys. Keep this dialog open and request the
license keys for all the StarQuest products you want to use, as described in
the next step.
Step 6c: (Client-Platform Administrator task) License the StarQuest Products
Estimated Time: 5 minutes
StarQuest products require a valid set of licenses for evaluation purposes. You can request license keys for
multiple products at once, as described below. If the computer running the StarQuest software has access to the Internet, follow the Online Licensing Instructions below. Otherwise, follow the Alternate Licensing Instructions.
Online Licensing Instructions
- If the SQDR License Configuration utility is not already running, open the StarLicense Configuration utility from Start --> Programs --> StarQuest Data Replicator--> License Configuration.
- Click on the License Online tab. Select a License Lock Type, enter in the Registration Key provided in the download confirmation email from step 2, and click Get License.
When the request successfully completes, the license(s) for the software you are registered to use appear in the License Keys list of the Licenses tab. The Registration Key may produce several License Keys, depending on the products you are registered to use. Subsequent attempts to use the same Registration Key will result in the identical License Key(s) being retrieved.
Alternate Licensing Instructions
- On the computer where the StarQuest software is installed, open the StarLicense Configuration utility from Start --> Programs --> StarQuest Data Replicator --> License Configuration. Record the Host ID displayed on the License Online tab.
- From a computer that has access to the Internet, click on or browse to the following URL:
http://starcust.starquest.com/Registration/index.html#license
- On the StarQuest Online Licensing Form web page, enter in the email address used for the original download request and the Registration Key you received in the download confirmation email.
- Enter the Host ID value recorded previously and select the "Node-locked" license option. Click Next.
- Review the information provided. If any changes are required, click Previous and modify the values as needed. Otherwise, click the Accept button.
- Copy the license key(s) displayed on the web page. You will also receive an e-mail with the license key(s).
- On the computer running the StarQuest software, open the StarLicense Configuration utility from Start --> Programs --> StarQuest Data Replicator --> License Configuration.
- Under the Licenses tab, click the Add button and enter in the license key. Repeat until all of the license keys have been entered.
Step 6d: (Client-Platform Administrator) Start the Data
Replicator Manager and Create a Subscription
Estimated Time: 10 minutes
You use the Data Replicator Manager to set up and administer
replication operations.
- Select Data Replicator Manager from the StarQuest Data Replicator
program group if it is not already running.
- In the License Configuration dialog, verify that you have a license key
entered with a PROD ID of "DR" and click OK. See step 6c if you have not entered license keys for
using the evaluation software.
- Stop and restart the SQDR service in order for the license key to take effect. In the left pane, right-click the Service node for your computer and Stop the service. Right-click again and choose Start.
Define a Source
To define the source data that you want to replicate:
- In
the main Data Replicator Manager window, right-click the Sources folder and
select the Insert
Source command.
- Select
the DSN that connects to the source database that contains the data you want to
replicate, and enter a user ID and password that has permission to access that
database.

- On the Advanced dialog, set the default values for Database and/or Object Schema, as applicable by the database. These values will be used by the SQDR subscription wizard to populate configuration fields. Click OK to create the source.

Define a Destination
Now define the destination that will receive the replicated data.
- Right-click
the Destinations folder and select the Insert Destination command.
- Select
the DSN that connects to the database to which you want to replicate the data,
and enter a user ID and password that has permission to access that database.

- On the Advanced dialog, set the default value for the Database and/or Object Schema. These values will be used by the SQDR subscription wizard to populate configuration fields. Click OK to create the destination.
Create a Subscription
The Replicator Manager provides a Subscription Wizard to help you
define the specific source data and how you want to replicate it.
- Right-click
the Subscriptions folder beneath the source that you added and select the Insert
Subscription command. The Add Subscription Wizard appears.
- In
the Select the Source pane, enter a schema or object name if you want to filter
the source objects list. Click the Refresh button to display the available
source objects in the right pane and select the source object you want to
replicate. Click Next to proceed.

- In
the Select a Destination pane, select the DSN that connects to the destination
you added to the Replicator Manager. Review the Destination Options and
Replication Options, and click Next to proceed.
- In the Select Group pane, optionally select to add the
subscription to an existing group or to a new group. Click Next to continue.
- The
Define Criteria pane allows you to specify a SQL WHERE clause in order to
horizontally partition the data to be replicated. Enter a valid WHERE clause
and click the Verify Criteria button,
or leave the field blank. Click Next to continue.
- The
Define Destination Columns pane allows you to review and change the data type
mappings for the source and destination objects. Modify the destination columns
if desired and click Next.

- Click Next in the Create Table Statement pane. The CREATE TABLE statement will not appear
until the subscription has been saved.
- On
the Define Processing pane, enter optional host commands to be executed before
and/or after the data is replicated. Click Next to continue.
- On
the Indexes/Constraints pane, click Refresh to display any indexes or
constraints defined for the source. Select any that you want to replicate to
the destination and click Next.
- On
the Define Replication Schedule pane, configure a schedule for the subscription
or leave the Scheduled box unchecked. Click Next to continue.
- Enter a name for
the subscription and click Finish.
The subscription is added beneath the Subscriptions folder of the
defined source and to the corresponding group.
Run the Subscription
Right click the newly created subscription and choose Run to start the replication.
Step 6e: (Client-Platform Administrator) Review the
Subscription Status
Estimated Time: less than 5 minutes
- Review
the status of the subscription by highlighting the subscription in the left
pane of the Replicator Manager.

- Double-click
the replication event, indicated by the
icon, to view the
statistics of the replication. If the data did not replicate successfully,
review the error(s) and take the necessary steps to address the problem.

Continuing Your Software Evaluation
This Quick Start Guide is intended to help you install the
StarQuest software and perform a data replication operation as quickly as
possible. Please continue to explore the capabilities of SQDR by adding
additional subscriptions, scheduling replication operations, and performing SQL
operations on data before and/or after it is replicated.
As you use the SQDR software, refer to the product documentation
for more information. The Data Replicator Manager provides an online help
system that provides more information about defining and running replication
operations. Press F1 or click a Help button from the Data Replicator Manager to
display the online help system.
If you encounter any problems while using the evaluation
software, please send an email to StarQuest Customer Support at contact@starquest.com or call (+1) 415-669-9619 for assistance.