ORA-01113: file string needs media recovery

I got ” ORA-01113: file string needs media recovery”  error in Oracle database.

 

ORA-01113: file string needs media recovery

 

Details of error are as follows.

ORA-01113: file string needs media recovery
Cause: An attempt was made to online or open a database with a file that is in need of media recovery.
Action: First apply media recovery to the file.

SQL> alter database open; 
alter database open
*
ERROR at line 1:
ORA-01113: file 1 needs media recovery
ORA-01110: data file 1: '+DATA/MSDB/ONLINELOG/system01.dbf'

 

 

 

file string needs media recovery

This ORA-01113 error is related with the attempt was made to online or open a database with a file that is in need of media recovery.

 

If you got ORA-01110: data file 1: ‘+DATA/MSDB/ONLINELOG/system01.dbf’ errors, then run the recover database until cancel again as follows.

SQL> recover database until cancel;
ORA-00279: change 696770 generated at 29/04/2020 11:23:13 needed for thread 1
ORA-00289: suggestion :
+DATA/MSDB/ARCHIVELOG/archivelog/2020_04_30/o1_mf_1_2_%u_.arc
ORA-00280: change 696770 for thread 1 is in sequence #2


Specify log: {=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.

 

Now Media recovery is done, we can open database in resetlogs mode as follows.

SQL> alter database open resetlogs;

Database altered.

 

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

Oracle Tutorial | Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *