This post present the following error's solution.
ORA-00283: recovery session canceled due to errors
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
** This article is on my testing database that's why i didn't hesitate to recover until cansel also i had a same standby database to get my database back. but make sure you have ALL DATABASE BACKUP in case.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance mounted.
RMAN> alter database open resetlogs; RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of alter db command at 10/07/2014 10:30:25 ORA-01139: RESETLOGS option only valid after an incomplete database recovery
RMAN> alter database open;
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of alter db command at 10/07/2014 10:32:31 ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf' ORA-01207: file is more recent than control file - old control file
Restore The Database...
RMAN> restore database;
Starting restore at 11-JULY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00002 to /u01/app/oracle/oradata/orcl/undotbs01.dbf restoring datafile 00003 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf channel ORA_DISK_1: reading from backup piece /u01/app/oracle/backup/orcl/1mlmljvq_1_1 channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/backup/orcl/1mlmljvq_1_1 tag=TAG20100830T185905 channel ORA_DISK_1: restore complete, elapsed time: 00:00:39 channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf channel ORA_DISK_1: reading from backup piece /u01/app/oracle/backup/orcl/1vlmncgc_1_1 channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/backup/orcl/1vlmncgc_1_1 tag=TAG20100831T110340 channel ORA_DISK_1: restore complete, elapsed time: 00:02:43 Finished restore at 11-JULY-14
And Recover the Database.
RMAN> recover database;
Starting recover at 11-JUNY-14
using channel ORA_DISK_1
starting media recovery............................
..
..
..
...
....
...
...
RMAN> exit
Recovery Manager complete.
ORA-00283: recovery session canceled due to errors
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
** This article is on my testing database that's why i didn't hesitate to recover until cansel also i had a same standby database to get my database back. but make sure you have ALL DATABASE BACKUP in case.
SQL> shu immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount;
ORACLE instance mounted.
RMAN> alter database open resetlogs; RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of alter db command at 10/07/2014 10:30:25 ORA-01139: RESETLOGS option only valid after an incomplete database recovery
RMAN> alter database open;
RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of alter db command at 10/07/2014 10:32:31 ORA-01122: database file 1 failed verification check
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf' ORA-01207: file is more recent than control file - old control file
Restore The Database...
RMAN> restore database;
Starting restore at 11-JULY-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00002 to /u01/app/oracle/oradata/orcl/undotbs01.dbf restoring datafile 00003 to /u01/app/oracle/oradata/orcl/sysaux01.dbf
restoring datafile 00004 to /u01/app/oracle/oradata/orcl/users01.dbf channel ORA_DISK_1: reading from backup piece /u01/app/oracle/backup/orcl/1mlmljvq_1_1 channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/backup/orcl/1mlmljvq_1_1 tag=TAG20100830T185905 channel ORA_DISK_1: restore complete, elapsed time: 00:00:39 channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbf channel ORA_DISK_1: reading from backup piece /u01/app/oracle/backup/orcl/1vlmncgc_1_1 channel ORA_DISK_1: restored backup piece 1
piece handle=/u01/app/oracle/backup/orcl/1vlmncgc_1_1 tag=TAG20100831T110340 channel ORA_DISK_1: restore complete, elapsed time: 00:02:43 Finished restore at 11-JULY-14
And Recover the Database.
RMAN> recover database;
Starting recover at 11-JUNY-14
using channel ORA_DISK_1
starting media recovery............................
..
..
..
...
....
...
...
RMAN> exit
Recovery Manager complete.
SQL> shu immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 444596224 bytes
Fixed Size 1219904 bytes
Variable Size 188744384 bytes
Database Buffers 251658240 bytes
Redo Buffers 2973696 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
My Database couldnt open try to open again.
SQL> alter database open;
alter database open
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
This command will recover until first archive log.
SQL> recover database until cancel;
ORA-00279: change 696770 generated at 10/07/2014 10:43:53 needed for thread 1
ORA-00289: suggestion :
/u01/app/oracle/flash_recovery_area/orcl/archivelog/2014_07_11/o1_mf_1_2_%u_.arc
ORA-00280: change 696770 for thread 1 is in sequence #2
Specify log: {<ret>=suggested | filename | AUTO | CANCEL}
CANCEL
Media recovery cancelled.
SQL> alter database open resetlogs;
Database altered.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 1
Next log sequence to archive 1
Current log sequence 1
SQL>
No comments:
Post a Comment