Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

Oracle Drop Datafile

Oracle Database Tips by Donald BurlesonFebruary 7,  2015

In Oracle datafiles cannot simply be dropped, like a tablespace or schema for example, but there are other techniques you can use to "drop" or remove a datafile.

If the datafile you wish to drop is the only datafile present in the tablespace in which it resides, you can simply drop the tablespace with the following command:

DROP TABLESPACE <tablespace name> INCLUDING CONTENTS;

Please Note: Dropping a tablespace will result in the removal of the tablespace, any datafiles presents, and any other tablespace contents. Be sure that you have a full backup if you wish to have the ability to recover any data in the tablespace. If other datafiles you wish to keep reside in the tablespace, it will be necessary to export them prior to dropping the tablespace.

Once the tablespace has been dropped, you can then physically remove the datafile from your system using an operating system command, if you so choose.

Dropping a datafile and physically removing it is not normally used to save space, as disk space is cheap. Normally it is not necessary to physically remove the datafile. If this is the case, you can simply take the datafile offline with the following command:

ALTER DATABASE DATAFILE <datafile name> OFFLINE DROP

This command will not drop the datafile, it will simply take the datafile offline and Oracle will no longer attempt to access it. Offlining the datafile is typically used when your intention is to drop the tablespace. This will also give you the ability to recover the datafile at a later date.

 


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.