HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This subsection provides the details of the recovery procedure using unload log files.
The following figure shows the recovery procedure using unload log files.
Figure 9-9 Recovery procedure using unload log files
The following provides the details of the recovery procedure using unload log files.
For the examples of command execution in the Description and example of command execution column, note the following:
Table 9-13 Details of the recovery procedure using unload log files
| Item | Target | Description and example of command execution | Input and output | Check item |
|---|---|---|---|---|
| Step 1: Back up the import error information file | Back-end server subject to error recovery | Save the import error information file because it contains extraction transaction information about the last information that has been imported.
|
-- | -- |
| Step 2: Initialize for extraction | Manager node | Execute initialization for extraction. This includes the action preprocess.
|
-- | -- |
| Step 3: Create a linkage recovery backup file (applicable when the system log information is unloaded to the HiRDB file system)#1 | Back-end server subject to error recovery | Create the linkage recovery backup files in order of generations.
|
|
-- |
| Step 4: Divide the unload log files with the logmrg command#2 | Back-end server subject to error recovery | Execute the logmrg command.
|
|
Make sure that a file named $HDEPATH/ caplogparm_BES-name has been created and its creation date is the same as the logmrg command execution date. |
| Step 5: Specify operands in the recovery information file#3 | Back-end server subject to error recovery | To the file named $HDEPATH/caplogparm_BES-name, add the operands indicating the recovery start location and whether recovery of HiRDB's data linkage-cancelled range is required.
|
|
-- |
| Step 6: Set up the data linkage recovery facility 1 | Node containing the back-end server subject to error recovery | Swap programs for the data linkage recovery facility 1 (transaction retrieval phase).
|
-- | Make sure that the message Setup for <hdecapture_tool1> complete is displayed. |
| Step 7: Execute the data linkage recovery facility 1 | Manager node | Start the source Datareplicator's extraction facility. In this case, make sure that only the extraction facility is started.
|
|
Use the hdestate command to monitor the status until the node containing the back-end server subject to error recovery or the source Datareplicator has terminated. After termination, perform the following procedure:
|
| Step 8: Set up the data linkage recovery facility 2#4, #5 | Node containing the back-end server subject to error recovery | Swap programs for the data linkage recovery facility 2 (extraction queue creation phase).
|
-- | Make sure that the message Setup for <hdecapture_tool2> complete is displayed. |
| Step 9: Execute the data linkage recovery facility 2 | Manager node | Start the source Datareplicator's extraction facility. In this case, make sure that only the extraction facility is started.
|
|
Use the hdestate command to monitor the status until the node containing the back-end server subject to error recovery or the source Datareplicator has terminated. After termination, perform the following procedure:
|
| Step 10: Back up the recovery information file#5 | Back-end server subject to error recovery | Rename the file $HDEPATH/caplogparm_BES-name.
|
-- | This step protects from a malfunction if the user forgets to uninstall the facility. |
| Step 11: Cancel the setup of data linkage recovery facility 2 | Node containing the back-end server subject to error recovery | Execute the unsetup_tool command.
|
-- | Make sure that the message Unsetup for <hdecapture_tool> complete is displayed. |
| Step 12: Initialize for import | Manager node | Initialize for import processing.
|
-- | -- |
| Step 13: Send the extraction data obtained by the data linkage recovery facility | Manager node | Start the source Datareplicator's transmission facility. In this case, make sure that only the transmission facility is started.
|
-- | After starting the transmission facility, use the hdestate command to monitor when the transmission queue file's read offset reaches the write offset. When the read offset has reached the write offset, execute the hdestop command to terminate the source Datareplicator. |
| Step 14: Stop transmission and import processing | Manager node | Terminate the source Datareplicator's transmission process and the import process.
|
-- | -- |
| Operand name | Classifi-cation | Setting | Description | |
|---|---|---|---|---|
| RCVR_START | Earlier than 06-02 | Optional | You can specify a maximum of 4,096 RCVR_START operands.
|
If this operand is omitted, Datareplicator assumes that the beginning of the first unload log file that is read is the start location for error recovery. |
| 06-02 or later | Optional | You can specify a maximum of 4,096 RCVR_START operands.
|
For each target, specify the transmission target identifier subject to error recovery and the extraction transaction information indicating the location of error recovery. If this operand is omitted, Datareplicator assumes that all transmission target identifiers are to be recovered and that the beginning of the input unload log file is the recovery start location. |
|
| RCVR_RPLSTOP | Optional |
|
If the error recovery range includes HiRDB's linkage-cancelled range, specify whether this linkage-cancelled range is to be subject to recovery. When this operand is omitted, N is assumed. |
|
Example (added parameters are underlined)
INPUT = /HiRDBDS/hirdbb/HDE/work/unldlog2_1.unlog,10,UNLDLOG INPUT = /HiRDBDS/hirdbb/HDE/work/unldlog2_2.unlog,10,UNLDLOG INPUT = /HiRDBDS/hirdbb/HDE/work/unldlog2_3.unlog,10,UNLDLOG BLOCKBUF = 22200 RCVR_START = SND01,3BA6E5800000000000000015 RCVR_RPLSTOP = Y |
| Output information | Description | Action |
|---|---|---|
| N.G (start nothing) | The unload log information contains data that is missing the start of a transaction. | Add the immediately preceding generation of unload log file, and then re-execute the procedure starting with step 3. During re-execution, either delete the file named res_file_BES-name or save the file under a different name. |
| N.G (end nothing) | The unload log information contains data that is missing the end of a transaction. | Make sure that referencing shutdown is in effect on all RDAREAs that contain the source table.
|
| N.G (rplstop found) N.G (start nothing,rplstop) N.G (end nothing,rplstop) |
There is a transaction within HiRDB's data linkage-cancelled range. | This output information means that HiRDB's data linkage-cancelled range is not subject to recovery. If there is no problem excluding HiRDB's data linkage-cancelled range from recovery processing, ignore this message and resume the subsequent recovery procedure. To include HiRDB's data linkage-cancelled range in the recovery processing, specify RCVR_RPLSTOP=Y, and then re-execute the procedure starting with step 6. |
If any errors occur during data linkage recovery via unload log files, Datareplicator outputs the KFRB05009-E message to the error information file for all errors related to data linkage recovery via unload log files. Identify the nature of any error based on the information that is displayed in the function: section of the message. The following table explains the function: section.
Table 9-14 Contents of the function: section in the KFRB05009-E message
| Information in the function: section | Description | Action |
|---|---|---|
| analyze error | An analysis error occurred in the $HDEPATH/caplogparm_BES-name file. | Check to see if there is a file named $HDEPATH/caplogparm_BES-name. If there is no such file, re-execute the procedure starting with step 3. If the file exists, the operand added to the corresponding file is invalid. Correct the operand, and then re-execute the procedure starting with step 7.# |
| env open_error | An open error occurred in the environment variable definition file (hde_toolenv). | Check to see if the environment variable definition file has been created under $HDEPATH. If the file has not been created, create it, and then re-execute the procedure starting with step 7.# |
| inttrn error | Initialization of the recovery tool resulted in an error. | This error occurs only when there is not enough memory. Terminate another program to increase the available memory, and then re-execute the procedure starting with step 7.# |
| open_error | An open error occurred in an unload log segment file. | The unload log segment files might not have been created correctly by the logmrg command. Re-execute the procedure starting with step 3.# |
| read_error | A read error occurred in an unload log segment file. | The unload log segment files might not have been created correctly by the logmrg command. Re-execute the procedure starting with step 3.# |
| trnout error | An output error occurred in the transactions list. | A space shortage might have occurred in the output target directory for the transactions list. Change the output target directory, and then re-execute the procedure starting with step 7.# |
| trnget error | An input error occurred in the transactions list. | The transactions list has not been created correctly. Execute step 11#, and then re-execute the procedure starting with step 6.# |
| blk_invalid | An invalid log block was detected in the unload log file. | This is an internal conflict error. Contact the developer. |
| start point err | Specified extraction transaction information is invalid. | Invalid extraction transaction information was specified in the RCVR_START operand, or some required unload log files were not specified for input. If the specified extraction transaction information is invalid, correct it, and then re-execute the procedure starting with step 7;# if required unload log files are missing, add the files, and then re-execute the procedure starting with step 3.# |
| seq_invalid | The order of log blocks is invalid in the unload log files | The order of the unload log files or linkage recovery backup files specified during execution of the logmrg command might be invalid (not sorted in ascending order of the log output date). Check the order of the input unload log files or linkage recovery backup files, and then re-execute the procedure starting with step 3.# |
| param len error | Length of the directory path name specified in the TOOL_OUTPUT_DIR environment variable is invalid. | Correct the value, and then re-execute the procedure starting with step 7.# |
| remain trnentry | The number of transactions in the transactions list created by the data linkage recovery facility 1 does not match the number of transactions recovered by the data linkage recovery facility 2. | This is an internal conflict error. Contact the developer. |
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.