Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I run oracle 10.2.0.5.

I have the following:

SQL> select file#, status, error, recover, tablespace_name, name
  2  from v$datafile_header
  3  where recover='YES'
  4  or (RECOVER IS NULL AND ERROR IS NOT NULL);

     FILE# STATUS
---------- -------
ERROR                                                             REC
----------------------------------------------------------------- ---
TABLESPACE_NAME
------------------------------
NAME
--------------------------------------------------------------------------------
        15 OFFLINE
FILE NOT FOUND

It's the remnant of a tablespace which was used for some synchronization using streams.

How can I "delete" this file from oracle's memory?

Thanks

share|improve this question
    
Can the entire tablespace be removed? –  Phil Apr 16 '12 at 19:25
add comment

1 Answer

up vote 2 down vote accepted

Shut the database down. Start it up again in mount mode:

connect / as sysdba;
startup mount;

Drop the datafile:

ALTER DATABASE DATAFILE '/full/path/of/file.dbf' OFFLINE DROP;

Open the DB:

alter database open;

Drop the tablespace:

DROP TABLESPACE <TS Name> INCLUDING CONTENTS;
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.