ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: 'C:\APP\RESWANTHREDDY\ORADATA\ORCL\SYSTEM01.DBF'
ORA-01589: Must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'C:\APP\RESWANTHREDDY\ORADATA\ORCL\SYSTEM01.DBF'
=>Find the redo log file which belongs to current using below query.
SQL> SELECT MEMBER FROM V$LOG G, V$LOGFILE F WHERE G.GROUP# = F.GROUP# AND G.STA
TUS = 'CURRENT';
MEMBER
--------------------------------------------------------------------------------
C:\APP\RESWANTHREDDY\ORADATA\ORCL\REDO03.LOG
RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL
SQL> RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL
ORA-00279: change 10897833 generated at 12/02/2016 20:55:41 needed for thread 1
ORA-00289: suggestion :
C:\APP\RESWANTHREDDY\FAST_RECOVERY_AREA\ORCL\ARCHIVELOG\2016_12_16\O1_MF_1_723_%
U_.ARC
ORA-00280: change 10897833 for thread 1 is in sequence #723
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
C:\APP\RESWANTHREDDY\ORADATA\ORCL\REDO03.LOG
Log applied.
Media recovery complete.
=> Open the database in RESETLOGS mode.
SQL> alter database open resetlogs;
Database altered.
SQL>
No comments:
Post a Comment