Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: What is the result of this
Yeah, that would be another good question.
Maybe I'll ask them to write the sieve of Erosthenes as part of the test as well. They must do it in PL/SQL.
Re this recursize example: I ran the 'go' procedure for several minutes before killing the session.
Never did see the errors. Maybe I should run it on Windoze so it will break sooner.
Jared
On Tuesday 15 April 2003 17:03, Stephane Paquette wrote:
> 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: Jared Still INET: jkstill_at_cybcon.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 Wed Apr 16 2003 - 09:09:00 CDT
![]() |
![]() |