zoukankan      html  css  js  c++  java
  • RMAN备份过程报错RMAN-06214


    环境:suse11+oracle11g+dg
    发生场景:每天晚上做rman备份的时候警告报错

    RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
    RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
    RMAN-06210: List of Mismatched objects
    RMAN-06211: ==========================
    RMAN-06212: Object Type Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Datafile Copy /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.bak

    解决方法:

    RMAN> crosscheck controlfilecopy '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.bak';

    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=1654 device type=DISK
    validation failed for control file copy
    control file copy file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.bak RECID=6 STAMP=1022315092
    Crosschecked 1 objects

    dbs> mv snapcf_SID.f.bak snapcf_SID.f.bbak


    RMAN> delete expired controlfilecopy '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.bak';

    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=1654 device type=DISK
    List of Control File Copies
    ===========================

    Key S Completion Time Ckp SCN Ckp Time
    ------- - --------------- ---------- ---------------
    6 X 22-OCT-19 393436921462 22-OCT-19
    Name: /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.bak
    Tag: TAG20191022T082452


    Do you really want to delete the above objects (enter YES or NO)? yes
    deleted control file copy
    control file copy file name=/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.bak RECID=6 STAMP=1022315092
    Deleted 1 EXPIRED objects


    RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME clear;

    old RMAN configuration parameters:
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f.tmp';
    RMAN configuration parameters are successfully reset to default value

    RMAN> show SNAPSHOT CONTROLFILE NAME;

    RMAN configuration parameters for database with db_unique_name SID are:
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_SID.f'; # default

    RMAN> report obsolete;

    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 3
    no obsolete backups found

    RMAN>

    RMAN>

  • 相关阅读:
    腾讯的网站是如何检测到你的 QQ 已经登录?
    怎么改变html中placeholderr的文字颜色
    [分享]2013:Linux的黄金之年-十大杰出成就
    .NET MVC 两种视图引擎(Razor、Aspx)
    android:visibility
    获取目录
    Android 判断字符串是否相等
    Android Sqlite
    android 积累
    Android ListView 使用
  • 原文地址:https://www.cnblogs.com/Wardenking/p/11887180.html
Copyright © 2011-2022 走看看