Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> reference cursors
I got one here. I'll start without all the details to see if the answer is
something simple that can be answered without the ugly details, trace files,
etc.
The app calls a procedure in a package which does a select and hands back the results to a refcursor which gets used by a VB app (don't look at me, I didn't do it). It takes about 60 - 70 seconds for the VB app to get its data back.
If I make the procedure a stand-alone procedure that just opens a plain old cursor and loops through it with some dbms_output.put_line calls, the thing prints out the same info, but returns in less than a second. If I do the following:
PL/SQL procedure successfully completed.
SQL> print A
The "successfully completed" returns almost immediately. But the "print A" takes about a minute to start printing. Is there some essential element of using refcursors that has been missed here?
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.htmlReceived on Thu Jan 29 2004 - 16:59:06 CST
-----------------------------------------------------------------
![]() |
![]() |