Nonstop Database, HiRDB Version 9 System Operation Guide
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.
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. |
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:
When status files are swapped, the status of the status files changes. Status files are swapped at the following times:
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
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 |
|
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. |
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.