ORA-19693: 已包括备份片段 /opt/prodb/racpdb/2bufts5f_1_1

本文详细介绍了使用RMAN进行数据库恢复的过程,包括遇到ORA-01547和ORA-01152等错误的解决方法,以及如何处理备份片段重复包含的问题,通过crosscheck、delete expired和catalog命令来修复数据库。

问题描述

RMAN> recover database;

Starting recover at 04-11月-2019 15:53:09
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4

starting media recovery

channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=2 sequence=23501
channel ORA_DISK_1: reading from backup piece /opt/prodb/racpdb/28uftl4h_1_1
channel ORA_DISK_2: starting archived log restore to default destination
channel ORA_DISK_2: restoring archived log
archived log thread=1 sequence=29446
channel ORA_DISK_2: reading from backup piece /opt/prodb/racpdb/29uftl4h_1_1
channel ORA_DISK_3: starting archived log restore to default destination
channel ORA_DISK_3: restoring archived log
archived log thread=1 sequence=29447
Oracle Error:
ORA-01547: 警告: RECOVER 成功但 OPEN RESETLOGS 将出现如下错误
ORA-01152: 文件 1 没有从过旧的备份中还原
ORA-01110: 数据文件 1: '+DATA/racpdb/datafile/system.285.1023458409'

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/04/2019 15:53:14
ORA-19693: 已包括备份片段 /opt/prodb/racpdb/2bufts5f_1_1

问题描述:

[oracle@testpdb1 ~]$ oerr ora 19693
19693, 00000, "backup piece %s already included"
// *Cause:  This backup piece was already specified for inclusion in the
//          restore conversation. A restore conversation may process only
//          a single instance of a backup piece.
// *Action: Remove the specified duplicate backup piece in restore steps
//          and restart the conversation.

此备份片已用于RESTORE中。

问题解决

1.crosscheck backup;
2.delete expired backup;
3.recover database;
如果还报错:
4.使用CATALOG START WITH重新添加备份集
5.recover database;

channel default: deleting archived log(s)
archived log file name=+FRA/racpdb/archivelog/2019_11_04/thread_1_seq_29462.272.1023465953 RECID=51430 STAMP=1023465954
unable to find archived log
archived log thread=1 sequence=29463
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/04/2019 16:06:00
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 29463 and starting SCN of 2787125039

RMAN> recover database until sequence 29463;

Starting recover at 04-11月-2019 16:06:43
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4

starting media recovery
media recovery complete, elapsed time: 00:00:01

Finished recover at 04-11月-2019 16:06:47
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值