RMAN 报:ORA-19504 ORA-27038

在执行Oracle 10g的RMAN备份时遇到了ORA-19504和ORA-27038错误,问题源于备份脚本中archive log格式设置不包含唯一标识符。解决方案是在格式字符串中添加%U参数,以确保每个备份文件名的独特性,从而避免文件已存在导致的错误。
摘要由CSDN通过智能技术生成

在itpub中看到下面的问题:

oracle 10g
备份脚本如下
run{
allocate channel d1 device type disk MAXPIECESIZE=100M;
crosscheck archivelog all;
delete noprompt expired archivelog all;
backup full tag '3Gfull' database include current controlfile format '/vm_svn/rmanback/fullback_%d_%T_s%s_p%p' plus
archivelog format '/vm_svn/rmanback/arch_%d_%T_%s' delete all input;
delete noprompt obsolete;
}

输出的log
.....
input archive log thread=1 sequence=2174 recid=1631 stamp=734587098
....
input archive log thread=1 sequence=2223 recid=1680 stamp=734671824
channel d1: starting piece 1 at 10-NOV-10
channel d1: finished piece 1 at 10-NOV-10
piece handle=/opt/oracle/rmanback/arch_ORCL_20101110_1544 tag=3GFULL comment=NONE
channel d1: starting piece 2 at 10-NOV-10
released channel: d1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 11/10/2010 03:31:26
ORA-19504: failed to create file "/opt/oracle/rmanback/arch_ORCL_20101110_1544"
ORA-27038: created file already exists

Additional information: 1

报错原因:

脚本中arch_%d_%T_%s没有一个参数指定了唯一值,所以在创建备份集时出现相同的备份集名,所以报错

加上参数 %U 就可以。

%U 代表唯一的文件名

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值