Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: PL/SQL cursor NOT closing

Re: PL/SQL cursor NOT closing

From: Vlad Sadilovskiy <vlovsky_at_gmail.com>
Date: Wed, 26 Sep 2007 09:02:46 -0400
Message-ID: <df9f25d50709260602v5dcc4f04t2f4cd9cb3d5d3312@mail.gmail.com>


You can generate either Oracle trace or error stack (alter session set events '1000 trace name errorstack level 3' or event="1000 trace name errorstack level 3" in init.ora/spfile) to diagnose the issue. I.e. see if it's really the cursor you think that is being problemmatic.

The commit should not have any affect on closing cursors. In fact the commit should only be done when the logic requires it.

Vlad Sadilovskiy
Oracle Database Tools
http://www.fourthelephant.com

On 9/26/07, DBA Deepak <oracle.tutorials_at_gmail.com> wrote:
>
> Hi All,
>
> Have a PL/SQL stored procedure, which is doing DELETE from a table 1000
> time. And the same procedure is getting called many times from the
> application. (Am not using any explicit cursors inside the stored procedure)
>
>
> My problem is am getting "ORA-01000: maximum open cursors exceeded"
> exception.
>
> I think Oracle should sclose the implicit cursor opened by the DELETE
> after the execution goes out of scope.
>
> Is there any reasoning behind this and any solution to this issue?
>
> Please help.
>
> --
> Regards,
>
> Deepak
> Oracle DBA
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Sep 26 2007 - 08:02:46 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US