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

QUERY EXECUTION MAY FAIL FOR OUTER JOIN QUERIES WITH PREDICATES WITH CAST
FUNCTIONS

product:
DB2 FOR LUW / DB2FORLUW / B50 - DB2
Problem description:
If you have a DPF system and a query that meets the following
conditions :
- query references multiple Outer joins
- predicates in the ON clause reference Cast functions
it may trap in sqlnr_OJ_semi_join()

Example query:
SELECT T1.C1
FROM T1 LEFT OUTER JOIN T2 ON T2.C1 = 'ITRA'
     LEFT OUTER JOIN T3 ON T3.C1 = CAST(T1.C1 AS VARCHAR(200)) ;


Example stack trace for the failing query:
sqlnr_OJ_semi_join
sqlnr_qrwprep_phase2
sqlnr_prep2_action
sqlnr_exe
sqlnn_cmpl
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* all                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to 11.5.6 or later                                   *
****************************************************************
Local Fix:
Set the following registry
- with the optimization guideline to the affected queries:
/* 
   
        
   
 */
or
- at the instance level:
db2set DB2COMPOPT=NOOJSJ -im
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* all                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to 11.5.6 or later                                   *
****************************************************************
Comment
Upgrade to 11.5.6 or later
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
23.03.2021
21.06.2021
21.06.2021
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)