zoukankan      html  css  js  c++  java
  • 说说RMAN里的obsolete

    RMAN> report obsolete;

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

    RMAN> backup datafile 1;

    Starting backup at 29-MAY-14
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
    channel ORA_DISK_1: starting piece 1 at 29-MAY-14
    channel ORA_DISK_1: finished piece 1 at 29-MAY-14
    piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1 tag=TAG20140529T102934 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
    Finished backup at 29-MAY-14

    Starting Control File and SPFILE Autobackup at 29-MAY-14
    piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-00 comment=NONE
    Finished Control File and SPFILE Autobackup at 29-MAY-14

    RMAN> list backup of datafile 1;


    List of Backup Sets
    ===================

    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    504     Full    391.63M    DISK        00:00:23     29-MAY-14      
            BP Key: 504   Status: AVAILABLE  Compressed: NO  Tag: TAG20140529T102934
            Piece Name: /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
      List of Datafiles in backup set 504
      File LV Type Ckp SCN    Ckp Time  Name
      ---- -- ---- ---------- --------- ----
      1       Full 1588933    29-MAY-14 /u01/app/oracle/oradata/prod/system01.dbf

    RMAN> backup datafile 1;

    Starting backup at 29-MAY-14
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
    channel ORA_DISK_1: starting piece 1 at 29-MAY-14
    channel ORA_DISK_1: finished piece 1 at 29-MAY-14
    piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/aop9g8u0_1_1 tag=TAG20140529T103024 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
    Finished backup at 29-MAY-14

    Starting Control File and SPFILE Autobackup at 29-MAY-14
    piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-01 comment=NONE
    Finished Control File and SPFILE Autobackup at 29-MAY-14

    RMAN> list backup of datafile 1;


    List of Backup Sets
    ===================

    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    504     Full    391.63M    DISK        00:00:23     29-MAY-14      
            BP Key: 504   Status: AVAILABLE  Compressed: NO  Tag: TAG20140529T102934
            Piece Name: /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
      List of Datafiles in backup set 504
      File LV Type Ckp SCN    Ckp Time  Name
      ---- -- ---- ---------- --------- ----
      1       Full 1588933    29-MAY-14 /u01/app/oracle/oradata/prod/system01.dbf

    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    ------- ---- -- ---------- ----------- ------------ ---------------
    506     Full    391.63M    DISK        00:00:27     29-MAY-14      
            BP Key: 506   Status: AVAILABLE  Compressed: NO  Tag: TAG20140529T103024
            Piece Name: /u01/app/oracle/product/10.2.0/db_1/dbs/aop9g8u0_1_1
      List of Datafiles in backup set 506
      File LV Type Ckp SCN    Ckp Time  Name
      ---- -- ---- ---------- --------- ----
      1       Full 1588970    29-MAY-14 /u01/app/oracle/oradata/prod/system01.dbf

    RMAN> report obsolete;

    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    -------------------- ------ ------------------ --------------------
    Backup Set           503    17-MAR-14         
      Backup Piece       503    17-MAR-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140317-0b
    Backup Set           504    29-MAY-14         
      Backup Piece       504    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
    Backup Set           505    29-MAY-14         
      Backup Piece       505    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-00

    RMAN> backup datafile 1;

    Starting backup at 29-MAY-14
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=/u01/app/oracle/oradata/prod/system01.dbf
    channel ORA_DISK_1: starting piece 1 at 29-MAY-14
    channel ORA_DISK_1: finished piece 1 at 29-MAY-14
    piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/aqp9g90p_1_1 tag=TAG20140529T103153 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:26
    Finished backup at 29-MAY-14

    Starting Control File and SPFILE Autobackup at 29-MAY-14
    piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-02 comment=NONE
    Finished Control File and SPFILE Autobackup at 29-MAY-14

    RMAN> report obsolete;

    RMAN retention policy will be applied to the command
    RMAN retention policy is set to redundancy 1
    Report of obsolete backups and copies
    Type                 Key    Completion Time    Filename/Handle
    -------------------- ------ ------------------ --------------------
    Backup Set           503    17-MAR-14         
      Backup Piece       503    17-MAR-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140317-0b
    Backup Set           504    29-MAY-14         
      Backup Piece       504    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/amp9g8sf_1_1
    Backup Set           505    29-MAY-14         
      Backup Piece       505    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-00
    Backup Set           506    29-MAY-14         
      Backup Piece       506    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/aop9g8u0_1_1
    Backup Set           507    29-MAY-14         
      Backup Piece       507    29-MAY-14          /u01/app/oracle/product/10.2.0/db_1/dbs/c-248862348-20140529-01

  • 相关阅读:
    UnicodeEncodeError: 'latin-1' codec can't encode character 'u7801' in position 49: Body ('码') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8. 请求body里面有 汉字
    pytest-allure清空上一次运行的记录(--clean-alluredir)用例重复显示
    【DPDK】谈谈DPDK如何实现bypass内核的原理 其二 DPDK部分的实现
    【DPDK】谈谈DPDK如何实现bypass内核的原理 其一 PCI设备与UIO驱动
    【Network telemetry】谈谈网络遥感技术,从主动探测与被动探测再到Netflow与INT
    【DPDK】【ring】从DPDK的ring来看x86无锁队列的实现
    【DPDK】【Multiprocess】一个dpdk多进程场景的坑
    【DPDK】【CPU usage】DPDK应用如何计算当前系统的压力
    Kubernetes client-go Informer 源码分析
    Kubernetes Job Controller 原理和源码分析(二)
  • 原文地址:https://www.cnblogs.com/iyoume2008/p/4690616.html
Copyright © 2011-2022 走看看