IBM Books

Troubleshooting Guide


Understanding First Failure Data Capture

First Failure Data Capture (FFDC) information is diagnostic information captured automatically by DB2 about an error when the error occurs. This information reduces the need to reproduce errors to get diagnostic information.

The information captured by FFDC includes the following:

db2diag.log
When an error occurs, the db2diag.log file is updated with information about the error. For information, see "Interpreting the db2diag.log File". Also see "Setting DIAGLEVEL and DIAGPATH" for information on the DIAGLEVEL setting, which determines how much information is logged in the file.

db2alert.log
If an error is determined to be an alert, then an entry is made in the db2alert.log file and to the operating system/native logging facility. See "Alerts".

Dump files
For some error conditions, extra information is logged in external binary dump files named after the failing process ID. These files are intended for DB2 Customer Service. See "Dump Files".

Trap files
The database manager generates a trap file if it cannot continue processing because of a trap, segmentation violation, or exception (depending on the platform). Trap files contain a function flow of the last steps that were executed before a problem occurred. See "Trap Files".

This diagnostic information is contained in a single location (the DIAGPATH specified in the database manager configuration). It contains internal traces and dumps which usually can be read only by trained DB2 Customer Service personnel. However, this information can contain some crucial information to help you diagnose and fix problems.

Setting DIAGLEVEL and DIAGPATH

The following database manager configuration parameters affect how much FFDC information is collected, and where it is kept:

To set these configuration parameters, use the UPDATE DATABASE MANAGER CONFIGURATION command from the command line processor. (Alternatively, use the Problem Determination folder for the OS/2 platform; see Appendix A. "Using the Problem Determination Tools Folder" for information.)

Important: You must stop DB2 and start it again before any of these configuration changes take effect.

Examples

For information on database manager administration commands, see the Administration Guide, the Command Reference, and the API Reference.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]