OpenTP1 Version 7 Operation

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

10.2.6 DAM file

Organization of this subsection
(1) DAM FRC procedure
(2) DAM FRC suspended by an error, etc.

(1) DAM FRC procedure

If an error occurs in a DAM file, an error message is displayed, and the DAM file is shut down. DAM FRC must then be executed by the following procedure:

DAM FRC can only be executed for files to be recovered. DAM FRC is invalid for files not to be recovered because they collect no update information in journals.

  1. Execute the damrm command to remove the logical file of the erroneous file from OpenTP1.
  2. Execute the jnlswpfg and jnlunlfg commands to obtain the journal required for DAM file recovery.
  3. With the damrstr command, restore the backup file acquired before startup of online operation or during online operation to place it on the status valid before startup of online operation or during online backup operation. Either the erroneous physical file must be deleted by the damdel command, or the physical file must be allocated in a different partition from the one resulting in the error. The name of the physical file need not be the same as was used during online operation.
  4. Define the DAM file to be recovered in the recovery object definition file. The recovery object definition file is created with the OS text editor in the following format:
    [[Figure]] DAM-file-logical-file-name[Figure]DAM-file-physical-file-name [[Figure]] (linefeed)
    [DAM-file-logical-file-name[Figure]DAM-file-physical-file-name] [[Figure]](linefeed)
             :                     :
    [DAM-file-logical-file-name[Figure]DAM-file-physical-file-name] [[Figure]](linefeed)
    The physical file to be specified is a backup file that has been restored. The user can specify either an online or offline backed-up file that has been restored. Online and offline backed-up files cannot coexist.
  5. Execute DAM FRC with the damfrc command.
  6. Execute the damadd command to add and catalog the recovered DAM file into OpenTP1 again.
  7. Execute the damrles command to release the shutdown status of the logical file. Once the logical file is released from shutdown status, the DAM file recovered from the error becomes accessible by transactions.

(2) DAM FRC suspended by an error, etc.

If DAM FRC using multiple unload journal files is suspended because of an error, etc., the damfrc command must be reexecuted. OpenTP1 will reference the inheritance file and execute DAM FRC using the unload journal files that have already been processed. If the -s option is specified, the inheritance file is not referenced; it must therefore not be specified. If there is no processed unload journal file, processing will be suspended due to the invalid journal file. In such a case, the damfrc command with the -s option specified must be executed.