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

A SELECT statement with a predicate 'IN ( ITEM-1, ITEM-2, ... ITEM-N
)' might crash the DB2 server

product:
DB2 FOR IM PROD / IM0062BOS / A10 - DB2
Problem description:
A SELECT statement with a predicate 'COL-C IN ( ITEM-1, ITEM-2, 
... ITEM-N )' might crash the DB2 server under the following 
conditions: 
 
1. There is a composite index on the table where the column 
COL-C is not in the first two columns of the index. 
2. There is another predicate in the query ( e.g. COL-A = 10 ) 
which is applied as a start-stop key by the index. 
3. The column COL-A is a leading column of the index such that 
there is a 'gap' between COL-A and COL-C 
i.e. the index is applying the IN predicate as a start-stop key 
by the jump-scan operation. 
 
For example: 
   create table TAB1 ( A int, B int, C int ); 
   create index IND1 on TAB1 ( A, B, C ); 
   select C from TAB1 where A = 10 and C in ( 10, 20, 30, 40 ); 
 
The trap will appear in the following stack: 
... 
sqlnoPrdFlagsType4test 
sqlno_index_scan 
sqlno_crule_index_scan 
sqlno_crule_access_root 
sqlno_crule_access 
sqlno_get_best_plan 
sqlno_crule_nljn_inner 
sqlno_crule_nljn 
sqlno_crule_join_choices 
sqlno_crule_join_order 
sqlno_crule_in2join_access 
...
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Version 10.1.FP2                                             * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to 10.1.fp3                                          * 
****************************************************************
Local Fix:
Use the following DB2 registry as a workaround: db2set 
"DB2_REDUCED_OPTIMIZATION=JUMPSCAN OFF" and recycle the 
instance.
available fix packs:
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
Fixed in version 10.1.fp3.
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC99464 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
21.05.2013
21.03.2014
21.03.2014
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.3 FixList
10.1.0.3 FixList