Nonstop Database, HiRDB Version 9 System Operation Guide

[Contents][Index][Back][Next]

6.8.2 Operation of the frozen update command (pddbfrz command)

When the frozen update command is executed, all HiRDB files with full data pages (completely allocated pages) in the user LOB RDAREA are placed in frozen update status. Data in HiRDB files that are in frozen update status cannot be updated or deleted. The following figure provides an overview of frozen update command processing.

Figure 6-4 Overview of frozen update command processing

[Figure]

Explanation
  • The user LOB RDAREA consists of HiRDB files 1-4. Files 2 and 3 have full data pages. For details about checking for HiRDB files with full data pages, see 6.8.4 Checking for files with full data pages.
  • When the frozen update command is executed for this user LOB RDAREA, HiRDB files 2 and 3 are placed in frozen update status. HiRDB files placed in frozen update status are displayed in the KFPH27024-I message.
  • HiRDB files 1 and 4 are in permit update status.
Organization of this subsection
(1) Using the frozen update command in order to make backups
(2) Procedure for making a backup
(3) Releasing frozen update status
(4) Checking for HiRDB files in frozen update status
(5) HiRDB files that cannot be placed in frozen update status

(1) Using the frozen update command in order to make backups

The following figure shows how to use the frozen update command to make backups.

Figure 6-5 Using the frozen update command in order to make backups

[Figure]

Explanation
The frozen update command is executed before making backups, thereby placing HiRDB files 2 and 3 in frozen update status.
  1. Back up all HiRDB files (HiRDB files 1-4) when the first backup is made.
  2. Because HiRDB files 2 and 3 are in frozen update status, their contents will not change after that first backup is made. Thus, it will not be necessary to back up HiRDB files 2 and 3 when the next backup is made; only HiRDB files 1 and 4 will need to be backed up.

Remarks
Because the lead HiRDB file (HiRDB file 1 in Figure 6-5) contains management records, write transactions always occur in it even if its data portion is full. Consequently, the lead HiRDB file is never placed in frozen update status and must always be backed up.

(2) Procedure for making a backup

The procedure for making a backup is described below. For an operation example, see 6.8.3 Operation example.

Procedure
  1. Use the frozen update command to place the HiRDB files with full data pages in frozen update status.
  2. Use the KFPH27024-I message or the database condition analysis utility (pddbst command) to check the HiRDB files that are in frozen update status.
  3. Make a backup. Include all HiRDB files in the first backup. In the second and subsequent backups, include only the HiRDB files that are in permit update status; it will not be necessary to include the HiRDB files that are in frozen update status.

(3) Releasing frozen update status

To release a HiRDB file from frozen update status, execute the pddbfrz -d command.

Reinitializing RDAREAs also releases frozen update status.

(4) Checking for HiRDB files in frozen update status

Execute the database condition analysis utility (the pddbst command) to check which HiRDB files are in frozen update status.

(5) HiRDB files that cannot be placed in frozen update status

The following HiRDB files cannot be placed in frozen update status:

#: In the case of user LOB RDAREAs used by data type plug-ins, HiRDB files with logical files used by plug-ins cannot be placed in frozen update status. A logical file is normally found only in the lead HiRDB file, but when expansion of the logical files occurs, a logical file might be found in a HiRDB file other than the lead file. Therefore, if you are using data type plug-ins, you should estimate the size for the lead HiRDB file so that it can store logical files for plug-ins created by CREATE TABLE.