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: ManojKr Jha <jmanoj_at_delhi.tcs.co.in>
Date: Tue, 15 Apr 2003 23:18:35 -0800
Message-ID: <F001.00582402.20030415231835@fatcity.com>

For this u can write a cord in which first u check whether resource is busy or locked in a loop and introduce sleep using dbms_lock.sleep before next check
and whenever get free, do ur action.

This will avoid resource stagination....

With Regards,
Manoj Kumar Jha
C-56 , Phase-2
NOIDA -201305, UP(INDIA)
Tata Consultancy Services
Ph No: (+91-120) 4461001 ext : 1037 (Off.) Mobile No : 9810090974


A transcendentalist engaged in auspicious activities does not meet with destruction either in this world or in the spiritual world; one who does good, is never overcome by evil.


                                                                                                                   
                    Stephane                                                                                       
                    Faroult              To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>       
                    <sfaroult_at_ori        cc:                                                                       
                    ole.com>             Subject:     Re: What is the result of this                               
                    Sent by:                                                                                       
                    root_at_fatcity.                                                                                  
                    com                                                                                            
                                                                                                                   
                                                                                                                   
                    04/16/03                                                                                       
                    02:29 AM                                                                                       
                    Please                                                                                         
                    respond to                                                                                     
                    ORACLE-L                                                                                       
                                                                                                                   
                                                                                                                   




Stephen Lee wrote:
>
> 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?
>

My feeling is that in most cases you'll overflow the Oracle exception stack very quickly.

--
Regards,

Stephane Faroult
Oriole Software
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Stephane Faroult
  INET: sfaroult_at_oriole.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: ManojKr Jha
  INET: jmanoj_at_delhi.tcs.co.in

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 Wed Apr 16 2003 - 02:18:35 CDT

Original text of this message

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