Solved

Deleting Datafiles to Reclaim Space

Posted on 2007-04-11
2
423 Views
Last Modified: 2013-12-19
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.7.0 - Production

System: Microsoft Windows Server 2003 Enterprise Edition
----------------------------------------------------------
Hello how are you today?

We have just implemented SAP in our environment. We were finding out that one of our tablespaces on our XI database kept on growing. To accommodate the growth we kept on adding datafiles. We went from 4 datafiles to 20 datafiles on drive G:\ORACLE\PXI\SAPDATA1 and 2 datafiles on N:\ORACLE\PXI\SAPDATA2. Our database is now at 150,000.00 Mb
Just recently we were able to run some delete jobs supplied from SAP. We were able to get all our datafiles under 20% used.

We now would like to delete all our datafiles and reclaim all our disk space.
What is the best way of doing this??

Can you please provide procedures on suggested ideas.

Thank you for your time.
0
Comment
Question by:algotube
2 Comments
 

Author Comment

by:algotube
ID: 18892774
We now would like to delete all our datafiles and reclaim all our disk space.

Sorry what I was trying to say is delete the extra datafiles added accept for the 4 original ones.

Regards
0
 
LVL 3

Accepted Solution

by:
IanStuart earned 250 total points
ID: 18897812
I'd suggest to drop the tablespace including the datafiles and then recreate it.
drop tablespace TABLESPACE_NAME including contents and datafiles;
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now