HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
hdsstop (terminate the target Datareplicator)
The hdsstop command terminates the target Datareplicator.
hdsstop [ -t { event|immediate|force }|-q wait-time ]
[ -w ]
Table 7-14 Relationship between the -t option value and the termination mode
| Option | Termination mode | Termination processing |
|---|---|---|
| Not specified | Normal termination | After executing the hdsstop command, the target Datareplicator terminates when import processing through the source system's activity unit is completed. If the source database is a HiRDB, its activity unit is from normal start to normal termination of the entire source system (for details about the activity unit when the source database is a mainframe database, see the VOS3 XDM/DS manual). Depending on the status of the connection with the source system and the options specified in the hdsstop command, the target Datareplicator might result in normal termination in cases other than the above; for details, see Table 7-15 Conditions of normal termination. |
| -t event | Event termination | After executing the hdsstop command, the target Datareplicator terminates when import processing detects the first event sent from the source system. If the target Datareplicator completes processing through the source system's activity unit before detecting the event, it terminates immediately without waiting for the event. When the table-based import method is being used, import processing terminates when import of the last group is completed. Use this option only for executing planned termination; do not use this option to terminate the target Datareplicator immediately or after importing all information that has been received. |
| -t immediate | Immediate termination | After executing the hdsstop command, the target Datareplicator terminates when it finishes importing the current update information being processed. When the table-based import method is being used, the target Datareplicator terminates the groups beginning with the one whose import processing has advanced the farthest, and then terminates itself when the last group has reached the termination point of the most advanced group. After execution of the hdsstop command, if the target Datareplicator receives new update information before the most advanced group has terminated, reception processing is terminated when the update information is stored in the import information queue file. |
| -t force | Forced termination | After executing the hdsstop command, the target Datareplicator terminates forcibly regardless of the import status of the update information. If synchronization point processing is underway, the target Datareplicator terminates upon completion of the synchronization point processing. Executing forced termination on the target Datareplicator might result in loss of conformity between the source and target databases. If you use the restart mode the next time you start the target Datareplicator, the target database will be restored automatically. |
Table 7-15 Conditions of normal termination
| Status of connection with the source system | Import status | Whether to execute normal termination | |
|---|---|---|---|
| Connected#1 | Import of all received information completed | -- | |
| Import of all received information not completed | #3 | ||
| Not connected | End-of-transmission message received (Normal termination at the source) |
Import of all received information completed | Y |
| Import of all received information not completed | #4 | ||
| End-of-transmission message not received (Forced termination at the source#2) |
Import of all received information completed | Y | |
| Import of all received information not completed | #4 | ||
Table 7-16 Datareplicator's action when the hdsstop or hdsrfctl command is executed more than once
| Second command executed | First command executed | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| hdsstop command with -t option specified | hdsrfctl command with -m option specified | ||||||||
| None | event | immediate | force | trn | tbl | spd | immediate | ||
| hdsstop command with -t option specified | None | F | F | F | F | S | S | S | S |
| event | F | F | F | F | S | S | S | S | |
| immediate | S | S | F | F | S | S | S | S | |
| force | S | S | S | F | S | S | S | S | |
| hdsrfctl command with -m option specified | trn | F | F | F | F | F | F | D | D |
| tbl | F | F | F | F | F | F | D | D | |
| spd | F | F | F | F | S | S | S | F | |
| immediate | F | F | F | F | S | S | S | S | |
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.