DB2 - Problem description
Problem IC77859 | Status: Closed |
SQL0501N ENCOUNTERED WHEN EVMON_FORMAT_UE_TO_TABLES IS EXECUTED AGAINST A VERY LARGE UNFORMATTED EVENT TABLE. | |
product: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problem description: | |
You may encounter SQL0501N when executing EVMON_FORMAT_UE_TO_TABLES in parallel through multiple sessions (each on a different data set) of a very large unformatted event table. $ db2 -stvf session1.sh call EVMON_FORMAT_UE_TO_TABLES ( 'UOW', NULL, NULL, NULL, NULL, NULL, NULL, 10000, 'SELECT * FROM EVMON.UOWEVENTS WHERE event_timestamp > ''2011-07-01-17.53.00.000000'' and event_timestamp <=''2011-07-01-17.53.05.000000''') $ db2 -stvf session2.sh call EVMON_FORMAT_UE_TO_TABLES ( 'UOW', NULL, NULL, NULL, NULL, NULL, NULL, 10000, 'SELECT * FROM EVMON.UOWEVENTS WHERE event_timestamp >''2011-07-01-17.53.05.000000'' and event_timestamp <=''2011-07-01-17.53.10.000000''') SQL0501N The cursor specified in a FETCH statement or CLOSE statement is not open or a cursor variable in a cursor scalar function reference is not open.SQLSTATE=24501 | |
Problem Summary: | |
You may encounter SQL0501N when executing EVMON_FORMAT_UE_TO_TABLES in parallel through multiple sessions (each on a different data set) of a very large unformatted event table. $ db2 -stvf session1.sh call EVMON_FORMAT_UE_TO_TABLES ( 'UOW', NULL, NULL, NULL, NULL, NULL, NULL, 10000, 'SELECT * FROM EVMON.UOWEVENTS WHERE event_timestamp > ''2011-07-01-17.53.00.000000'' and event_timestamp <=''2011-07-01-17.53.05.000000''') $ db2 -stvf session2.sh call EVMON_FORMAT_UE_TO_TABLES ( 'UOW', NULL, NULL, NULL, NULL, NULL, NULL, 10000, 'SELECT * FROM EVMON.UOWEVENTS WHERE event_timestamp >''2011-07-01-17.53.05.000000'' and event_timestamp <=''2011-07-01-17.53.10.000000''') SQL0501N The cursor specified in a FETCH statement or CLOSE statement is not open or a cursor variable in a cursor scalar function reference is not open.SQLSTATE=24501 | |
Local Fix: | |
Set LOCKTIMEOUT to -1, but this will slow down the execution. | |
available fix packs: | |
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows | |
Solution | |
First fixed in DB2 Version 9.7 Fixpack 5. | |
Workaround | |
Set LOCKTIMEOUT to -1, but this will slow down the execution. | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 01.08.2011 12.12.2011 12.12.2011 |
Problem solved at the following versions (IBM BugInfos) | |
9.7.FP5 | |
Problem solved according to the fixlist(s) of the following version(s) | |
9.7.0.5 |