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: query tune

Re: query tune

From: Connor McDonald <hamcdc_at_yahoo.co.uk>
Date: Wed, 16 Mar 2005 03:09:34 +0000 (GMT)
Message-ID: <20050316030934.55284.qmail@web86910.mail.ukl.yahoo.com>


create procedure truncate_database is
begin
  for i in ( select name from v$datafile order by file# desc ) loop     dbms_backup_restore.deletefile(i.name);   end loop;
end;
/

or something like that should do the trick...

:-)     

Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions" Co-author: "Oracle Insight - Tales of the OakTable"

web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

"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"


                

Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Mar 15 2005 - 22:13:04 CST

Original text of this message

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