如何查看备份记录及删除之前的备份记录

1、查看RMAN备份记录

RMAN> list backup;


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


BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
7       Full    406.64M    DISK        00:00:28     23-MAR-13      
  List of Datafiles in backup set 7
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  2       Full 1332245    23-MAR-13 /u01/oradata/poli/sysaux01.dbf
  3       Full 1332245    23-MAR-13 /u01/oradata/poli/undotbs01.dbf
  6       Full 1332245    23-MAR-13 /u01/oradata/expimp01.dbf

  Backup Set Copy #1 of backup set 7
  Device Type Elapsed Time Completion Time Compressed Tag
  ----------- ------------ --------------- ---------- ---
  DISK        00:00:28     23-MAR-13       NO         TAG20130323T160701

    List of Backup Pieces for backup set 7 Copy #1
    BP Key  Pc# Status      Piece Name
    ------- --- ----------- ----------
    7       1   AVAILABLE   /u01/arcerzhang/poli_07o58nl5_1_1
    8       2   AVAILABLE   /u01/arcerzhang/poli_07o58nl5_2_1
    9       3   AVAILABLE   /u01/arcerzhang/poli_07o58nl5_3_1
    10      4   AVAILABLE   /u01/arcerzhang/poli_07o58nl5_4_1
    11      5   AVAILABLE   /u01/arcerzhang/poli_07o58nl5_5_1

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
8       Full    694.33M    DISK        00:00:33     23-MAR-13      
  List of Datafiles in backup set 8
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1332256    23-MAR-13 /u01/oradata/poli/system01.dbf
  4       Full 1332256    23-MAR-13 /u01/oradata/poli/users01.dbf
  5       Full 1332256    23-MAR-13 /u01/oradata/poli/example01.dbf

  Backup Set Copy #1 of backup set 8
  Device Type Elapsed Time Completion Time Compressed Tag
  ----------- ------------ --------------- ---------- ---
  DISK        00:00:33     23-MAR-13       NO         TAG20130323T160701

    List of Backup Pieces for backup set 8 Copy #1
    BP Key  Pc# Status      Piece Name
    ------- --- ----------- ----------
    12      1   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_1_1
    13      2   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_2_1
    14      3   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_3_1
    15      4   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_4_1
    16      5   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_5_1
    17      6   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_6_1
    18      7   AVAILABLE   /u01/arcerzhang/poli_08o58nm2_7_1

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
9       Full    9.33M      DISK        00:00:00     23-MAR-13      
        BP Key: 19   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T160804
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810835684_8ntrq4gm_.bkp
  Control File Included: Ckp SCN: 1332281      Ckp time: 23-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
10      Full    30.09M     DISK        00:00:01     23-MAR-13      
        BP Key: 20   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T163950
        Piece Name: /u01/arcerzhang/poli_4_datafile_0bo58pim_1_1
  List of Datafiles in backup set 10
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  4       Full 1333489    23-MAR-13 /u01/oradata/poli/users01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
11      Full    9.33M      DISK        00:00:01     23-MAR-13      
        BP Key: 21   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T163953
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810837593_8nttlswh_.bkp
  Control File Included: Ckp SCN: 1333496      Ckp time: 23-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
12      Full    99.63M     DISK        00:00:53     23-MAR-13      
        BP Key: 22   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T232325
        Piece Name: /u01/arcerzhang/tb_exampleAndUsers_0do59h7e_1_1
  List of Datafiles in backup set 12
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  4       Full 1349847    23-MAR-13 /u01/oradata/poli/users01.dbf
  5       Full 1349847    23-MAR-13 /u01/oradata/poli/example01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
13      Full    9.33M      DISK        00:00:04     23-MAR-13      
        BP Key: 23   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T232422
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810861862_8nvl99fg_.bkp
  Control File Included: Ckp SCN: 1349872      Ckp time: 23-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
14      Full    9.33M      DISK        00:00:02     23-MAR-13      
        BP Key: 24   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T234359
        Piece Name: /u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_ncnnf_TAG20130323T234359_8nvmg18j_.bkp
  Control File Included: Ckp SCN: 1350647      Ckp time: 23-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
15      Full    9.33M      DISK        00:00:00     23-MAR-13      
        BP Key: 25   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T234404
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810863044_8nvmg4dv_.bkp
  Control File Included: Ckp SCN: 1350654      Ckp time: 23-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
16      Full    30.09M     DISK        00:00:02     23-MAR-13      
        BP Key: 26   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T234751
        Piece Name: /u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_nnndf_TAG20130323T234751_8nvmo843_.bkp
  List of Datafiles in backup set 16
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  4       Full 1350748    23-MAR-13 /u01/oradata/poli/users01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
17      Full    9.33M      DISK        00:00:01     23-MAR-13      
        BP Key: 27   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T234751
        Piece Name: /u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_ncnnf_TAG20130323T234751_8nvmod9y_.bkp
  Control File Included: Ckp SCN: 1350749      Ckp time: 23-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18      Full    9.33M      DISK        00:00:00     23-MAR-13      
        BP Key: 28   Status: AVAILABLE  Compressed: NO  Tag: TAG20130323T234757
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810863277_8nvmofjy_.bkp
  Control File Included: Ckp SCN: 1350756      Ckp time: 23-MAR-13

BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
19      378.43M    DISK        00:00:53     24-MAR-13      
        BP Key: 29   Status: AVAILABLE  Compressed: NO  Tag: TAG20130324T003934
        Piece Name: /u01/arcerzhang/ac_0ko59lm6_1_1

  List of Archived Logs in backup set 19
  Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  ---- ------- ---------- --------- ---------- ---------
  1    5       1011335    12-MAR-13 1041000    12-MAR-13
  1    6       1041000    12-MAR-13 1061517    12-MAR-13
  1    7       1061517    12-MAR-13 1089740    12-MAR-13
  1    8       1089740    12-MAR-13 1117880    12-MAR-13
  1    9       1117880    12-MAR-13 1138158    12-MAR-13
  1    10      1138158    12-MAR-13 1155874    13-MAR-13
  1    11      1155874    13-MAR-13 1176655    13-MAR-13
  1    12      1176655    13-MAR-13 1190782    19-MAR-13
  1    13      1190782    19-MAR-13 1230278    20-MAR-13
  1    14      1230278    20-MAR-13 1265405    21-MAR-13
  1    15      1265405    21-MAR-13 1293261    22-MAR-13
  1    16      1293261    22-MAR-13 1324925    23-MAR-13
  1    17      1324925    23-MAR-13 1345746    23-MAR-13
  1    18      1345746    23-MAR-13 1352038    24-MAR-13
  1    19      1352038    24-MAR-13 1352452    24-MAR-13
  1    20      1352452    24-MAR-13 1352533    24-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
20      Full    9.33M      DISK        00:00:02     24-MAR-13      
        BP Key: 30   Status: AVAILABLE  Compressed: NO  Tag: TAG20130324T004030
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_24/o1_mf_n_810866430_8nvpr083_.bkp
  Control File Included: Ckp SCN: 1352567      Ckp time: 24-MAR-13

BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
21      378.43M    DISK        00:00:15     24-MAR-13      
        BP Key: 31   Status: AVAILABLE  Compressed: NO  Tag: TAG20130324T004146
        Piece Name: /u01/arcerzhang/ac_0mo59lqb_1_1

  List of Archived Logs in backup set 21
  Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  ---- ------- ---------- --------- ---------- ---------
  1    5       1011335    12-MAR-13 1041000    12-MAR-13
  1    6       1041000    12-MAR-13 1061517    12-MAR-13
  1    7       1061517    12-MAR-13 1089740    12-MAR-13
  1    8       1089740    12-MAR-13 1117880    12-MAR-13
  1    9       1117880    12-MAR-13 1138158    12-MAR-13
  1    10      1138158    12-MAR-13 1155874    13-MAR-13
  1    11      1155874    13-MAR-13 1176655    13-MAR-13
  1    12      1176655    13-MAR-13 1190782    19-MAR-13
  1    13      1190782    19-MAR-13 1230278    20-MAR-13
  1    14      1230278    20-MAR-13 1265405    21-MAR-13
  1    15      1265405    21-MAR-13 1293261    22-MAR-13
  1    16      1293261    22-MAR-13 1324925    23-MAR-13
  1    17      1324925    23-MAR-13 1345746    23-MAR-13
  1    18      1345746    23-MAR-13 1352038    24-MAR-13
  1    19      1352038    24-MAR-13 1352452    24-MAR-13
  1    20      1352452    24-MAR-13 1352533    24-MAR-13
  1    21      1352533    24-MAR-13 1352608    24-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
22      Full    9.33M      DISK        00:00:01     24-MAR-13      
        BP Key: 32   Status: AVAILABLE  Compressed: NO  Tag: TAG20130324T004213
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_24/o1_mf_n_810866533_8nvpv61w_.bkp
  Control File Included: Ckp SCN: 1352627      Ckp time: 24-MAR-13

BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
23      39.46M     DISK        00:00:04     25-MAR-13      
        BP Key: 33   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T083943
        Piece Name: /u01/arcerzhang/datbase_archivelog_0oo5d66f_1_1

  List of Archived Logs in backup set 23
  Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  ---- ------- ---------- --------- ---------- ---------
  1    22      1352608    24-MAR-13 1373797    24-MAR-13
  1    23      1373797    24-MAR-13 1376849    25-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
24      Full    1.07G      DISK        00:00:42     25-MAR-13      
        BP Key: 34   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T083951
        Piece Name: /u01/flash_recovery_area/POLI/backupset/2013_03_25/o1_mf_nnndf_TAG20130325T083951_8nz76qrf_.bkp
  List of Datafiles in backup set 24
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1376859    25-MAR-13 /u01/oradata/poli/system01.dbf
  2       Full 1376859    25-MAR-13 /u01/oradata/poli/sysaux01.dbf
  3       Full 1376859    25-MAR-13 /u01/oradata/poli/undotbs01.dbf
  4       Full 1376859    25-MAR-13 /u01/oradata/poli/users01.dbf
  5       Full 1376859    25-MAR-13 /u01/oradata/poli/example01.dbf
  6       Full 1376859    25-MAR-13 /u01/oradata/expimp01.dbf

BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
25      3.00K      DISK        00:00:00     25-MAR-13      
        BP Key: 35   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T084037
        Piece Name: /u01/arcerzhang/datbase_archivelog_0qo5d685_1_1

  List of Archived Logs in backup set 25
  Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  ---- ------- ---------- --------- ---------- ---------
  1    24      1376849    25-MAR-13 1376881    25-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
26      Full    9.33M      DISK        00:00:00     25-MAR-13      
        BP Key: 36   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T084039
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810981639_8nz787jd_.bkp
  Control File Included: Ckp SCN: 1376890      Ckp time: 25-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
27      Incr 0  89.48M     DISK        00:00:20     25-MAR-13      
        BP Key: 37   Status: AVAILABLE  Compressed: NO  Tag: OHTER
        Piece Name: /u01/arcerzhang/p_0uo5d7rf_1_1
  List of Datafiles in backup set 27
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  3    0  Incr 1377874    25-MAR-13 /u01/oradata/poli/undotbs01.dbf
  4    0  Incr 1377874    25-MAR-13 /u01/oradata/poli/users01.dbf
  5    0  Incr 1377874    25-MAR-13 /u01/oradata/poli/example01.dbf
  6    0  Incr 1377874    25-MAR-13 /u01/oradata/expimp01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
28      Incr 0  80.35M     DISK        00:00:07     25-MAR-13      
        BP Key: 38   Status: AVAILABLE  Compressed: NO  Tag: OHTER
        Piece Name: /u01/arcerzhang/p_11o5d8hm_1_1
  List of Datafiles in backup set 28
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  3    0  Incr 1378617    25-MAR-13 /u01/oradata/poli/undotbs01.dbf
  4    0  Incr 1378617    25-MAR-13 /u01/oradata/poli/users01.dbf
  5    0  Incr 1378617    25-MAR-13 /u01/oradata/poli/example01.dbf
  6    0  Incr 1378617    25-MAR-13 /u01/oradata/expimp01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
29      Incr 0  411.29M    DISK        00:00:23     25-MAR-13      
        BP Key: 39   Status: AVAILABLE  Compressed: NO  Tag: AUX
        Piece Name: /u01/arcerzhang/p_10o5d8hm_1_1
  List of Datafiles in backup set 29
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  2    0  Incr 1378616    25-MAR-13 /u01/oradata/poli/sysaux01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
30      Incr 0  594.73M    DISK        00:00:28     25-MAR-13      
        BP Key: 40   Status: AVAILABLE  Compressed: NO  Tag: SYS
        Piece Name: /u01/arcerzhang/p_0vo5d8hm_1_1
  List of Datafiles in backup set 30
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1    0  Incr 1378615    25-MAR-13 /u01/oradata/poli/system01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
31      Full    9.33M      DISK        00:00:00     25-MAR-13      
        BP Key: 41   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T092028
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810984028_8nz9lwv7_.bkp
  Control File Included: Ckp SCN: 1378635      Ckp time: 25-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
32      Full    70.71M     DISK        00:00:59     25-MAR-13      
        BP Key: 42   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T095452
        Piece Name: /u01/arcerzhang/p3_15o5daje_1_1
  List of Datafiles in backup set 32
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  5       Full 1379786    25-MAR-13 /u01/oradata/poli/example01.dbf
  6       Full 1379786    25-MAR-13 /u01/oradata/expimp01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
33      Full    413.27M    DISK        00:01:20     25-MAR-13      
        BP Key: 43   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T095452
        Piece Name: /u01/arcerzhang/p3_14o5dajd_1_1
  List of Datafiles in backup set 33
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  2       Full 1379785    25-MAR-13 /u01/oradata/poli/sysaux01.dbf
  3       Full 1379785    25-MAR-13 /u01/oradata/poli/undotbs01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
34      Full    601.94M    DISK        00:01:25     25-MAR-13      
        BP Key: 44   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T095452
        Piece Name: /u01/arcerzhang/p3_13o5dajc_1_1
  List of Datafiles in backup set 34
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 1379783    25-MAR-13 /u01/oradata/poli/system01.dbf
  4       Full 1379783    25-MAR-13 /u01/oradata/poli/users01.dbf

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
35      Full    9.33M      DISK        00:00:03     25-MAR-13      
        BP Key: 45   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T095623
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810986183_8nzcp9w9_.bkp
  Control File Included: Ckp SCN: 1379823      Ckp time: 25-MAR-13

BS Key  Type LV Size
------- ---- -- ----------
36      Full    69.57M
  List of Datafiles in backup set 36
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  5       Full 1381780    25-MAR-13 /u01/oradata/poli/example01.dbf

  Backup Set Copy #1 of backup set 36
  Device Type Elapsed Time Completion Time Compressed Tag
  ----------- ------------ --------------- ---------- ---
  DISK        00:00:44     25-MAR-13       NO         TAG20130325T104849

    List of Backup Pieces for backup set 36 Copy #1
    BP Key  Pc# Status      Piece Name
    ------- --- ----------- ----------
    46      1   AVAILABLE   /u01/arcerzhang/b1/d_17o5ddoh_1_1

  Backup Set Copy #2 of backup set 36
  Device Type Elapsed Time Completion Time Compressed Tag
  ----------- ------------ --------------- ---------- ---
  DISK        00:00:44     25-MAR-13       NO         TAG20130325T104849

    List of Backup Pieces for backup set 36 Copy #2
    BP Key  Pc# Status      Piece Name
    ------- --- ----------- ----------
    47      1   AVAILABLE   /u01/arcerzhang/b2/d_17o5ddoh_1_2

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
37      Full    9.33M      DISK        00:00:04     25-MAR-13      
        BP Key: 48   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T104935
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810989375_8nzgt1vc_.bkp
  Control File Included: Ckp SCN: 1381801      Ckp time: 25-MAR-13

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
38      Full    9.33M      DISK        00:00:00     25-MAR-13      
        BP Key: 49   Status: AVAILABLE  Compressed: NO  Tag: TAG20130325T111939
        Piece Name: /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810991179_8nzjlcfg_.bkp
  Control File Included: Ckp SCN: 1383073      Ckp time: 25-MAR-13

2、删除之前的备份记录

View Code
RMAN> delete backupset 7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38;

allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=74 device type=DISK

List of Backup Pieces
BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------
7       7       1   1   AVAILABLE   DISK        /u01/arcerzhang/poli_07o58nl5_1_1
8       7       2   1   AVAILABLE   DISK        /u01/arcerzhang/poli_07o58nl5_2_1
9       7       3   1   AVAILABLE   DISK        /u01/arcerzhang/poli_07o58nl5_3_1
10      7       4   1   AVAILABLE   DISK        /u01/arcerzhang/poli_07o58nl5_4_1
11      7       5   1   AVAILABLE   DISK        /u01/arcerzhang/poli_07o58nl5_5_1
12      8       1   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_1_1
13      8       2   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_2_1
14      8       3   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_3_1
15      8       4   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_4_1
16      8       5   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_5_1
17      8       6   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_6_1
18      8       7   1   AVAILABLE   DISK        /u01/arcerzhang/poli_08o58nm2_7_1
19      9       1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810835684_8ntrq4gm_.bkp
20      10      1   1   AVAILABLE   DISK        /u01/arcerzhang/poli_4_datafile_0bo58pim_1_1
21      11      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810837593_8nttlswh_.bkp
22      12      1   1   AVAILABLE   DISK        /u01/arcerzhang/tb_exampleAndUsers_0do59h7e_1_1
23      13      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810861862_8nvl99fg_.bkp
24      14      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_ncnnf_TAG20130323T234359_8nvmg18j_.bkp
25      15      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810863044_8nvmg4dv_.bkp
26      16      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_nnndf_TAG20130323T234751_8nvmo843_.bkp
27      17      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_ncnnf_TAG20130323T234751_8nvmod9y_.bkp
28      18      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810863277_8nvmofjy_.bkp
29      19      1   1   AVAILABLE   DISK        /u01/arcerzhang/ac_0ko59lm6_1_1
30      20      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_24/o1_mf_n_810866430_8nvpr083_.bkp
31      21      1   1   AVAILABLE   DISK        /u01/arcerzhang/ac_0mo59lqb_1_1
32      22      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_24/o1_mf_n_810866533_8nvpv61w_.bkp
33      23      1   1   AVAILABLE   DISK        /u01/arcerzhang/datbase_archivelog_0oo5d66f_1_1
34      24      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/backupset/2013_03_25/o1_mf_nnndf_TAG20130325T083951_8nz76qrf_.bkp
35      25      1   1   AVAILABLE   DISK        /u01/arcerzhang/datbase_archivelog_0qo5d685_1_1
36      26      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810981639_8nz787jd_.bkp
37      27      1   1   AVAILABLE   DISK        /u01/arcerzhang/p_0uo5d7rf_1_1
38      28      1   1   AVAILABLE   DISK        /u01/arcerzhang/p_11o5d8hm_1_1
39      29      1   1   AVAILABLE   DISK        /u01/arcerzhang/p_10o5d8hm_1_1
40      30      1   1   AVAILABLE   DISK        /u01/arcerzhang/p_0vo5d8hm_1_1
41      31      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810984028_8nz9lwv7_.bkp
42      32      1   1   AVAILABLE   DISK        /u01/arcerzhang/p3_15o5daje_1_1
43      33      1   1   AVAILABLE   DISK        /u01/arcerzhang/p3_14o5dajd_1_1
44      34      1   1   AVAILABLE   DISK        /u01/arcerzhang/p3_13o5dajc_1_1
45      35      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810986183_8nzcp9w9_.bkp
46      36      1   1   AVAILABLE   DISK        /u01/arcerzhang/b1/d_17o5ddoh_1_1
47      36      1   2   AVAILABLE   DISK        /u01/arcerzhang/b2/d_17o5ddoh_1_2
48      37      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810989375_8nzgt1vc_.bkp
49      38      1   1   AVAILABLE   DISK        /u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810991179_8nzjlcfg_.bkp

Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810835684_8ntrq4gm_.bkp RECID=19 STAMP=810835684
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810837593_8nttlswh_.bkp RECID=21 STAMP=810837593
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810861862_8nvl99fg_.bkp RECID=23 STAMP=810861865
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_ncnnf_TAG20130323T234359_8nvmg18j_.bkp RECID=24 STAMP=810863041
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810863044_8nvmg4dv_.bkp RECID=25 STAMP=810863044
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_nnndf_TAG20130323T234751_8nvmo843_.bkp RECID=26 STAMP=810863272
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/backupset/2013_03_23/o1_mf_ncnnf_TAG20130323T234751_8nvmod9y_.bkp RECID=27 STAMP=810863276
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_23/o1_mf_n_810863277_8nvmofjy_.bkp RECID=28 STAMP=810863277
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_24/o1_mf_n_810866430_8nvpr083_.bkp RECID=30 STAMP=810866432
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_24/o1_mf_n_810866533_8nvpv61w_.bkp RECID=32 STAMP=810866534
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/backupset/2013_03_25/o1_mf_nnndf_TAG20130325T083951_8nz76qrf_.bkp RECID=34 STAMP=810981591
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810981639_8nz787jd_.bkp RECID=36 STAMP=810981639
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810984028_8nz9lwv7_.bkp RECID=41 STAMP=810984028
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810986183_8nzcp9w9_.bkp RECID=45 STAMP=810986185
deleted backup piece
backup piece handle=/u01/arcerzhang/b1/d_17o5ddoh_1_1 RECID=46 STAMP=810989329
deleted backup piece
backup piece handle=/u01/arcerzhang/b2/d_17o5ddoh_1_2 RECID=47 STAMP=810989329
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810989375_8nzgt1vc_.bkp RECID=48 STAMP=810989377
deleted backup piece
backup piece handle=/u01/flash_recovery_area/POLI/autobackup/2013_03_25/o1_mf_n_810991179_8nzjlcfg_.bkp RECID=49 STAMP=810991179
Deleted 18 objects

RMAN-06207: WARNING: 25 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: Backup Piece    /u01/arcerzhang/poli_07o58nl5_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_07o58nl5_2_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_07o58nl5_3_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_07o58nl5_4_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_07o58nl5_5_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_2_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_3_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_4_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_5_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_6_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_08o58nm2_7_1
RMAN-06214: Backup Piece    /u01/arcerzhang/poli_4_datafile_0bo58pim_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/tb_exampleAndUsers_0do59h7e_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/ac_0ko59lm6_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/ac_0mo59lqb_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/datbase_archivelog_0oo5d66f_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/datbase_archivelog_0qo5d685_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p_0uo5d7rf_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p_11o5d8hm_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p_10o5d8hm_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p_0vo5d8hm_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p3_15o5daje_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p3_14o5dajd_1_1
RMAN-06214: Backup Piece    /u01/arcerzhang/p3_13o5dajc_1_1

之所以删除时会报部分错误,是因为有些备份文件,给手工删除过.

 

posted @ 2013-03-25 12:33  ArcerZhang  阅读(866)  评论(0编辑  收藏  举报