Nonstop Database, HiRDB Version 9 System Operation Guide
To move the time back using method 2, follow the procedure described below.
Execute the pdstop command to terminate HiRDB normally.
Take the actions described below. Actions (b) and (c) can be taken in any order. For details about the HiRDB Datareplicator commands, see the HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide.
For details about how to check whether all system logs have been extracted and whether all system logs have been reflected, see Modifying the Configuration of the Source System in the HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide.
Execute the hdestop command to stop the data extraction facility of HiRDB Datareplicator.
Stop the target Datareplicator. If the target Datareplicator is HiRDB Datareplicator, stop it using the hdsstop command.
Execute the pdcat command, redirect the output results, and save them in a file. This step saves the output messages in message log files ($PDDIR/spool/pdlog1,pdlog2) before the time is moved back. If local is specified for the pd_mlg_msg_log_unit operand in a HiRDB parallel server configuration, execute the pdcat command on all units.
If there is no need to reference the messages that were output before the time is moved back, you can skip this step.
Use an OS command to delete the message log files ($PDDIR/spool/pdlog1,pdlog2). If local is specified for the pd_mlg_msg_log_unit operand in a HiRDB parallel server configuration, delete message log files from all units.
Use an OS command to copy the statistics log files ($PDDIR/spool/pdstj1,pdstj2) to a different directory, and use an OS command to delete the statistics log files at the copy source. This step saves the statistics log files before the time is moved back. In the case of a HiRDB parallel server configuration, save the statistics log files of all units.
If there is no need to refer to the statistics log files before the time is moved back, you can skip this step.
Using the pdlogunld command, unload all system log files that are waiting to be unloaded. The system log files unloaded here are used to restore the database to the state it was in before the time was moved back, should an error occur in the database.
In order to manage in different directories the unload log files collected before and after the time is moved back, use an OS command to copy the unload log files unloaded in Step (a) to a different directory, and then use an OS command to delete all unload log files at the copy source.
Move back the time in the OS settings. In the case of a HiRDB parallel server configuration, if the time differs among the individual server machines, tasks such as comparing messages become complicated. Therefore, synchronize the time of the individual servers.
Back up all RDAREAs of the HiRDB system. The backup files acquired here are used for restoring the database to the state it was in after the time was moved back, should an error occur in the database. The backup acquisition procedure is described below.
After the time has been moved back, if you use a system log file acquired before the time was moved back, HiRDB might malfunction. Therefore, initialize the system log file by performing the following procedure:
Since HiRDB might malfunction for any of the following reasons, initialize the synchronization point dump files:
The procedure for initializing the synchronization point dump file is as follows:
Take the actions described below. Actions (a) and (b) can be taken in any order.
To ensure that the data extraction facility of HiRDB Datareplicator functions correctly after the time is moved back, use the hdestart -i command to initialize the data extraction facility of HiRDB Datareplicator.
Since the data extraction facility of HiRDB Datareplicator was initialized in Step (a), also initialize the target Datareplicator. If the target Datareplicator is HiRDB Datareplicator, initialize it using the hdsstart -i -q command.
Use the pdstart command to start HiRDB normally.
Take the actions described below. Actions (b) and (c) can be taken in any order.
Since the data extraction facility of HiRDB Datareplicator was initialized in Step (8), use the hdeprep command to re-create the extraction definition pre-process file.
Use the hdestart command to start the data extraction facility of HiRDB Datareplicator, which was stopped in Step (2) (b).
Start the target Datareplicator, which was stopped in Step (2) (c). If the target Datareplicator is HiRDB Datareplicator, start it using the hdsstart command.
To acquire a log point, execute the database copy utility (pdcopy) with the -z option specified and acquire backups of all RDAREAs. To acquire backups of all RDAREAs in a HiRDB parallel server configuration, you must execute the pdcopy command with the -z option specified on each server.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.