Remove datafile from controlfile: recover partial database until time

From: <Laimutis.Nedzinskas_at_seb.lt>
Date: Wed, 9 Nov 2011 15:33:04 +0200
Message-ID: <OFA9364CA0.DFFB977E-ONC2257943.0049817A-C2257943.004A70A4_at_seb.lt>


Hi

Is it possible to remove datafile entry from control file while database is mounted ?

I managed to achieve that by using recreating control file with "CREATE CONTROLFILE..."
Is there another option ?
"alter database datafile ... offline drop" does not do that. It offlines the datafile.

If anyone is interested why I need that I can tell:

I develop a procedure to partially recover only some datafiles of database. It all works fine with "alter database datafile ... offline drop" except that sqlplus RECOVER UNTIL TIME has to be used instead of RMAN. RMAN does not allow such recovery. It works with SKIP TABLESPACES option but my task is more than that: I know which datafiles I have to restore exactly. However if controlfile is recreated from scratch and the unneeded files are omitted then RMAN recover works fine. RMAN recover has a few nice options like auto restoring of required archive logs and deleting them on a fly. Of course one can guess why I need all that: out of multy TB database only a few tabless needs to be restored :-] Sure, the storage space is an issue :-]

Thank you in advance. Laimis N


Please consider the environment before printing this e-mail

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Nov 09 2011 - 07:33:04 CST

Original text of this message