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

INSTANCE CRASH IF A QUERY CONTAINS A SUB-SELECT STATEMENT WHICH INCLUDES
ONE OR MORE OLAP FUNCTIONS

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
Instance can crash if any DML statement (SELECT, INSERT, UPDATE, 
DELETE, MERGE, etc)  meets the following conditionss: 
 
A given sub-select within the query must contain: 
 
1) One or more sub-queries which generally is a predicate 
similar to EXISTS(SELECT ...), IN (SELECT ...), quantified 
predicates using the ALL or ANY qualifiers ie column >= 
ALL(SELECT ..) 
 
1a) The sub-query must use a column not produced by a table in 
the FROM clause of the sub-query. 
 
 
2) The sub-select must contain one or more OLAP functions, 
typically OLAP functions have an OVER(..) clause associated with 
the function and, 
 
2a) At least one of the OLAP functions is involved in a 
predicate or other complex expression. 
 
OR 
 
2b) ANY two of the OLAP functions have OVER clauses in which the 
ordered list of columns from the first are not a superset or 
subset of the ordered list of columns from the second, for 
example 'OVER(PARTITION BY C1, C2 ORDER BY C3)' is incompatible 
with 'OVER( PARTITION BY C4)' because they share no common 
columns. 
 
 
The stack of the trap file generated would be as follows: 
 
sqlnq_qunqncchild::pp 
sqlno_outer_reference 
sqlnx_exp_process_correlated_col_info 
sqlnx_exp_FILTER_analyze 
sqlnx_exp_analyze_plan 
sqlnx_exp_analyze_plan
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 v9.7 FP9                                      * 
****************************************************************
Local Fix:
Change the SQL statement to separate the sub-queries and other 
predicates into a sub-select that provides input to the OLAP 
function.
available fix packs:
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Solution
Problem fixed in DB2 v9.7 FP9
Workaround
not known / see Local fix
BUG-Tracking
forerunner  : APAR is sysrouted TO one or more of the following: IC92118 
follow-up : 
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
29.04.2013
23.12.2013
23.12.2013
Problem solved at the following versions (IBM BugInfos)
9.7.FP9
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.9 FixList
9.7.0.9 FixList