Note
This parameter was introduced in OceanBase Database V2.2.77.
Description
open_cursors specifies the maximum number of cursors that can be concurrently opened in a single session.
Privilege requirements
Query the parameter
Both the
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and a user tenant cannot modify this configuration item.
Attributes
| Attribute | Description |
|---|---|
| Type | Integer |
| 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
If the number of cursors concurrently opened in a session exceeds this limit, the error
ORA-01000: maximum open cursors exceededis returned.The
open_cursorsparameter limits both the number of cursors and that of prepared statement handles.
Examples
Set the maximum number of cursors that can be concurrently opened in a single session to 20.
obclient> ALTER SYSTEM SET open_cursors = 20;