Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Dropping an entire database
Hi Stephane,
If you run the following script and then execute the output at the OS, it will drop the entire database. This is quick, easy (maybe too much so) and it works on any version of Oracle on any platform. (On NT substitute "DEL" for "RM").
set pagesize 0
set feedback off
select 'rm ' || file_name from dba_data_files
union all
select 'rm ' || member from v$logfile
union all
select 'rm ' || name from v$controlfile
spool drop.sh
/
spool off
You may also want to manually do the following to remove ALL traces of the database. These steps are NOT necessary if you plan to
Hope this helps,
Matt Received on Mon Dec 17 2001 - 09:13:05 CST
![]() |
![]() |