Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Recovery practice
PHernandez wrote:
> Thanks a lot for your response!
>
> Sybrand Bakker wrote:
>
>>Comments embedded >>
>>>If I instead had used >>>SQL> ALTER DATABASE BACKUP CONTROLFILE TO
>>>could I have done >>>$ cp /oracle/backup/control.bkp >>>/u01/app/oracle/oradata/test/control01.ctl >>>and been saved? >> >>Yes, exactly. But then how likely is it you loose all copies of your >>controlfile in a crash? >>Rman (when properly configured) autobackups the controlfile in this >>format.
% rman target /
RMAN> configure controlfile autobackup on;
If you don't - any FULL backup has the control file (and spfile)
in the same piece as the system tablespace. 9i R2 and above, not 8i!
You can restore the controlfile, when you know the piece name, e.g.:
RMAN> restore controlfile from '/o/oracle9/920/dbs/11ghmm8l_1_1';
>
>
>>>--- >>>connect target; >>>run { >>> RECOVER COPY OF DATABASE WITH TAG "S"; >>> BACKUP INCREMENTAL LEVEL 1 >>> FOR RECOVER OF COPY WITH TAG "S" >>> DATABASE; >>>} >> >>This is a very strange and likely dangerous script as it makes an >>*incremental* backup (ie changed blocks only). You do have a level 0 >>backup somewhere don't you? Otherwise you are toast.
Why do you start with a recover, when you want a backup?
RMAN> backup full database;
would be sufficient.
-- Regards, Frank van BortelReceived on Sat Apr 16 2005 - 09:49:08 CDT