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: What is the result of this

RE: What is the result of this

From: Stephane Paquette <stephane.paquette_at_standardlife.ca>
Date: Tue, 15 Apr 2003 16:03:51 -0800
Message-ID: <F001.00582057.20030415160351@fatcity.com>


It will stack the call and use more and more resources, check the size of the session PGA.
You can do recursivity with SQL.

Jared, you should ask about recursivity with SQL in your interviews.

Stephane

-----Original Message-----
Sent: Tuesday, April 15, 2003 4:09 PM
To: Multiple recipients of list ORACLE-L

Here's a question that came up around here that nobody was sure about. Suppose you need to drop and index on a busy table, and you keep getting the "Resource busy .... " error. So you create a procedure as follows:

create or replace procedure go as
begin

   execute immediate 'drop index BUBBA.INDEX_NAME'; exception

   when others then

      go;
end;
/

Is this the a equivalent of a single loop that just loops around until successful; or does this result in recursion that just gets deeper and deeper, using up a constantly increasing amount of resources?

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Stephen Lee
  INET: Stephen.Lee_at_DTAG.Com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Paquette INET: stephane.paquette_at_standardlife.ca Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Apr 15 2003 - 19:03:51 CDT

Original text of this message

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