IBM Books

Troubleshooting Guide


Determining Origins and Symptoms of Problems

If you are supporting an organization using DB2, you will receive calls from users to resolve a variety of problems. Your response depends on:

To solve a problem, start by obtaining a comprehensive description of the problem. This way, you can begin to determine its origin. For example, a problem may exist in any of the following:

Determining the Location of a Problem

Most applications run in a client/server environment. You must determine if a problem is on the client, the server, or somewhere in between (that is, in the LAN or communication protocol stack).

Investigating where the problem is detected or reported is the best way to start. For example, if you receive an unexpected SQL code on a client, then investigate the SQL code on that client. (See Responding to Unexpected Messages or SQL Codes for information.)

Often the SQL code alone is enough information to determine the source and cause of the problem. If the SQL code does not give enough information to determine the source of a problem, examine the db2diag.log file at the machine where the problem was reported. For example, if the problem was reported on a client, first look at the db2diag.log file on that particular client.

The db2diag.log file is an ASCII file written by DB2 that contains diagnostic information for DB2. If you know the date and time when the problem occurred, you can go directly to the corresponding db2diag.log entries. For information on this important file, see First Failure Data Capture. When viewing the file, keep in mind that the most recent conditions are always at the end.

Responding to Unexpected Messages or SQL Codes

When you receive an unexpected message or SQL code, follow these steps until you can determine the problem:

  1. When you receive a message, take note of all available information, including the following:
  2. Check the online message help by typing db2 "? message" from the command prompt, where message is the complete SQL code, SQL state, or message number. Read and follow the suggested actions.
  3. Use the SQL code or message number to search available DB2 documentation for additional information.
  4. If the problem persists, ensure that you have as much of the following information as possible before contacting DB2 Customer Service:
  5. If you determine that the problem is not with DB2 but with a vendor-supplied application, contact the vendor.

Responding to Abends

In this book the term abend includes:

When an abend occurs, work through the following steps until you can determine the problem:

  1. Confirm that all DB2 components are at the same service level, especially if a Fix Pak has recently been installed. See Updating DB2 Products.
  2. Note the executable module that reported the abend.
  3. If the problem persists, try to collect the following additional information before contacting DB2 Customer Service: See Part 2, Advanced DB2 Troubleshooting for information.
  4. If you determine that the problem is not with DB2 but with a vendor-supplied application, contact the vendor.

Responding to Suspensions and Loops

When the system appears to be suspended or looping, try to identify the problem by working through the following steps:

  1. Recover the system:
  2. Using messages, the db2diag.log file, and other information, attempt to determine why the suspension or loop occurred.

    Some common problems that cause suspensions or loops can include the following:

  3. If the problem persists, try to collect the following additional information before contacting DB2 Customer Service:
  4. If you determine that the problem is not with DB2 but with a vendor-supplied application, contact the vendor.


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

[ DB2 List of Books | Search the DB2 Books ]