Note
This parameter was introduced in OceanBase Database V2.2.77.
Description
open_cursors specifies the maximum number of cursors that can be opened at one time in a single session.
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 |
Considerations
Each session has a limit on the maximum number of open cursors. If a session exceeds this limit, it will trigger the error
ORA-01000: maximum open cursors exceeded.The
open_cursorsparameter not only limits the number of cursors but also restricts the number of PS handles.
Example
Here is an example of setting the number of concurrently opened cursors of a session to 20:
obclient> ALTER SYSTEM SET open_cursors = 20;