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

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

9.4.2 Datareplicator initialization procedure during error recovery

This subsection explains how to initialize the Datareplicators if an inconsistency occurs between the source and target databases.

The following figure shows the procedure.

Figure 9-2 Initialization procedure during error recovery

[Figure]

Notes:
  • Steps 1, 2, and 3 can be performed in any order.
  • You must start the source and target databases to perform the steps 4 through 6.

The initialization procedure during error recovery that is shown in the figure is explained below. The numbers in the explanation below correspond to the numbers in the figure.

  1. Terminate the source and target Datareplicators.
    No. Task Execution command Check item
    1 Stop the source Datareplicator. hdestop --
    2 Verify that the source Datareplicator has terminated. hdestate Verify that the KFRB04411-E message has been output to the standard error.
    3 Terminate the target Datareplicator. hdsstop --
    4 Verify that the target Datareplicator has terminated. hdsstate Verify that the KFRB04302-E message has been output to the standard error.
    Legend:
    --: Not applicable
  2. Eliminate the cause of the error.
  3. Terminate updating applications for the source database and updating and referencing applications for the target database.
  4. Synchronize data in the source and target databases.
    Use a program such as HiRDB Datareplicator to copy data from the source tables to the target tables (initial data creation) in the batch mode to synchronize data in the source and target databases.
  5. Initialize the source and target Datareplicators.
    No. Task Execution command Check item
    1 Terminate data linkage with HiRDB. pdrplstop -f Verify that the KFPS05141-I message has been output to the standard output.
    2 Initialize the source Datareplicator. hdestart -i
    (Enter Y in the response message)
    Verify that the KFRB00504-I message has been output to msterrfile1 or msterrfile2.
    3 Create an extraction definition preprocessing file. hdeprep -f extraction-definition-file# Verify that the KFRB04500-I message has been output to the standard output.
    4 Start data linkage with HiRDB. pdrplstart Verify that the KFPS05140-I message has been output to the standard output.
    5 Initialize the target Datareplicator. hdsstart -i -q# Verify that the KFRB04216-I message has been output to the standard output (Event Viewer in Windows).
    #
    Specify options as necessary.
  6. Start the source and target Datareplicators.
    No. Task Execution command Check item
    1 Start the target Datareplicator. hdsstart# Verify that the KFRB00100-I message has been output to errfile1 or errfile2.
    2 Start the source Datareplicator. hdestart# Verify that the KFRB00502-I message has been output to msterrfile1 or msterrfile2.
    #
    Specify options as necessary.