Auto closing of cursor
Vikas Sharma, September 05, 2005 - 3:03 pm UTC
Hi Tom,
In ref to the first question. If the close statement is not use to close the explicit cursor, does it get close by it self after some time or it may or may not get close Please let me know.
I have read in a book that oracle will close cursor But one should not rely on oracle and close it explicitly.
thanks
Vikas Sharma
September 05, 2005 - 6:51 pm UTC
the client is responsible for closing the ref cursors returned to it, else they will never close until you exit the session.
ref cursors must be closed by the client (java, VB, whatever)
static cursor vs dynamic cursor
Antonio Vargas, September 06, 2005 - 7:36 am UTC
Tom, doing this:
declare
cursor c is select user from dual
begin
...
end;
cursor c is static and thus auto-closed when it goes out of scope, doesn't it?
September 06, 2005 - 8:46 am UTC