执行recover操作时:

RMAN> recover database;     

Starting recover at 28-NOV-19

using channel ORA_DISK_1

starting media recovery

channel ORA_DISK_1: starting archived log restore to default destination

channel ORA_DISK_1: restoring archived log

archived log thread=1 sequence=7

channel ORA_DISK_1: restoring archived log

archived log thread=1 sequence=8

channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3

channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425

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/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc thread=1 sequence=7

channel default: deleting archived log(s)

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc RECID=10 STAMP=1025505834

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8

unable to find archived log

archived log thread=1 sequence=1

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 11/28/2019 06:43:56

RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 2060718

RMAN> recover database until scn 2060718;

Starting recover at 28-NOV-19

using channel ORA_DISK_1

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of recover command at 11/28/2019 06:45:26

RMAN-20208: UNTIL CHANGE is before RESETLOGS change

 

RMAN> list incarnation;

List of Database Incarnations

DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time

------- ------- -------- ---------------- --- ---------- ----------

1       1       ORCL     1553125926       PARENT  1          26-JAN-17

2       2       ORCL     1553125926       PARENT  1408558    26-NOV-19

3       3       ORCL     1553125926       CURRENT 2060718    28-NOV-19

RMAN> reset database to incarnation 2;

database reset to incarnation 2

RMAN> restore database until scn 2060717;

Starting restore at 28-NOV-19

using channel ORA_DISK_1

channel ORA_DISK_1: restore complete, elapsed time: 00:00:25

Finished restore at 28-NOV-19

RMAN> recover database until scn 2060717;

Starting recover at 28-NOV-19

using channel ORA_DISK_1

starting media recovery

archived log for thread 1 with sequence 8 is already on disk as file /u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc

channel ORA_DISK_1: starting archived log restore to default destination

channel ORA_DISK_1: restoring archived log

archived log thread=1 sequence=7

channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3

channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425

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/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc thread=1 sequence=7

channel default: deleting archived log(s)

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc RECID=11 STAMP=1025506218

archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8

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

Finished recover at 28-NOV-19

RMAN> alter database open resetlogs;

Satement processed

RMAN>

RMAN> recover database;     
Starting recover at 28-NOV-19using channel ORA_DISK_1
starting media recovery
channel ORA_DISK_1: starting archived log restore to default destinationchannel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=7channel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=8channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:01archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc thread=1 sequence=7channel default: deleting archived log(s)archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzq9b93_.arc RECID=10 STAMP=1025505834archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8unable to find archived logarchived log thread=1 sequence=1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:43:56RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 2060718
RMAN> recover database until scn 2060718;
Starting recover at 28-NOV-19using channel ORA_DISK_1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:45:00RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> recover database until scn 2060718;
Starting recover at 28-NOV-19using channel ORA_DISK_1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:45:26RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> recover database;
Starting recover at 28-NOV-19using channel ORA_DISK_1
starting media recovery
unable to find archived logarchived log thread=1 sequence=1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:46:00RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 1 and starting SCN of 2060718
RMAN> recover database until scn 2060718;
Starting recover at 28-NOV-19using channel ORA_DISK_1RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of recover command at 11/28/2019 06:47:12RMAN-20208: UNTIL CHANGE is before RESETLOGS change
RMAN> list incarnation;

List of Database IncarnationsDB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time------- ------- -------- ---------------- --- ---------- ----------1       1       ORCL     1553125926       PARENT  1          26-JAN-172       2       ORCL     1553125926       PARENT  1408558    26-NOV-193       3       ORCL     1553125926       CURRENT 2060718    28-NOV-19
RMAN> reset database to incarnation 2;
database reset to incarnation 2
RMAN> restore database until scn 2060717;
Starting restore at 28-NOV-19using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setchannel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/orcl/system01.dbfchannel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/orcl/sysaux01.dbfchannel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/orcl/undotbs01.dbfchannel ORA_DISK_1: restoring datafile 00007 to /u01/app/oracle/oradata/orcl/users01.dbfchannel ORA_DISK_1: reading from backup piece /home/oracle/backup/db_ORCL_20191127_01uhtdrk_1_1channel ORA_DISK_1: piece handle=/home/oracle/backup/db_ORCL_20191127_01uhtdrk_1_1 tag=TAG20191127T074700channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:25Finished restore at 28-NOV-19
RMAN> alter database open resetlogs;
RMAN-00571: ===========================================================RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============RMAN-00571: ===========================================================RMAN-03002: failure of sql statement command at 11/28/2019 06:49:13ORA-01190: control file or data file 1 is from before the last RESETLOGSORA-01110: data file 1: '/u01/app/oracle/oradata/orcl/system01.dbf'
RMAN> recover database until scn 2060717;
Starting recover at 28-NOV-19using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 8 is already on disk as file /u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arcchannel ORA_DISK_1: starting archived log restore to default destinationchannel ORA_DISK_1: restoring archived logarchived log thread=1 sequence=7channel ORA_DISK_1: reading from backup piece /home/oracle/backup/arc_1025423665_3channel ORA_DISK_1: piece handle=/home/oracle/backup/arc_1025423665_3 tag=TAG20191127T075425channel ORA_DISK_1: restored backup piece 1channel ORA_DISK_1: restore complete, elapsed time: 00:00:01archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc thread=1 sequence=7channel default: deleting archived log(s)archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_7_gxzqobn5_.arc RECID=11 STAMP=1025506218archived log file name=/u01/app/oracle/fast_recovery_area/orcl/ORCL/archivelog/2019_11_28/o1_mf_1_8_gxzq9bb0_.arc thread=1 sequence=8media recovery complete, elapsed time: 00:00:01Finished recover at 28-NOV-19
RMAN> alter database open resetlogs;
Statement processed
RMAN>

RMAN-20208: UNTIL CHANGE is before RESETLOGS change的更多相关文章

  1. 14.6.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering

    14.6.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering 当插入,更新,和删除操作在表上执行, 索引列的值(特别是 se ...

  2. 14.4.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering

    14.4.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering 当INSERT,UPDATE,和删除操作在表上操作, 索引列的 ...

  3. 跨resetlogs不完全恢复- oracle自动reset错误incarnation

    在做oracle跨resetlogs的不完全恢复时,如果未删除flashback area的控制文件自动备份,那么Oracle可能会从控制文件自动备份中自动探测到incarnation信息,并重置in ...

  4. 在rman恢复中incarnation的概念

    摘要 本文主要介绍incarnation的由来,在rman恢复中的作用,以及相关rman恢复的注意事项. 概念说明 从10g开始,incarnation被引入,用于跨越resetlogs进行恢复,由此 ...

  5. 转 LIST INCARNATION OF DATABASE

    incarnation在英文中是“化身”的意思. 那么在oracle中,它又是什么意思呢?有什么作用呢? 我们看一些基本概念 Current Incarnation(当前化身):数据库当前正在使用的化 ...

  6. Oracle不完全恢复-主动恢复和incarnation/RMAN-20208/RMAN-06004

    12.3 主动恢复 主动不完全恢复是将数据库“撤回”到从前的传统方法,主要用来撤销认为修改.一般需要先判断PIT点的时间或SCN --1 重启db到mount状态 --2 用restore将所有的数据 ...

  7. Oracle 10g Block Change Tracking特性

    Using Block Change Tracking to Improve Incremental Backup Performance 使用块改变跟踪改善增量备份的性能 The block cha ...

  8. Oracle 块修改跟踪 (Block Change Tracking) 说明

    Block ChangeTracking 是Oracle 10g里推出的特性.官网对Block change tracking 的定义如下: Adatabase option that causes ...

  9. enable or disable Oracle block change tracking

    Oracle的block change tracking用于记录上次备份以来改变过的block信息,因此打开block change tracking可以大大加快增量备份的速度. 1. Enable ...

随机推荐

  1. Spring-Cloud-Alibaba之Sentinel

    微服务中为了防止某个服务出现问题,导致影响整个服务集群无法提供服务的情况,我们在系统访问量和业务量高起来了后非常有必要对服务进行熔断限流处理. 其中熔断即服务发生异常时能够更好的处理:限流是限制每个服 ...

  2. Java Case Interview

    什么是面向对象? 面向对象和面向过程的区别: 面向过程更注重每一个步骤以及其顺讯,面向对象更注重哪些对象,他们具有哪些能力 面向过程比较直接,而面向对象更易于复用.扩展和维护 三大特性: 封装:内部细 ...

  3. 记weblogic上传shell路径

    0x01 前言 自从上次在渗透过程中发现了波weblogic CVE-2020-2551漏洞后面又对其进行了复现,后边看到exp里有个上传webshell的功能,但是由于不清楚weblogic这个路径 ...

  4. springboot 配置将info、error、debug 分别输出到不同文件

    在resource下创建名为 logback-spring.xml 的配置文件,内容如下: <?xml version="1.0" encoding="UTF-8& ...

  5. 【Java基础】ConcurrentHashMap为什么不能存null键和null值

    代码如下 /** * 测试ConcurrentHashMap null键和null值的问题 * @return */ @RequestMapping(value = "/get_nacos& ...

  6. Android Studio导入Android 4.4.4r1的源码

    本文博客地址:http://blog.csdn.net/qq1084283172/article/details/70339471 一.环境配置 1.ubuntu 14.04.5 x64bit 2.j ...

  7. 『动善时』JMeter基础 — 8、JMeter主要元件介绍

    目录 1.测试计划(Test Plan) 2.线程组 3.取样器(sampler) 4.逻辑控制器(Logic Controller) 5.配置元件(Config Element) 6.定时器(Tim ...

  8. PHP 调用请求外网接口

    1.类中定义静态方法 class FtpService{ /** * 请求外网 * @param $url 外网接口url * @param bool $params 参数,拼接字符串 post请求可 ...

  9. 【Docker】7. 镜像-加载原理、分层原理、commit镜像

    一.什么是镜像 镜像是一种轻量级.可执行的独立软件包,用来打包软件运行环境和基于运行环境开发的软件. 它包含运行某个软件所需的所有内容,包括代码.运行时环境.库.环境变量和配置文件. 所有的应用,直接 ...

  10. BD-rate的计算

    相信不少接触视频编码的朋友在看相关的文献的时候,总会看到论文中测试时给出一个重要的参数BD-rate,可能一直心存疑问,这个BD-rate到底是个什么东西呢?可以参考这一份提案http://downl ...