Scalable Database Server, HiRDB Version 8 Installation and Design Guide
When storing data in a table using the database load utility (pdload), you can specify a database update log acquisition mode. Use the database load utility's (pdload) -l option to specify a desired database update log acquisition mode.
There are three different database update log acquisition modes:
For details about the functionality of these modes, see the manual HiRDB Version 8 System Operation Guide.
If you are storing data in a user LOB RDAREA, use the CREATE TABLE's RECOVERY operand to specify the database update log acquisition mode.
The database update log acquisition mode for user LOB RDAREAs (RECOVERY operand of CREATE TABLE) may depend on the -l option value in pdload, as shown in Table 6-1.
Table 6-1 Database update log acquisition mode for user LOB RDAREAs depending on the -l option value in pdload
| Value specified for -l option in pdload | RECOVERY operand value in CREATE TABLE | ||
|---|---|---|---|
| ALL | PARTIAL | NO | |
| a (equivalent to ALL) | ALL | PARTIAL | NO |
| p (equivalent to PARTIAL) | PARTIAL* | PARTIAL* | NO |
| n (equivalent to NO) | NO | NO | NO |
For example, if PARTIAL is specified in the RECOVERY operand of CREATE TABLE and the log acquisition method is NO in pdload, then NO (no-log mode) is set for the user LOB RDAREAs.
In general, the pre-update log acquisition mode, which is the default mode, should be selected. However, selection of another mode should be considered under the following conditions:
| Condition | Mode to be selected |
|---|---|
| For initial storage, only the target table (or index) for data storage is stored in the RDAREA. | No-log mode |
| There is large volume of input data, and data storage will take a long time. | |
| There is only a small amount of input data. | Log acquisition mode |
Depending on the mode that is selected, there are differences in the operating procedure during data storage, as shown in Figure 6-2.
Figure 6-2 Differences in operating procedure based on the database update log acquisition mode (data storage)
If data storage is executed in the no-log mode, a backup must have been made prior to execution of data storage. However, if either condition 1 or 2 in the following table is satisfied, it becomes unnecessary to make a backup, because the RDAREA can be returned to its status before execution of data storage even if the pdload command terminated abnormally:
| No. | Condition | RDAREA recovery method in the event of an error | |
|---|---|---|---|
| 1 | Initial storage | When only the targeted data storage table and indexes of that table are stored in the target data storage RDAREA | If the target data storage RDAREA is reinitialized with the database reconfiguration utility (pdmod command), then once data storage is re-executed the RDAREA can be recovered. |
| Data storage executed in the creation mode | |||
| 2 | There exists in the RDAREA targeted for data storage at least one table (index) other than the table (index) targeted for data storage. | When the RDAREA can be recovered to its status before data storage by using a backup and the system log | The RDAREA can be recovered if you use the pdclose command to close the target data storage RDAREA, use the pdlogswap command to swap system log files, and then use the current system log file as input to the database recovery utility (pdrstr command). |
| Data storage executed in the addition mode | |||
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.