deleting datafiles

deleting datafiles

Post by Tony Adolp » Sun, 31 Dec 1899 09:00:00



Greetings All,

I want to delete 45 datafiles from my database.  I have offline dropped
them, and then re-created the controlfiles using an edited copy of the
"backup controlfile to trace" script.  When I run
'select file#, name, status from v$datafile;'
I see the files are now "MISSING" and have a status of RECOVER.  So I
guess that they are still in the data dictionary and missing from the
control file.

How can I cleanly remove these files?

Regards
Tony Adolph

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

deleting datafiles

Post by Mark D Powel » Sun, 31 Dec 1899 09:00:00




Quote:> Greetings All,

> I want to delete 45 datafiles from my database.  I have offline
dropped
> them, and then re-created the controlfiles using an edited copy of the
> "backup controlfile to trace" script.  When I run
> 'select file#, name, status from v$datafile;'
> I see the files are now "MISSING" and have a status of RECOVER.  So I
> guess that they are still in the data dictionary and missing from the
> control file.

> How can I cleanly remove these files?

> Regards
> Tony Adolph

The only way to unallocate a file from the database once it has been
added that does not require a recovery is to alter the tablespace that
the file belongs to offline and then drop the tablespace.   This means
you will need to export or relocate all objects in the tablespace prior
to the drop.

--
Mark D. Powell  -- The only advice that counts is the advice that
 you follow so follow your own advice --

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

deleting datafiles

Post by James Willia » Sun, 31 Dec 1899 09:00:00


Did you try dropping the tablespaces associated with the datafiles.

I would assume these datafiles are associated with tablespaces you no
longer need.

Quote:>Greetings All,

>I want to delete 45 datafiles from my database.  I have offline dropped
>them, and then re-created the controlfiles using an edited copy of the
>"backup controlfile to trace" script.  When I run
>'select file#, name, status from v$datafile;'
>I see the files are now "MISSING" and have a status of RECOVER.  So I
>guess that they are still in the data dictionary and missing from the
>control file.

>How can I cleanly remove these files?

>Regards
>Tony Adolph

>Sent via Deja.com http://www.deja.com/
>Before you buy.

 
 
 

deleting datafiles

Post by Tony Adolp » Sun, 31 Dec 1899 09:00:00


Thanks for the replies Gents,

I have another 20 or so datafiles in this tablespace that contain data
so I cant drop the tablespace.  But if its the only way then I'll move
the remaining objects into another tablepsace and then drop the
original.

Thanks again,
Tony

Sent via Deja.com http://www.deja.com/
Before you buy.