执行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. hdu2833 Floyd + dp

    题意:      给你一个无向图,给你两组起点和终点,问你这两组起点和终点的最短路上最多有多少个交点... 思路:      开一个数组dp[i][j]记录最短路上i,j之间的点有多少个,这个数组是根 ...

  2. 你注意到了吗?修改API文档也需要规范!

    关于API接口文档的内容和格式规范的文章,之前也有写过,网上也有不少写的比我还好的,就不赘述了,今天想说的是一个很容易被忽略的点,修改API文档的规范:版本控制. 示例 拿Eolinker来演示一下流 ...

  3. 【python】Leetcode每日一题-前缀树(Trie)

    [python]Leetcode每日一题-前缀树(Trie) [题目描述] Trie(发音类似 "try")或者说 前缀树 是一种树形数据结构,用于高效地存储和检索字符串数据集中的 ...

  4. 手机访问电脑本地localhost网页

    项目需要用手机访问电脑本地网页,从而可以调试项目,对代码的理解的快一点 重点 确保手机和电脑在同一个局域网 可以通过手机开热点电脑连接或者电脑开便携式热点手机连接 确保电脑的防火墙是关闭的 打开apa ...

  5. 【.Net Core】分析.net core在linux下内存占用过高问题

    现象 随着程序运行,内存占用率越来越高,直到触发linux的OOM,程序被杀死. 分析工具 运行环境:.net core 3.1(微软的分析工具要求最低3.0,无法分析2.1的core程序,需要先改为 ...

  6. Spring Boot 2.5.0 发布:支持Java16、Gradle 7、Datasource初始化机制调整

    今年520的事情是真的多,娱乐圈的我们不管,就跟DD一起来看看 Spring Boot 2.5.0 的发布吧!看看都带来了哪些振奋人心的新特性和改动! 主要更新 支持 Java 16 支持 Gradl ...

  7. 探索GaussDB(DWS)的过程化SQL语言能力

    摘要:在当前GaussDB(DWS)的能力中主要支持两种过程化SQL语言,即基于PostgreSQL的PL/pgSQL以及基于Oracle的PL/SQL.本篇文章我们通过匿名块,函数,存储过程向大家介 ...

  8. java基础——简易计算器的实现

    计算器: import java.util.Scanner;​public class CalculateDemo {    public static void main(String[] args ...

  9. ruby基础(二)

    ruby语法基础 1.方法 方法时对象定义的与该对象相关的操作.在Ruby中,对象的所有的操作都被封装成 方法. 语法糖:语法糖是一种为了照顾一般人的习惯而产生的特殊语法. ruby中一切数据都是对象 ...

  10. [算法] O(nlogn)和O(n^2)算法性能比较

    选择排序.插入排序.归并排序 main.cpp 1 #include <iostream> 2 #include "Student.h" 3 #include &quo ...