Hitachi

Hitachi Advanced Database Setup and Operation Guide


10.4.3 Working with the message log files

The HADB server and an HADB client each creates and uses four message log files.

The maximum size of each message log file is determined by the value specified in the environment variable ADBMSGLOGSIZE. When a message log file reaches its maximum capacity, HADB stops outputting message logs to that message log file and outputs message logs to the next message log file. When this occurs, any existing message logs stored in the message log file that is being switched to are deleted.

The following figure shows how message log files are switched, using the four server message log files created in the HADB server as examples.

Figure 10‒7: Message log file switching

[Figure]

Explanation

When message logs are output and adbmessage01.log reaches its maximum capacity, the message log output destination switches to adbmessage02.log.

Likewise, when adbmessage02.log reaches its maximum capacity, the message log output destination switches to adbmessage03.log. When adbmessage03.log reaches its maximum capacity, the message log output destination switches to adbmessage04.log.

When adbmessage04.log reaches its maximum capacity, the message log output destination switches to adbmessage01.log. When this happens, the old message logs stored in adbmessage01.log are deleted before new message logs are output.

Note that server message log files are not switched when the HADB server starts. Therefore, message logs are output to the server message log file that was the output destination when the HADB server was last terminated.

To see to which message log file new message logs are being output, check the last file update date and time using the operating system's ls command, or the like. The file with the last modified date and time is the message log file currently being used.

However, if you in any way update a message log file, say by using a text editor, the last modified date and time will be changed. Then, you must find the message log file containing the message with the last output date as indicated by the information attached to the message to determine the message log file in which new message logs will be stored.

Note

The message log files of an HADB client work in the same way.