Per saber quants cursors hi han oberts i qui els te:
SQL
SELECT a.value cursors_oberts, s.sid, s.serial#, s.username, s.program, s.process, s.machine, s.terminal
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'
ORDER BY a.value DESC;
Per saber la quantitat màxima de cursors que pot obrir un proces:
SQL
SELECT value FROM v$parameter WHERE name = 'open_cursors';
Per canviar aquest valor:
SQL
alter system set open_cursors = 1000 scope=both;