Hitachi

Hitachi Advanced Database Command Reference


12.1.2 Swapping common format audit trail files

The audit trails converted by the adbconvertaudittrailfile command are output to the common format audit trail files under the output-directory for common format audit trails.

Up to four common format audit trail files (adbcommonauditXX.log) are created. XX in the file name is a sequential number in the range from 01 to 04.

When the size of a common format audit trail file to which converted audit trails are output reaches the maximum (512 megabytes), the HADB server creates a new common format audit trail file. Then, the HADB server swaps to the newly created common format audit trail file to continuously output the converted audit trails. This processing is called swapping common format audit trail files.

If a common format audit trail file already exists in the swap destination, the existing common format audit trail file is temporarily deleted. A new file with the same file name is then created, and output of the converted audit trails continues.

The following figure provides an overview of swapping common format audit trail files.

Figure 12‒2: Swapping common format audit trail files

[Figure]

Explanation:
  1. When the adbconvertaudittrailfile command is executed, the HADB server creates a common format audit trail file (adbcommonaudit01.log) and outputs the converted audit trails.

  2. When the size of the common format audit trail file (adbcommonaudit01.log) reaches the maximum (512 megabytes), a new common format audit trail file (adbcommonaudit02.log) is created as the next output destination.

  3. The HADB server changes the output destination to the new common format audit trail file (adbcommonaudit02.log) and continuously outputs audit trails.

  4. The HADB server repeats the steps from 1 to 3. When the size of the common format audit trail file (adbcommonaudit04.log) reaches the maximum, the 1st common format audit trail file (adbcommonaudit01.log) is deleted. Then, a new file with the same file name is created.

  5. The HADB server changes the output destination to the new common format audit trail file (adbcommonaudit01.log) and continuously outputs audit trails.