with ODAC 6.50 in Direct mode,
when using execproc on a procedure that returns a cursor, if the query that returns the cursor value result is "no data found" then ODAC generatates a "too many open cursors error" instead, followed by a "unknown error", and other errors ...
Can you reproduce this ?
Thx
Too many cursors open
Tryed my sample again.
when i remove the "close sys_refcursor" from the crashme1.sql procedure it works ok. But When i put the close back the error i get is still 'too many open cursors'
i checked the opened cursors on the database with the following query :
select sum(a.value) total_cur, avg(a.value) avg_cur, max(a.value) max_cur,
s.username, s.machine
from v$sesstat a, v$statname b, v$session s
where a.statistic# = b.statistic# and s.sid=a.sid
and b.name = 'opened cursors current'
group by s.username, s.machine
order by 1 desc;
and the conclusion is that i don't have too many cursors open ... so why this misleading message ?
Thats all i've found. Hope it helps.
Thx
when i remove the "close sys_refcursor" from the crashme1.sql procedure it works ok. But When i put the close back the error i get is still 'too many open cursors'
i checked the opened cursors on the database with the following query :
select sum(a.value) total_cur, avg(a.value) avg_cur, max(a.value) max_cur,
s.username, s.machine
from v$sesstat a, v$statname b, v$session s
where a.statistic# = b.statistic# and s.sid=a.sid
and b.name = 'opened cursors current'
group by s.username, s.machine
order by 1 desc;
and the conclusion is that i don't have too many cursors open ... so why this misleading message ?
Thats all i've found. Hope it helps.
Thx