HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide

[Contents][Glossary][Index][Back][Next]

hdsstart (start the target Datareplicator)

Function

The hdsstart command starts the target Datareplicator in accordance with its import system definition. For details about the import system definition, see 5.8 Import system definition.

Format
hdsstart [ -i [ init ][ -D data-linkage-identifier-number ][ -f ][ -q ][ -r ]]
          | -c synchronous-import-group-name

Options

-i
Specify this option to first initialize the target Datareplicator environment, and then start the target Datareplicator (initial start).
An error results if, when the -f option is omitted, there is still an import environment subject to initialization, and the import information queue file for that import environment contains update information that has not yet been imported.
When the -D option is specified, Datareplicator initializes only the import environment for the specified source, and then starts the target Datareplicator. When the -D option is omitted, Datareplicator initializes the following files specified in the import system definition or import environment definition, initializes the entire target Datareplicator environment, and then starts the target Datareplicator (when the -D option is specified, Datareplicator initializes only those files that correspond to the specified source's data linkage identifier):
  • Import information queue files
  • Import status files
  • Import master status file
  • Import error information files
  • Import trace files
  • Unimported information files

init
Specify this option to create all import information queue files and import status files specified in the import environment definitions based on the sizes specified in the queuesize and statssize operands, respectively.
When you execute the hdsstart command with init specified, the initialization processing takes more time than when only the -i option is specified. This amount of time depends on the file sizes and the number of files to be created.
If this option is specified when large files are used, the command might take a long time to execute. For details, see 6.11.2 Estimating the command execution time when large files are used.
When the -D option is specified, the Datareplicator creates only those files that correspond to the specified source's data linkage identifier.

-D data-linkage-identifier-number
Initializes the import environment for the specified source only (partial initialization). Datareplicator executes normal startup on the import environments corresponding to sources that are not specified. If an error occurs during initial start processing, Datareplicator cancels the processing, in which case the target Datareplicator does not start.
Specify the source identifier number, which is the numeric digits in xxx of the data linkage identifier specified in the import system definition (dsidxxx). The specified data linkage identifier number must have been defined when the most recent initial start was executed. You cannot specify a newly added data linkage identifier number. The partial initialization specified in this operand is applicable to import environment definitions specified with dsidxxx and refenvxxx operands in the import system definition and the import definitions specified with reffile in the import environment definitions.
Datareplicator handles any changes to a definition other than partial initialization in the same manner as a normal start.
Datareplicator handles any change to a definition other than partial initialization in the same manner as a normal start.
Do not change a definition other than the data linkage identifier that is subject to partial initialization. To perform partial initialization on multiple data linkage identifiers, first change the definition of a data linkage identifier, and then perform partial initialization; then, repeat this procedure for each additional data linkage identifier.

-f
Executes an initial start forcibly, regardless of whether the import information queue file contains unimported update information. If the import information queue file contains unimported update information, that information will be discarded during the initial start. Therefore, when you specify this option to perform an initial start, check first to determine whether there is any unimported update information that will be needed.
Specify this option if any of the following is true:
[Figure] Datareplicator was terminated forcibly by the hdsstop -t force command.
[Figure] Datareplicator is to be initialized for the first time after the import information queue file and the import status file were created using character special files (there is no need to specify this option for a subsequent initialization).
[Figure] The status file specified in the statsfile operand in the import environment definition is to be renamed and a file with the new status file name already exists.

-q
Terminates the target Datareplicator after initial start or partial initial start without starting it.

-r
Resets the import processing count when the target Datareplicator starts.
This option is applicable when false is specified in the reflect_counter_reset operand in the import system definition.

-c synchronous-import-group-name
Cancels synchronous import of the specified synchronous import group and starts the target Datareplicator normally. You use this option when an import transaction cannot be committed due to failure of the hdeevent command to execute, or due to a shortage of target database resources.
Import processing can be executed later for each of the data linkage identifiers constituting the cancelled synchronous import group. Additionally, the operand that was disabled by specification of the synchronous import group is now enabled.
Once a synchronous import group is cancelled, it cannot be reorganized again until Datareplicator is initialized. If the specified synchronous import group name is undefined or has already been cancelled, the target Datareplicator results in an error during the normal start.

Rules

Notes
  1. Executes partial initial start for data linkage identifier number 001 (data linkage identifier 01).
  2. Executes partial initial start for data linkage identifier number 002 (data linkage identifier A2) after modifying the definition.
  3. Executes partial initial start for data linkage identifier number 003 (data linkage identifier **), which became an absent number after the definition was modified.
  4. Executes partial initial start for data linkage identifier number 004 (data linkage identifier A4), which has been newly defined.
  5. Results in a command error because data linkage identifier number 005 (data linkage identifier A5), which was added by modifying the definition, had not been defined at the time of the initial start.
  6. Results in a command error because data linkage identifier number 004 (data linkage identifier A4) was modified, which is not the specified data linkage identifier number (data linkage identifier A2).
    To execute partial initial start for more than one data linkage identifier, modify the definition and specify the -q option for one data linkage identifier at a time, and then execute partial initial start. After all partial initializations have been completed, execute normal start. The following is an example of the execution procedure:

    [Figure]

  1. Check that the target Datareplicator is stopped.
  2. Use a text editor to modify the definitions.
  3. Specify the data linkage identifier number subject to initialization in the hdsstart -i -D command in order to execute partial initial start.