Overview
open_cursors specifies the maximum number of cursors that a single session can open at the same time.
Privilege requirements
Query parameters
Both the
systenant and user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Int |
| Default Value | 50 |
| Value range | [0,65535] |
| Modifiable | Yes, you can use the following methods:ALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
The maximum number of cursors that can be opened simultaneously for each session. When the number of cursors opened simultaneously for a session exceeds this limit, the error
ORA-01000: maximum open cursors exceeded.is returned.The
open_cursorsparameter limits not only the number of cursors but also the number of PS handles.
Configuration example
Set the number of cursors that can be opened simultaneously for a single session to 20. Example:
obclient> ALTER SYSTEM SET open_cursors = 20;