Recover Oracle Database Upon Losing All Control Fi
Recover Oracle Database Upon Losing All Control Fi
R.Wang
Oct 19, 07
Preface: This is experimental case study about recovering oracle database upon losing all
control files. This experimental is conducted on Windows XP Professional
with Oracle database 10.2.0 in archivelog mode
Steps of Experiment
1. Backup control file
SQL> alter database backup controlfile to 'C:\oracle\product\10.2.0\oradata\orcl\control_back.ctl';
Database altered.
Tablespace created.
Table created.
1 row created.
SQL> commit;
Commit complete.
In this case, we’d like to recover the tablespace newly created. So, we pick the
time point “Fri Oct 19 12:35:20 2007”as showed in color red.
SQL> select group#, thread#, sequence#, bytes, members,archived, status from v$log;
Due to backup control file was created before adding new tablespace, the
control file doesn’t contain information of newly created tablespace rec_test_1.
Comparably, archived redo logfile contains the name of this tablespace. That’s
the reason that error ORA-01244 and ORA-01110 were raised.
Database altered.
10. Retry the recovery without identifying time point as of step 8
SQL> recover database using backup controlfile;
ORA-00279: change 1129880 generated at 10/19/2007 12:34:16 needed for thread 1
ORA-00289: suggestion :
C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2007_
10_19\O1_MF_1_20_%U_.ARC
ORA-00280: change 1129880 for thread 1 is in sequence #20
Database altered.
N
----------
1
Note: 1. If the redo log file is not identified properly, the following error will occur.
SQL> recover database using backup controlfile until time '2007-10-19 12:35:20';
ORA-00279: change 1129633 generated at 10/19/2007 12:31:52 needed for thread 1
ORA-00289: suggestion :
C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2007_10
_19\O1_MF_1_20_%U_.ARC
ORA-00280: change 1129633 for thread 1 is in sequence #20
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF'
2. It’s impossible to recover database at this circumstance if the database is in
noarchivelog mode.