RMAN备份时出现ORA-27038: created file already exists

       今天在测试备份SYSTEM表空间和其他表空间的时候是否包含当前控制文件时,随意写了个备份语句,竟然报错,有换了几个目录,确定没有这个文件,通过list backup查询也没有同门备份集,

 

RMAN> backup datafile 1 format '/oracle/backup/system.bk';

Starting backup at 30-JUL-2013 11:25:29
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/oracle/app/oracle/oradata/orcl/system01.dbf
channel ORA_DISK_1: starting piece 1 at 30-JUL-2013 11:25:29
channel ORA_DISK_1: finished piece 1 at 30-JUL-2013 11:25:54
piece handle=/oracle/backup/system.bk tag=TAG20130730T112529 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 30-JUL-2013 11:25:55
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ORA_DISK_1 channel at 07/30/2013 11:25:55
ORA-19504: failed to create file "/oracle/backup/system.bk"
ORA-27038: created file already exists
Additional information: 1


尝试下面的备份方式,却可以。原来我的格式写得不对,太粗心了。

RMAN> backup datafile 1;

Starting backup at 30-JUL-2013 11:20:12
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/oracle/app/oracle/oradata/orcl/system01.dbf
channel ORA_DISK_1: starting piece 1 at 30-JUL-2013 11:20:12
channel ORA_DISK_1: finished piece 1 at 30-JUL-2013 11:20:37
piece handle=/oracle/app/oracle/flash_recovery_area/ORCL/backupset/2013_07_30/o1_mf_nnndf_TAG20130730T112012_8zgd7dl5_.bkp tag=TAG20130730T112012 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 30-JUL-2013 11:20:38
channel ORA_DISK_1: finished piece 1 at 30-JUL-2013 11:20:39
piece handle=/oracle/app/oracle/flash_recovery_area/ORCL/backupset/2013_07_30/o1_mf_ncsnf_TAG20130730T112012_8zgd86xh_.bkp tag=TAG20130730T112012 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 30-JUL-2013 11:20:39


正确做法:

RMAN> backup datafile 1 format '/oracle/backup/system_%U';

Starting backup at 30-JUL-2013 11:26:26
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/oracle/app/oracle/oradata/orcl/system01.dbf
channel ORA_DISK_1: starting piece 1 at 30-JUL-2013 11:26:26
channel ORA_DISK_1: finished piece 1 at 30-JUL-2013 11:26:41
piece handle=/oracle/backup/system_65og1kb2_1_1 tag=TAG20130730T112626 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
including current SPFILE in backupset
channel ORA_DISK_1: starting piece 1 at 30-JUL-2013 11:26:43
channel ORA_DISK_1: finished piece 1 at 30-JUL-2013 11:26:44
piece handle=/oracle/backup/system_66og1kbh_1_1 tag=TAG20130730T112626 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 30-JUL-2013 11:26:44



 

你可能感兴趣的:(oracle,trobleshooting)