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 are used in conjunction with CLI and DB2 traces to diagnose problems.
For information on the logging, tracing, and alert facilities available to you, see Part 2, Advanced DB2 Troubleshooting.