snippetMinor
How can I delete a corrupted table space?
Viewed 0 times
corruptedcanspacedeletehowtable
Problem
Problem:
On an Oracle 11.2g DB;
We have a corrupted TS that does not allow starting the database instance above mount state. The TS cannot be removed with standard methods (i.e., enterprise manager).
What can we do?
What other information is needed to diagnose the problem?
(We've meanwhile checked the file system, which is ok, but the DBF file for the tablespace is lost.)
On an Oracle 11.2g DB;
We have a corrupted TS that does not allow starting the database instance above mount state. The TS cannot be removed with standard methods (i.e., enterprise manager).
What can we do?
What other information is needed to diagnose the problem?
(We've meanwhile checked the file system, which is ok, but the DBF file for the tablespace is lost.)
Solution
If you just want to remove the tablespace have you tried logging in as
If so, what error message do you receive? (I'm assuming you've made a cold backup of the database at this point in case the tablespace is needed.)
Alternatively, if you can determine which datafile is corrupt you can remove this from the tablespace:
Make sure that is the filename known to Oracle, especially if any links may be involved on disk! Otherwise you will get misleading errors about non-existent files.
sys and dropping it?DROP TABLESPACE
INCLUDING CONTENTS
CASCADE CONSTRAINTS;If so, what error message do you receive? (I'm assuming you've made a cold backup of the database at this point in case the tablespace is needed.)
Alternatively, if you can determine which datafile is corrupt you can remove this from the tablespace:
ALTER DATABASE DATAFILE '' OFFLINE DROP;Make sure that is the filename known to Oracle, especially if any links may be involved on disk! Otherwise you will get misleading errors about non-existent files.
Code Snippets
DROP TABLESPACE <tablespace>
INCLUDING CONTENTS
CASCADE CONSTRAINTS;ALTER DATABASE DATAFILE '<filename>' OFFLINE DROP;Context
StackExchange Database Administrators Q#12532, answer score: 6
Revisions (0)
No revisions yet.