Issue:
MRP0: Background Media Recovery
terminated with error 1111
Errors in file
<path>xxx_18127.trc:
ORA-01111: name for data file 29 is
unknown - rename to correct file
ORA-01110: data file 29:
'<path>/UNNAMED00029'
ORA-01157: cannot identify/lock data
file 29 - see DBWR trace file
ORA-01111: name for data file 29 is
unknown - rename to correct file
ORA-01110: data file 29:
'<path>/UNNAMED00029'
Cause:
This issue was happened due to the standby_file_management
set to manual.
<path>a_media03.dbf
data file is not shipped properly to standby.
Action Plan:
To fix this error, Please find the
action plan below..
1. Check for the files needs to be recovered.
select * from v$recover_file where error like '%FILE%';
Identify on primary of data file 124(Primary Database)
select file#,name from v$datafile where file#='124'
Identify on primary of data file 124(Standby Database)
select file#,name from v$datafile where file#='124'
Crosscheck that no MRP is running and STANDBY_FILE_MANAGEMENT can be enabled once after creating file on standby
ENABLE STANDBY_FILE_MANAGEMENT to MANUAL on the STANDBY server
alter system set standby_file_management=MANUAL scope=both;
show parameter standby_file_management
Create missing datafile on the Standby Server
alter database create datafile '/drhome/oradr/STANDBY/db/tech_st/10.2.0/dbs/UNNAMED00124' as '/drdata/oradr/db/apps_st/data/switchover01.dbf';
ENABLE STANDBY_FILE_MANAGEMENT to MANUAL on the STANDBY server
alter system set standby_file_management=AUTO scope=both;
show parameter standby_file_management
alter database recover managed standby database disconnect from session;
After creating the file, MRP will start applying archives on standby database.
select * from v$recover_file where error like '%FILE%';
Identify on primary of data file 124(Primary Database)
select file#,name from v$datafile where file#='124'
Identify on primary of data file 124(Standby Database)
select file#,name from v$datafile where file#='124'
Crosscheck that no MRP is running and STANDBY_FILE_MANAGEMENT can be enabled once after creating file on standby
ENABLE STANDBY_FILE_MANAGEMENT to MANUAL on the STANDBY server
alter system set standby_file_management=MANUAL scope=both;
show parameter standby_file_management
Create missing datafile on the Standby Server
alter database create datafile '/drhome/oradr/STANDBY/db/tech_st/10.2.0/dbs/UNNAMED00124' as '/drdata/oradr/db/apps_st/data/switchover01.dbf';
ENABLE STANDBY_FILE_MANAGEMENT to MANUAL on the STANDBY server
alter system set standby_file_management=AUTO scope=both;
show parameter standby_file_management
alter database recover managed standby database disconnect from session;
After creating the file, MRP will start applying archives on standby database.
No comments:
Post a Comment