Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC66647 Status: Closed

"LOCK_COUNT" VALUE RETURN FROM MON_GET_LOCKS TABLE FUNCTION IS
NOT CORRECT.

product:
DB2 FOR LUW / DB2FORLUW / 980 - DB2
Problem description:
when we use the  MON_GET_LOCKS function the LOCK_COUNT and the 
LOCK_HOLD_COUNT are both 0's . 
 
Eg: 
 
db2 "SELECT lock_count, lock_hold_count FROM 
TABLE(SNAP_GET_LOCK('sample', -2))"|more 
 
LOCK_COUNT           LOCK_HOLD_COUNT 
-------------------- -------------------- 
                   1                    0 
                   1                    0 
                   1                    0 
                   1                    0 
                   1                    0 
                   1                    0 
                   1                    0 
                   1                    0 
 
db2 "SELECT lock_count, lock_hold_count FROM TABLE 
(MON_GET_LOCKS( CLOB(''), -2)) 
 
LOCK_COUNT           LOCK_HOLD_COUNT 
-------------------- -------------------- 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0 
                   0                    0
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* users on V9.7 FP2 and below                                  * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* when we use the  MON_GET_LOCKS function the LOCK_COUNT and   * 
* the                                                          * 
* LOCK_HOLD_COUNT are both 0's .                               * 
*                                                              * 
*                                                              * 
*                                                              * 
* Eg:                                                          * 
*                                                              * 
*                                                              * 
*                                                              * 
* db2 "SELECT lock_count, lock_hold_count FROM                 * 
*                                                              * 
* TABLE(SNAP_GET_LOCK('sample', -2))"|more                     * 
*                                                              * 
*                                                              * 
*                                                              * 
* LOCK_COUNT          LOCK_HOLD_COUNT                          * 
*                                                              * 
* -------------------- --------------------                    * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
* 1                    0                                       * 
*                                                              * 
*                                                              * 
*                                                              * 
* db2 "SELECT lock_count, lock_hold_count FROM TABLE           * 
*                                                              * 
* (MON_GET_LOCKS( CLOB(''), -2))                               * 
*                                                              * 
*                                                              * 
*                                                              * 
* LOCK_COUNT          LOCK_HOLD_COUNT                          * 
*                                                              * 
* -------------------- --------------------                    * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
*                                                              * 
* 0                    0                                       * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to V9.7 FP3                                          * 
****************************************************************
Local Fix:
use db2pd -locks or SNAP_GET_LOCK table function.
available fix packs:
DB2 Version 9.8 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.8 Fix Pack 4 for AIX and Linux
DB2 Version 9.8 Fix Pack 5 for AIX and Linux

Solution
Upgrade to V9.7 FP3
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
24.02.2010
20.12.2010
20.12.2010
Problem solved at the following versions (IBM BugInfos)
9.7.FP3
Problem solved according to the fixlist(s) of the following version(s)
9.8.0.3 FixList