Time for action – resolving UNNAMED datafile errors
Now we'll see how to resolve an UNNAMED
datafile issue in a Data Guard configuration:
Check for the datafile number that needs to be recovered from the standby database:
SQL> SELECT * FROM V$RECOVER_FILE WHERE ERROR LIKE '%MISSING%'; FILE# ONLINE ONLINE_ ERROR CHANGE# TIME ---------- ------- ------- ----------------- ---------- ---------- 10 ONLINE ONLINE FILE MISSING 0
Identify datafile
10
in the primary database:SQL> SELECT FILE#,NAME FROM V$DATAFILE WHERE FILE#=10; FILE# NAME ---------- ----------------------------------------------- 536 /u01/app/oracle2/datafile/ORCL/users03.dbf
Identify the dummy filename created in the standby database:
SQL> SELECT FILE#,NAME FROM V$DATAFILE WHERE FILE#=10; FILE# NAME ---------- ------------------------------------------------------- 536 /u01/app/oracle2/product/11.2.0/dbhome_1/dbs/UNNAMED00010
If the reason for...