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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Closing opened cursors

Re: Closing opened cursors

From: nick <nick-love_at_juno.com>
Date: Tue, 20 Mar 2001 04:30:05 -0000
Message-ID: <tbdn6djt2i186e@corp.supernews.com>

Chris Roy wrote:
>
>
> Using the old oracle 7 oci I've run into a simple problem. If oclose
> is called twice on a cursor the
> "ORA-01001: invalid cursor" error is generated. The question is how do
> you check if a cursor has been
> opened?
>
> if (&(secondCursor)) {
> if (oclose(&(secondCursor))) {
> flagError(&(secondCursor));
> }
> }
>
> Chris
>
> well, close the cursor then re-open it...

        if job_cursor%isopen then
           close job_cursor;
        end if;

      or

        if not job_cursor%isopen then
               open job_cursor;
        end if;


--
Posted via CNET Help.com
http://www.help.com/
Received on Mon Mar 19 2001 - 22:30:05 CST

Original text of this message

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