Note
For V2.2.77, this parameter is available starting with V2.2.77.
Description
open_cursors specifies the maximum number of cursors that can be opened by a single session.
Privilege requirements
Query the parameter
sysand MySQL user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
sysand MySQL user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Int |
| Default value | 50 |
| Value range | [0, 65535] |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
The maximum number of cursors that can be opened by a single session. If the number of cursors opened by a session exceeds this limit, an error
ORA-01000: maximum open cursors exceededis returned.The
open_cursorsparameter also limits the number of prepared statement (PS) handles.
Examples
Set the maximum number of cursors that can be opened by a single session to 20. Example:
obclient> ALTER SYSTEM SET open_cursors = 20;
