ORA-01113: file 1 needs media recovery
                                                 Last update (2012-04-04 03:02:12)
                                                                                                                   Date added (2012-04-02 01:07:39)

Summary
After a disk crash, Oracle database is not starting up.
SQL> startup
ORACLE instance started.
Total System Global Area 4093640704 bytes
Fixed Size                  2076296 bytes
Variable Size            3120562552 bytes
Database Buffers          956301312 bytes
Redo Buffers               14700544 bytes
Database mounted.
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '/ora4/MISPROD/datafiles/system01.dbf'
If i try to recover the specific datafile '/ora4/MISPROD/datafiles/system01.dbf' then i get at the alert.log
Fri Mar 30 19:12:20 2012
Media RECOVERY START      
WARNING! Recovering DATA FILE 1 FROM a fuzzy BACKUP. It might be an ONLINE
BACKUP taken WITHOUT entering THE BEGIN BACKUP command.
PARALLEL RECOVERY started WITH 7 processes
Fri Mar 30 19:12:20 2012  
Errors IN FILE /oracle/app/oracle/ADMIN/MISPROD/udump/misprod_ora_13962.trc:
ORA-00322: LOG 7 OF THREAD 1 IS NOT CURRENT copy
ORA-00312: ONLINE LOG 7 THREAD 1: '/ora2/MISPROD/redologs/redo07.log'
"The right command to recover the database is:"
1. sqlplus>RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCEL
and the prompt says:
ORA-00279: CHANGE 6369425262914 GENERATED AT 30/03/2012 11:06:27 NEEDED FOR THREAD 1
ORA-00289: suggestion : /oracle/archives/1_58621_685245590.arc
ORA-00280: CHANGE 6369425262914 FOR THREAD 1 IS IN SEQUENCE #1

Specify LOG: {=suggested | filename | AUTO | CANCEL}
CANCEL
it asks for archivelog with sequence#=58621. But if you search for this archivelog is actually the last redolog which has not been archived logged and it is still on the disk
SELECT SEQUENCE#, archived, TO_CHAR(first_time, 'DD/MM/YYYY HH24:MI') first_time
FROM v$log
ORDER BY first_time DESC;
2. So simply give as archivelog, the redolog /ora2/MISPROD/redologs/redo07.log

at the alert.log after giving the redolog filename:
Fri Mar 30 22:35:18 2012
Media RECOVERY LOG /ora2/MISPROD/redologs/redo07.LOG
Fri Mar 30 22:35:18 2012
Incomplete RECOVERY applied ALL redo ever GENERATED.
RECOVERY completed THROUGH CHANGE 6369425262914
Fri Mar 30 22:35:18 2012
Media RECOVERY COMPLETE (MISPROD)
3. Finally open the database with resetlogs
Reviews
Categories
Oracle DBA-> (147)
  Alertlog (3)
  Archivelog (5)
  Auditing (1)
  Backup - Recovery (19)
  Database files (6)
  Database options (2)
  DB links (2)
  Dependencies (1)
  Dictionary (2)
  Exp-Imp Datapump (6)
  Jobs (2)
  Mview (2)
  Networking (3)
  Objects (7)
  Parameters (2)
  Redologs (6)
  Roles - Grants (2)
  Rollback - Undo (8)
  Segments (3)
  Sequences (2)
  Sessions (14)
  SGA (14)
  Tables (10)
  Tablespaces (10)
  Temp (4)
  Toad (5)
  Transactions (1)
  Upgrade (2)
  Users (3)
Oracle APPS DBA-> (66)
Exadata (1)
Performance Tuning-> (58)
Oracle Real Cases (24)
Oracle Errors (23)
Oracle SQL tricks (32)
Oracle RAC (3)
Oracle Security (8)
Filters
Search