denrepo

Init parameterProcesses & sessions

OPEN_CURSORS

Changes immediately

What it controls

The most cursors one session can have open at once.

Know this before you change it

It's a per-session ceiling and costs no memory until cursors are actually opened. If ORA-01000 keeps coming back, look for an application leak before raising it again.

Check and change it

open_cursors.sql
1-- Current value on every instance2SELECT inst_id, name, value, isdefault, ismodified3FROM gv$parameter4WHERE name = 'open_cursors';5 6-- Value stored in the spfile7SELECT sid, value FROM v$spparameter WHERE name = 'open_cursors' AND isspecified = 'TRUE';8 9-- Dynamic: takes effect now and is kept after a restart10ALTER SYSTEM SET open_cursors = 1000 SCOPE = BOTH SID = '*';11 12-- Remove it from the spfile to go back to the default at the next restart13ALTER SYSTEM RESET open_cursors SCOPE = SPFILE SID = '*';

Related scripts

Open in the parameter referenceOracle's reference

More in Processes & sessions