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

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

6.8.2 Changing the configuration of the source system

This subsection explains the initialization procedure to be used when the configuration of the source system is changed. If you are changing the configurations of both source and target systems, also use the procedure described here to initialize the Datareplicator.

The following figure shows the initialization procedure.

Figure 6-25 Procedure for changing the configuration of the source system

[Figure]

Note:
You must start the source and target databases to perform the steps beginning with step 5.

The procedure for changing the configuration of the source system shown in the figure is explained below. The numbers correspond to the numbers in the figure.

  1. Terminate the applications that update the source database.
  2. Verify that all update information has been imported to the target database.
    No. Task Execution command Check item
    1 Verify that all processes are running at the source Datareplicator.
    If there is any inactive process, restart it.
    hdestate Verify that Status in the displayed results is not any of the following:#1
    • init
    • hold
    • not active
    • not active (error)
    2 Verify that all processes are running at the target Datareplicator.
    If there is any inactive process, restart it.
    hdsstate Verify that PID in the displayed results is not -1.#2
    3 Output the contents of all system logs to the system log file. pdlogsync -d sys#3 Verify that the KFPS02183-I message has been output to the syslog file (event log in Windows).
    4 Verify that all update information has been extracted. pdls -d rpl -j Check the information in the displayed results.#4
    5 Verify that all update information has been transmitted. hdestate Verify that current used ratio in the displayed results is 0%. Alternatively, verify that Queue write position and Queue read position in the displayed results indicate the same position.
    6 Verify that all update information has been imported. hdsstate Verify that current used ratio in the displayed results is 0%. Alternatively, verify that Queue write position and Queue read position in the displayed results indicate the same position.
    #1
    For a back-end server that is not subject to extraction, not active is displayed in Status.
    #2
    If sendmst is specified in the sendcontrol operand in the extraction system definition, -1 might be displayed in PID:hdstcpmst in COMMUNICATION INFORMATION.
    #3
    For a HiRDB/Parallel Server, specify the server name in the -s option. If there are multiple back-end servers, execute the command for each and every back-end server that contains a table subject to extraction.
    #4
    As shown in the example below, verify that (1) is larger than (2) in the displayed results.
    [Figure]
  3. Terminate the source and target Datareplicators.
    No. Task Execution command Check item
    1 Terminate the source Datareplicator. hdestop --
    2 Verify that the source Datareplicator has been terminated. hdestate Verify that the KFRB04411-E message has been output to the standard error output.
    3 Terminate the target Datareplicator. hdsstop --
    4 Verify that the target Datareplicator has been terminated. hdsstate Verify that the KFRB04302-E message has been output to the standard error output.
    Legend:
    --: Not applicable
  4. Change the system configuration.
  5. Initialize the source and target Datareplicators.
    No. Task Execution command Check item
    1 Stop 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 the 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).
    #
    If necessary, specify options.
  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.
    #
    If necessary, specify options.