笔记:物理Standby搭建时恢复报错RMAN-03002 RMAN-06026 RMAN-06100

说明:
在进行physical standby搭建过程中,使用rman恢复灾备库,出现报错RMAN-03002 RMAN-06026 RMAN-06100,无法正常恢复数据库。

错误信息:

RMAN> 
RMAN-03090: Starting restore at 2020-07-31 09:40:32
RMAN-06009: using target database control file instead of recovery catalog
RMAN-08030: allocated channel: ORA_DISK_1
RMAN-08500: channel ORA_DISK_1: SID=2521 device type=DISK

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 07/31/2020 09:40:32
RMAN-06026: some targets not found - aborting restore
RMAN-06100: no channel to restore a backup or copy of datafile 1

记录debug:

C:\>rman target / log=rmanLog.txt trace=rmanTrace.txt
RMAN> debug on;
RMAN> restore datafile 1;
RMAN> debug off;
RMAN> exit;

分析:

During the restore operation, rman will catalog files in the configured Flash Recovery Area (FRA).

In this case, it finds 2 controlfile autobackups:

List of Cataloged Files
=======================
File Name: /Oracle_Flash_Recovery/app/oracle/admin/PATH/autobackup/2009_01_20/BP_NAME.bkp
File Name: /Oracle_Flash_Recovery/app/oracle/admin/PATH/autobackup/2009_01_23/BP_NAME.bkp

 and this causes the incarnation to be reset as can be seen in the alert.log:

New incarnation branch detected in Backup, filename /Oracle_Flash_Recovery/app/oracle/admin/PATH/autobackup/2009_01_20/deleted_BP_NAME.bkp
Inspection of file changed rdi from 2 to 3
Setting recovery target incarnation to 3
Mon Jan 26 15:58:44 2009
Setting recovery target incarnation to 3

With this new incarnation set, rman is unable to find the backups from the previous incarnation.

可能是闪回区自动备份的控制文件导致

解决方案:
1,在新库设置新的FRA目录
2,保证FRA为空

The solution is to make sure rman is not finding the controlfile autobackups during restore.

This can be done in 2 ways:

- Specify a different location for the FRA on the new system

or

- Make sure the configured FRA is empty.

参考文档:
RMAN-06026 RMAN-20003 - During Restore From A Disk Backup to an Identically Cloned Host (Doc ID 763703.1)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: RMAN-03002RMAN-06026RMAN-06023是Oracle Recovery Manager (RMAN)在执行恢复操作可能遇到的错误代码。 RMAN-03002错误表示恢复命令失败。这可能是由于一些目标数据库的问题导致的,比如目标数据库中缺少必要的备份文件或归档日志。 RMAN-06026错误表示在恢复过程中找不到某些目标。这可能是由于备份文件或归档日志丢失或不可用导致的。 RMAN-06023错误表示在恢复过程中无法找到指定的备份集或备份片段。 要解决这些错误,可以采取以下步骤: 1. 确保目标数据库中存在所需的备份文件和归档日志。可以使用RMAN的LIST命令来检查备份和归档日志的可用性。 2. 如果备份文件或归档日志确实丢失或不可用,您可能需要重新运行备份操作以生成所需的备份文件或归档日志。 3. 如果您使用的是恢复目录,则还应确保恢复目录中包含正确的备份信息。可以使用RMAN的LIST命令来检查恢复目录中的备份信息。 如果您需要更详细的解决方案,可以参考Oracle官方文档中的相关文章\[2\]。此外,您还可以通过启用RMAN的调试模式并记录调试日志\[3\]来获取更多的调试信息,以帮助您诊断和解决问题。 #### 引用[.reference_title] - *1* *2* *3* [笔记物理Standby搭建恢复报错RMAN-03002 RMAN-06026 RMAN-06100](https://blog.csdn.net/Lizi_TT/article/details/107707123)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值