运维联盟俱乐部

 找回密码
 立即注册
查看: 5368|回复: 0

[故障处理] rman incranation

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2021-10-25 16:24:28 | 显示全部楼层 |阅读模式


    1. RMAN> restore database;

    2. Starting restore at 25-OCT-21
    3. allocated channel: ORA_DISK_1
    4. channel ORA_DISK_1: SID=252 device type=DISK

    5. RMAN-00571: ===========================================================
    6. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    7. RMAN-00571: ===========================================================
    8. RMAN-03002: failure of restore command at 10/25/2021 15:49:58
    9. RMAN-06026: some targets not found - aborting restore
    10. RMAN-06023: no backup or copy of datafile 7 found to restore
    11. RMAN-06023: no backup or copy of datafile 4 found to restore
    12. RMAN-06023: no backup or copy of datafile 3 found to restore
    13. RMAN-06023: no backup or copy of datafile 1 found to restore

    14. RMAN> exit
    复制代码
    1. RMAN> list incarnation;

    2. using target database control file instead of recovery catalog

    3. List of Database Incarnations
    4. DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    5. ------- ------- -------- ---------------- --- ---------- ----------
    6. 1       1       ORCL     1609771683       PARENT  1          26-JAN-17
    7. 2       2       ORCL     1609771683       PARENT  1408558    31-AUG-21
    8. 3       3       ORCL     1609771683       CURRENT 6766564    19-OCT-21
    复制代码
    1. RMAN> reset database to incarnation 2;

    2. database reset to incarnation 2

    3. RMAN> restore database;

    4. Starting restore at 25-OCT-21
    5. allocated channel: ORA_DISK_1
    6. channel ORA_DISK_1: SID=253 device type=DISK

    7. channel ORA_DISK_1: starting datafile backup set restore
    8. channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    9. channel ORA_DISK_1: restoring datafile 00001 to /app/oracle/db/oradata/orcl/system01.dbf
    10. channel ORA_DISK_1: restoring datafile 00002 to /app/oracle/db/oradata/orcl/zhyu101.dbf
    11. channel ORA_DISK_1: restoring datafile 00003 to /app/oracle/db/oradata/orcl/sysaux01.dbf
    12. channel ORA_DISK_1: restoring datafile 00004 to /app/oracle/db/oradata/orcl/undotbs01.dbf
    13. channel ORA_DISK_1: restoring datafile 00005 to /app/oracle/db/oradata/orcl/zhyu01.dbf
    14. channel ORA_DISK_1: restoring datafile 00007 to /app/oracle/db/oradata/orcl/users01.dbf
    15. channel ORA_DISK_1: reading from backup piece /tmp/full_3l0cgv8p_1_1.bak
    16. channel ORA_DISK_1: piece handle=/tmp/full_3l0cgv8p_1_1.bak tag=TAG20211025T152409
    17. channel ORA_DISK_1: restored backup piece 1
    18. channel ORA_DISK_1: restore complete, elapsed time: 00:00:25
    19. Finished restore at 25-OCT-21

    复制代码





    回复

    使用道具 举报

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

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 14:07 , Processed in 0.058481 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

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