About this task
The formatted
DB2® trace
file that is generated with the
db2trc
fmt -cli command is similar to that of the
CLI trace.
By using the
db2trc on -cli command, you can:
- Dynamically enable and disable the trace without having to restart
the application.
- Specify the trace output path and file name.
- Trace a specific process ID or list of process IDs.
- You can obtain the details of all statement handles
that were allocated by the CLI driver
prior to enabling the DB2 trace
with the -dumpstmt option.
- You can format the trace into separate text files
that are based on the thread ID of a process if an existing directory
is specified for the trace format command.
Important: Do not run the trace
unless you must diagnose a problem. Tracing reduces the overall performance
of your system.