home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
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 IC66991 Status: Closed

DATA_PARTITION_ID COLUMN FROM SYSIBMADM.MON_LOCKWAITS ADMIN VIEW IS
INCORRECT

product:
DB2 FOR LUW / DB2FORLUW / 980 - DB2
Problem description:
When locks on a partitioned table exist, and you query the 
SYSIBMADM.MON_LOCKWAITS ADMIN VIEW, the values in the 
DATA_PARTITION_ID, TABSCHEMA and TABNAME in the admin view 
COLUMN may return a blank "-" value. 
 
Example: 
 
Session 1: db2 "create table test (dt date) PARTITION BY RANGE 
(dt) (STARTING '2009-01-01' ENDING '2009-01-20' every 1 days)" 
Session 2: db2 +c "select * from test with rr" 
Session 3: db2 "load from /dev/null of del replace into test 
nonrecoverable" 
Session 1: db2 "select tabschema, tabname, 
DATA_PARTITION_ID,LOCK_MODE,LOCK_CURRENT_MODE,LOCK_MODE_REQUESTE 
D 
from sysibmadm.mon_lockwaits" 
 
TABSCHEMA       TABNAME       DATA_PARTITION_ID LOCK_MODE 
LOCK_CURRENT_MODE LOCK_MODE_REQUESTED 
---------------------------------------------------------------- 
-------------------------------- 
-                -             -                    S 
 -                 Z 
-                -             -                    S 
 -                 Z 
-                -             -                    S 
 -                 Z 
  3 record(s) selected. 
 
From the InfoCenter, we state the "DATA_PARTITION_ID" column 
element is only applicable to partitioned tables and partitioned 
indexes. Otherwise, the value of this monitor element is NULL. 
When returning lock level information, a value of -1 represents 
a lock which controls access to the whole table. 
 
In the above case, the value should be -1, which this APAR will 
fix to correct the output.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* NA                                                           * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* When locks on a partitioned table exist, and you query the   * 
*                                                              * 
* SYSIBMADM.MON_LOCKWAITS ADMIN VIEW, the values in the        * 
*                                                              * 
* DATA_PARTITION_ID, TABSCHEMA and TABNAME in the admin view   * 
*                                                              * 
* COLUMN may return a blank "-" value.                         * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Fixpack 3                                         * 
****************************************************************
Local Fix:
You can use MON_FORMAT_LOCK_NAME table function by passing in 
the lockname to get the table name and schema. 
schema of the table
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 Fixpack 3
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
08.03.2010
10.01.2011
10.01.2011
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
9.8.0.3 FixList