OpenTP1 Version 7 Operation

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

10.2.7 TAM file

Organization of this subsection
(1) TAM FRC procedure
(2) TAM FRC suspended by an error, etc.
(3) I/O failure continuation table in use

(1) TAM FRC procedure

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

  1. Execute the tamrm command to remove the TAM table corresponding to the erroneous TAM file from OpenTP1.
  2. Execute the jnlswpfg and jnlunlfg commands to obtain the journal required for TAM file recovery.
  3. Use the tamrstr command to restore the backup file that was collected before or during online operation, and recover the TAM file to its status before online operation was started or during execution of online backup. Either the erroneous TAM file must be deleted by the tamdel command, or the TAM file must be allocated in a different partition from the one resulting in the error. The name of the TAM file need not be the same as was used during online operation.
  4. Execute TAM FRC with the tamfrc command.
  5. Execute the tamadd command to add and catalog the recovered TAM file to OpenTP1 again.
  6. Execute the tamrles command to release the shutdown status of the TAM table. Once the TAM table is released from shutdown status, the TAM file recovered from the error becomes accessible by transactions.

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

If TAM FRC using multiple unload journal files is suspended because of an error, etc., the tamfrc command must be reexecuted. OpenTP1 will reference the inheritance file and execute TAM 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 tamfrc command with the -s option specified must be executed.

(3) I/O failure continuation table in use

(a) Recovery after abnormal online termination

If online operation terminates abnormally during updating using an I/O failure continuation table, the appropriate TAM file can be recovered by taking the following procedure:

  1. Execute the tamrstr command to restore a backup file of the applicable TAM file.
  2. Execute the jnlunlfg command to unload the journals from backup acquisition to abnormal online termination.
  3. Execute the tamfrc command for the specified unloaded-journals file and restored TAM file.
  4. Execute the tamadd command with the recovered TAM file specified to add and catalog the TAM table to the online system.
  5. Execute the tamrles command to release the TAM table from its shutdown status.
(b) Recovery during online operation

During updating using an I/O failure continuation table, the appropriate TAM file can be recovered by taking the following procedure:

  1. Execute the tamhold command to logically shut down the appropriate TAM table at termination of access to the I/O failure continuation table.
  2. Execute the tamrm command to remove the TAM table from the online system. Or else, execute the tambkup command with its -o option specified to back up the TAM file in online mode and then the tamrm command to remove it from the online system.
  3. Execute the tamrstr command to restore the backup file of the TAM file.
  4. Execute the jnlunlfg command to unload the journals from backup acquisition to abnormal online termination. This is not necessary if the tamunlfg command with its -o option specified was executed in step 2. above.
  5. Execute the tamfrc command for the specified unloaded-journals file and restored TAM file. This is not necessary if the tambkup command with its -o option specified was executed in step 2. above.
  6. Execute the tamadd command with the recovered TAM file specified to add and catalog the TAM table to the online system. Then, execute the tamrles command to release the TAM table from its shutdown status.
(c) Recovery after normal online termination

If online operation terminates normally during updating using the I/O failure continuation table, the user must recover the appropriate TAM file in offline mode. If it is not recovered, it cannot be used in the next online operation because the status of the TAM file differs from that when accessed online.

  1. Execute the tamrstr command to restore the backup file of the appropriate TAM file.
  2. Execute the jnlunlfg command to unload the journals from backup acquisition to normal online termination.
  3. Execute the tamfrc command for the specified unloaded-journals file and restored TAM file.