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/
One comment
Pingback: MRP0: Background Media Recovery terminated with error 1274 | ORA-01274: cannot add data file - IT Tutorial