DB2 - Problem description
Problem IC79694 | Status: Closed |
-901 WHILE COMPILING A STATEMENT | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
Under rare scenarios, DB2 can trap when compiling a SQL statement if the following conditions are true: 1. The SQL statement has at least 2 joins. 2. The SQL statement has an equality join predicate. Assume one of the columns that participate in the join predicate is T1.C1. and Table T1 has a generated column that is generated based on C1. 3. The generated column is not referenced in the SQL statement Possible stack is: 0x0900000006BB1068 sqlnx_exp_get_qual_colname__FP3locP9sqlnq_qncPcPiT4 + 0xC 0x0900000006B8F670 sqlnx_exp_SORT_analyze__FP23sqlnx_exp_lolepop_parms + 0x7D4 0x0900000006BAB520 sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x648 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 ... 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BAF7A4 sqlnx_exp_descend_predicate__FP23sqlnx_exp_lolepop_parmsP9sqlno_ prdP19sqlno_plan_operatorP20sqlno_qun2plan_arrayPP19sqlno_plan_o perator + 0x310 0x0900000006BAECEC sqlnx_exp_process_predicates__FP23sqlnx_exp_lolepop_parmsiP19sql no_plan_operator9sqlno_setPcP20sqlno_qun2plan_arrayPP19sqlno_pla n_operatorN22 + 0x80 0x0900000006B969FC sqlnx_exp_FILTER_post__FP23sqlnx_exp_lolepop_parms + 0x1C8 0x0900000006BAC1C8 sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x12F0 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x0900000006BABF6C sqlnx_exp_analyze_plan__FP23sqlnx_exp_lolepop_parms + 0x1094 0x09000000083775DC sqlnx_explain_plan__FP9sqlnq_qur + 0x864 0x0900000008376CBC sqlnx_explain_plan__FP9sqlnq_qur@glue764 + 0x74 0x090000000518D964 sqlnn_cmpl__FP8sqeAgentP11sqlrrstrings17sqlnn_compileModeT3P14sq lrr_cmpl_enviT7PP9sqlnq_qur + 0x1B1C 0x0900000008E237FC sqlnn_cmpl__FP8sqeAgentP11sqlrrstrings17sqlnn_compileModeT3P14sq lrr_cmpl_env + 0x40 ... The query fails with -901 and/leads to a trap. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 9.7 Fix Pack 6. * **************************************************************** | |
Local Fix: | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 Version 9.7 Fix Pack 6. | |
Workaround | |
not known / see Local fix | |
BUG-Tracking | |
forerunner : APAR is sysrouted TO one or more of the following: IC84177 follow-up : | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 09.11.2011 06.06.2012 06.06.2012 |
Problem solved at the following versions (IBM BugInfos) | |
9.7.FP6 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.6 |