OpenTP1 Version 7 Operation

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

10.2.2 System journal files

Organization of this subsection
(1) During online operation
(2) During restart

(1) During online operation

(a) During write operations

(i) Swap-in file group exists
If an error occurs while a journal is being written into the current file group, the file groups are swapped, and journal data is output to the new current file group. The current file group used before swapping is closed and placed on reserve status.
If application history needs to be retained, the file group that has been placed on reserve status due to the error must be unloaded with the jnlunlfg command.
If the file group cannot be unloaded, the steps described below must be taken. Because the journal cannot be retained in such a case, a backup copy must be made in advance, because DAM FRC or TAM FRC cannot be executed without the journal.
  1. With the jnlrm command, delete the file group that cannot be unloaded.
  2. Re-create the file group with the jnlinit command.
  3. Open the file group with the jnlopnfg command.

(ii) No swap-in file group
If there is no overwritable standby file group that can be used as the swap-in file, OpenTP1 terminates abnormally. The following steps must then be taken:
  1. Unload all file groups on unload wait status with the jnlunlfg command, and provide an overwritable standby file group.
  2. Restart OpenTP1.
If an overwritable standby file group cannot be provided, the definition of a file group with ONL specified must be added to the system journal service definition, and then OpenTP1 must be restarted.
(b) During read operations

If dual system journal files are used, a journal is read from the current file in the A system. If an error occurs while the current file in the A system is being read, the current file is switched to the one in the B system in order to read the journal.

(2) During restart

(a) Recovery of journal output position

If an error occurs when the journal output position is recovered after the file group status has been recovered during restart, OpenTP1 terminates. The cause of the error must be eliminated, based on the reason code displayed with the error message, and then OpenTP1 must be restarted.

(b) Addition of a file group

A new file group can be added to the system journal service definition during full recovery.

(c) Swapping

If jnl_rerun_swap=Y is specified in the system journal service definition, the file groups are swapped after the journal output position has been recovered during restart. Even when Y is not specified, if an error occurs in the file group that is assumed to be the previous current file group during journal output position recovery or if this file group has been unloaded, the file groups are also swapped after the journal output position has been recovered.

(d) Opening a reserve file

If jnl_rerun_reserved_file_open=Y is specified in the system journal service definition and the following two conditions are satisfied, a reserve file is opened automatically: