ORA-01111: name for data file | ORA-01110: data file | MRP0: Background Media Recovery terminated with error 1111

You can get ” ORA-01111: name for data file | ORA-01110: data file | MRP0: Background Media Recovery terminated with error 1111 ” error in you dataguard after adding new datafile to the primary database.

 

ORA-01111: name for data file | ORA-01110: data file

MRP0: Background Media Recovery terminated with error 1111

 

Details of error are as follows.

PR00 (PID:4805): MRP0: Background Media Recovery terminated with error 1111
2020-12-06T12:02:24.024723+03:00
Errors in file /u01/app/oracle/diag/rdbms/MSDBdr/MSDBDR1/trace/MSDBDR1_pr00_4805.trc:
ORA-01111: name for data file 692 is unknown - rename to correct file
ORA-01110: data file 692: '/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/UNNAMED00692'
ORA-01157: cannot identify/lock data file 692 - see DBWR trace file
ORA-01111: name for data file 692 is unknown - rename to correct file
ORA-01110: data file 692: '/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/UNNAMED00692'
2020-12-06T12:02:24.395747+03:00
Completed: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
stopping change tracking

 

The ORA-01110, ORA-01111 error is related with the new added datafile to the Production and  standby_file_management parameter is set to MANUAL in standby database.

 

If standby_file_management parameter is manual in your dataguard environment then you can take this error.

You can solve this problem with below steps.

1. Cancel dataguard MRP process.

alter database recover managed standby database cancel;

 

2. You need to change your datafile name with below command. This UNNAMED00324 name will be in dataguard alertlog so check the alertlog and define right UNNAMED file name and path.

 

To solve this error, Find the unnamed file in Standby. You can find out This unnamed filename both in alertlog and with the following script.

SQL> select file#,name from v$datafile where name like '%UNNAMED%';

/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/UNNAMED00692

 

Now create it again as follows, it will solve this error.

 

SQL> alter database create datafile '/u01/app/oracle/product/19.0.0.0/dbhome_1/dbs/UNNAMED00692' as '+DATAC1';

Database altered.

SQL>


ALTER DATABASE CREATE DATAFILE '/u01/app/oracle/product/11.2.0.4/dbhome_1/dbs/UNNAMED00324' AS '+DATAC1';

 

3.If you change datafile name with above command then you can start dataguard MRP process like below.

alter database recover managed standby database disconnect from session;


If you don’t want to see this error again, you can change the standby_file_management parameter like below.

 

alter system set standby_file_management='AUTO' scope=both;

 

And also you must set the db_create_file_dest parameter to solve this error as follows.

alter system set db_create_file_dest='+DATA' scope=both sid='*';

 

You can read the following post to see dataguard related errors.

MRP0: Background Media Recovery terminated with error 1274 | ORA-01274: cannot add data file

 

 

 

 

If you want to learn how to install Dataguard ( Standby ), read the following post.

Oracle DataGuard Physical Standby Installation Step by Step Using RMAN -1

 

 

 

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

https://ittutorial.org/oracle-database-19c-tutorials-for-beginners/

 785 views last month,  3 views today

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

IT Tutorial