While you are using the IBM® Database Add-Ins for Visual Studio, on occasion you might encounter an error message that directs you to "get a trace and call IBM Support." Also, if you report a problem to IBM Support, you might be asked to perform a trace to capture detailed information about your environment.
An add-ins trace is essentially a log of control flow information (functions and associated parameter values) that is captured while the trace facility is on. The add-ins provide the trace facility for all supported releases of the following data servers:
Notes:
To use the add-ins trace facility:
db2trc on db2trc clr
All existing information in the trace buffer is removed.
db2trc dmp trace_file_name.dmptrace_file_name.dmp is the full path
to the file in which you capture the trace information.
The file that is created by the dmp option is in
binary format and is not readable.
db2trc off db2trc flw trace_file_name.dmp flow_file_name.flwflow_file_name.flw is the full path
to the file in which you store the flow information.
The flow information is essentially a control flow diagram that indicates the flow in which the processes were invoked.
db2trc fmt trace_file_name.dmp formatted_file_name.fmtformatted_file_name.fmt is the full path
to the file in which you store the formatted trace information.
The formatted trace records appear in chronological order. Each record represents a trace point with its own identifying number. Each trace record contains the trace record type, the product, the component, the function, and the function category.
db2trc - Trace command | Obtaining a DB2 trace using db2trc | Dumping a DB2 trace file | Formatting a DB2 trace file