Forum OpenACS Q&A: oracle recovery after media failure

Collapse
Posted by Jay Dubanik on
Hi,

Im asking this question here as I remember Don saying one time it was ok.

I am or was:( running OACS on oracle8i/RH7.3

I had a media failure and have to go to my backup files to restore database.

The problem is that my backup is missing 1 data file which contains a schema that I don't care about.

I have this missing in backup data file but is newer than control file from backup and oracle will not accept it.

Question:
What can I do in this case, is there a way to tell oracle not to care about this datafile and open?

Collapse
Posted by jerry arns on
Try to put the missing datafile offline. Try this :

I assume the database is shutdown.
Log as sysdba into sqlplus

(connected to an idle instance)
sqlplus> startup mount
database mounted
sqlplus> alter database datafile '/path/filename' offline;

sqlplus> alter database open;

Your database will then be opened, but the data in the datafile inaccessible.

If the datafile is part of a tablespace you don't care of, you can then drop the tablespace.

But you can't drop a datafile. To get rid of the datafile, you must drop the sassociated tablespace.

Hope this help.