DB2 Version 9.7 for Linux, UNIX, and Windows

package_version_id - Package version monitor element

For a given package name and creator, there can exist (starting in DB2® Version 8) multiple versions. The package version identifies the version identifier of the package that contains the SQL statement currently executing. The version of a package is determined at precompile (PREP) of the embedded SQL program using the VERSION keyword. If not specified at precompile time the package version has a value of "" (empty string).

Table 1. Table Function Monitoring Information
Table Function Monitor Element Collection Level
MON_GET_ACTIVITY_DETAILS table function - Get complete activity details (reported in DETAILS XML document) Always collected
MON_GET_PKG_CACHE_STMT table function - Get SQL statement activity metrics in the package cache Always collected
MON_GET_PKG_CACHE_STMT_DETAILS table function - get detailed metrics for package cache entries Always collected
Table 2. Snapshot Monitoring Information
Snapshot Level Logical Data Grouping Monitor Switch
Application stmt Statement
Table 3. Event Monitoring Information
Event Type Logical Data Grouping Monitor Switch
Locking - -
Statements event_stmt -
Activities event_activitystmt -
Package cache - COLLECT BASE DATA

Usage

Use this element to help identify the package and the SQL statement that is currently executing.