On Thu, 10 Jun 1999 dcelznick@euclid-hitachi.com wrote:
> Ari,
> 
> Thanks for the info -
> 
> I have exported the entire DB.  I am putting together my Create DB commands
> before I drop the DB.
> How do I drop the database??  I have searched the manuals i.e Alter
> database and such?  No Luck so far?
> What is a good procedure to do this?
> 
> Thanks,
> 
> Dave Celznick

Dropping databases are fun. Here is how to do it:

1) First, find all datafiles, controlfiles, and redo logs:

SELECT * FROM DBA_DATA_FILES;
SELECT * FROM V$CONTROLFILE;
SELECT * FROM V$LOGFILE;

2) Shutdown the database (abort):

SVRMGRL> SHUTDOWN ABORT;

3) Remove all of the files from the server ("rm" in Unix, "del" in NT)

There you have it!

-Ari Kaplan
Independent Oracle DBA Consultant

<-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><->
<-> For 300+ Oracle tips, visit my Web Page:                      <->
<->                                                               <->
<->             www.arikaplan.com                                 <->
<->                                                               <->
<->             email: akaplan@interaccess.com                    <->
<-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><-><->

Back to Ari Kaplan's Home Page > Back to Ari Kaplan's Home Page