ORA-01000 maximum open cursors exceeded
When youo get this error: "ora-01000 maximum open cursors exceeded " error during the database operation.
Then check open_cursor parameter
From Oracle Document:
OPEN_CURSORS
Property | Description |
---|---|
Parameter type | Integer |
Default value | 50 |
Modifiable | ALTER SYSTEM |
Range of values | 0 to 65535 |
Basic | Yes |
OPEN_CURSORS
specifies the maximum number of open cursors (handles to private SQL areas) a session can have at once. You can use this parameter to prevent a session from opening an excessive number of cursors.
It is important to set the value of OPEN_CURSORS
high enough to prevent your application from running out of open cursors. The number will vary from one application to another. Assuming that a session does not open the number of cursors specified by OPEN_CURSORS
, there is no added overhead to setting this value higher than actually needed.
SQL> show parameter open_cursors ;
------ ---- ----- --------
open_cursors integer 200
SQ>
* Change current value of open_cursor parameter, you can change the value according to your resource and database.
SQL> alter system set open_cursors=500 scope=both;
System altered.
Check Again :
SQL> show parameter open_cursors ;
------ ---- ----- --------
open_cursors integer 500
Thank you ,
thanks that's very helpful
ReplyDeleteThank you Mr. Jehad appreciate your comment.
Delete