If an error occurs during updating to the HiRDB update version, the pdprgrenew command returns automatically to the pre-update HiRDB and starts HiRDB operation. If this command outputs the KFPS04646-I message with return code 12 and then terminates, it means that the operation to return to the pre-update HiRDB failed. In such a case, refer to the preparation error that is output or to the error messages and KFPS04647-I message output to the event log for guidance on what to do next.
The following figure shows how to handle errors that might occur during updating to the HiRDB update version.
Figure 1-5 Handling errors during updating to the HiRDB update version
![[Figure]](figure/zu010045.gif)
- Correct whatever caused the error in the pdprgrenew command, and then re-execute the pdprgrenew command.
- If there is a HiRDB server process, forcibly stop HiRDB with the pdstop -f command, and then execute the pdprgrenew -b command. If there is no HiRDB server process, execute the pdprgrenew -b command. When the pdprgrenew -b command is executed, recovery processing restarts the pre-update HiRDB.
Error messages and abort codes relating to a HiRDB shutdown processing failure may also be displayed. Follow the message handling procedure, and check that HiRDB has returned to the pre-update environment.
- If there is a HiRDB server process, forcibly stop HiRDB with the pdstop -f command, and then execute the pdprgrenew -b command. If there is no HiRDB server process, execute the pdprgrenew -b command. When the pdprgrenew -b command is executed, recovery processing returns to the directory for updating the HiRDB update version.
Error messages and abort codes relating to a HiRDB startup processing failure may also be displayed. If after updating to the HiRDB update version there are problems with the operating environment, follow the procedure for the displayed message.
If updating to the HiRDB update version failed, you can check whether HiRDB returned to its pre-update status by checking the following items. If these conditions are satisfied, HiRDB returned to the pre-update status.
- The version displayed by the pdadmvr -s command matches the HiRDB version before the update.
- The HiRDB is in online status (the result of the pdls command is that all units are displayed as ACTIVE).
- There is no backup directory (%PDDIR%\renew_bak).