Updated: 16 April 2008
Product: StarQuest Data Replicator Plus for iSeries
Version: 3.4 or later
Article ID: SQV00PL001
This Quick Start Guide describes how to install and configure all the software you need, including the StarSQL ODBC driver, to perform incremental replication operations using SQDR and SQDR Plus for iSeries.
This guide is divided into two major parts: the first part focuses on preparing the iSeries host, and the second part describes how to prepare a Windows computer and define and run an SQDR replication operation. The estimated time to complete all tasks is approximately 1.5 hours, as summarized below.
Step 1: Pre-installation Tasks. (estimated time: 15 minutes)
Step 2: Install the SQDR Plus Software. (estimated time: 20 minutes)
Step 3: Verify the Capture Agent is Running. (estimated time: less than 5 minutes)
Step 1: Install the StarSQL ODBC Driver. (estimated time: 5 minutes)
Step 2: License the StarQuest Products. (estimated time: 5 minutes)
Step 3: Create DBMS Data Source. (estimated time: 5 minutes)
Step 4: Start the SQL Server Service. (estimated time: less than 5 minutes)
Step 5: Install and Configure the StarQuest Data Replicator Software. (estimated time: 10 minutes)
Step 6: Start the Data Replicator Manager and Create a Subscription. (estimated time: 10 minutes)
Step 7: Review the Subscription Status. (estimated time: less than 5 minutes)
The following sections guide you through the steps that are summarized in the preceding Abstract. The steps in Part One prepare the iSeries computer and install the SQDR Plus software, and the steps in Part Two are performed on a Windows-based computer that has TCP/IP connectivity to the target iSeries computer.
Before you begin, review the following list to ensure that you have the information and files you need, and that your computer environment provides the minimum requirements. You cannot successfully complete the procedures in Part One or Two until these requirements are met.
C:\>java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode)
If you have any problem installing or using the evaluation software, please send an email to StarQuest Customer Support at contact@starquest.com or call (+1) 415-669-9619 for assistance.
Total Estimated Time to Complete: 40 minutes
Estimated Time: 15 minutes
OS Version |
CUM PTF |
DB2 Group |
Java Group |
Individual PTFs |
V5R2 |
C6080520 (March 2006) |
SF99502-22 (Nov 2005) |
SF99169-24 (Dec 2005) |
5722SS1-SI23370 |
V5R3 |
C6101530 (March 2006) |
SF99503-9 (March 2006) |
SF99269-10 (March 2006) |
5722SS1-SI18139 |
V5R4 |
C6115540 (April 2006) |
SF99504-3 (March 2006) |
SF99291-2 (March 2006) |
5722SS1-SI22551 5722SS1-SI22324 5722SS1-SI22335 † |
V6R1 |
C8064610 |
5761SS1-SI30581 |
||
† Install PTF 5722SS1-SI22335 if you are working with BLOB data. |
||||
To verify that an individual PTF has been installed, use the DSPPTF command, entering the License Program (Product) number and the PTF number to select, as in the following example.
DSPPTF LICPGM(5722SS1) SELECT(SI18139)
View the General Information for the PTF and verify that the PTF status is either Superseded, Temporarily applied, or Permanently applied.
To review the DB2 Group or Java Group PTF packages that are installed, run the WRKPTFGRP command and browse the list of installed PTF Groups.
If you are running V5R3 or later release of OS/400, the WRKPTFGRP command also shows the CUM PTF level. If you are running V5R2, use the DSPPTF LICPGM(5722SS1) command to display all the system PTFs (look for the most recent marker PTF with a name such as TCyyddd), or DSPPTF LICPGM(5722999) to display all microcode PTFs (look for the most recent marker PTF with a name of TLyyddd).
Configuration Parameter |
Sample Value |
Your Value |
SMTP Server: |
mail.mydomain.com |
|
From: |
sqdr@mydomain.com |
|
To: |
sqdradmin@mydomain.com |
|
Notification Level: |
SEVERE |
Estimated Time: 20 minutes
The SQDR Plus installer requires a GUI environment, so it is typically run on a remote system, such as on a computer that is running Windows, MaxOS X, or UNIX with X Windows. The computer from which you run the installer must have TCP/IP connectivity to the target iSeries computer. The instructions and illustrations that follow reflect using a Windows-based computer.
For new installations of SQDR Plus, select to perform the following tasks during installation:
Accept all of the default values in the installer dialogs, except for those values gathered in Step 7 above if you want to configure the email notification feature.
Note that the Capture Agent Maintenance utility allows you to specify which tables in the database are available for replication. During the installation, only enable the checkbox for the Restrict Subscriptions to Published Tables option if the security policy for your AS/400 requires this. This option can be changed at any time after the software is installed.
Estimated Time: less than 5 minutes
After the installation is complete, verify that the Capture Agent is running.
It may take a few minutes to display the status of the Capture Agent, depending upon the availability of resources on the iSeries. You can continue the installation tasks without the Capture Agent running, but you cannot define subscriptions that perform incremental replication operations until the Capture Agent is available.
SQDR Plus for iSeries User’s Guide
Total Estimated Time to Complete: 50 minutes
All of the procedures in this part are performed from a Windows-based computer that has TCP/IP connectivity to the target iSeries computer.
Estimated Time: 5 minutes
For best results with SQDR, StarQuest recommends using the StarSQL ODBC driver for access to DB2. The StarSQL software is distributed as a compressed file that you download from the StarQuest Ventures Web site. See the section “Before You Begin” on page 2 if you have not already downloaded the StarSQL software.
At the end of the installation, a License Configuration dialog prompts you to enter your license key for using StarSQL. You can enter the license keys for all the StarQuest products you want to use, as described in the next step.
Estimated Time: 5 minutes
If you have not already received temporary license keys for the evaluation software, refer to the Download Instructions that were sent via email in response to the software evaluation request. The Download Instructions provide specific instructions for obtaining a license key that allows you to use the software product. You can add the license key for multiple products at once, as described below for adding the StarSQL, SQDR, and SQDR Plus license keys.
Estimated Time: 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 DSN for each host DBMS that you want to replicate to or from. The following steps describe how to create a StarSQL data source with an isolation level of Read Committed, which is the isolation level that is required for performing incremental replication operations with a SQDR Plus host.
Database Server Name |
RDB Name (run the WRKRDBDIRE command on the iSeries and locate the entry name for the remote location of *LOCAL) |
Package Collection Name |
SQDR |
Host Name |
Network name or IP address of the iSeries computer |
Port |
446, unless configured differently on the iSeries |
Catalog Schema |
QSYS2 |
StarSQL Quick Start Guide
StarSQL User’s Guide
StarSQL Online Help
StarSQL Technical Document: How to bind packages with StarAdmin
Estimated Time: less than 5 minutes
The StarQuest Data Replicator requires a control database in which to store definitions for sources, destinations, subscriptions, and groups of subscriptions. If you do not already have a SQL Server installation, you can obtain the Microsoft SQL Server 2000 Desktop Engine (MSDE 2000) or SQL Server 2005 Express Edition free of charge from Microsoft, as further described in the StarQuest Technical Document "Installing SQL Server for a Control Database.”
The SQL Server service must be running for the 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.
NOTE |
The SQL Server 2005 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 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. |
StarQuest Technical Document: Installing SQL Server for a Control Database
Estimated Time: 10 minutes
The StarQuest Data Replicator software is distributed as a compressed file that you download from the StarQuest Ventures Web site. See the section “Before You Begin” if you have not already downloaded the SQDR software.
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.
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. |
Estimated Time: 10 minutes
You use the Data Replicator Manager to set up and administer replication operations.
To define the source data that you want to replicate:


The drop-down menu lists the IP addresses of all active network connections. Usually one of the listed values is best; in the case of multiple subnets use the same subnet as the iSeries host. If NAT is being used and the IP address known to the host is different than the local address, use the "external" address that the iSeries host uses to communicate with the SQDR computer.
Now define the destination that will receive the replicated data.

In this section you create a group in which to place one or more subscriptions that perform incremental replication operations between the specified source and destination.
The option Force Use of RRN causes SQDR Plus to add a Relative Record Number (RRN) to the staging table for tracking changes to the source. The RRN can help ensure the data integrity of tables that do not have unique indexes, or for tables that use unique indexes with columns that contain timestamps or other data types which do not map precisely from the source DBMS to the target DBMS. If the subscription relies upon the RRN and the source table is reorganized or dropped and re-created, the subscription must be run to create a new baseline snapshot of the table. You may not want to use the Force Use of RRN option if your source tables are reorganized frequently and especially if they are extremely large, but you will need to ensure that an appropriate index is selected in the subscription (e.g. one which doe not rely upon a non-uniquely mapped column type) if there is no RRN field to identify the change data.
.
The Replicator Manager provides a Subscription Wizard to help you define the specific source data and how you want to replicate it.



The subscription is added beneath the Subscriptions folder of the defined source and to the corresponding group.
Estimated Time: less than 5 minutes
After you define an incremental replication subscription the Data Replicator runs a baseline snapshot replication that forms the base against which incremental changes are tracked. After the baseline snapshot replication succeeds, the incremental subscription actively monitors the source for changes. This step shows you how to monitor the status of a subscription and a group of incremental subscriptions.



After the baseline snapshot operation completes successfully the incremental subscription is automatically enabled and actively monitoring for changes at the source.
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 Plus by adding additional subscriptions, scheduling replication operations, and performing SQL operations on data before and/or after it is replicated. The product documentation provides detailed information about performing these and many other tasks. Refer to the following documentation as you become familiar with using the SQDR software in your environment.
Please especially be aware of the following operational requirements and suggestions, which are covered more thoroughly in the product documentation, as you proceed with your evaluation:
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.
The information in technical documents comes without any warranty. The author(s) or distributor(s) will not accept responsibility for any damage incurred directly or indirectly through use of the information contained in these documents. The information in technical documents may be gathered from various sources, including IBM, Microsoft, and other organizations.