Activates DB2 trace facility tracing. DB2 uses its trace facility to trace events, dump trace data to a file, and format trace data into a readable form. Only use the trace facility when directed by DB2 Customer Service or by a technical support representative.
Authorization
On UNIX based systems, one of the following:
On OS/2 or the Windows operating system, no authorization is required.
Required Connection
None
Command Syntax
>>-db2trc--+----------------------------------------------------+-> | .- ------------------------------------------. | | V | | +-on-----+--------------------------------------+--+-+ | | .-.----------------------------. | | | | V | | | | +--m----+-*-----------------------+--+-+ | | | | .-,------------------. | | | | | | V | | | | | | '------num--+------+----+-' | | | | '--num-' | | | +--e--max_sys_errors-------------------+ | | +--r--max_record_size------------------+ | | +--f--filename-------------------------+ | | +-+--l--+--------------+-+-------------+ | | | | '-buffer_size--' | | | | | '--i--+--------------+-' | | | | '-buffer_size--' | | | '--t-----------------------------------' | +-off------------------------------------------------+ +-dump--filename-------------------------------------+ +-flw--dump_file--output_file------------------------+ '-fmt--dump_file--output_file------------------------' >--------------------------------------------------------------><
Command Parameters
db2trc dump db2trc.dmp
Specify a file name with this parameter. The file is saved in the current directory unless the path is explicitly specified.
db2trc off
db2trc flw db2trc.dmp db2trc.flw
To use the trace facility, first turn it on using db2trc on. Unless instructed otherwise by DB2 Customer Service, use the command without options. The default trace option values are:
If instructed to specify options to tailor the trace, use the following options as directed by DB2 Customer Service:
Examples
For additional information about db2trc, including trace examples, see the Troubleshooting Guide.
Usage Notes
The db2trc command must be issued several times to turn tracing on, produce a dump file, format the dump file, and turn tracing off again. The parameter list shows the order in which the parameters should be used.