DB2 - Problembeschreibung
Problem IC68334 | Status: Geschlossen |
MON_GET_ACTIVITY_DETAILS TABLE FUNCTION FAILS WITH SQL0901N IF USED WITH "FOR EACH ROW" CLAUSE. | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
MON_GET_ACTIVITY_DETAILS Table Function fails with SQL0901N if used with "FOR EACH ROW" clause. We see following error: SQL0901N The SQL statement failed because of a non-severe system error. Subsequent SQL statements can be processed. (Reason "FOR EACH ROW OF can only be specified for a table func".) SQLSTATE=58004 For eg: select actmetrics.application_handle, uow_id, activity_id FROM TABLE(MON_GET_ACTIVITY_DETAILS(for each row of (select application_handle, uow_id, activity_id from table(wlm_get_workload_occurrence_activities_v97(NULL, -1))), -1)) AS ACTMETRICS; >>> SQL0901N The SQL statement failed because of a non-severe system error. Subsequent SQL statements can be processed. (Reason "FOR EACH ROW OF can only be specified for a table func".) SQLSTATE=58004 db2traces shows: 29990 | | | | | | | sqlnn_cmpl error [probe 900] [ ZRC = 0x803100AF = -2144272209 = SQLNN_E_BADNEWS] 29991 | | | | | | | sqlnn_cmpl exit [rc = 0x803100AF = -2144272209 = SQLNN_E_BADNEWS] | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * users prior to v97fp4 * **************************************************************** * PROBLEM DESCRIPTION: * * Fixed in v97fp4 * **************************************************************** * RECOMMENDATION: * * Upgrade to v97fp4 * **************************************************************** | |
Local-Fix: | |
qualify all parameters of the table function before or inside the FOR EACH ROW OF clause. select actmetrics.application_handle, uow_id, activity_id FROM TABLE(MON_GET_ACTIVITY_DETAILS(for each row of (select application_handle, uow_id, activity_id, -1 from table(wlm_get_workload_occurrence_activities_v97(NULL, -1))))) AS ACTMETRICS; | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows | |
Lösung | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC73239 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 03.05.2010 02.05.2011 02.05.2011 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP4 | |
Problem behoben lt. FixList in der Version | |
9.7.0.4 |