Nonstop Database, HiRDB Version 9 System Operation Guide
HiRDB collects in a system log file historical information on database updating by UAPs and utilities#. The user can specify that such a database update log not be collected. Processing time is reduced when a database update log is not collected, thereby reducing the UAP or utility execution time.
Three database update log acquisition modes are available during UAP or utility execution:
The following table lists the database update log acquisition modes.
Table 7-1 Database update log acquisition modes
Condition | Specification of database update log acquisition mode |
---|---|
UAP | Specify the database update log acquisition mode in the PDDBLOG operand of the client environment definition. The log acquisition mode or the no-log mode can be specified; the pre-update log acquisition mode cannot be specified. |
Database load utility | Specify the database update log acquisition mode in the -l option of the database load utility. |
Database reorganization utility | Specify the database update log acquisition mode in the -l option of the database reorganization utility. |
Rebalancing utility | Specify the database update log acquisition mode in the -l option of the rebalancing utility. The log acquisition mode or the no-log mode can be specified; the pre-update log acquisition mode cannot be specified. |
User LOB RDAREA being used | For the data stored in a user LOB RDAREA, specify the database update log acquisition mode in the RECOVERY operand of CREATE TABLE. |
The database update log acquisition mode specified with the RECOVERY operand might be changed by the specification of the PDDBLOG operand or the -l option. The following table shows the relationship between the RECOVERY operand and the PDDBLOG operand or -l option.
Table 7-2 Relationship between the RECOVERY operand and the PDDBLOG operand or -l option
PDDBLOG operand or -l option specification | RECOVERY operand specification | Value assumed during UAP (or utility) execution |
---|---|---|
ALL a (Log acquisition mode) |
ALL | ALL |
PARTIAL | PARTIAL | |
NO | NO | |
p (Pre-update log acquisition mode)# |
ALL | PARTIAL |
PARTIAL | PARTIAL | |
NO | NO | |
NO n (No-log mode) |
ALL | NO |
PARTIAL | NO | |
NO | NO |
ALL or a: Log acquisition mode
PARTIAL or p: Pre-update log acquisition mode
NO or n: No-log mode
#: The pre-update log acquisition mode cannot be specified with the PDDBLOG operand.
The database update log acquisition mode that is used determines how the following operations are performed:
The following table describes the HiRDB processing and administrator actions when a UAP or utility terminates abnormally.
Table 7-3 HiRDB processing and administrator actions when a UAP or utility terminates abnormally
Database update log acquisition mode | HiRDB processing | User's action |
---|---|---|
Log acquisition mode | Rolls back any updated RDAREA to its status before the UAP executed or to its status immediately before the abnormal termination. | If the RDAREA was rolled back to its status before the UAP executed, re-execute the UAP. If it was rolled back to its status immediately before the abnormal termination, re-execute the processing subsequent to the synchronization point. |
Pre-update log acquisition mode | ||
No-log mode | Does not perform rollback. Places any updated RDAREA in error shutdown status (logless hold). The contents of the RDAREA are damaged. | Use the database recovery utility to restore the RDAREA from a backup made before the UAP executed, and then re-execute the UAP. |
The following table shows the point to which the database can be recovered by the database recovery utility.
Table 7-4 Database recovery point
Database update log acquisition mode | Database recovery point |
---|---|
Log acquisition mode | Backup acquisition point or any synchronization point subsequent to the backup acquisition point |
Pre-update log acquisition mode | Backup acquisition point |
No-log mode |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.