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

Home -> Community -> Mailing Lists -> Oracle-L -> What is the result of this

What is the result of this

From: Stephen Lee <Stephen.Lee_at_DTAG.Com>
Date: Tue, 15 Apr 2003 12:09:18 -0800
Message-ID: <F001.00581BAE.20030415120918@fatcity.com>

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). Received on Tue Apr 15 2003 - 15:09:18 CDT

Original text of this message

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