Nonstop Database, HiRDB Version 9 System Operation Guide

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

5.1 Basics

Information needed for a HiRDB restart is stored in status files. This section provides an overview of the status files. The user must understand status files before actually handling them.

Organization of this section
(1) Status of status files
(2) Status of status files during HiRDB startup
(3) Status file status changes
(4) Status file swapping
(5) Commands used to manipulate status files

(1) Status of status files

HiRDB uses the statuses shown in the following table to manage status files.

Table 5-1 Status file statuses

Status Description
Current File is currently being used for output of system status information.
Spare File is not currently being used for output of system status information, but it can be swapped with the current file if the current file becomes unavailable due to an I/O error. This file is in open status.
Reserved File is closed and is not currently subject to output of system status information.
A file is also placed in reserved status when its name has been specified in the HiRDB system definition but no status file has actually been created.
Shutdown File has been shut down due to an error.

(2) Status of status files during HiRDB startup

When HiRDB is started normally, the first status file specified in the following system definition operands becomes the current file; all other status files become spare files:

Notes
  • A file resulting in an open error is placed in reserved status. A file that cannot be opened due to an error is placed in shutdown status.
  • When HiRDB is restarted, the file that was being used as the current file in the previous session is inherited.

(3) Status file status changes

When status files are swapped, the status of the status files changes. Status files are swapped at the following times:

(4) Status file swapping

If an error occurs in either of the file versions, A or B, of the current file, HiRDB copies the contents of the normal file version into a spare file (the same information is contained in both versions A and B of the current file). HiRDB then places the spare file in current status and places in shutdown status the file that was being used as the current file. This processing is called status file swapping. If there is no spare file when HiRDB needs to perform status file swapping, the unit terminates abnormally. The following figure shows status file swapping.

Figure 5-1 Status file swapping

[Figure]

(5) Commands used to manipulate status files

The following table lists the commands that are provided for manipulating status files.

Table 5-2 Commands used to manipulate status files

Command name Description
pdstsinit Initializes a status file.
pdstsopen
  • Opens a status file; also places a reserved file in spare status.
  • Opens an initialized status file.
pdstscls Closes a status file; also places a spare file in reserved status.
pdstsswap Swaps status files and places the former current file in spare status.
pdstsrm Deletes a status file.