--Backup control file Rman target /rman> startuprman> configure controlfile autobackup on; --Start automatic backup rman> show controlfile autobackup; --show whether the control files are automatically backed up rman> configure controlfile autobackup format for device type disk to '/backup/%f '; --set control file backup path rman> show controlfile autobackup format; -- Show automatic backup control file path rman> list backup of controlfile;--display backup information----manual backup control file Rman> backup as backupset current controlfile;-------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------Recovery Control File--automatic archive not turned on Rman > startup nomountRMAN> restore controlfile from ' =/backup/ c-1415711864-20150817-00‘; rman> startup mount; rman> recover database; rman> alter database open resetlogs;---Turn on automatic archiving sql> recover database;--( Because the auto-archive mode is started, error here) ora-00283: recovery session canceled due to errorsora-01610: recovery using the BACKUP CONTROLFILE option must be doneSQL> recover database using backup controlfile; specify log: {=suggested | filename | auto | cancel}/oracle/u01/app/ Oracle/oradata/orcl/redo01.log (the log file path is specified here, but it's not lost after this recovery, is it weird?) sql>alter database open resetlogs;
--Note: You can also restore the control file by rebuilding it
--Note: After the recovery of the control file to start the database, reported the following error, because the control file SCN is inconsistent with the data file, so you need to use the Recover command, above two because one boot archive mode, the other does not start, so there is a difference
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE, STACK follows ===============
RMAN-00571: ===========================================================
Rman-03002:failure of Alter DB command at 08/17/2015 23:16:07
Ora-01152:file 1 was wasn't restored from a sufficiently old backup
Ora-01110:data file 1: '/APP/ORACLE/ORADATA/ORCL/SYSTEM01.DBF '
Oracle RMAN Backup control File/recovery control file