HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
In designing data linkage from one HiRDB to another HiRDB, the correspondence between the source and target systems depends on whether the source HiRDB is a single server or a parallel server, as shown in Figures 4-15 and 4-16, respectively.
Figure 4-15 Correspondence between the source and target systems in designing data linkage from one HiRDB to another HiRDB: Source HiRDB is a single server
Figure 4-16 Correspondence between the source and target systems in designing data linkage from one HiRDB to another HiRDB: Source HiRDB is a parallel server
This subsection explains the correspondence between the source HiRDB and the source Datareplicator.
Source HiRDB (single server) to source Datareplicator = 1 to 1
There can be only one source Datareplicator per source HiRDB. There can be only one source HiRDB per source Datareplicator.
For one source HiRDB, one source Datareplicator must operate at each server that contains the system manager or a back-end server. A back-end server need not contain a database that is subject to extraction processing.
On the other hand, each source Datareplicator can serve only one source HiRDB.
To establish correspondence between source and target Datareplicators, you must design the items discussed below.
| Variable | UNIX | Windows |
|---|---|---|
| m | 1 to 64# | 1 to 63# |
| n | 1 to 128 | 1 to 63 |
You can send update information from a single source Datareplicator to multiple target Datareplicators. If the HiRDB is a parallel server, you can send update information to multiple target Datareplicators per source Datareplicator at a server containing a back-end server.
On the other hand, a single target Datareplicator can receive update information from multiple source Datareplicators.
If you run multiple target Datareplicators for one target HiRDB, you can receive update information from 128 or more (in Windows, 63 or more) source systems (data linkage identifiers). However, the following problems might occur:
The identifier used by the source Datareplicator to identify the destination of update information is called a target identifier. Specify all target identifiers in the sendidxx or sendidxxxx operand in the extraction system definition and specify a target identifier for transmission of specific update information in the transmission statement in the extraction definition.
You can identify the transmission target by creating a transmission environment definition for each target identifier and specifying the target identifier in the sendhdsid operand in the transmission environment definition. The source Datareplicator can start transmission processing or specify reduced-mode operation for each target identifier.
You must specify the sendidxx or sendidxxxx operands consecutively in ascending order. To add a sendidxx or sendidxxxx operand during operation, you must initialize the source and target environments. To provide for the possibility of a future increase in the number of destinations, specify absent numbers (by specifying ** as the target identifier for each absent number) with the sendidxx or sendidxxxx operand. When you provide absent numbers, you can establish data linkage with a specified target simply by initializing the target (there is no need to initialize the entire environment at the source and target).
The identifier used to establish correspondence between source and target systems for data linkage is called a data linkage identifier. Specify the same data linkage identifier in the source and target systems between which data is to be linked. A specified data linkage identifier must be unique in the target system. For a source Datareplicator, use the dsid operand in the extraction environment definition; for a target Datareplicator, use the dsidxxx operand in the import system definition.
If the source system is HiRDB, specify a data linkage identifier for each extraction unit. An extraction unit is a unit of update information extraction and transmission. When the source HiRDB is a single server, a single source Datareplicator achieves extraction and transmission; in this case, one source Datareplicator is equivalent to one extraction unit. On the other hand, when the source HiRDB is a parallel server, the source Datareplicator for each back-end server achieves extraction and transmission; in this case, the source Datareplicator for each back-end server is equivalent to one extraction unit.
You must specify the dsidxxx operands consecutively in ascending order. To add a dsidxxx operand during operation, you must initialize the source and target environments. To provide for the possibility of a future increase in the number of destinations, specify absent numbers (by specifying ** as the data linkage identifier for each absent number) with the dsidxxx operand. When you provide absent numbers, you can establish data linkage with a specified source simply by initializing the environment of the source to be added (there is no need to initialize the entire environment at the source and target).
The identifier used to identify a source Datareplicator is called a source Datareplicator identifier. Specify the source Datareplicator identifier in the hdeid operand in the extraction system definition.
The identifier used to identify a target Datareplicator is called a target Datareplicator identifier. Specify the target Datareplicator identifier in the hdsid operand in the import system definition.
At the source Datareplicator, use the sendhdsid operand in the transmission environment definition to specify the target Datareplicator identifier at the destination of update information.
To transfer update information between source and target Datareplicators, you must add the name of the communications service in the following services file:
Specify the name of the applicable communications service in the hdeservices operand in the transmission environment definition for the source Datareplicator.
To send update information, you must register the host name in the following hosts file at the source system:
Specify the host name in the hdehost operand in the transmission environment definition.
To establish correspondence between target Datareplicator and target HiRDB, you must design the items discussed below.
Target Datareplicators to target HiRDB = n to 1
There can be only one target HiRDB for each target Datareplicator. On the other hand, there can be multiple target Datareplicators per target HiRDB.
A target Datareplicator issues SQL statements and executes import processing in the form of a UAP that runs on the target HiRDB. Therefore, a HiRDB authorization identifier and password are required in order to establish connection with a target Datareplicator. To specify a HiRDB authorization identifier and password, use the hirdbusr operand in the import system definition. For details about the import system definition, see 5.8 Import system definition.
You can also enter the password from the standard input when the target Datareplicator is started.
The following figure shows an example definition of identifiers when data is linked from one source Datareplicator to two target Datareplicators.
Figure 4-17 Example definition of identifiers
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.