DB2 - Problem description
Problem IT38439 | Status: Closed |
DB2 QUERY MAY ABEND OR RETURN A SQL 901 WHEN USING A CORRELATED COMMON TABLE EXPRESSION | |
product: | |
DB2 FOR LUW / DB2FORLUW / B10 - DB2 | |
Problem description: | |
A Db2 query may abend or generate a SQL 901 error when the following conditions are met: There is a correlated scalar subquery present There are multiple references of the above mentioned subquery There is one or more joins in the query. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 Version 11.1 Fix Pack 7 * **************************************************************** | |
Local Fix: | |
It may be possible to work around this by adding the Optimizer Guideline below to the end of the query. /* */ Note: To enable Db2 to use the optimizer guidelines it will be necessary to run the command db2set -im DB2_OPTPROFILE=YES. The command will take effect immediately without restarting Db2 | |
Solution | |
Workaround | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 Version 11.1 Fix Pack 7 * **************************************************************** | |
Comment | |
First Fixed in Db2 Version 11.1 Fix Pack 7 | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 21.09.2021 17.04.2022 17.04.2022 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |