Oracle RMAN Backup control File/recovery control file

Source: Internet
Author: User

--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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.