Log files


The product writes data that 

BMC AMI Apptune for Db2

 collects to log files, which are linear data sets associated with a log set or output group.

If you have Administrator authorization, you can determine the characteristics of the log files associated with each output group in the log set. You can define:

  • Required time span of data that you want immediately available to users in days, hours or minutes.
  • Minimum and maximum number of data sets along with their location

At product initialization the minimum number log files are allocated. As the space in these data sets is filled, new log files are created until either the time span is reached or the maximum number of data sets is allocated.

When all of the allocated log files are full, the oldest log data set is reused and existing data is over-written.

The log set definition also includes the option to copy trace data from an active log file by using a started task with the default name NGLARCH. The product activates NGLARCH when the log file is full. The archive copy of the data is written and information about the archive file is recorded in the Archive Directory (also known as the COPYDIR).

To assure that no data is lost during the transition from one log file to another and the copy of the older data to an archive file there should always be a minimum of at least two log files for each log set.

Success

Tip

BMC recommends that the archive destination file be on DASD. This speeds up the archive process to run to prevent possible data loss. Typically the archive data does not need to be available on DASD unless it is being used. Specifying an SMS class that migrates data after a short time to tape provides the advantage of rapid write processing, SMS data compression and lower cost tape storage.

The following figure shows the flow of data from Db2 to the trace data sets and shows a sample of how the output groups for a DOMPLEX Profile might be configured.


GUID-3ACDF352-DF01-4532-B4FD-3043871DE770-low.png

  1. Interval data is written to a table in storage and summarized until at the end of the defined interval.
  2. The object data is written to the log files associated with Output Group 004 and the accounting data is written to the log files associated with Output Group 003.
  3. Event data from the three Db2 subsystems is written immediately to log files. SQL text, host variables and exception data is written to the log files associated with Output Group 002.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

Common Db2 documents 12.1