Solved

Deleting Datafiles to Reclaim Space

Posted on 2007-04-11
2
425 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

896 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

16 Experts available now in Live!

Get 1:1 Help Now