Bo's Oracle Station

查看: 1007|回复: 0

课程第32次(2017-09-14星期四)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-9-14 20:01:43 | 显示全部楼层 |阅读模式
上完1Z0-052第15章
1Z0-05219章(上完11章),1Z0-05321章(上完5章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的16

对磁盘备份集再备份(转移)到磁带机上:
  1. RMAN> run {
  2. 2> allocate channel c1 device type disk format '/home/oracle/backup/%U';
  3. 3> backup tablespace example;
  4. 4> }

  5. allocated channel: c1
  6. channel c1: SID=77 device type=DISK

  7. Starting backup at 14-SEP-17
  8. channel c1: starting full datafile backup set
  9. channel c1: specifying datafile(s) in backup set
  10. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  11. channel c1: starting piece 1 at 14-SEP-17
  12. channel c1: finished piece 1 at 14-SEP-17
  13. piece handle=/home/oracle/backup/16sef9h9_1_1 tag=TAG20170914T195729 comment=NONE
  14. channel c1: backup set complete, elapsed time: 00:00:01
  15. Finished backup at 14-SEP-17

  16. Starting Control File and SPFILE Autobackup at 14-SEP-17
  17. piece handle=+FRA/orcl/autobackup/2017_09_14/s_954705450.275.954705451 comment=NONE
  18. Finished Control File and SPFILE Autobackup at 14-SEP-17
  19. released channel: c1

  20. RMAN> list backup;


  21. List of Backup Sets
  22. ===================


  23. BS Key  Size       Device Type Elapsed Time Completion Time
  24. ------- ---------- ----------- ------------ ---------------
  25. 33      10.25M     SBT_TAPE    00:00:15     18-MAY-17      
  26.         BP Key: 33   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  27.         Handle: 11s4ih3q_1_1   Media: station90-000001

  28.   List of Archived Logs in backup set 33
  29.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  30.   ---- ------- ---------- --------- ---------- ---------
  31.   1    18      1053749    18-MAY-17 1057190    18-MAY-17

  32. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  33. ------- ---- -- ---------- ----------- ------------ ---------------
  34. 34      Incr 0  502.25M    SBT_TAPE    00:00:20     18-MAY-17      
  35.         BP Key: 34   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  36.         Handle: 13s4ih4j_1_1   Media: station90-000002
  37.   List of Datafiles in backup set 34
  38.   File LV Type Ckp SCN    Ckp Time  Name
  39.   ---- -- ---- ---------- --------- ----
  40.   2    0  Incr 1057424    18-MAY-17 +DATA/orcl/datafile/sysaux.257.816169553
  41.   3    0  Incr 1057424    18-MAY-17 +DATA/orcl/datafile/undotbs1.258.816169553
  42.   4    0  Incr 1057424    18-MAY-17 +DATA/orcl/datafile/users.259.816169553

  43. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  44. ------- ---- -- ---------- ----------- ------------ ---------------
  45. 35      Incr 0  657.75M    SBT_TAPE    00:00:27     18-MAY-17      
  46.         BP Key: 35   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  47.         Handle: 12s4ih4j_1_1   Media: station90-000001
  48.   List of Datafiles in backup set 35
  49.   File LV Type Ckp SCN    Ckp Time  Name
  50.   ---- -- ---- ---------- --------- ----
  51.   1    0  Incr 1057421    18-MAY-17 +DATA/orcl/datafile/system.256.816169553
  52.   5    0  Incr 1057421    18-MAY-17 +DATA/orcl/datafile/example.265.816169651

  53. BS Key  Size       Device Type Elapsed Time Completion Time
  54. ------- ---------- ----------- ------------ ---------------
  55. 36      2.00M      SBT_TAPE    00:00:15     18-MAY-17      
  56.         BP Key: 36   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  57.         Handle: 14s4ih5n_1_1   Media: station90-000001

  58.   List of Archived Logs in backup set 36
  59.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  60.   ---- ------- ---------- --------- ---------- ---------
  61.   1    19      1057190    18-MAY-17 1057470    18-MAY-17

  62. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  63. ------- ---- -- ---------- ----------- ------------ ---------------
  64. 37      Full    9.50M      SBT_TAPE    00:00:16     18-MAY-17      
  65.         BP Key: 37   Status: AVAILABLE  Compressed: NO  Tag: TAG20170518T164400
  66.         Handle: c-1343950367-20170518-00   Media: station90-000001
  67.   SPFILE Included: Modification time: 18-MAY-17
  68.   SPFILE db_unique_name: ORCL
  69.   Control File Included: Ckp SCN: 1057507      Ckp time: 18-MAY-17

  70. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  71. ------- ---- -- ---------- ----------- ------------ ---------------
  72. 38      Full    69.58M     DISK        00:00:00     14-SEP-17      
  73.         BP Key: 38   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T195729
  74.         Piece Name: /home/oracle/backup/16sef9h9_1_1
  75.   List of Datafiles in backup set 38
  76.   File LV Type Ckp SCN    Ckp Time  Name
  77.   ---- -- ---- ---------- --------- ----
  78.   5       Full 1149089    14-SEP-17 +DATA/orcl/datafile/example.265.816169651

  79. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  80. ------- ---- -- ---------- ----------- ------------ ---------------
  81. 39      Full    9.36M      DISK        00:00:01     14-SEP-17      
  82.         BP Key: 39   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T195730
  83.         Piece Name: +FRA/orcl/autobackup/2017_09_14/s_954705450.275.954705451
  84.   SPFILE Included: Modification time: 13-SEP-17
  85.   SPFILE db_unique_name: ORCL
  86.   Control File Included: Ckp SCN: 1149108      Ckp time: 14-SEP-17

  87. RMAN> backup backupset 38  ;

  88. Starting backup at 14-SEP-17
  89. allocated channel: ORA_SBT_TAPE_1
  90. channel ORA_SBT_TAPE_1: SID=77 device type=SBT_TAPE
  91. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  92. allocated channel: ORA_SBT_TAPE_2
  93. channel ORA_SBT_TAPE_2: SID=79 device type=SBT_TAPE
  94. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  95. skipping backup set key 38; already backed up 1 time(s)
  96. Finished backup at 14-SEP-17

  97. RMAN> backup backupset 38  force delete input;

  98. Starting backup at 14-SEP-17
  99. using channel ORA_SBT_TAPE_1
  100. using channel ORA_SBT_TAPE_2
  101. channel ORA_SBT_TAPE_1: input backup set: count=38, stamp=954705449, piece=1
  102. channel ORA_SBT_TAPE_1: starting piece 1 at 14-SEP-17
  103. channel ORA_SBT_TAPE_1: backup piece /home/oracle/backup/16sef9h9_1_1
  104. piece handle=16sef9h9_1_2 comment=API Version 2.0,MMS Version 10.4.0.4
  105. channel ORA_SBT_TAPE_1: finished piece 1 at 14-SEP-17
  106. channel ORA_SBT_TAPE_1: backup piece complete, elapsed time: 00:00:25
  107. deleted backup piece
  108. backup piece handle=/home/oracle/backup/16sef9h9_1_1 RECID=38 STAMP=954705449
  109. Finished backup at 14-SEP-17

  110. Starting Control File and SPFILE Autobackup at 14-SEP-17
  111. piece handle=c-1343950367-20170914-01 comment=API Version 2.0,MMS Version 10.4.0.4
  112. Finished Control File and SPFILE Autobackup at 14-SEP-17

  113. RMAN> list backup;


  114. List of Backup Sets
  115. ===================


  116. BS Key  Size       Device Type Elapsed Time Completion Time
  117. ------- ---------- ----------- ------------ ---------------
  118. 33      10.25M     SBT_TAPE    00:00:15     18-MAY-17      
  119.         BP Key: 33   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  120.         Handle: 11s4ih3q_1_1   Media: station90-000001

  121.   List of Archived Logs in backup set 33
  122.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  123.   ---- ------- ---------- --------- ---------- ---------
  124.   1    18      1053749    18-MAY-17 1057190    18-MAY-17

  125. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  126. ------- ---- -- ---------- ----------- ------------ ---------------
  127. 34      Incr 0  502.25M    SBT_TAPE    00:00:20     18-MAY-17      
  128.         BP Key: 34   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  129.         Handle: 13s4ih4j_1_1   Media: station90-000002
  130.   List of Datafiles in backup set 34
  131.   File LV Type Ckp SCN    Ckp Time  Name
  132.   ---- -- ---- ---------- --------- ----
  133.   2    0  Incr 1057424    18-MAY-17 +DATA/orcl/datafile/sysaux.257.816169553
  134.   3    0  Incr 1057424    18-MAY-17 +DATA/orcl/datafile/undotbs1.258.816169553
  135.   4    0  Incr 1057424    18-MAY-17 +DATA/orcl/datafile/users.259.816169553

  136. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  137. ------- ---- -- ---------- ----------- ------------ ---------------
  138. 35      Incr 0  657.75M    SBT_TAPE    00:00:27     18-MAY-17      
  139.         BP Key: 35   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  140.         Handle: 12s4ih4j_1_1   Media: station90-000001
  141.   List of Datafiles in backup set 35
  142.   File LV Type Ckp SCN    Ckp Time  Name
  143.   ---- -- ---- ---------- --------- ----
  144.   1    0  Incr 1057421    18-MAY-17 +DATA/orcl/datafile/system.256.816169553
  145.   5    0  Incr 1057421    18-MAY-17 +DATA/orcl/datafile/example.265.816169651

  146. BS Key  Size       Device Type Elapsed Time Completion Time
  147. ------- ---------- ----------- ------------ ---------------
  148. 36      2.00M      SBT_TAPE    00:00:15     18-MAY-17      
  149.         BP Key: 36   Status: AVAILABLE  Compressed: NO  Tag: 0T_INCR0_WHOLE
  150.         Handle: 14s4ih5n_1_1   Media: station90-000001

  151.   List of Archived Logs in backup set 36
  152.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  153.   ---- ------- ---------- --------- ---------- ---------
  154.   1    19      1057190    18-MAY-17 1057470    18-MAY-17

  155. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  156. ------- ---- -- ---------- ----------- ------------ ---------------
  157. 37      Full    9.50M      SBT_TAPE    00:00:16     18-MAY-17      
  158.         BP Key: 37   Status: AVAILABLE  Compressed: NO  Tag: TAG20170518T164400
  159.         Handle: c-1343950367-20170518-00   Media: station90-000001
  160.   SPFILE Included: Modification time: 18-MAY-17
  161.   SPFILE db_unique_name: ORCL
  162.   Control File Included: Ckp SCN: 1057507      Ckp time: 18-MAY-17

  163. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  164. ------- ---- -- ---------- ----------- ------------ ---------------
  165. 38      Full    69.58M     SBT_TAPE    00:00:00     14-SEP-17      
  166.         BP Key: 40   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T195729
  167.         Handle: 16sef9h9_1_2   Media: station90-000001
  168.   List of Datafiles in backup set 38
  169.   File LV Type Ckp SCN    Ckp Time  Name
  170.   ---- -- ---- ---------- --------- ----
  171.   5       Full 1149089    14-SEP-17 +DATA/orcl/datafile/example.265.816169651

  172. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  173. ------- ---- -- ---------- ----------- ------------ ---------------
  174. 39      Full    9.36M      DISK        00:00:01     14-SEP-17      
  175.         BP Key: 39   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T195730
  176.         Piece Name: +FRA/orcl/autobackup/2017_09_14/s_954705450.275.954705451
  177.   SPFILE Included: Modification time: 13-SEP-17
  178.   SPFILE db_unique_name: ORCL
  179.   Control File Included: Ckp SCN: 1149108      Ckp time: 14-SEP-17

  180. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  181. ------- ---- -- ---------- ----------- ------------ ---------------
  182. 40      Full    9.50M      SBT_TAPE    00:00:15     14-SEP-17      
  183.         BP Key: 41   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T195920
  184.         Handle: c-1343950367-20170914-01   Media: station90-000001
  185.   SPFILE Included: Modification time: 13-SEP-17
  186.   SPFILE db_unique_name: ORCL
  187.   Control File Included: Ckp SCN: 1149272      Ckp time: 14-SEP-17

  188. RMAN>
复制代码
用磁带机执行backup recovery files:
  1. RMAN> CONFIGURE DEFAULT DEVICE TYPE TO disk;

  2. old RMAN configuration parameters:
  3. CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
  4. new RMAN configuration parameters:
  5. CONFIGURE DEFAULT DEVICE TYPE TO DISK;
  6. new RMAN configuration parameters are successfully stored
  7. released channel: ORA_SBT_TAPE_1
  8. released channel: ORA_SBT_TAPE_2

  9. RMAN> backup recovery  files;

  10. Starting backup at 14-SEP-17
  11. allocated channel: ORA_DISK_1
  12. channel ORA_DISK_1: SID=77 device type=DISK
  13. allocated channel: ORA_DISK_2
  14. channel ORA_DISK_2: SID=79 device type=DISK
  15. allocated channel: ORA_DISK_3
  16. channel ORA_DISK_3: SID=139 device type=DISK
  17. allocated channel: ORA_DISK_4
  18. channel ORA_DISK_4: SID=198 device type=DISK
  19. allocated channel: ORA_DISK_5
  20. channel ORA_DISK_5: SID=11 device type=DISK
  21. allocated channel: ORA_DISK_6
  22. channel ORA_DISK_6: SID=78 device type=DISK
  23. allocated channel: ORA_DISK_7
  24. channel ORA_DISK_7: SID=135 device type=DISK
  25. allocated channel: ORA_DISK_8
  26. channel ORA_DISK_8: SID=203 device type=DISK
  27. specification does not match any datafile copy in the repository
  28. RMAN-00571: ===========================================================
  29. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  30. RMAN-00571: ===========================================================
  31. RMAN-03002: failure of backup command at 09/14/2017 20:07:32
  32. RMAN-06603: TO DESTINATION option must be specified with RECOVERY AREA, RECOVERY FILES or DB_RECOVERY_FILE_DEST on disk device

  33. RMAN>  CONFIGURE DEFAULT DEVICE TYPE TO sbt;

  34. old RMAN configuration parameters:
  35. CONFIGURE DEFAULT DEVICE TYPE TO DISK;
  36. new RMAN configuration parameters:
  37. CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
  38. new RMAN configuration parameters are successfully stored
  39. released channel: ORA_DISK_1
  40. released channel: ORA_DISK_2
  41. released channel: ORA_DISK_3
  42. released channel: ORA_DISK_4
  43. released channel: ORA_DISK_5
  44. released channel: ORA_DISK_6
  45. released channel: ORA_DISK_7
  46. released channel: ORA_DISK_8

  47. RMAN> backup recovery  files;

  48. Starting backup at 14-SEP-17
  49. allocated channel: ORA_SBT_TAPE_1
  50. channel ORA_SBT_TAPE_1: SID=77 device type=SBT_TAPE
  51. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  52. allocated channel: ORA_SBT_TAPE_2
  53. channel ORA_SBT_TAPE_2: SID=79 device type=SBT_TAPE
  54. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  55. specification does not match any datafile copy in the repository
  56. channel ORA_SBT_TAPE_1: starting archived log backup set
  57. channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
  58. input archived log thread=1 sequence=20 RECID=12 STAMP=954585053
  59. input archived log thread=1 sequence=21 RECID=13 STAMP=954586600
  60. input archived log thread=1 sequence=22 RECID=14 STAMP=954593821
  61. input archived log thread=1 sequence=23 RECID=15 STAMP=954601529
  62. input archived log thread=1 sequence=24 RECID=16 STAMP=954608466
  63. input archived log thread=1 sequence=25 RECID=17 STAMP=954618389
  64. input archived log thread=1 sequence=26 RECID=18 STAMP=954625206
  65. input archived log thread=1 sequence=27 RECID=19 STAMP=954626436
  66. channel ORA_SBT_TAPE_1: starting piece 1 at 14-SEP-17
  67. channel ORA_SBT_TAPE_2: starting archived log backup set
  68. channel ORA_SBT_TAPE_2: specifying archived log(s) in backup set
  69. input archived log thread=1 sequence=28 RECID=20 STAMP=954626466
  70. input archived log thread=1 sequence=29 RECID=21 STAMP=954665031
  71. input archived log thread=1 sequence=30 RECID=22 STAMP=954670878
  72. input archived log thread=1 sequence=31 RECID=23 STAMP=954688375
  73. input archived log thread=1 sequence=32 RECID=24 STAMP=954691244
  74. input archived log thread=1 sequence=33 RECID=25 STAMP=954702452
  75. input archived log thread=1 sequence=34 RECID=26 STAMP=954705658
  76. channel ORA_SBT_TAPE_2: starting piece 1 at 14-SEP-17
  77. channel ORA_SBT_TAPE_1: finished piece 1 at 14-SEP-17
  78. piece handle=19sefa58_1_1 tag=TAG20170914T200808 comment=API Version 2.0,MMS Version 10.4.0.4
  79. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
  80. channel ORA_SBT_TAPE_2: finished piece 1 at 14-SEP-17
  81. piece handle=1asefa58_1_1 tag=TAG20170914T200808 comment=API Version 2.0,MMS Version 10.4.0.4
  82. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:25
  83. channel ORA_SBT_TAPE_1: input backup set: count=39, stamp=954705450, piece=1
  84. channel ORA_SBT_TAPE_1: starting piece 1 at 14-SEP-17
  85. channel ORA_SBT_TAPE_1: backup piece +FRA/orcl/autobackup/2017_09_14/s_954705450.275.954705451
  86. piece handle=c-1343950367-20170914-00 comment=API Version 2.0,MMS Version 10.4.0.4
  87. channel ORA_SBT_TAPE_1: finished piece 1 at 14-SEP-17
  88. channel ORA_SBT_TAPE_1: backup piece complete, elapsed time: 00:00:25
  89. Finished backup at 14-SEP-17

  90. Starting Control File and SPFILE Autobackup at 14-SEP-17
  91. piece handle=c-1343950367-20170914-02 comment=API Version 2.0,MMS Version 10.4.0.4
  92. Finished Control File and SPFILE Autobackup at 14-SEP-17

  93. RMAN>
复制代码
【可选】清理磁带:
  1. [root@station90 10]# du -sh *
  2. 8.0K        CLN101L4
  3. 8.0K        CLN102L5
  4. 934M        E01001L4
  5. 622M        E01002L4
  6. 8.0K        E01003L4
  7. 8.0K        E01004L4
  8. 8.0K        E01005L4
  9. 8.0K        E01006L4
  10. 8.0K        E01007L4
  11. 8.0K        E01008L4
  12. 8.0K        E01009L4
  13. 8.0K        E01010L4
  14. 8.0K        E01011L4
  15. 8.0K        E01012L4
  16. 8.0K        E01013L4
  17. 8.0K        E01014L4
  18. 8.0K        E01015L4
  19. 8.0K        E01016L4
  20. 8.0K        E01017L4
  21. 8.0K        E01018L4
  22. 8.0K        E01019L4
  23. 8.0K        E01020L4
  24. 8.0K        F01030L5
  25. 8.0K        F01031L5
  26. 8.0K        F01032L5
  27. 8.0K        F01033L5
  28. 8.0K        F01034L5
  29. 8.0K        F01035L5
  30. 8.0K        F01036L5
  31. 8.0K        F01037L5
  32. 8.0K        F01038L5
  33. 8.0K        F01039L5
  34. [root@station90 10]# obtool
  35. ob> loadvol -D tape04 -m write 1
  36. ob> unlabelvol -D tape04
  37. ob> reusevol -D tape04
  38. ob> unloadvol -D tape04
  39. ob> loadvol -D tape04 -m write 2
  40. ob> unloadvol -D tape04
  41. ob> reusevol -D tape04
  42. Error: the device is offline.
  43. ob> loadvol -D tape04 -m write 2
  44. ob> unlabelvol -D tape04
  45. ob> reusevol -D tape04
  46. ob> unloadvol -D tape04
  47. ob> lsvol -L lib01 -l
  48. Inventory of library lib01:
  49.     in    1:             barcode E01001L4, oid 137, 8190976 kb remaining
  50.     in    2:             barcode E01002L4, oid 139, 8190976 kb remaining
  51.     in    3:             barcode E01003L4, oid 102
  52.     in    4:             barcode E01004L4, oid 103
  53.     in    5:             barcode E01005L4, oid 104
  54.     in    6:             barcode E01006L4, oid 105
  55.     in    7:             barcode E01007L4, oid 106
  56.     in    8:             barcode E01008L4, oid 107
  57.     in    9:             barcode E01009L4, oid 108
  58.     in    10:            barcode E01010L4, oid 109
  59.     in    11:            barcode E01011L4, oid 110
  60.     in    12:            barcode E01012L4, oid 111
  61.     in    13:            barcode E01013L4, oid 112
  62.     in    14:            barcode E01014L4, oid 113
  63.     in    15:            barcode E01015L4, oid 114
  64.     in    16:            barcode E01016L4, oid 115
  65.     in    17:            barcode E01017L4, oid 116
  66.     in    18:            barcode E01018L4, oid 117
  67.     in    19:            barcode E01019L4, oid 118
  68.     in    20:            barcode E01020L4, oid 119
  69.     in    21:            vacant
  70.     in    22:            barcode CLN101L4, oid 120
  71.     in    23:            barcode CLN102L5, oid 121
  72.     in    24:            vacant
  73.     in    25:            vacant
  74.     in    26:            vacant
  75.     in    27:            vacant
  76.     in    28:            vacant
  77.     in    29:            vacant
  78.     in    30:            barcode F01030L5, oid 122
  79.     in    31:            barcode F01031L5, oid 123
  80.     in    32:            barcode F01032L5, oid 124
  81.     in    33:            barcode F01033L5, oid 125
  82.     in    34:            barcode F01034L5, oid 126
  83.     in    35:            barcode F01035L5, oid 127
  84.     in    36:            barcode F01036L5, oid 128
  85.     in    37:            barcode F01037L5, oid 129
  86.     in    38:            barcode F01038L5, oid 130
  87.     in    39:            barcode F01039L5, oid 131
  88.     in    iee1:          vacant
  89.     in    iee2:          vacant
  90.     in    iee3:          vacant
  91.     in    iee4:          vacant
  92.     in    dte1:          vacant
  93.     in    dte2:          vacant
  94.     in    dte3:          vacant
  95.     in    dte4:          vacant
  96. ob> exit
  97. [root@station90 10]# du -sh *
  98. 8.0K        CLN101L4
  99. 8.0K        CLN102L5
  100. 140K        E01001L4
  101. 140K        E01002L4
  102. 8.0K        E01003L4
  103. 8.0K        E01004L4
  104. 8.0K        E01005L4
  105. 8.0K        E01006L4
  106. 8.0K        E01007L4
  107. 8.0K        E01008L4
  108. 8.0K        E01009L4
  109. 8.0K        E01010L4
  110. 8.0K        E01011L4
  111. 8.0K        E01012L4
  112. 8.0K        E01013L4
  113. 8.0K        E01014L4
  114. 8.0K        E01015L4
  115. 8.0K        E01016L4
  116. 8.0K        E01017L4
  117. 8.0K        E01018L4
  118. 8.0K        E01019L4
  119. 8.0K        E01020L4
  120. 8.0K        F01030L5
  121. 8.0K        F01031L5
  122. 8.0K        F01032L5
  123. 8.0K        F01033L5
  124. 8.0K        F01034L5
  125. 8.0K        F01035L5
  126. 8.0K        F01036L5
  127. 8.0K        F01037L5
  128. 8.0K        F01038L5
  129. 8.0K        F01039L5
  130. [root@station90 10]#
复制代码
Oracle Suggested Backup策略:
  1. Daily Script:
  2. run {
  3. allocate channel oem_disk_backup device type disk;
  4. recover copy of database with tag 'ORA_OEM_LEVEL_0';
  5. backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  6. release channel oem_disk_backup;
  7. allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  8. allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  9. backup archivelog all not backed up;
  10. }
  11. allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  12. delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
  13. Weekly Script:
  14. run {
  15. allocate channel oem_disk_backup device type disk;
  16. recover copy of database with tag 'ORA_OEM_LEVEL_0';
  17. backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  18. release channel oem_disk_backup;
  19. allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  20. allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  21. backup recovery area;
  22. }
  23. allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  24. delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
复制代码
第一天的EM输出:
  1. Step: Backup
  2.         
  3. Page Refreshed Sep 14, 2017 8:44:22 PM CST
  4. View Data               
  5.         
  6.         Status                Succeeded
  7.         Exit Code                0
  8.         Step ID                215
  9.         Targets                orcl.example.com
  10.         
  11.         Started                Sep 14, 2017 8:35:22 PM CST
  12.         Ended                Sep 14, 2017 8:36:55 PM CST
  13.         Step Elapsed Time                1 minutes, 33 seconds
  14.         Management Service                station90.example.com:1158_Management_Service
  15.         TIP         Management Service from which the job step was dispatched.
  16.                
  17.         
  18. Output Log

  19. Recovery Manager: Release 11.2.0.1.0 - Production on Thu Sep 14 20:35:22 2017

  20. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  21. RMAN>
  22. connected to target database: ORCL (DBID=1343950367)
  23. using target database control file instead of recovery catalog

  24. RMAN>
  25. echo set on


  26. RMAN> run {
  27. 2> allocate channel oem_disk_backup device type disk;
  28. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  29. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  30. 5> release channel oem_disk_backup;
  31. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  32. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  33. 8> backup archivelog all not backed up;
  34. 9> }
  35. allocated channel: oem_disk_backup
  36. channel oem_disk_backup: SID=204 device type=DISK

  37. Starting recover at 14-SEP-17
  38. no copy of datafile 1 found to recover
  39. no copy of datafile 2 found to recover
  40. no copy of datafile 3 found to recover
  41. no copy of datafile 4 found to recover
  42. no copy of datafile 5 found to recover
  43. Finished recover at 14-SEP-17

  44. Starting backup at 14-SEP-17
  45. no parent backup or copy of datafile 1 found
  46. no parent backup or copy of datafile 2 found
  47. no parent backup or copy of datafile 3 found
  48. no parent backup or copy of datafile 5 found
  49. no parent backup or copy of datafile 4 found
  50. channel oem_disk_backup: starting datafile copy
  51. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  52. output file name=+FRA/orcl/datafile/system.276.954707725 tag=ORA_OEM_LEVEL_0 RECID=4 STAMP=954707728
  53. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:08
  54. channel oem_disk_backup: starting datafile copy
  55. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  56. output file name=+FRA/orcl/datafile/sysaux.274.954707731 tag=ORA_OEM_LEVEL_0 RECID=5 STAMP=954707734
  57. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
  58. channel oem_disk_backup: starting datafile copy
  59. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  60. output file name=+FRA/orcl/datafile/undotbs1.273.954707739 tag=ORA_OEM_LEVEL_0 RECID=6 STAMP=954707739
  61. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
  62. channel oem_disk_backup: starting datafile copy
  63. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  64. output file name=+FRA/orcl/datafile/example.272.954707739 tag=ORA_OEM_LEVEL_0 RECID=7 STAMP=954707740
  65. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
  66. channel oem_disk_backup: starting datafile copy
  67. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  68. output file name=+FRA/orcl/datafile/users.271.954707741 tag=ORA_OEM_LEVEL_0 RECID=8 STAMP=954707741
  69. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
  70. Finished backup at 14-SEP-17

  71. Starting Control File and SPFILE Autobackup at 14-SEP-17
  72. piece handle=+FRA/orcl/autobackup/2017_09_14/s_954707741.270.954707743 comment=NONE
  73. Finished Control File and SPFILE Autobackup at 14-SEP-17

  74. released channel: oem_disk_backup

  75. allocated channel: oem_sbt_backup1
  76. channel oem_sbt_backup1: SID=204 device type=SBT_TAPE
  77. channel oem_sbt_backup1: Oracle Secure Backup

  78. allocated channel: oem_sbt_backup2
  79. channel oem_sbt_backup2: SID=82 device type=SBT_TAPE
  80. channel oem_sbt_backup2: Oracle Secure Backup

  81. Starting backup at 14-SEP-17
  82. current log archived
  83. channel oem_sbt_backup1: starting archived log backup set
  84. channel oem_sbt_backup1: specifying archived log(s) in backup set
  85. input archived log thread=1 sequence=35 RECID=27 STAMP=954707754
  86. channel oem_sbt_backup1: starting piece 1 at 14-SEP-17
  87. channel oem_sbt_backup1: finished piece 1 at 14-SEP-17
  88. piece handle=1isefbpb_1_1 tag=TAG20170914T203555 comment=API Version 2.0,MMS Version 10.4.0.4
  89. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:25
  90. Finished backup at 14-SEP-17

  91. Starting Control File and SPFILE Autobackup at 14-SEP-17
  92. piece handle=c-1343950367-20170914-04 comment=API Version 2.0,MMS Version 10.4.0.4
  93. Finished Control File and SPFILE Autobackup at 14-SEP-17
  94. released channel: oem_sbt_backup1
  95. released channel: oem_sbt_backup2


  96. RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  97. allocated channel: ORA_MAINT_SBT_TAPE_1
  98. channel ORA_MAINT_SBT_TAPE_1: SID=204 device type=SBT_TAPE
  99. channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup


  100. RMAN> delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
  101. no obsolete backups found


  102. RMAN> exit;

  103. Recovery Manager complete.
复制代码
第一天的产出物:
  1. RMAN> list backup;


  2. List of Backup Sets
  3. ===================


  4. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  5. ------- ---- -- ---------- ----------- ------------ ---------------
  6. 44      Full    9.36M      DISK        00:00:01     14-SEP-17      
  7.         BP Key: 46   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203541
  8.         Piece Name: +FRA/orcl/autobackup/2017_09_14/s_954707741.270.954707743
  9.   SPFILE Included: Modification time: 13-SEP-17
  10.   SPFILE db_unique_name: ORCL
  11.   Control File Included: Ckp SCN: 1152721      Ckp time: 14-SEP-17

  12. BS Key  Size       Device Type Elapsed Time Completion Time
  13. ------- ---------- ----------- ------------ ---------------
  14. 45      4.00M      SBT_TAPE    00:00:24     14-SEP-17      
  15.         BP Key: 47   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203555
  16.         Handle: 1isefbpb_1_1   Media: station90-000003

  17.   List of Archived Logs in backup set 45
  18.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  19.   ---- ------- ---------- --------- ---------- ---------
  20.   1    35      1150069    14-SEP-17 1152813    14-SEP-17

  21. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  22. ------- ---- -- ---------- ----------- ------------ ---------------
  23. 46      Full    9.50M      SBT_TAPE    00:00:15     14-SEP-17      
  24.         BP Key: 48   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203620
  25.         Handle: c-1343950367-20170914-04   Media: station90-000003
  26.   SPFILE Included: Modification time: 13-SEP-17
  27.   SPFILE db_unique_name: ORCL
  28.   Control File Included: Ckp SCN: 1152852      Ckp time: 14-SEP-17

  29. RMAN>
复制代码
  1. RMAN> list copy ;

  2. specification does not match any control file copy in the repository
  3. List of Datafile Copies
  4. =======================

  5. Key     File S Completion Time Ckp SCN    Ckp Time      
  6. ------- ---- - --------------- ---------- ---------------
  7. 4       1    A 14-SEP-17       1152634    14-SEP-17      
  8.         Name: +FRA/orcl/datafile/system.276.954707725
  9.         Tag: ORA_OEM_LEVEL_0

  10. 5       2    A 14-SEP-17       1152644    14-SEP-17      
  11.         Name: +FRA/orcl/datafile/sysaux.274.954707731
  12.         Tag: ORA_OEM_LEVEL_0

  13. 6       3    A 14-SEP-17       1152685    14-SEP-17      
  14.         Name: +FRA/orcl/datafile/undotbs1.273.954707739
  15.         Tag: ORA_OEM_LEVEL_0

  16. 8       4    A 14-SEP-17       1152711    14-SEP-17      
  17.         Name: +FRA/orcl/datafile/users.271.954707741
  18.         Tag: ORA_OEM_LEVEL_0

  19. 7       5    A 14-SEP-17       1152698    14-SEP-17      
  20.         Name: +FRA/orcl/datafile/example.272.954707739
  21.         Tag: ORA_OEM_LEVEL_0

  22. List of Archived Log Copies for database with db_unique_name ORCL
  23. =====================================================================

  24. Key     Thrd Seq     S Low Time
  25. ------- ---- ------- - ---------
  26. 27      1    35      A 14-SEP-17
  27.         Name: +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755


  28. RMAN>
复制代码
第二天EM的输出:
  1. Step: Backup
  2.         
  3. Page Refreshed Sep 15, 2017 8:37:18 PM CST
  4. View Data               
  5.         
  6.         Status                Succeeded
  7.         Exit Code                0
  8.         Step ID                241
  9.         Targets                orcl.example.com
  10.         
  11.         Started                Sep 15, 2017 8:35:26 PM CST
  12.         Ended                Sep 15, 2017 8:36:45 PM CST
  13.         Step Elapsed Time                1 minutes, 19 seconds
  14.         Management Service                station90.example.com:1158_Management_Service
  15.         TIP         Management Service from which the job step was dispatched.
  16.                
  17.         
  18. Output Log

  19. Recovery Manager: Release 11.2.0.1.0 - Production on Fri Sep 15 20:35:26 2017

  20. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  21. RMAN>
  22. connected to target database: ORCL (DBID=1343950367)
  23. using target database control file instead of recovery catalog

  24. RMAN>
  25. echo set on


  26. RMAN> run {
  27. 2> allocate channel oem_disk_backup device type disk;
  28. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  29. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  30. 5> release channel oem_disk_backup;
  31. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  32. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  33. 8> backup archivelog all not backed up;
  34. 9> }
  35. allocated channel: oem_disk_backup
  36. channel oem_disk_backup: SID=13 device type=DISK

  37. Starting recover at 15-SEP-17
  38. no copy of datafile 1 found to recover
  39. no copy of datafile 2 found to recover
  40. no copy of datafile 3 found to recover
  41. no copy of datafile 4 found to recover
  42. no copy of datafile 5 found to recover
  43. Finished recover at 15-SEP-17

  44. Starting backup at 15-SEP-17
  45. channel oem_disk_backup: starting incremental level 1 datafile backup set
  46. channel oem_disk_backup: specifying datafile(s) in backup set
  47. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  48. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  49. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  50. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  51. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  52. channel oem_disk_backup: starting piece 1 at 15-SEP-17
  53. channel oem_disk_backup: finished piece 1 at 15-SEP-17
  54. piece handle=+FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129 tag=ORA_OEM_LEVEL_0 comment=NONE
  55. channel oem_disk_backup: backup set complete, elapsed time: 00:00:03
  56. Finished backup at 15-SEP-17

  57. Starting Control File and SPFILE Autobackup at 15-SEP-17
  58. piece handle=+FRA/orcl/autobackup/2017_09_15/s_954794131.267.954794133 comment=NONE
  59. Finished Control File and SPFILE Autobackup at 15-SEP-17

  60. released channel: oem_disk_backup

  61. allocated channel: oem_sbt_backup1
  62. channel oem_sbt_backup1: SID=13 device type=SBT_TAPE
  63. channel oem_sbt_backup1: Oracle Secure Backup

  64. allocated channel: oem_sbt_backup2
  65. channel oem_sbt_backup2: SID=130 device type=SBT_TAPE
  66. channel oem_sbt_backup2: Oracle Secure Backup

  67. Starting backup at 15-SEP-17
  68. current log archived
  69. skipping archived log file +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755; already backed on 14-SEP-17
  70. channel oem_sbt_backup1: starting archived log backup set
  71. channel oem_sbt_backup1: specifying archived log(s) in backup set
  72. input archived log thread=1 sequence=36 RECID=28 STAMP=954794144
  73. channel oem_sbt_backup1: starting piece 1 at 15-SEP-17
  74. channel oem_sbt_backup1: finished piece 1 at 15-SEP-17
  75. piece handle=1msei051_1_1 tag=TAG20170915T203545 comment=API Version 2.0,MMS Version 10.4.0.4
  76. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:25
  77. Finished backup at 15-SEP-17

  78. Starting Control File and SPFILE Autobackup at 15-SEP-17
  79. piece handle=c-1343950367-20170915-01 comment=API Version 2.0,MMS Version 10.4.0.4
  80. Finished Control File and SPFILE Autobackup at 15-SEP-17
  81. released channel: oem_sbt_backup1
  82. released channel: oem_sbt_backup2


  83. RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  84. allocated channel: ORA_MAINT_SBT_TAPE_1
  85. channel ORA_MAINT_SBT_TAPE_1: SID=13 device type=SBT_TAPE
  86. channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup


  87. RMAN> delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
  88. no obsolete backups found


  89. RMAN> exit;

  90. Recovery Manager complete.
复制代码
第二天的产出物:

  1. RMAN> list backup;


  2. List of Backup Sets
  3. ===================


  4. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  5. ------- ---- -- ---------- ----------- ------------ ---------------
  6. 44      Full    9.36M      DISK        00:00:01     14-SEP-17      
  7.         BP Key: 46   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203541
  8.         Piece Name: +FRA/orcl/autobackup/2017_09_14/s_954707741.270.954707743
  9.   SPFILE Included: Modification time: 13-SEP-17
  10.   SPFILE db_unique_name: ORCL
  11.   Control File Included: Ckp SCN: 1152721      Ckp time: 14-SEP-17

  12. BS Key  Size       Device Type Elapsed Time Completion Time
  13. ------- ---------- ----------- ------------ ---------------
  14. 45      4.00M      SBT_TAPE    00:00:24     14-SEP-17      
  15.         BP Key: 47   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203555
  16.         Handle: 1isefbpb_1_1   Media: station90-000003

  17.   List of Archived Logs in backup set 45
  18.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  19.   ---- ------- ---------- --------- ---------- ---------
  20.   1    35      1150069    14-SEP-17 1152813    14-SEP-17

  21. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  22. ------- ---- -- ---------- ----------- ------------ ---------------
  23. 46      Full    9.50M      SBT_TAPE    00:00:15     14-SEP-17      
  24.         BP Key: 48   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203620
  25.         Handle: c-1343950367-20170914-04   Media: station90-000003
  26.   SPFILE Included: Modification time: 13-SEP-17
  27.   SPFILE db_unique_name: ORCL
  28.   Control File Included: Ckp SCN: 1152852      Ckp time: 14-SEP-17

  29. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  30. ------- ---- -- ---------- ----------- ------------ ---------------
  31. 47      Incr 1  17.88M     DISK        00:00:02     15-SEP-17      
  32.         BP Key: 49   Status: AVAILABLE  Compressed: NO  Tag: ORA_OEM_LEVEL_0
  33.         Piece Name: +FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129
  34.   List of Datafiles in backup set 47
  35.   File LV Type Ckp SCN    Ckp Time  Name
  36.   ---- -- ---- ---------- --------- ----
  37.   1    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/system.256.816169553
  38.   2    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  39.   3    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  40.   4    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/users.259.816169553
  41.   5    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/example.265.816169651

  42. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  43. ------- ---- -- ---------- ----------- ------------ ---------------
  44. 48      Full    9.36M      DISK        00:00:01     15-SEP-17      
  45.         BP Key: 50   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203531
  46.         Piece Name: +FRA/orcl/autobackup/2017_09_15/s_954794131.267.954794133
  47.   SPFILE Included: Modification time: 13-SEP-17
  48.   SPFILE db_unique_name: ORCL
  49.   Control File Included: Ckp SCN: 1155522      Ckp time: 15-SEP-17

  50. BS Key  Size       Device Type Elapsed Time Completion Time
  51. ------- ---------- ----------- ------------ ---------------
  52. 49      11.50M     SBT_TAPE    00:00:25     15-SEP-17      
  53.         BP Key: 51   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203545
  54.         Handle: 1msei051_1_1   Media: station90-000003

  55.   List of Archived Logs in backup set 49
  56.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  57.   ---- ------- ---------- --------- ---------- ---------
  58.   1    36      1152813    14-SEP-17 1155635    15-SEP-17

  59. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  60. ------- ---- -- ---------- ----------- ------------ ---------------
  61. 50      Full    9.50M      SBT_TAPE    00:00:15     15-SEP-17      
  62.         BP Key: 52   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203610
  63.         Handle: c-1343950367-20170915-01   Media: station90-000003
  64.   SPFILE Included: Modification time: 13-SEP-17
  65.   SPFILE db_unique_name: ORCL
  66.   Control File Included: Ckp SCN: 1155702      Ckp time: 15-SEP-17

  67. RMAN>
复制代码
  1. RMAN> list copy;

  2. specification does not match any control file copy in the repository
  3. List of Datafile Copies
  4. =======================

  5. Key     File S Completion Time Ckp SCN    Ckp Time      
  6. ------- ---- - --------------- ---------- ---------------
  7. 4       1    A 14-SEP-17       1152634    14-SEP-17      
  8.         Name: +FRA/orcl/datafile/system.276.954707725
  9.         Tag: ORA_OEM_LEVEL_0

  10. 5       2    A 14-SEP-17       1152644    14-SEP-17      
  11.         Name: +FRA/orcl/datafile/sysaux.274.954707731
  12.         Tag: ORA_OEM_LEVEL_0

  13. 6       3    A 14-SEP-17       1152685    14-SEP-17      
  14.         Name: +FRA/orcl/datafile/undotbs1.273.954707739
  15.         Tag: ORA_OEM_LEVEL_0

  16. 8       4    A 14-SEP-17       1152711    14-SEP-17      
  17.         Name: +FRA/orcl/datafile/users.271.954707741
  18.         Tag: ORA_OEM_LEVEL_0

  19. 7       5    A 14-SEP-17       1152698    14-SEP-17      
  20.         Name: +FRA/orcl/datafile/example.272.954707739
  21.         Tag: ORA_OEM_LEVEL_0

  22. List of Archived Log Copies for database with db_unique_name ORCL
  23. =====================================================================

  24. Key     Thrd Seq     S Low Time
  25. ------- ---- ------- - ---------
  26. 27      1    35      A 14-SEP-17
  27.         Name: +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755

  28. 28      1    36      A 14-SEP-17
  29.         Name: +FRA/orcl/archivelog/2017_09_15/thread_1_seq_36.266.954794145


  30. RMAN>
复制代码
第三天EM的输出:
  1. Step: Backup
  2.         
  3. Page Refreshed Sep 16, 2017 8:37:32 PM CST
  4. View Data               
  5.         
  6.         Status                Succeeded
  7.         Exit Code                0
  8.         Step ID                267
  9.         Targets                orcl.example.com
  10.         
  11.         Started                Sep 16, 2017 8:35:28 PM CST
  12.         Ended                Sep 16, 2017 8:37:06 PM CST
  13.         Step Elapsed Time                1 minutes, 38 seconds
  14.         Management Service                station90.example.com:1158_Management_Service
  15.         TIP         Management Service from which the job step was dispatched.
  16.                
  17.         
  18. Output Log

  19. Recovery Manager: Release 11.2.0.1.0 - Production on Sat Sep 16 20:35:29 2017

  20. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  21. RMAN>
  22. connected to target database: ORCL (DBID=1343950367)
  23. using target database control file instead of recovery catalog

  24. RMAN>
  25. echo set on


  26. RMAN> run {
  27. 2> allocate channel oem_disk_backup device type disk;
  28. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  29. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  30. 5> release channel oem_disk_backup;
  31. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  32. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  33. 8> backup archivelog all not backed up;
  34. 9> }
  35. allocated channel: oem_disk_backup
  36. channel oem_disk_backup: SID=135 device type=DISK

  37. Starting recover at 16-SEP-17
  38. channel oem_disk_backup: starting incremental datafile backup set restore
  39. channel oem_disk_backup: specifying datafile copies to recover
  40. recovering datafile copy file number=00001 name=+FRA/orcl/datafile/system.276.954707725
  41. recovering datafile copy file number=00002 name=+FRA/orcl/datafile/sysaux.274.954707731
  42. recovering datafile copy file number=00003 name=+FRA/orcl/datafile/undotbs1.273.954707739
  43. recovering datafile copy file number=00004 name=+FRA/orcl/datafile/users.271.954707741
  44. recovering datafile copy file number=00005 name=+FRA/orcl/datafile/example.272.954707739
  45. channel oem_disk_backup: reading from backup piece +FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129
  46. channel oem_disk_backup: piece handle=+FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129 tag=ORA_OEM_LEVEL_0
  47. channel oem_disk_backup: restored backup piece 1
  48. channel oem_disk_backup: restore complete, elapsed time: 00:00:03
  49. Finished recover at 16-SEP-17

  50. Starting backup at 16-SEP-17
  51. channel oem_disk_backup: starting incremental level 1 datafile backup set
  52. channel oem_disk_backup: specifying datafile(s) in backup set
  53. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  54. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  55. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  56. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  57. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  58. channel oem_disk_backup: starting piece 1 at 16-SEP-17
  59. channel oem_disk_backup: finished piece 1 at 16-SEP-17
  60. piece handle=+FRA/orcl/backupset/2017_09_16/nnndn1_ora_oem_level_0_0.263.954880539 tag=ORA_OEM_LEVEL_0 comment=NONE
  61. channel oem_disk_backup: backup set complete, elapsed time: 00:00:07
  62. Finished backup at 16-SEP-17

  63. Starting Control File and SPFILE Autobackup at 16-SEP-17
  64. piece handle=+FRA/orcl/autobackup/2017_09_16/s_954880542.261.954880543 comment=NONE
  65. Finished Control File and SPFILE Autobackup at 16-SEP-17

  66. released channel: oem_disk_backup

  67. allocated channel: oem_sbt_backup1
  68. channel oem_sbt_backup1: SID=135 device type=SBT_TAPE
  69. channel oem_sbt_backup1: Oracle Secure Backup

  70. allocated channel: oem_sbt_backup2
  71. channel oem_sbt_backup2: SID=197 device type=SBT_TAPE
  72. channel oem_sbt_backup2: Oracle Secure Backup

  73. Starting backup at 16-SEP-17
  74. current log archived
  75. skipping archived log file +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755; already backed on 14-SEP-17
  76. skipping archived log file +FRA/orcl/archivelog/2017_09_15/thread_1_seq_36.266.954794145; already backed on 15-SEP-17
  77. channel oem_sbt_backup1: starting archived log backup set
  78. channel oem_sbt_backup1: specifying archived log(s) in backup set
  79. input archived log thread=1 sequence=37 RECID=29 STAMP=954880359
  80. input archived log thread=1 sequence=38 RECID=30 STAMP=954880389
  81. channel oem_sbt_backup1: starting piece 1 at 16-SEP-17
  82. channel oem_sbt_backup2: starting archived log backup set
  83. channel oem_sbt_backup2: specifying archived log(s) in backup set
  84. input archived log thread=1 sequence=39 RECID=31 STAMP=954880555
  85. channel oem_sbt_backup2: starting piece 1 at 16-SEP-17
  86. channel oem_sbt_backup1: finished piece 1 at 16-SEP-17
  87. piece handle=1qsekkhc_1_1 tag=TAG20170916T203555 comment=API Version 2.0,MMS Version 10.4.0.4
  88. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:25
  89. channel oem_sbt_backup2: finished piece 1 at 16-SEP-17
  90. piece handle=1rsekkhc_1_1 tag=TAG20170916T203555 comment=API Version 2.0,MMS Version 10.4.0.4
  91. channel oem_sbt_backup2: backup set complete, elapsed time: 00:00:35
  92. Finished backup at 16-SEP-17

  93. Starting Control File and SPFILE Autobackup at 16-SEP-17
  94. piece handle=c-1343950367-20170916-01 comment=API Version 2.0,MMS Version 10.4.0.4
  95. Finished Control File and SPFILE Autobackup at 16-SEP-17
  96. released channel: oem_sbt_backup1
  97. released channel: oem_sbt_backup2

  98. RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  99. allocated channel: ORA_MAINT_SBT_TAPE_1
  100. channel ORA_MAINT_SBT_TAPE_1: SID=135 device type=SBT_TAPE
  101. channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup


  102. RMAN> delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
  103. no obsolete backups found

  104. RMAN> exit;

  105. Recovery Manager complete.
复制代码
第三天产出物:
  1. RMAN> list backup;

  2. using target database control file instead of recovery catalog

  3. List of Backup Sets
  4. ===================


  5. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  6. ------- ---- -- ---------- ----------- ------------ ---------------
  7. 44      Full    9.36M      DISK        00:00:01     14-SEP-17      
  8.         BP Key: 46   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203541
  9.         Piece Name: +FRA/orcl/autobackup/2017_09_14/s_954707741.270.954707743
  10.   SPFILE Included: Modification time: 13-SEP-17
  11.   SPFILE db_unique_name: ORCL
  12.   Control File Included: Ckp SCN: 1152721      Ckp time: 14-SEP-17

  13. BS Key  Size       Device Type Elapsed Time Completion Time
  14. ------- ---------- ----------- ------------ ---------------
  15. 45      4.00M      SBT_TAPE    00:00:24     14-SEP-17      
  16.         BP Key: 47   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203555
  17.         Handle: 1isefbpb_1_1   Media: station90-000003

  18.   List of Archived Logs in backup set 45
  19.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  20.   ---- ------- ---------- --------- ---------- ---------
  21.   1    35      1150069    14-SEP-17 1152813    14-SEP-17

  22. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  23. ------- ---- -- ---------- ----------- ------------ ---------------
  24. 46      Full    9.50M      SBT_TAPE    00:00:15     14-SEP-17      
  25.         BP Key: 48   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203620
  26.         Handle: c-1343950367-20170914-04   Media: station90-000003
  27.   SPFILE Included: Modification time: 13-SEP-17
  28.   SPFILE db_unique_name: ORCL
  29.   Control File Included: Ckp SCN: 1152852      Ckp time: 14-SEP-17

  30. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  31. ------- ---- -- ---------- ----------- ------------ ---------------
  32. 47      Incr 1  17.88M     DISK        00:00:02     15-SEP-17      
  33.         BP Key: 49   Status: AVAILABLE  Compressed: NO  Tag: ORA_OEM_LEVEL_0
  34.         Piece Name: +FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129
  35.   List of Datafiles in backup set 47
  36.   File LV Type Ckp SCN    Ckp Time  Name
  37.   ---- -- ---- ---------- --------- ----
  38.   1    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/system.256.816169553
  39.   2    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  40.   3    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  41.   4    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/users.259.816169553
  42.   5    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/example.265.816169651

  43. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  44. ------- ---- -- ---------- ----------- ------------ ---------------
  45. 48      Full    9.36M      DISK        00:00:01     15-SEP-17      
  46.         BP Key: 50   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203531
  47.         Piece Name: +FRA/orcl/autobackup/2017_09_15/s_954794131.267.954794133
  48.   SPFILE Included: Modification time: 13-SEP-17
  49.   SPFILE db_unique_name: ORCL
  50.   Control File Included: Ckp SCN: 1155522      Ckp time: 15-SEP-17

  51. BS Key  Size       Device Type Elapsed Time Completion Time
  52. ------- ---------- ----------- ------------ ---------------
  53. 49      11.50M     SBT_TAPE    00:00:25     15-SEP-17      
  54.         BP Key: 51   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203545
  55.         Handle: 1msei051_1_1   Media: station90-000003

  56.   List of Archived Logs in backup set 49
  57.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  58.   ---- ------- ---------- --------- ---------- ---------
  59.   1    36      1152813    14-SEP-17 1155635    15-SEP-17

  60. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  61. ------- ---- -- ---------- ----------- ------------ ---------------
  62. 50      Full    9.50M      SBT_TAPE    00:00:15     15-SEP-17      
  63.         BP Key: 52   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203610
  64.         Handle: c-1343950367-20170915-01   Media: station90-000003
  65.   SPFILE Included: Modification time: 13-SEP-17
  66.   SPFILE db_unique_name: ORCL
  67.   Control File Included: Ckp SCN: 1155702      Ckp time: 15-SEP-17

  68. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  69. ------- ---- -- ---------- ----------- ------------ ---------------
  70. 51      Incr 1  45.66M     DISK        00:00:04     16-SEP-17      
  71.         BP Key: 53   Status: AVAILABLE  Compressed: NO  Tag: ORA_OEM_LEVEL_0
  72.         Piece Name: +FRA/orcl/backupset/2017_09_16/nnndn1_ora_oem_level_0_0.263.954880539
  73.   List of Datafiles in backup set 51
  74.   File LV Type Ckp SCN    Ckp Time  Name
  75.   ---- -- ---- ---------- --------- ----
  76.   1    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/system.256.816169553
  77.   2    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  78.   3    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  79.   4    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/users.259.816169553
  80.   5    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/example.265.816169651

  81. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  82. ------- ---- -- ---------- ----------- ------------ ---------------
  83. 52      Full    9.36M      DISK        00:00:00     16-SEP-17      
  84.         BP Key: 54   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203542
  85.         Piece Name: +FRA/orcl/autobackup/2017_09_16/s_954880542.261.954880543
  86.   SPFILE Included: Modification time: 13-SEP-17
  87.   SPFILE db_unique_name: ORCL
  88.   Control File Included: Ckp SCN: 1165783      Ckp time: 16-SEP-17

  89. BS Key  Size       Device Type Elapsed Time Completion Time
  90. ------- ---------- ----------- ------------ ---------------
  91. 53      33.75M     SBT_TAPE    00:00:24     16-SEP-17      
  92.         BP Key: 55   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203555
  93.         Handle: 1qsekkhc_1_1   Media: station90-000003

  94.   List of Archived Logs in backup set 53
  95.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  96.   ---- ------- ---------- --------- ---------- ---------
  97.   1    37      1155635    15-SEP-17 1161457    16-SEP-17
  98.   1    38      1161457    16-SEP-17 1164170    16-SEP-17

  99. BS Key  Size       Device Type Elapsed Time Completion Time
  100. ------- ---------- ----------- ------------ ---------------
  101. 54      11.00M     SBT_TAPE    00:00:26     16-SEP-17      
  102.         BP Key: 56   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203555
  103.         Handle: 1rsekkhc_1_1   Media: station90-000004

  104.   List of Archived Logs in backup set 54
  105.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  106.   ---- ------- ---------- --------- ---------- ---------
  107.   1    39      1164170    16-SEP-17 1165906    16-SEP-17

  108. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  109. ------- ---- -- ---------- ----------- ------------ ---------------
  110. 55      Full    9.50M      SBT_TAPE    00:00:16     16-SEP-17      
  111.         BP Key: 57   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203631
  112.         Handle: c-1343950367-20170916-01   Media: station90-000003
  113.   SPFILE Included: Modification time: 13-SEP-17
  114.   SPFILE db_unique_name: ORCL
  115.   Control File Included: Ckp SCN: 1165981      Ckp time: 16-SEP-17

  116. RMAN>
复制代码
看滚雪球:
  1. RMAN> list copy;

  2. specification does not match any control file copy in the repository
  3. List of Datafile Copies
  4. =======================

  5. Key     File S Completion Time Ckp SCN    Ckp Time      
  6. ------- ---- - --------------- ---------- ---------------
  7. 11      1    A 16-SEP-17       1155512    15-SEP-17      
  8.         Name: +FRA/orcl/datafile/system.276.954707725
  9.         Tag: ORA_OEM_LEVEL_0

  10. 13      2    A 16-SEP-17       1155512    15-SEP-17      
  11.         Name: +FRA/orcl/datafile/sysaux.274.954707731
  12.         Tag: ORA_OEM_LEVEL_0

  13. 12      3    A 16-SEP-17       1155512    15-SEP-17      
  14.         Name: +FRA/orcl/datafile/undotbs1.273.954707739
  15.         Tag: ORA_OEM_LEVEL_0

  16. 10      4    A 16-SEP-17       1155512    15-SEP-17      
  17.         Name: +FRA/orcl/datafile/users.271.954707741
  18.         Tag: ORA_OEM_LEVEL_0

  19. 9       5    A 16-SEP-17       1155512    15-SEP-17      
  20.         Name: +FRA/orcl/datafile/example.272.954707739
  21.         Tag: ORA_OEM_LEVEL_0

  22. List of Archived Log Copies for database with db_unique_name ORCL
  23. =====================================================================

  24. Key     Thrd Seq     S Low Time
  25. ------- ---- ------- - ---------
  26. 27      1    35      A 14-SEP-17
  27.         Name: +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755

  28. 28      1    36      A 14-SEP-17
  29.         Name: +FRA/orcl/archivelog/2017_09_15/thread_1_seq_36.266.954794145

  30. 29      1    37      A 15-SEP-17
  31.         Name: +FRA/orcl/archivelog/2017_09_16/thread_1_seq_37.265.954880359

  32. 30      1    38      A 16-SEP-17
  33.         Name: +FRA/orcl/archivelog/2017_09_16/thread_1_seq_38.264.954880389

  34. 31      1    39      A 16-SEP-17
  35.         Name: +FRA/orcl/archivelog/2017_09_16/thread_1_seq_39.262.954880555


  36. RMAN>
复制代码
周备份EM输出:
  1. Step: Backup
  2.         
  3. Page Refreshed Sep 17, 2017 8:39:54 PM CST
  4. View Data               
  5.         
  6.         Status                Succeeded
  7.         Exit Code                0
  8.         Step ID                293
  9.         Targets                orcl.example.com
  10.         
  11.         Started                Sep 17, 2017 8:35:21 PM CST
  12.         Ended                Sep 17, 2017 8:39:06 PM CST
  13.         Step Elapsed Time                3 minutes, 45 seconds
  14.         Management Service                station90.example.com:1158_Management_Service
  15.         TIP         Management Service from which the job step was dispatched.
  16.                
  17.         
  18. Output Log

  19. Recovery Manager: Release 11.2.0.1.0 - Production on Sun Sep 17 20:35:22 2017

  20. Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

  21. RMAN>
  22. connected to target database: ORCL (DBID=1343950367)
  23. using target database control file instead of recovery catalog

  24. RMAN>
  25. echo set on


  26. RMAN> run {
  27. 2> allocate channel oem_disk_backup device type disk;
  28. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  29. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  30. 5> release channel oem_disk_backup;
  31. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  32. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  33. 8> backup recovery area;
  34. 9> }
  35. allocated channel: oem_disk_backup
  36. channel oem_disk_backup: SID=79 device type=DISK

  37. Starting recover at 17-SEP-17
  38. channel oem_disk_backup: starting incremental datafile backup set restore
  39. channel oem_disk_backup: specifying datafile copies to recover
  40. recovering datafile copy file number=00001 name=+FRA/orcl/datafile/system.276.954707725
  41. recovering datafile copy file number=00002 name=+FRA/orcl/datafile/sysaux.274.954707731
  42. recovering datafile copy file number=00003 name=+FRA/orcl/datafile/undotbs1.273.954707739
  43. recovering datafile copy file number=00004 name=+FRA/orcl/datafile/users.271.954707741
  44. recovering datafile copy file number=00005 name=+FRA/orcl/datafile/example.272.954707739
  45. channel oem_disk_backup: reading from backup piece +FRA/orcl/backupset/2017_09_16/nnndn1_ora_oem_level_0_0.263.954880539
  46. channel oem_disk_backup: piece handle=+FRA/orcl/backupset/2017_09_16/nnndn1_ora_oem_level_0_0.263.954880539 tag=ORA_OEM_LEVEL_0
  47. channel oem_disk_backup: restored backup piece 1
  48. channel oem_disk_backup: restore complete, elapsed time: 00:00:03
  49. Finished recover at 17-SEP-17

  50. Starting backup at 17-SEP-17
  51. channel oem_disk_backup: starting incremental level 1 datafile backup set
  52. channel oem_disk_backup: specifying datafile(s) in backup set
  53. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  54. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  55. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  56. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  57. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  58. channel oem_disk_backup: starting piece 1 at 17-SEP-17
  59. channel oem_disk_backup: finished piece 1 at 17-SEP-17
  60. piece handle=+FRA/orcl/backupset/2017_09_17/nnndn1_ora_oem_level_0_0.278.954966931 tag=ORA_OEM_LEVEL_0 comment=NONE
  61. channel oem_disk_backup: backup set complete, elapsed time: 00:00:07
  62. Finished backup at 17-SEP-17

  63. Starting Control File and SPFILE Autobackup at 17-SEP-17
  64. piece handle=+FRA/orcl/autobackup/2017_09_17/s_954966934.279.954966935 comment=NONE
  65. Finished Control File and SPFILE Autobackup at 17-SEP-17

  66. released channel: oem_disk_backup

  67. allocated channel: oem_sbt_backup1
  68. channel oem_sbt_backup1: SID=79 device type=SBT_TAPE
  69. channel oem_sbt_backup1: Oracle Secure Backup

  70. allocated channel: oem_sbt_backup2
  71. channel oem_sbt_backup2: SID=142 device type=SBT_TAPE
  72. channel oem_sbt_backup2: Oracle Secure Backup

  73. Starting backup at 17-SEP-17
  74. skipping archived log file +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755; already backed up 1 time(s)
  75. skipping archived log file +FRA/orcl/archivelog/2017_09_15/thread_1_seq_36.266.954794145; already backed up 1 time(s)
  76. skipping archived log file +FRA/orcl/archivelog/2017_09_16/thread_1_seq_37.265.954880359; already backed up 1 time(s)
  77. skipping archived log file +FRA/orcl/archivelog/2017_09_16/thread_1_seq_38.264.954880389; already backed up 1 time(s)
  78. skipping archived log file +FRA/orcl/archivelog/2017_09_16/thread_1_seq_39.262.954880555; already backed up 1 time(s)
  79. channel oem_sbt_backup1: starting full datafile backup set
  80. channel oem_sbt_backup1: including datafile copy of datafile 00002 in backup set
  81. input file name=+FRA/orcl/datafile/sysaux.274.954707731
  82. channel oem_sbt_backup1: including datafile copy of datafile 00003 in backup set
  83. input file name=+FRA/orcl/datafile/undotbs1.273.954707739
  84. channel oem_sbt_backup1: including datafile copy of datafile 00005 in backup set
  85. input file name=+FRA/orcl/datafile/example.272.954707739
  86. channel oem_sbt_backup1: starting piece 1 at 17-SEP-17
  87. channel oem_sbt_backup2: starting full datafile backup set
  88. channel oem_sbt_backup2: including datafile copy of datafile 00001 in backup set
  89. input file name=+FRA/orcl/datafile/system.276.954707725
  90. channel oem_sbt_backup2: including datafile copy of datafile 00004 in backup set
  91. input file name=+FRA/orcl/datafile/users.271.954707741
  92. channel oem_sbt_backup2: starting piece 1 at 17-SEP-17
  93. channel oem_sbt_backup1: finished piece 1 at 17-SEP-17
  94. piece handle=1vsen8t4_1_1 tag=TAG20170917T203547 comment=API Version 2.0,MMS Version 10.4.0.4
  95. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:35
  96. channel oem_sbt_backup1: starting archived log backup set
  97. channel oem_sbt_backup1: specifying archived log(s) in backup set
  98. input archived log thread=1 sequence=40 RECID=32 STAMP=954966748
  99. channel oem_sbt_backup1: starting piece 1 at 17-SEP-17
  100. channel oem_sbt_backup2: finished piece 1 at 17-SEP-17
  101. piece handle=20sen8t4_1_1 tag=TAG20170917T203547 comment=API Version 2.0,MMS Version 10.4.0.4
  102. channel oem_sbt_backup2: backup set complete, elapsed time: 00:00:35
  103. channel oem_sbt_backup2: starting archived log backup set
  104. channel oem_sbt_backup2: specifying archived log(s) in backup set
  105. input archived log thread=1 sequence=41 RECID=33 STAMP=954966917
  106. channel oem_sbt_backup2: starting piece 1 at 17-SEP-17
  107. channel oem_sbt_backup1: finished piece 1 at 17-SEP-17
  108. piece handle=21sen8u7_1_1 tag=TAG20170917T203547 comment=API Version 2.0,MMS Version 10.4.0.4
  109. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:25
  110. channel oem_sbt_backup2: finished piece 1 at 17-SEP-17
  111. piece handle=22sen8u7_1_1 tag=TAG20170917T203547 comment=API Version 2.0,MMS Version 10.4.0.4
  112. channel oem_sbt_backup2: backup set complete, elapsed time: 00:00:25
  113. channel oem_sbt_backup1: input backup set: count=49, stamp=954707741, piece=1
  114. channel oem_sbt_backup1: starting piece 1 at 17-SEP-17
  115. channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_09_14/s_954707741.270.954707743
  116. channel oem_sbt_backup2: input backup set: count=52, stamp=954794128, piece=1
  117. channel oem_sbt_backup2: starting piece 1 at 17-SEP-17
  118. channel oem_sbt_backup2: backup piece +FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129
  119. piece handle=c-1343950367-20170914-03 comment=API Version 2.0,MMS Version 10.4.0.4
  120. channel oem_sbt_backup1: finished piece 1 at 17-SEP-17
  121. channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:25
  122. channel oem_sbt_backup1: input backup set: count=53, stamp=954794131, piece=1
  123. channel oem_sbt_backup1: starting piece 1 at 17-SEP-17
  124. channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_09_15/s_954794131.267.954794133
  125. piece handle=1ksei04g_1_2 comment=API Version 2.0,MMS Version 10.4.0.4
  126. channel oem_sbt_backup2: finished piece 1 at 17-SEP-17
  127. channel oem_sbt_backup2: backup piece complete, elapsed time: 00:00:26
  128. channel oem_sbt_backup2: input backup set: count=56, stamp=954880535, piece=1
  129. channel oem_sbt_backup2: starting piece 1 at 17-SEP-17
  130. channel oem_sbt_backup2: backup piece +FRA/orcl/backupset/2017_09_16/nnndn1_ora_oem_level_0_0.263.954880539
  131. piece handle=c-1343950367-20170915-00 comment=API Version 2.0,MMS Version 10.4.0.4
  132. channel oem_sbt_backup1: finished piece 1 at 17-SEP-17
  133. channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:26
  134. channel oem_sbt_backup1: input backup set: count=57, stamp=954880542, piece=1
  135. channel oem_sbt_backup1: starting piece 1 at 17-SEP-17
  136. channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_09_16/s_954880542.261.954880543
  137. piece handle=1osekkgn_1_2 comment=API Version 2.0,MMS Version 10.4.0.4
  138. channel oem_sbt_backup2: finished piece 1 at 17-SEP-17
  139. channel oem_sbt_backup2: backup piece complete, elapsed time: 00:00:25
  140. channel oem_sbt_backup2: input backup set: count=61, stamp=954966927, piece=1
  141. channel oem_sbt_backup2: starting piece 1 at 17-SEP-17
  142. channel oem_sbt_backup2: backup piece +FRA/orcl/backupset/2017_09_17/nnndn1_ora_oem_level_0_0.278.954966931
  143. piece handle=c-1343950367-20170916-00 comment=API Version 2.0,MMS Version 10.4.0.4
  144. channel oem_sbt_backup1: finished piece 1 at 17-SEP-17
  145. channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:25
  146. channel oem_sbt_backup1: input backup set: count=62, stamp=954966934, piece=1
  147. channel oem_sbt_backup1: starting piece 1 at 17-SEP-17
  148. channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_09_17/s_954966934.279.954966935
  149. piece handle=1tsen8sf_1_2 comment=API Version 2.0,MMS Version 10.4.0.4
  150. channel oem_sbt_backup2: finished piece 1 at 17-SEP-17
  151. channel oem_sbt_backup2: backup piece complete, elapsed time: 00:00:26
  152. piece handle=c-1343950367-20170917-00 comment=API Version 2.0,MMS Version 10.4.0.4
  153. channel oem_sbt_backup1: finished piece 1 at 17-SEP-17
  154. channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:26
  155. Finished backup at 17-SEP-17

  156. Starting Control File and SPFILE Autobackup at 17-SEP-17
  157. piece handle=c-1343950367-20170917-01 comment=API Version 2.0,MMS Version 10.4.0.4
  158. Finished Control File and SPFILE Autobackup at 17-SEP-17
  159. released channel: oem_sbt_backup1
  160. released channel: oem_sbt_backup2


  161. RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  162. allocated channel: ORA_MAINT_SBT_TAPE_1
  163. channel ORA_MAINT_SBT_TAPE_1: SID=79 device type=SBT_TAPE
  164. channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup


  165. RMAN> delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
  166. no obsolete backups found


  167. RMAN> exit;

  168. Recovery Manager complete.
复制代码
周备份的产出物:
  1. RMAN> list backup;

  2. using target database control file instead of recovery catalog

  3. List of Backup Sets
  4. ===================


  5. BS Key  Type LV Size
  6. ------- ---- -- ----------
  7. 44      Full    9.36M
  8.   SPFILE Included: Modification time: 13-SEP-17
  9.   SPFILE db_unique_name: ORCL
  10.   Control File Included: Ckp SCN: 1152721      Ckp time: 14-SEP-17

  11.   Backup Set Copy #1 of backup set 44
  12.   Device Type Elapsed Time Completion Time Compressed Tag
  13.   ----------- ------------ --------------- ---------- ---
  14.   DISK        00:00:01     14-SEP-17       NO         TAG20170914T203541

  15.     List of Backup Pieces for backup set 44 Copy #1
  16.     BP Key  Pc# Status      Piece Name
  17.     ------- --- ----------- ----------
  18.     46      1   AVAILABLE   +FRA/orcl/autobackup/2017_09_14/s_954707741.270.954707743

  19.   Backup Set Copy #2 of backup set 44
  20.   Device Type Elapsed Time Completion Time Compressed Tag
  21.   ----------- ------------ --------------- ---------- ---
  22.   SBT_TAPE    00:00:01     17-SEP-17       NO         TAG20170914T203541

  23.     List of Backup Pieces for backup set 44 Copy #2
  24.     BP Key  Pc# Status      Media                   Piece Name
  25.     ------- --- ----------- ----------------------- ----------
  26.     64      1   AVAILABLE   station90-000003        c-1343950367-20170914-03

  27. BS Key  Size       Device Type Elapsed Time Completion Time
  28. ------- ---------- ----------- ------------ ---------------
  29. 45      4.00M      SBT_TAPE    00:00:24     14-SEP-17      
  30.         BP Key: 47   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203555
  31.         Handle: 1isefbpb_1_1   Media: station90-000003

  32.   List of Archived Logs in backup set 45
  33.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  34.   ---- ------- ---------- --------- ---------- ---------
  35.   1    35      1150069    14-SEP-17 1152813    14-SEP-17

  36. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  37. ------- ---- -- ---------- ----------- ------------ ---------------
  38. 46      Full    9.50M      SBT_TAPE    00:00:15     14-SEP-17      
  39.         BP Key: 48   Status: AVAILABLE  Compressed: NO  Tag: TAG20170914T203620
  40.         Handle: c-1343950367-20170914-04   Media: station90-000003
  41.   SPFILE Included: Modification time: 13-SEP-17
  42.   SPFILE db_unique_name: ORCL
  43.   Control File Included: Ckp SCN: 1152852      Ckp time: 14-SEP-17

  44. BS Key  Type LV Size
  45. ------- ---- -- ----------
  46. 47      Incr 1  17.88M
  47.   List of Datafiles in backup set 47
  48.   File LV Type Ckp SCN    Ckp Time  Name
  49.   ---- -- ---- ---------- --------- ----
  50.   1    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/system.256.816169553
  51.   2    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  52.   3    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  53.   4    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/users.259.816169553
  54.   5    1  Incr 1155512    15-SEP-17 +DATA/orcl/datafile/example.265.816169651

  55.   Backup Set Copy #1 of backup set 47
  56.   Device Type Elapsed Time Completion Time Compressed Tag
  57.   ----------- ------------ --------------- ---------- ---
  58.   DISK        00:00:02     15-SEP-17       NO         ORA_OEM_LEVEL_0

  59.     List of Backup Pieces for backup set 47 Copy #1
  60.     BP Key  Pc# Status      Piece Name
  61.     ------- --- ----------- ----------
  62.     49      1   AVAILABLE   +FRA/orcl/backupset/2017_09_15/nnndn1_ora_oem_level_0_0.268.954794129

  63.   Backup Set Copy #2 of backup set 47
  64.   Device Type Elapsed Time Completion Time Compressed Tag
  65.   ----------- ------------ --------------- ---------- ---
  66.   SBT_TAPE    00:00:02     17-SEP-17       NO         ORA_OEM_LEVEL_0

  67.     List of Backup Pieces for backup set 47 Copy #2
  68.     BP Key  Pc# Status      Media                   Piece Name
  69.     ------- --- ----------- ----------------------- ----------
  70.     65      1   AVAILABLE   station90-000004        1ksei04g_1_2

  71. BS Key  Type LV Size
  72. ------- ---- -- ----------
  73. 48      Full    9.36M
  74.   SPFILE Included: Modification time: 13-SEP-17
  75.   SPFILE db_unique_name: ORCL
  76.   Control File Included: Ckp SCN: 1155522      Ckp time: 15-SEP-17

  77.   Backup Set Copy #1 of backup set 48
  78.   Device Type Elapsed Time Completion Time Compressed Tag
  79.   ----------- ------------ --------------- ---------- ---
  80.   DISK        00:00:01     15-SEP-17       NO         TAG20170915T203531

  81.     List of Backup Pieces for backup set 48 Copy #1
  82.     BP Key  Pc# Status      Piece Name
  83.     ------- --- ----------- ----------
  84.     50      1   AVAILABLE   +FRA/orcl/autobackup/2017_09_15/s_954794131.267.954794133

  85.   Backup Set Copy #2 of backup set 48
  86.   Device Type Elapsed Time Completion Time Compressed Tag
  87.   ----------- ------------ --------------- ---------- ---
  88.   SBT_TAPE    00:00:01     17-SEP-17       NO         TAG20170915T203531

  89.     List of Backup Pieces for backup set 48 Copy #2
  90.     BP Key  Pc# Status      Media                   Piece Name
  91.     ------- --- ----------- ----------------------- ----------
  92.     67      1   AVAILABLE   station90-000003        c-1343950367-20170915-00

  93. BS Key  Size       Device Type Elapsed Time Completion Time
  94. ------- ---------- ----------- ------------ ---------------
  95. 49      11.50M     SBT_TAPE    00:00:25     15-SEP-17      
  96.         BP Key: 51   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203545
  97.         Handle: 1msei051_1_1   Media: station90-000003

  98.   List of Archived Logs in backup set 49
  99.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  100.   ---- ------- ---------- --------- ---------- ---------
  101.   1    36      1152813    14-SEP-17 1155635    15-SEP-17

  102. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  103. ------- ---- -- ---------- ----------- ------------ ---------------
  104. 50      Full    9.50M      SBT_TAPE    00:00:15     15-SEP-17      
  105.         BP Key: 52   Status: AVAILABLE  Compressed: NO  Tag: TAG20170915T203610
  106.         Handle: c-1343950367-20170915-01   Media: station90-000003
  107.   SPFILE Included: Modification time: 13-SEP-17
  108.   SPFILE db_unique_name: ORCL
  109.   Control File Included: Ckp SCN: 1155702      Ckp time: 15-SEP-17

  110. BS Key  Type LV Size
  111. ------- ---- -- ----------
  112. 51      Incr 1  45.66M
  113.   List of Datafiles in backup set 51
  114.   File LV Type Ckp SCN    Ckp Time  Name
  115.   ---- -- ---- ---------- --------- ----
  116.   1    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/system.256.816169553
  117.   2    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  118.   3    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  119.   4    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/users.259.816169553
  120.   5    1  Incr 1165770    16-SEP-17 +DATA/orcl/datafile/example.265.816169651

  121.   Backup Set Copy #1 of backup set 51
  122.   Device Type Elapsed Time Completion Time Compressed Tag
  123.   ----------- ------------ --------------- ---------- ---
  124.   DISK        00:00:04     16-SEP-17       NO         ORA_OEM_LEVEL_0

  125.     List of Backup Pieces for backup set 51 Copy #1
  126.     BP Key  Pc# Status      Piece Name
  127.     ------- --- ----------- ----------
  128.     53      1   AVAILABLE   +FRA/orcl/backupset/2017_09_16/nnndn1_ora_oem_level_0_0.263.954880539

  129.   Backup Set Copy #2 of backup set 51
  130.   Device Type Elapsed Time Completion Time Compressed Tag
  131.   ----------- ------------ --------------- ---------- ---
  132.   SBT_TAPE    00:00:04     17-SEP-17       NO         ORA_OEM_LEVEL_0

  133.     List of Backup Pieces for backup set 51 Copy #2
  134.     BP Key  Pc# Status      Media                   Piece Name
  135.     ------- --- ----------- ----------------------- ----------
  136.     66      1   AVAILABLE   station90-000004        1osekkgn_1_2

  137. BS Key  Type LV Size
  138. ------- ---- -- ----------
  139. 52      Full    9.36M
  140.   SPFILE Included: Modification time: 13-SEP-17
  141.   SPFILE db_unique_name: ORCL
  142.   Control File Included: Ckp SCN: 1165783      Ckp time: 16-SEP-17

  143.   Backup Set Copy #1 of backup set 52
  144.   Device Type Elapsed Time Completion Time Compressed Tag
  145.   ----------- ------------ --------------- ---------- ---
  146.   DISK        00:00:00     16-SEP-17       NO         TAG20170916T203542

  147.     List of Backup Pieces for backup set 52 Copy #1
  148.     BP Key  Pc# Status      Piece Name
  149.     ------- --- ----------- ----------
  150.     54      1   AVAILABLE   +FRA/orcl/autobackup/2017_09_16/s_954880542.261.954880543

  151.   Backup Set Copy #2 of backup set 52
  152.   Device Type Elapsed Time Completion Time Compressed Tag
  153.   ----------- ------------ --------------- ---------- ---
  154.   SBT_TAPE    00:00:00     17-SEP-17       NO         TAG20170916T203542

  155.     List of Backup Pieces for backup set 52 Copy #2
  156.     BP Key  Pc# Status      Media                   Piece Name
  157.     ------- --- ----------- ----------------------- ----------
  158.     69      1   AVAILABLE   station90-000003        c-1343950367-20170916-00

  159. BS Key  Size       Device Type Elapsed Time Completion Time
  160. ------- ---------- ----------- ------------ ---------------
  161. 53      33.75M     SBT_TAPE    00:00:24     16-SEP-17      
  162.         BP Key: 55   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203555
  163.         Handle: 1qsekkhc_1_1   Media: station90-000003

  164.   List of Archived Logs in backup set 53
  165.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  166.   ---- ------- ---------- --------- ---------- ---------
  167.   1    37      1155635    15-SEP-17 1161457    16-SEP-17
  168.   1    38      1161457    16-SEP-17 1164170    16-SEP-17

  169. BS Key  Size       Device Type Elapsed Time Completion Time
  170. ------- ---------- ----------- ------------ ---------------
  171. 54      11.00M     SBT_TAPE    00:00:26     16-SEP-17      
  172.         BP Key: 56   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203555
  173.         Handle: 1rsekkhc_1_1   Media: station90-000004

  174.   List of Archived Logs in backup set 54
  175.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  176.   ---- ------- ---------- --------- ---------- ---------
  177.   1    39      1164170    16-SEP-17 1165906    16-SEP-17

  178. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  179. ------- ---- -- ---------- ----------- ------------ ---------------
  180. 55      Full    9.50M      SBT_TAPE    00:00:16     16-SEP-17      
  181.         BP Key: 57   Status: AVAILABLE  Compressed: NO  Tag: TAG20170916T203631
  182.         Handle: c-1343950367-20170916-01   Media: station90-000003
  183.   SPFILE Included: Modification time: 13-SEP-17
  184.   SPFILE db_unique_name: ORCL
  185.   Control File Included: Ckp SCN: 1165981      Ckp time: 16-SEP-17

  186. BS Key  Type LV Size
  187. ------- ---- -- ----------
  188. 56      Incr 1  36.98M
  189.   List of Datafiles in backup set 56
  190.   File LV Type Ckp SCN    Ckp Time  Name
  191.   ---- -- ---- ---------- --------- ----
  192.   1    1  Incr 1173934    17-SEP-17 +DATA/orcl/datafile/system.256.816169553
  193.   2    1  Incr 1173934    17-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  194.   3    1  Incr 1173934    17-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  195.   4    1  Incr 1173934    17-SEP-17 +DATA/orcl/datafile/users.259.816169553
  196.   5    1  Incr 1173934    17-SEP-17 +DATA/orcl/datafile/example.265.816169651

  197.   Backup Set Copy #1 of backup set 56
  198.   Device Type Elapsed Time Completion Time Compressed Tag
  199.   ----------- ------------ --------------- ---------- ---
  200.   DISK        00:00:04     17-SEP-17       NO         ORA_OEM_LEVEL_0

  201.     List of Backup Pieces for backup set 56 Copy #1
  202.     BP Key  Pc# Status      Piece Name
  203.     ------- --- ----------- ----------
  204.     58      1   AVAILABLE   +FRA/orcl/backupset/2017_09_17/nnndn1_ora_oem_level_0_0.278.954966931

  205.   Backup Set Copy #2 of backup set 56
  206.   Device Type Elapsed Time Completion Time Compressed Tag
  207.   ----------- ------------ --------------- ---------- ---
  208.   SBT_TAPE    00:00:04     17-SEP-17       NO         ORA_OEM_LEVEL_0

  209.     List of Backup Pieces for backup set 56 Copy #2
  210.     BP Key  Pc# Status      Media                   Piece Name
  211.     ------- --- ----------- ----------------------- ----------
  212.     68      1   AVAILABLE   station90-000004        1tsen8sf_1_2

  213. BS Key  Type LV Size
  214. ------- ---- -- ----------
  215. 57      Full    9.36M
  216.   SPFILE Included: Modification time: 13-SEP-17
  217.   SPFILE db_unique_name: ORCL
  218.   Control File Included: Ckp SCN: 1173943      Ckp time: 17-SEP-17

  219.   Backup Set Copy #1 of backup set 57
  220.   Device Type Elapsed Time Completion Time Compressed Tag
  221.   ----------- ------------ --------------- ---------- ---
  222.   DISK        00:00:01     17-SEP-17       NO         TAG20170917T203534

  223.     List of Backup Pieces for backup set 57 Copy #1
  224.     BP Key  Pc# Status      Piece Name
  225.     ------- --- ----------- ----------
  226.     59      1   AVAILABLE   +FRA/orcl/autobackup/2017_09_17/s_954966934.279.954966935

  227.   Backup Set Copy #2 of backup set 57
  228.   Device Type Elapsed Time Completion Time Compressed Tag
  229.   ----------- ------------ --------------- ---------- ---
  230.   SBT_TAPE    00:00:01     17-SEP-17       NO         TAG20170917T203534

  231.     List of Backup Pieces for backup set 57 Copy #2
  232.     BP Key  Pc# Status      Media                   Piece Name
  233.     ------- --- ----------- ----------------------- ----------
  234.     70      1   AVAILABLE   station90-000004        c-1343950367-20170917-00

  235. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  236. ------- ---- -- ---------- ----------- ------------ ---------------
  237. 58      Full    536.00M    SBT_TAPE    00:00:29     17-SEP-17      
  238.         BP Key: 60   Status: AVAILABLE  Compressed: NO  Tag: TAG20170917T203547
  239.         Handle: 1vsen8t4_1_1   Media: station90-000003
  240.   List of Datafiles in backup set 58
  241.   File LV Type Ckp SCN    Ckp Time  Name
  242.   ---- -- ---- ---------- --------- ----
  243.   2       Full 1165770    16-SEP-17 +DATA/orcl/datafile/sysaux.257.816169553
  244.   3       Full 1165770    16-SEP-17 +DATA/orcl/datafile/undotbs1.258.816169553
  245.   5       Full 1165770    16-SEP-17 +DATA/orcl/datafile/example.265.816169651

  246. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  247. ------- ---- -- ---------- ----------- ------------ ---------------
  248. 59      Full    597.00M    SBT_TAPE    00:00:32     17-SEP-17      
  249.         BP Key: 61   Status: AVAILABLE  Compressed: NO  Tag: TAG20170917T203547
  250.         Handle: 20sen8t4_1_1   Media: station90-000004
  251.   List of Datafiles in backup set 59
  252.   File LV Type Ckp SCN    Ckp Time  Name
  253.   ---- -- ---- ---------- --------- ----
  254.   1       Full 1165770    16-SEP-17 +DATA/orcl/datafile/system.256.816169553
  255.   4       Full 1165770    16-SEP-17 +DATA/orcl/datafile/users.259.816169553

  256. BS Key  Size       Device Type Elapsed Time Completion Time
  257. ------- ---------- ----------- ------------ ---------------
  258. 60      16.75M     SBT_TAPE    00:00:16     17-SEP-17      
  259.         BP Key: 62   Status: AVAILABLE  Compressed: NO  Tag: TAG20170917T203547
  260.         Handle: 21sen8u7_1_1   Media: station90-000003

  261.   List of Archived Logs in backup set 60
  262.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  263.   ---- ------- ---------- --------- ---------- ---------
  264.   1    40      1165906    16-SEP-17 1171926    17-SEP-17

  265. BS Key  Size       Device Type Elapsed Time Completion Time
  266. ------- ---------- ----------- ------------ ---------------
  267. 61      15.50M     SBT_TAPE    00:00:16     17-SEP-17      
  268.         BP Key: 63   Status: AVAILABLE  Compressed: NO  Tag: TAG20170917T203547
  269.         Handle: 22sen8u7_1_1   Media: station90-000004

  270.   List of Archived Logs in backup set 61
  271.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  272.   ---- ------- ---------- --------- ---------- ---------
  273.   1    41      1171926    17-SEP-17 1173817    17-SEP-17

  274. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  275. ------- ---- -- ---------- ----------- ------------ ---------------
  276. 62      Full    9.50M      SBT_TAPE    00:00:16     17-SEP-17      
  277.         BP Key: 71   Status: AVAILABLE  Compressed: NO  Tag: TAG20170917T203831
  278.         Handle: c-1343950367-20170917-01   Media: station90-000004
  279.   SPFILE Included: Modification time: 13-SEP-17
  280.   SPFILE db_unique_name: ORCL
  281.   Control File Included: Ckp SCN: 1174323      Ckp time: 17-SEP-17

  282. RMAN>
复制代码
  1. RMAN> list copy;

  2. using target database control file instead of recovery catalog
  3. specification does not match any control file copy in the repository
  4. List of Datafile Copies
  5. =======================

  6. Key     File S Completion Time Ckp SCN    Ckp Time      
  7. ------- ---- - --------------- ---------- ---------------
  8. 17      1    A 17-SEP-17       1165770    16-SEP-17      
  9.         Name: +FRA/orcl/datafile/system.276.954707725
  10.         Tag: ORA_OEM_LEVEL_0

  11. 18      2    A 17-SEP-17       1165770    16-SEP-17      
  12.         Name: +FRA/orcl/datafile/sysaux.274.954707731
  13.         Tag: ORA_OEM_LEVEL_0

  14. 16      3    A 17-SEP-17       1165770    16-SEP-17      
  15.         Name: +FRA/orcl/datafile/undotbs1.273.954707739
  16.         Tag: ORA_OEM_LEVEL_0

  17. 15      4    A 17-SEP-17       1165770    16-SEP-17      
  18.         Name: +FRA/orcl/datafile/users.271.954707741
  19.         Tag: ORA_OEM_LEVEL_0

  20. 14      5    A 17-SEP-17       1165770    16-SEP-17      
  21.         Name: +FRA/orcl/datafile/example.272.954707739
  22.         Tag: ORA_OEM_LEVEL_0

  23. List of Archived Log Copies for database with db_unique_name ORCL
  24. =====================================================================

  25. Key     Thrd Seq     S Low Time
  26. ------- ---- ------- - ---------
  27. 27      1    35      A 14-SEP-17
  28.         Name: +FRA/orcl/archivelog/2017_09_14/thread_1_seq_35.269.954707755

  29. 28      1    36      A 14-SEP-17
  30.         Name: +FRA/orcl/archivelog/2017_09_15/thread_1_seq_36.266.954794145

  31. 29      1    37      A 15-SEP-17
  32.         Name: +FRA/orcl/archivelog/2017_09_16/thread_1_seq_37.265.954880359

  33. 30      1    38      A 16-SEP-17
  34.         Name: +FRA/orcl/archivelog/2017_09_16/thread_1_seq_38.264.954880389

  35. 31      1    39      A 16-SEP-17
  36.         Name: +FRA/orcl/archivelog/2017_09_16/thread_1_seq_39.262.954880555

  37. 32      1    40      A 16-SEP-17
  38.         Name: +FRA/orcl/archivelog/2017_09_17/thread_1_seq_40.275.954966747

  39. 33      1    41      A 17-SEP-17
  40.         Name: +FRA/orcl/archivelog/2017_09_17/thread_1_seq_41.277.954966917


  41. RMAN>
复制代码






回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-27 06:50 , Processed in 0.037292 second(s), 24 queries .

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