Deleting Datafiles to Reclaim Space

Posted on 2007-04-11
Medium Priority
Last Modified: 2013-12-19
Oracle9i Enterprise Edition Release - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release - 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.
Question by:algotube

Author Comment

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.


Accepted Solution

IanStuart earned 1000 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;

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines

600 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