Changing the audit trail output destination (changing the file that is the current file) is called audit trail file swapping.
Table 22-13 explains the conditions under which audit trail files are swapped.
Table 22-13 Conditions under which audit trail files are swapped
Condition for swapping | Explanation |
---|---|
File is full | When the output audit trail becomes full, the file is swapped. The size of an audit trail file is specified in the pd_aud_max_generation_size operand. |
Error in the current file | If an error occurs during I/O processing to the current file, the file is swapped. |
pdaudswap command is executed | When the pdaudswap command is executed, the file is swapped. |
HiRDB is restarted | When HiRDB (or unit for a HiRDB/Parallel Server) is restarted, the file is swapped. In the case of normal startup or a restart after planned termination, the file is not swapped and the file that was the current file at the time of the previous HiRDB termination continues to be used. |
In the following cases, the file that should be swapped in is replaced automatically by another file:
The processing depends on whether or not the number of audit trail files used has reached the maximum (value of pd_aud_max_generation_num).
If there are no files available for the swap target, HiRDB processing depends on the value of the pd_aud_no_standby_file_opr operand.
If the pd_aud_file_wrn_pnt operand is specified, a warning message can be output when the number of unswappable audit trail files reaches a warning level.