Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum Open Cursor

Status
Not open for further replies.

BillyKrow

Programmer
Aug 27, 2001
67
US
I have a database connection where I execute many insert and update statements before I perform a commit since I want the ability to roll the entire transaction back if any one insert or update fails along the way.

On larger transactions I'm running into maximum open cursor errors (Oracle 10.2 database). I thought I had alleviated the problem by correctly closing the statements after execution. This helped but did not get rid of the problem. I obviously can't close my connection otherwise I can't roll back the transaction.

Is there something else I may not be doing correctly or do I simply have to commit the transaction sooner and deal with the repercussions of any errors received afterwards.
 
You might have better luck in the Oracle 10g forum. I suggest you double check the PL to make sure all cursors that get opened get closed. If necessary, have the DBA increase max open cursors.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top