Nonstop Database, HiRDB Version 9 System Operation Guide
The following three update log acquisition modes are provided for reorganizing a database when the database reorganization utility is executed:
For details about the applicability of these modes, see 7.1 Database update log acquisition modes.
In most cases, select the default mode, which is the pre-update log acquisition mode. Consider using another mode only under the following conditions:
Condition | Mode to select |
---|---|
There is a large amount of data to be reorganized, and it will take a long time. | No-log mode |
There is very little table data to be reorganized. | Log acquisition mode |
The manner in which database reorganization is performed depends on the mode that is selected, as the following figure shows.
Figure 13-6 Differences in how tables are reorganized depending on the database update log acquisition mode
Normally in the no-log mode, a backup must be made before the pdrorg command is executed. However, if either of the conditions described in 1 and 2 below is satisfied, it is not necessary to make the backup because the RDAREAs can be recovered to their status at the time the pdrorg command executed even if the command terminates abnormally. We do recommend, however, that in general you make a backup, because recovering RDAREAs is simpler if a backup is available.
No. | Condition | How to recover the RDAREAs if an error occurs | |
---|---|---|---|
1 | Unload data can be used to recover the RDAREAs to their status at the time the pdrorg command was executed. | If the RDAREAs contain only the table to be reorganized and its indexes. | Recover with the database reorganization utility (pdmod command) in order to re-initialize the RDAREAs that are being reorganized, and then reload the data. |
If all of the following conditions are satisfied:
|
Recover with the database reorganization utility (pdmod command) in order to re-initialize the RDAREAs that are being reorganized, and then specify the -j option. | ||
2 | The backup and the system logs can be used to recover the RDAREAs to their status at the time the pdrorg command was executed. | Recover with the pdclose command in order to close the RDAREAs that are being reorganized, the pdlogswap command to swap the system log files, and then the database recovery utility (pdrstr command) to input the system logs output up to this point. |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.