kfogarty.com – Database Consultants

Website of Kenny Fogarty. An independent database consultant, based in London, England.

DB2 Traces

Filed under: Basics, DB2, Traces — Kenny at 5:42 am on Monday, September 18, 2006

DB2 traces record diagnostic information describing particular events within a DB2 subsystem. As DB2 operates, trace information is written to various destinations. This trace information can be read and analyzed to obtain information on subsystem and application performance.

DB2 provides six types of traces, and each describes information about the DB2 environment. These six types of traces are outlined in the following table:

Trace Started By Description
Accounting DSNZPARM or START TRACE command Records performance information about the execution of DB2 application programs
Audit DSNZPARM or START TRACE command Provides information about DB2 DDL, security, utilities, and data modification
Global DSNZPARM or START TRACE command Provides information for the servicing of DB2
Monitor DSNZPARM or START TRACE command Records data useful for online monitoring of the DB2 subsystem and DB2 application programs
Performance START TRACE COMMAND Collects detailed data about DB2 events, enabling database and performance analysts to pinpoint the causes of performance problems.
Statistics DSNZPARM or START TRACE command Records information regarding the DB2 subsystems use of resources.

DB2 traces can be started in two ways; By specifying the appropriate DSNZPARM values at DB2 startup, or by using the -START TRACE command to initiate specific traces when DB2 is already running.

Each trace is broken down further into classes, each of which provides information about aspects of that trace. Classes are composed of IFCIDs. An IFCID (sometimes pronounced if-kid) defines a record that represents a trace event. IFCIDs are the single smallest unit of tracing that can be invoked by DB2.

Sphere: Related Content

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.