denrepo

Init parameterProcesses & sessions

SESSION_CACHED_CURSORS

Restart neededCan set per session

What it controls

How many closed cursors each session keeps cached, which saves repeated soft parses.

Know this before you change it

For the whole instance it needs a restart; ALTER SESSION changes it straight away for one session.

Default: 50

Check and change it

session_cached_cursors.sql
1-- Current value on every instance2SELECT inst_id, name, value, isdefault, ismodified3FROM gv$parameter4WHERE name = 'session_cached_cursors';5 6-- Value stored in the spfile7SELECT sid, value FROM v$spparameter WHERE name = 'session_cached_cursors' AND isspecified = 'TRUE';8 9-- Static: saved in the spfile, takes effect after a restart10ALTER SYSTEM SET session_cached_cursors = 200 SCOPE = SPFILE SID = '*';11 12-- Or for your own session only13ALTER SESSION SET session_cached_cursors = 200;14 15-- Remove it from the spfile to go back to the default at the next restart16ALTER SYSTEM RESET session_cached_cursors SCOPE = SPFILE SID = '*';

Open in the parameter referenceOracle's reference

More in Processes & sessions