17.7. The DB2 Trace Facility
Sometimes the information in the FFDC files is not enough to determine the cause of a problem. Under normal circumstances, you should only take a trace if asked by DB2 Technical Support. The process of taking a trace entails setting up the trace facility, reproducing the error, and collecting the data.
The command to turn on the DB2 trace is:
db2trc on options
Use db2trc –h to display all the available options. DB2 Technical Support usually requires you to perform the following steps to collect a trace.
1. | Turn on the DB2 trace to collect the last 8MB of information in the trace:
db2trc on –l 8M
|
2. | Recreate the error. |
3. | Dump the trace information into a binary file:
db2trc dmp db2trc.dmp
|
4. | Turn off the DB2 trace: ... |
Get Understanding DB2®: Learning Visually with Examples now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.