ORACLE_DATAGUARD_UNNAMEDnnnnnfile in standby site
UNNAMEDnnnnn file in standby siteafter new file added to primary database [ID 1329399.1]
Applies to:
OracleServer - Enterprise Edition - Version: 9.2.0.6and later [Release: 9.2 and later ]
Information in this document applies to any platform.
Symptoms
Anew file is added to Primary database but due to various reasons was not createdat the standby database.
Standby Database is giving the below error :
ORA-00283:recovery session canceled due to errors
ORA-01111: name for data file 52 is unknown - rename to correct file
ORA-01110: data file 52: '<path>/dbs/UNNAMED00052'
ORA-01157: cannot identify/lock data file 52 - see DBWR trace file
ORA-01111: name for data file 52 is unknown - rename to correct file
ORA-01110: data file 52: '<path>/dbs/UNNAMED00052'
Cause
Thereare many reasons for a file being created as UNNAMED or MISSING in the standbydatabase, including insufficient disk space on standby site. So a place holderfor the now missing file is added to the controlfile:
$ORACLE_HOME/dbs/UNNAMEDnnnnn
Solution
Atthe standby site, find any directory with sufficient space and create the filemanually, renaming the file UNNAMEDnnnnn in the process:
alter database create datafile '<path>/dbs/UNNAMED00052'as '<path>/<filename>' ;
'<path>/dbs/UNNAMED00052' will be taken from view v$datafile. Forexample:
SQL> select file#, name, status, creation_time fromv$datafile where file# = 52
or name like '%UNNAMED%';
References
NOTE:184327.1- Common Causes and Solutions on ORA-1157 Error Found in Backup & Recovery