If database control files are lost or corrupted, you can restore it by performing a File-Level Recovery. After the file-level recovery is successful, you have to manually recover the control files.
Follow these steps:
SQL>shutdown abort
SQL>startup nomount
SQL> show parameter control_files; NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ control_files string /opt/oracle/oradata/lynx/control01.ctl, /opt/oracle/flash_recovery_area/lynx/control02.ctl
Example: Enter "control01.ctl " and search.
$sqlplus / as sysdba SQL>alter database mount;
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE
Note: If the required archived log is missing, then it implies that a necessary redo record is located in the online redo logs. It occurs because unarchived changes are located in the online logs when the instance failed. You can specify the full path of an online redo log file and press Enter (you may have to try this a few times until you find the correct log).
Example:
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE ORA-00279: change 1035184 generated at 05/27/2014 18:12:49 needed for thread 1 ORA-00289: suggestion : /opt/oracle/flash_recovery_area/LYNX/archivelog/2014_05_27/o1_mf_1_6_%u_.arc ORA-00280: change 1035184 for thread 1 is in sequence #6 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} /opt/oracle/oradata/lynx/redo03.log Log applied. Media recovery complete.
SQL>alter database open resetlogs;
The control files are successfully recovered.
Copyright © 2015 Arcserve.
All rights reserved.
|
|