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

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

4.7.5 Designing the import processing stop method

You can design the stop method for import processing. The two import processing stop methods are simultaneous stop and independent stop.

The following figure shows the relationship between the import processing stop method and the stop timing.

Figure 4-44 Relationship between the import processing stop method and the stop timing

[Figure]

Organization of this subsection
(1) Simultaneous stop
(2) Independent stop

(1) Simultaneous stop

This method stops both reception and import processing and terminates the target Datareplicator. When the simultaneous stop method is used, the update information that is sent from the source system is not received because reception processing stops. The target Datareplicator's termination timing depends on the termination mode, as described below.

(a) When the termination mode is normal termination

Import processing stops and the target Datareplicator terminates when import processing has been completed through the end of the source system's operation unit that is active when the hdsstop command is executed.

If the source database is a HiRDB, the operation unit is from normal startup to normal termination of the entire target source system. For details about the operation unit when the source database is a HiRDB, see the VOS3 XDM/DS manual.

(b) When the termination mode is event termination

Import processing stops and the target Datareplicator terminates when a specific event sent from the source system is detected after executing the hdsstop -t event command. However, if import processing has been completed through the end of the source system's operation unit before the event is detected, import processing will have already terminated before the event is detected.

If the table-based import method is being used, import processing stops when the last group of import processes is completed among all active import processes. When the source Datareplicator has been terminated by the event termination mode, import processing starts from the previous point of termination the next time the target Datareplicator is started.

(c) When the termination mode is immediate termination

Import processing stops and the target Datareplicator terminates when import of the update information currently being processed is completed after execution of the hdsstop -t immediate command.

If the table-based import method is being used, groups of active import processes stop sequentially beginning with the one furthest along in import processing, and import processing stops when the last group reaches the first group's termination point.

After the command has executed, if new update information is received before the last group of import processing terminates, reception processing stops when the update information is stored in the import information queue file.

(d) When the termination mode is forced termination

Import processing stops and the target Datareplicator terminates immediately when the hdsstop -t force command is executed. If synchronization point processing is underway, import processing stops when the synchronization point processing is completed. When you use the forced termination mode, a loss of conformity might occur between the source and target databases; however, the next time the source Datareplicator starts, the source database will be recovered automatically.

(2) Independent stop

This method stops only import processing, without stopping reception processing. Because reception processing is still underway, update information sent from the source system is stored in the import information queue file. There are two types of independent stop.

(a) Command termination method

This method stops import processing when the hdsrfctl command has executed, and then an event sent from the source system is detected.

(b) Event stop method

This method stops import processing when an import processing stop event sent from the source system is detected.