Symptom: Error ORA-01276: Cannotaddfile + testdgracdatafilesystem.416.8333820.5.filehasanoracleman when executing RMAN copy
Symptom: an error occurred while executing RMAN copy. ORA-01276: Cannot add file + TESTDG/rac/datafile/system.416.833384245. File has an Oracle Man
Symptoms:
An error is reported when RMAN copy is executed.
ORA-01276: Cannot add file + TESTDG/rac/datafile/system.416.8333820.5. File has an Oracle Managed Files file name.
As follows:
RMAN> copy datafile 1 to '+ TESTDG/rac/datafile/system.416.833384105 ';
Starting backup at 05-DEC-13
Copy datafile 2 to '+ TESTDG/rac/datafile/sysaux.ux.8333820.7 ';
Copy datafile 3 to '+ TESTDG/rac/datafile/undotbs1.418.8333820.7 ';
Copy datafile 4 to '+ TESTDG/rac/datafile/users.419.833384109 ';
Copy datafile 5 to '+ TESTDG/rac/datafile/undotbs2.20..833384491'; using target database control file instead of recovery catalog
Allocated channel: ORA_DISK_1
Channel ORA_DISK_1: SID = 140 instance = rac1 device type = DISK
Channel ORA_DISK_1: starting datafile copy
Input datafile file number = 00001 name = + DATA/rac/datafile/system.416.833384105
RMAN-00571: ========================================================== ==============================
RMAN-00569: ==================== error message stack follows ==========================
RMAN-00571: ========================================================== ==============================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 12/05/2013 15:55:34
ORA-01276: Cannot add file + TESTDG/rac/datafile/system.416.8333820.5. File has an Oracle Managed Files file name.
Analysis:
Error: ORA-01276 (ORA-1276)
Text: Cannot add a file with an Oracle Managed Files file name.
---------------------------------------------------------------------------
Cause: An attempt was made to add to the database a datafile, log file,
Or control file with an Oracle Managed Files file name.
Action: Retry the operation with a new file name.
ASM automatically names OMF files. In this case, the file after COPY cannot be named the same as the source file.
Solution:
Follow the Oracle prompt to correct the command:
Copy datafile 1 to '+ TESTDG/rac/datafile/system. dbf ';
RMAN>
RMAN> copy datafile 1 to '+ TESTDG/rac/datafile/system. dbf ';
Starting backup at 05-DEC-13
Using channel ORA_DISK_1
Channel ORA_DISK_1: starting datafile copy
Input datafile file number = 00001 name = + DATA/rac/datafile/system.416.833384105
Output file name = + TESTDG/rac/datafile/system. dbf tag = TAG20131205T155835 RECID = 1 STAMP = 833385552
Channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:45
Finished backup at 05-DEC-13
RMAN>
Recommended reading:
RMAN: Configure an archive log deletion policy
Basic Oracle tutorial-copying a database through RMAN
Reference for RMAN backup policy formulation
RMAN backup learning notes
Oracle Database Backup encryption RMAN Encryption