DB2 provides several First Failure Data Capture (FFDC) facilities that log information as errors occur, the most important being the db2diag.log file. The DB2 FFDC facilities often provide enough diagnostic information to solve a problem, without having to reproduce problems with traces.
For information on the logging, tracing, and alert facilities available to you, see Part 2, Advanced DB2 Troubleshooting.