重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1296|回复: 0
打印 上一主题 下一主题

[备份恢复] 使用rman执行recover database 的时候出现RMAN-06054的错误提示

[复制链接]
跳转到指定楼层
楼主
发表于 2022-8-3 11:03:35 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
RMAN>  recover database;

Starting recover at 03-AUG-22
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=44 device type=DISK

starting media recovery

archived log for thread 1 with sequence 0 is already on disk as file /u01/app/oracle/oradata/orcl/redo01.log
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=145
channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arch_ORCL_20220802_1c145uk8_1_1.arc
channel ORA_DISK_1: piece handle=/home/oracle/backup/arch_ORCL_20220802_1c145uk8_1_1.arc tag=TAG20220802T173607
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/product/19.3.0/db_1/dbs/arch1_145_1047224844.dbf thread=1 sequence=145
unable to find archived log
archived log thread=1 sequence=146
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 08/03/2022 10:50:18
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 146 and starting SCN of 2556538


在11g官方文档error messages中对错误描述如下:
RMAN-06054: media recovery requesting unknown archived log for thread string with sequence string and starting SCN of string      Cause: Media recovery is requesting a log whose existence is not recorded in the recovery catalog or target database control file.  
     Action: If a copy of the log is available, then add it to the recovery catalog and/or control file via a CATALOG command and then retry the RECOVER command. If not, then a point-in-time recovery up to the missing log is the only alternative and database can be opened using ALTER DATABASE OPEN RESETLOGS command.  
  
可见,出先此错误的原因是恢复需要的日志记录在控制文件或恢复目录中找不到。解决方法分两种情况:  
1.如果相关的日志存在且可用的话,就将此日志记录添加到控制文件或恢复目录中。  
2.如果相关的日志已经被删除了或不可用了,那么就按照错误的提示scn将数据库恢复到此scn,本案例是152305555。也就是说此时数据库只能进行不完全恢复了.  
3.在打开数据库时得使用resetlogs打开。

RMAN> recover database until scn 2556538
2> ;

Starting recover at 03-AUG-22
using channel ORA_DISK_1

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

Finished recover at 03-AUG-22

RMAN>

RMAN> alter database open resetlogs;
    database opened


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-2 18:30 , Processed in 0.115076 second(s), 28 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表