DB2 - Problembeschreibung
Problem IC69455 | Status: Geschlossen |
SQL0950N WHEN THE SQL QUERY BEING ISSUED CONTAINS REFERENCE TO A SQL BODIED PROCEDURE, FUNCTION OR METHOD. | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
You may experience a SQL0950N A DROP TABLE or DROP INDEX statement cannot be issued when an open cursor is currently using the table or index when the SQL query being issued contains reference to a SQL bodied procedure, function or method using input parameters that are columns from tables referenced in the main query. The SQL bodied procedure, function or method must contain a complex common table expression or WITH clause that is referenced in multiple portions of the function body and includes a reference to the input parameter. For example CREATE FUNCTION FUNC1(IN_KEY INTEGER) RETURNS TABLE(OUT_KEY INTEGER, OUT_NAME VARCHAR(100)) LANGUAGE SQL READS SQL DATA RETURN WITH A(KEY, NAME) AS (SELECT COL1, MAX(NAME) FROM T WHERE T.COL2 = IN_KEY GROUP BY COL1), B(MNAME) AS (SELECT MAX(NAME) FROM A) SELECT KEY, NAME FROM A, B WHERE NAME=MNAME; The common table expression 'A' is referenced in multiple places with the function body and it also contains a reference to the input parameter. If the execution plan for this query contains two or more MSJOIN operations each reference the common table expression 'A' as the left side input to the MSJOIN, then the query execution has the potential to experience the error. | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * Prior to DB2 V97 FP3. * **************************************************************** * PROBLEM DESCRIPTION: * * SQL0950N WHEN THE SQL QUERY BEING ISSUED CONTAINS REFERENCE * * TO A SQL BODIED PROCEDURE, FUNCTION OR METHOD. * **************************************************************** * RECOMMENDATION: * * Upgrade DB2 to V97 FP3. * **************************************************************** | |
Local-Fix: | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows | |
Lösung | |
Problem is first fixed in DB2 V97 FP3. | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC69743 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 24.06.2010 24.09.2010 24.09.2010 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP3 | |
Problem behoben lt. FixList in der Version | |
9.7.0.3 | |
9.7.0.3 |