RMAN 备份错误,同时创建完整和增量备份
RMAN backups error while creating full & incremental backups
我们在 windows 服务器上有我们的 oracle 实例 运行 & 当配置 RMAN 进行备份时,我们在日志中看到以下错误,
错误详情:
channel ch1: starting piece 1 at 07-MAY-17
channel ch1: finished piece 1 at 07-MAY-17
piece handle=\backup_share\FULL_db01_20170507.BAK tag=COMPLETE_BACKUP comment=NONE
channel ch1: backup set complete, elapsed time: 02:10:37
channel ch1: starting incremental level 0 datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ch1: starting piece 1 at 07-MAY-17
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch1 channel at 05/07/2017 23:10:45
ORA-19504: failed to create file "\backup_share\FULL_db01_20170507.BAK"
ORA-27038: created file already exists
OSD-04010: <create> option specified, file already exists
RMAN 命令脚本:
run{
Allocate channel ch1 type disk format '\backup_share\full_%d_%T.bak';
Backup incremental level=0 database tag='complete_backup';
Release channel ch1;
Allocate channel t1 type disk format '\backup_share\ctrl_%d_%T';
Backup current controlfile;
Release channel t1;
}
我在尝试进行增量备份时看到了相同类型的日志记录。有人可以帮我解决这个问题吗?
[oracle@orcluat ~]$ oerr ora 27038
27038, 00000, "created file already exists"
// *Cause: trying to create a database file, but file by that name already
// exists
// *Action: verify that name is correct, specify reuse if necessary
%d
格式指定数据库的名称,%T
指定公历中的年月日,格式为:YYYYMMDD
。它也反映在您的备份文件名 FULL_db01_20170507.BAK
中。可能有同名文件。
最好在文件名格式中使用 %U
,它指定系统生成的唯一文件名。
文档:
我们在 windows 服务器上有我们的 oracle 实例 运行 & 当配置 RMAN 进行备份时,我们在日志中看到以下错误,
错误详情:
channel ch1: starting piece 1 at 07-MAY-17
channel ch1: finished piece 1 at 07-MAY-17
piece handle=\backup_share\FULL_db01_20170507.BAK tag=COMPLETE_BACKUP comment=NONE
channel ch1: backup set complete, elapsed time: 02:10:37
channel ch1: starting incremental level 0 datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ch1: starting piece 1 at 07-MAY-17
released channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch1 channel at 05/07/2017 23:10:45
ORA-19504: failed to create file "\backup_share\FULL_db01_20170507.BAK"
ORA-27038: created file already exists
OSD-04010: <create> option specified, file already exists
RMAN 命令脚本:
run{
Allocate channel ch1 type disk format '\backup_share\full_%d_%T.bak';
Backup incremental level=0 database tag='complete_backup';
Release channel ch1;
Allocate channel t1 type disk format '\backup_share\ctrl_%d_%T';
Backup current controlfile;
Release channel t1;
}
我在尝试进行增量备份时看到了相同类型的日志记录。有人可以帮我解决这个问题吗?
[oracle@orcluat ~]$ oerr ora 27038 27038, 00000, "created file already exists" // *Cause: trying to create a database file, but file by that name already // exists // *Action: verify that name is correct, specify reuse if necessary
%d
格式指定数据库的名称,%T
指定公历中的年月日,格式为:YYYYMMDD
。它也反映在您的备份文件名 FULL_db01_20170507.BAK
中。可能有同名文件。
最好在文件名格式中使用 %U
,它指定系统生成的唯一文件名。
文档: