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

QUERY WITH RANGE PARTITIONED TABLE CAN FAIL WITH SQL0901 "BAD PL AN;
UNRESOLVED QNC FOUND" IF PREDICATES ELIMINATE ALL PARTITIONS

product:
DB2 FOR LUW / DB2FORLUW / 980 - DB2
Problem description:
A query can fail with with SQL0901, "Bad Plan; Unresolved QNC 
found". 
 
The conditions triggering the failure include a range 
partitioned table where applying some of the predicates, but not 
all predicates, will eliminate all partitions in a range 
partitioned table. 
 
 
The db2diag.log will contain the following message: 
 
2010-03-18-11.24.10.716184-240 I624697E862         LEVEL: Severe 
PID     : 23763                TID  : 187955145056 PROC : 
db2sysc 1 
INSTANCE: db2inst1             NODE : 001          DB   : SAMPLE 
APPHDL  : 1-32931              APPID: 
*LOCAL.db2inst1.10031516111 
AUTHID  : DB2INST1 
EDUID   : 151518               EDUNAME: db2agent (SAMPLE) 1 
FUNCTION: DB2 UDB, relation data serv, sqlrr_dump_ffdc, 
probe:300 
DATA #1 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes 
 sqlcaid : SQLCA     sqlcabc: 136   sqlcode: -901   sqlerrml: 30 
 sqlerrmc: Bad Plan; Unresolved QNC found 
 sqlerrp : SQLNG006 
 sqlerrd : (1) 0x00000000      (2) 0x00000000      (3) 
0x00000000 
           (4) 0x00000001      (5) 0xFFFFFFCE      (6) 
0x00000001 
 sqlwarn : (1)      (2)      (3)      (4)        (5)       (6) 
           (7)      (8)      (9)      (10)        (11) 
 sqlstate:
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Users of range partitioned tables                            * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See above.                                                   * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Fix Pack 4 or a later release that contains the   * 
* fix.                                                         * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 9.8 Fix Pack 4 for AIX and Linux
DB2 Version 9.8 Fix Pack 5 for AIX and Linux

Solution
Problem was first fixed in Version 9.8 Fix Pack 4.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
09.04.2010
02.08.2011
02.08.2011
Problem solved at the following versions (IBM BugInfos)
9.8.FP4
Problem solved according to the fixlist(s) of the following version(s)
9.8.0.4 FixList