Starting and stopping traces
You can trigger Db2 traces to start by time, periodic exception, exception event, or immediately. After you specified the trace criteria, a window is displayed where you complete the start criteria and define the stop criteria.
About this task
Which window is displayed depends on what you specified
in the Trigger by
field on the Trace Configuration
window. Use these windows to specify the criteria that must be met
before the collect task is automatically started or stopped. These
windows are the same in appearance except for the start trigger specification
section.
Because of the possibility of output buffer overruns,
you must specify one of the stop conditions: Elapsed time
or Number
of records collected
. Records can get lost if a buffer overrun
occurs.
The Trigger by Time window (Figure 1) is displayed if you specified that the trace is triggered by time. Use this window to specify a particular output data set name, and to set the start and stop trigger criteria for the collect task. You can set the Db2 traces to start at a specified time, and to stop after a specified number of minutes have passed, a specified number of records or IFCIDs have been collected, or a thread matching the trace qualification criteria has terminated.
All trace data collected by the collect task is written to
the data set specified in this window. If you specify a disposition
of 3
(New
), the data set is dynamically
allocated with the following attributes:
- RECFM:
- VBS
- LRECL:
- 32756
- BLKSIZE:
- 6233
If you want to create the data set manually, it should have a variable record format and a record length (LRECL) of at least 4092.
Specify the time you want the Db2 traces to start for this task.
Select one or more of the trace stop triggers shown in this window and enter the required criteria for those triggers. The trace is stopped when any stop criteria is satisfied.
After you specified the required criteria in this window, press Enter to process the new values. Press Enter again or F3 (Exit) to return to the Collect Report Data panel.
- In the Trigger by Periodic Exception window, you can set the DB2 traces to start when a specified periodic exception has occurred.
- In the Trigger by Exception Event window, you can set the DB2 traces to start when a specified exception event has occurred.
- In the Trigger Immediately window, there are no start criteria because the Db2 traces are started immediately when the respective collect task is started in the Collect Report Data panel.
You can obtain a list of IFCIDs or exception field names by positioning the cursor under any field with a trailing plus sign (+) and pressing F4 (Prompt).