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: Script to overcome ORA-54 during DDL

Re: Script to overcome ORA-54 during DDL

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Sat, 26 Jun 2004 03:46:50 +0100 (BST)
Message-ID: <20040626024650.6646.qmail@web25202.mail.ukl.yahoo.com>


After a thorough and comprehensive tuning review...a revised version is below..

create or replace procedure do_ddl(m_sql varchar2) as
 in_use exception ;
 pragma exception_init(in_use, -54);
begin
 while true loop
  begin
   execute immediate m_sql;
   exit;
  exception
   when in_use then null;
-- when others then raise;
  end;
  dbms_lock.sleep(0.01);
 end loop;
end;
/

:-)


Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions" ISBN: 1590592174 web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"


                                  
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Jun 25 2004 - 21:43:32 CDT

Original text of this message

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