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 IT10131 Status: Closed

SYSCAT.COLUMNS.NUMNULLS STATISTICS MIGHT BE ZERO WHEN "EXCLUDE NULL
KEYS" INDEX IS EMPTY

product:
DB2 FOR LUW / DB2FORLUW / A50 - DB2
Problem description:
The NUMNULLS statistics might be zero for columns that has an 
empty "EXCLUDE NULL KEYS" index. 
 
Conditions to hit this issue are : 
(1) the column is the leading column of an "EXCLUDE NULL KEYS" 
index and 
(2) the "EXCLUDE NULL KEYS" index is empty (i.e. all values are 
null) 
 
Note : Both conditions must present in order for the issue to 
occur, not only one of them.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* First Fixed in DB2 10.5 Fix Pack 7                           * 
****************************************************************
Local Fix:
Manually update the statistics. You can use below query : 
db2 "update sysstat.columns set NUMNULLS=<expected_num_nulls> 
where colname='<column_name>' and tabname='<table_name>' and 
tabschema='<schema_name>'"
Solution
First Fixed in DB2 10.5 Fix Pack 5
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
16.07.2015
09.05.2017
09.05.2017
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.5.0.7 FixList