// oracle · connections

open_cursors

Maximum open cursors per session.

Default
50
Range
0 to 65535
Restart needed
No
Default checked on
Oracle AI Database 26ai / 23ai

What it does

A per-session limit; memory is used only for cursors actually open. Exceeding it raises ORA-01000.

Default value

50. 50 (Oracle 23ai/26ai); DBCA-created databases, Oracle Free included, set 300.

Check the current value

SHOW PARAMETER open_cursors

SELECT name, value, isdefault, issys_modifiable, isses_modifiable, ispdb_modifiable
FROM v$parameter
WHERE name = 'open_cursors';

Change it

ALTER SYSTEM SET open_cursors = 1000 SCOPE=BOTH;

No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

When to change it

When applications hit ORA-01000. Also check for cursor leaks (V$OPEN_CURSOR grouped by SQL_ID).

What can go wrong

A high limit hides cursor leaks until memory runs short.

Questions about open_cursors

What is the default value of open_cursors in Oracle?

50. 50 (Oracle 23ai/26ai); DBCA-created databases, Oracle Free included, set 300.

Does changing open_cursors require a restart?

No. No restart: ALTER SYSTEM with SCOPE=BOTH applies immediately and is saved in the SPFILE. It can be set inside a PDB (ISPDB_MODIFIABLE = TRUE).

When should I change open_cursors?

When applications hit ORA-01000. Also check for cursor leaks (V$OPEN_CURSOR grouped by SQL_ID).

Back to all Oracle settings, or check the Oracle manual for every option.

// one client for every engine

Check open_cursors on your own server

SQLly runs the query above against Oracle and the other engines in this reference, from one desktop app on macOS, Windows and Linux.