AllExperts > Oracle 
Search      
Oracle
Volunteer
Answers to thousands of questions
 Home · More Oracle Questions · Answer Library  · Encyclopedia ·
More Oracle Answers
Question Library

Ask a question about Oracle
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Peter Choi
Expertise
I am a senior Oracle DBA, PeopleSoft Administrator and Project Manager with 10+ years experience. I have been working with PeopleSoft (HRMS 5, 7, 7.x and 8.9), Oracle RDBMS (7.3 - 11gR1) on various Unix and Windows platforms, and some Oracle Application Server (9i/10gR2). I also have experience with the configuration and administration of BEA`s Tuxedo and WebLogic for PeopleSoft 8.x.

 
   

You are here:  Experts > Computing/Technology > Oracle > Oracle > Clearing Oracle Database

Oracle - Clearing Oracle Database


Expert: Peter Choi - 7/7/2009

Question
Hi.
I have a question about how to clearing Oracle 10.2.0.3 Database (clearing database files, free it) without deleteing it. Program which i use is in test implementation thats why I need restore backed up database very frequently and then import existing data.
How can I clear (drop) all data (tables, indexes ...)
from Oracle DataBase Instance to make it like just created one.
Thanks.

Answer
Hi Magerram,

NOTE: This will remove the database as well as all the data in this database. Tables and tablespaces will be dropped and removed!

SQL> shutdown abort;
SQL> startup mount exclusive restrict;
SQL> drop database;
SQL> exit

Reference: http://www.adp-gmbh.ch/ora/sql/drop_database.html

Alternatively, you can run the dbca (on either MS-Windows or Unix based operating system). The "Database Configuration Assistant" can also be used to drop your database using its GUI application.

Hope this helps.

Peter  

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.