Home » RDBMS Server » Server Administration » How to edit the value of open cursors
How to edit the value of open cursors [message #61745] Mon, 24 May 2004 05:19 Go to next message
Daniel
Messages: 47
Registered: February 2000
Member
Hi,

I do several "SELECT" at one time and  I recive message  TOO MANY OPEN CURSORS, obviously I close the cursors after the operations ends but I need to increment the value of number cursors.

How can I do?
Re: How to edit the value of open cursors [message #61748 is a reply to message #61745] Mon, 24 May 2004 09:36 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
-- open cursors in your session
select * from v$sesstat where statistic#= 3;
-- open cursors owned by you
select * from v$mystat where statistic# = 3;

Be carful not to simply increase open_cursors in your init file - you could be masking a cursor leak in your code.

1.) in pl/sql, if a normal cursor is opened in a proc/funct, then when you return to a higher level scope, the cursor will automatically close.
2.) make sure that your error handling closes any cursors you may have opened.
Previous Topic: Replication Problem
Next Topic: Oracle Service fails to start
Goto Forum:
  


Current Time: Wed Jan 08 16:12:07 CST 2025