Bo's Oracle Station

查看: 1069|回复: 0

课程第28次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-7-20 09:10:56 | 显示全部楼层 |阅读模式
2019-07-20
并行度是由输入文件的个数决定的,
         是由通道来执行完成,而通道是由设备来提供的。


磁带机:

  1. CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
复制代码
磁盘:
  1. RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM  8  BACKUP TYPE TO BACKUPSET;
复制代码
对于磁带机,为了确定卷标通常会去“实例化”并行度的通道:

  1. CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)';
  2. CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)';
复制代码
                                                                                                                                                                                                              
https://192.168.0.76:1158/em/console/database/rec/config?event=start&target=orcl.example.com&type=oracle_database

下面研究一下"maxpiecesize":

改配置之前的show all:

  1. <p>RMAN> show all;</p><p>RMAN configuration parameters for database with db_unique_name ORCL are:
  2. CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
  3. CONFIGURE BACKUP OPTIMIZATION OFF; # default
  4. CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
  5. CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
  6. CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
  7. CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
  8. CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
  9. CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
  10. CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
  11. CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  12. CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
  13. CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  14. CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)';
  15. CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)';
  16. CONFIGURE MAXSETSIZE TO UNLIMITED; # default
  17. CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
  18. CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
  19. CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
  20. CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
  21. CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default

复制代码
改配置之后:
请注意:CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 250 M;

  1. RMAN> show all;

  2. starting full resync of recovery catalog
  3. full resync complete
  4. RMAN configuration parameters for database with db_unique_name ORCL are:
  5. CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
  6. CONFIGURE BACKUP OPTIMIZATION OFF; # default
  7. CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
  8. CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
  9. CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
  10. CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
  11. CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
  12. CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
  13. CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
  14. CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  15. CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
  16. CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
  17. CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)';
  18. CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)';
  19. CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 250 M;
  20. CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS  'ENV=(OB_MEDIA_FAMILY=station76)' MAXPIECESIZE 250 M;
  21. CONFIGURE MAXSETSIZE TO UNLIMITED; # default
  22. CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
  23. CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
  24. CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
  25. CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
  26. CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
复制代码
  1. RMAN>  backup tag '2T-WHOLE-INCR0'  incremental level 0 database plus archivelog delete all input ;


  2. Starting backup at 20-JUL-19
  3. current log archived
  4. allocated channel: ORA_SBT_TAPE_1
  5. channel ORA_SBT_TAPE_1: SID=73 device type=SBT_TAPE
  6. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  7. allocated channel: ORA_SBT_TAPE_2
  8. channel ORA_SBT_TAPE_2: SID=78 device type=SBT_TAPE
  9. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  10. channel ORA_SBT_TAPE_1: starting archived log backup set
  11. channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
  12. input archived log thread=1 sequence=6 RECID=1 STAMP=1013962566
  13. input archived log thread=1 sequence=7 RECID=2 STAMP=1013962567
  14. input archived log thread=1 sequence=8 RECID=3 STAMP=1013962569
  15. input archived log thread=1 sequence=9 RECID=4 STAMP=1013962572
  16. input archived log thread=1 sequence=10 RECID=5 STAMP=1013962572
  17. input archived log thread=1 sequence=11 RECID=6 STAMP=1013962574
  18. input archived log thread=1 sequence=12 RECID=7 STAMP=1013962576
  19. input archived log thread=1 sequence=13 RECID=8 STAMP=1013962580
  20. input archived log thread=1 sequence=14 RECID=9 STAMP=1013962581
  21. input archived log thread=1 sequence=15 RECID=10 STAMP=1013963203
  22. input archived log thread=1 sequence=16 RECID=11 STAMP=1013963204
  23. input archived log thread=1 sequence=17 RECID=12 STAMP=1013963208
  24. input archived log thread=1 sequence=18 RECID=13 STAMP=1013963210
  25. input archived log thread=1 sequence=19 RECID=14 STAMP=1013963211
  26. input archived log thread=1 sequence=20 RECID=15 STAMP=1013963213
  27. input archived log thread=1 sequence=21 RECID=16 STAMP=1013963213
  28. input archived log thread=1 sequence=22 RECID=17 STAMP=1013963214
  29. input archived log thread=1 sequence=23 RECID=18 STAMP=1013963215
  30. input archived log thread=1 sequence=24 RECID=19 STAMP=1013963216
  31. input archived log thread=1 sequence=25 RECID=20 STAMP=1013963217
  32. channel ORA_SBT_TAPE_1: starting piece 1 at 20-JUL-19
  33. channel ORA_SBT_TAPE_2: starting archived log backup set
  34. channel ORA_SBT_TAPE_2: specifying archived log(s) in backup set
  35. input archived log thread=1 sequence=26 RECID=21 STAMP=1013963217
  36. input archived log thread=1 sequence=27 RECID=22 STAMP=1013963218
  37. input archived log thread=1 sequence=28 RECID=23 STAMP=1013963219
  38. input archived log thread=1 sequence=29 RECID=24 STAMP=1013963219
  39. input archived log thread=1 sequence=30 RECID=25 STAMP=1013963220
  40. input archived log thread=1 sequence=31 RECID=26 STAMP=1013963220
  41. input archived log thread=1 sequence=32 RECID=27 STAMP=1013963221
  42. input archived log thread=1 sequence=33 RECID=28 STAMP=1013963222
  43. input archived log thread=1 sequence=34 RECID=29 STAMP=1013963222
  44. input archived log thread=1 sequence=35 RECID=30 STAMP=1013966650
  45. input archived log thread=1 sequence=36 RECID=32 STAMP=1013970799
  46. input archived log thread=1 sequence=37 RECID=31 STAMP=1013970799
  47. input archived log thread=1 sequence=38 RECID=33 STAMP=1013970808
  48. input archived log thread=1 sequence=39 RECID=34 STAMP=1013970808
  49. input archived log thread=1 sequence=40 RECID=35 STAMP=1013970811
  50. input archived log thread=1 sequence=41 RECID=36 STAMP=1013970811
  51. input archived log thread=1 sequence=42 RECID=37 STAMP=1014072930
  52. input archived log thread=1 sequence=43 RECID=38 STAMP=1014073619
  53. input archived log thread=1 sequence=44 RECID=39 STAMP=1014073954
  54. channel ORA_SBT_TAPE_2: starting piece 1 at 20-JUL-19
  55. channel ORA_SBT_TAPE_1: finished piece 1 at 20-JUL-19
  56. piece handle=0fu735s6_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  57. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25
  58. channel ORA_SBT_TAPE_1: deleting archived log(s)
  59. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_6.262.1013962565 RECID=1 STAMP=1013962566
  60. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_7.263.1013962567 RECID=2 STAMP=1013962567
  61. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_8.264.1013962569 RECID=3 STAMP=1013962569
  62. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_9.265.1013962571 RECID=4 STAMP=1013962572
  63. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_10.266.1013962573 RECID=5 STAMP=1013962572
  64. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_11.267.1013962573 RECID=6 STAMP=1013962574
  65. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_12.268.1013962577 RECID=7 STAMP=1013962576
  66. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_13.269.1013962579 RECID=8 STAMP=1013962580
  67. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_14.270.1013962581 RECID=9 STAMP=1013962581
  68. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_15.271.1013963203 RECID=10 STAMP=1013963203
  69. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_16.272.1013963205 RECID=11 STAMP=1013963204
  70. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_17.273.1013963209 RECID=12 STAMP=1013963208
  71. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_18.274.1013963211 RECID=13 STAMP=1013963210
  72. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_19.275.1013963211 RECID=14 STAMP=1013963211
  73. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_20.276.1013963213 RECID=15 STAMP=1013963213
  74. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_21.277.1013963213 RECID=16 STAMP=1013963213
  75. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_22.278.1013963215 RECID=17 STAMP=1013963214
  76. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_23.279.1013963215 RECID=18 STAMP=1013963215
  77. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_24.280.1013963217 RECID=19 STAMP=1013963216
  78. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_25.281.1013963217 RECID=20 STAMP=1013963217
  79. channel ORA_SBT_TAPE_1: starting archived log backup set
  80. channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
  81. input archived log thread=1 sequence=45 RECID=40 STAMP=1014077306
  82. channel ORA_SBT_TAPE_1: starting piece 1 at 20-JUL-19
  83. channel ORA_SBT_TAPE_2: finished piece 1 at 20-JUL-19
  84. piece handle=0gu735s7_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  85. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:32
  86. channel ORA_SBT_TAPE_2: deleting archived log(s)
  87. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_26.282.1013963217 RECID=21 STAMP=1013963217
  88. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_27.283.1013963219 RECID=22 STAMP=1013963218
  89. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_28.284.1013963219 RECID=23 STAMP=1013963219
  90. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_29.285.1013963219 RECID=24 STAMP=1013963219
  91. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_30.286.1013963219 RECID=25 STAMP=1013963220
  92. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_31.287.1013963221 RECID=26 STAMP=1013963220
  93. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_32.288.1013963221 RECID=27 STAMP=1013963221
  94. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_33.289.1013963223 RECID=28 STAMP=1013963222
  95. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_34.290.1013963223 RECID=29 STAMP=1013963222
  96. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_35.291.1013966651 RECID=30 STAMP=1013966650
  97. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_36.292.1013970799 RECID=32 STAMP=1013970799
  98. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_37.293.1013970799 RECID=31 STAMP=1013970799
  99. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_38.294.1013970809 RECID=33 STAMP=1013970808
  100. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_39.295.1013970809 RECID=34 STAMP=1013970808
  101. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_40.296.1013970811 RECID=35 STAMP=1013970811
  102. archived log file name=+FRA/orcl/archivelog/2019_07_18/thread_1_seq_41.297.1013970811 RECID=36 STAMP=1013970811
  103. archived log file name=+FRA/orcl/archivelog/2019_07_19/thread_1_seq_42.298.1014072929 RECID=37 STAMP=1014072930
  104. archived log file name=+FRA/orcl/archivelog/2019_07_19/thread_1_seq_43.300.1014073619 RECID=38 STAMP=1014073619
  105. archived log file name=+FRA/orcl/archivelog/2019_07_19/thread_1_seq_44.301.1014073951 RECID=39 STAMP=1014073954
  106. channel ORA_SBT_TAPE_1: finished piece 1 at 20-JUL-19
  107. piece handle=0hu735t7_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  108. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:18
  109. channel ORA_SBT_TAPE_1: deleting archived log(s)
  110. archived log file name=+FRA/orcl/archivelog/2019_07_20/thread_1_seq_45.303.1014077305 RECID=40 STAMP=1014077306
  111. Finished backup at 20-JUL-19

  112. Starting backup at 20-JUL-19
  113. using channel ORA_SBT_TAPE_1
  114. using channel ORA_SBT_TAPE_2
  115. channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
  116. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  117. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.1013960881
  118. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.1013960987
  119. channel ORA_SBT_TAPE_1: starting piece 1 at 20-JUL-19
  120. channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
  121. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  122. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.1013960883
  123. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.1013960883
  124. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.1013960885
  125. channel ORA_SBT_TAPE_2: starting piece 1 at 20-JUL-19
  126. channel ORA_SBT_TAPE_2: finished piece 1 at 20-JUL-19
  127. piece handle=0ju735ts_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  128. channel ORA_SBT_TAPE_2: starting piece 2 at 20-JUL-19
  129. channel ORA_SBT_TAPE_1: finished piece 1 at 20-JUL-19
  130. piece handle=0iu735ts_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  131. channel ORA_SBT_TAPE_1: starting piece 2 at 20-JUL-19
  132. channel ORA_SBT_TAPE_2: finished piece 2 at 20-JUL-19
  133. piece handle=0ju735ts_2_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  134. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:47
  135. channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
  136. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  137. including current control file in backup set
  138. channel ORA_SBT_TAPE_2: starting piece 1 at 20-JUL-19
  139. channel ORA_SBT_TAPE_1: finished piece 2 at 20-JUL-19
  140. piece handle=0iu735ts_2_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  141. channel ORA_SBT_TAPE_1: starting piece 3 at 20-JUL-19
  142. channel ORA_SBT_TAPE_2: finished piece 1 at 20-JUL-19
  143. piece handle=0ku735vd_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  144. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:25
  145. channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
  146. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  147. including current SPFILE in backup set
  148. channel ORA_SBT_TAPE_2: starting piece 1 at 20-JUL-19
  149. channel ORA_SBT_TAPE_2: finished piece 1 at 20-JUL-19
  150. piece handle=0lu73607_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  151. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:25
  152. channel ORA_SBT_TAPE_1: finished piece 3 at 20-JUL-19
  153. piece handle=0iu735ts_3_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  154. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:50
  155. Finished backup at 20-JUL-19

  156. Starting backup at 20-JUL-19
  157. current log archived
  158. using channel ORA_SBT_TAPE_1
  159. using channel ORA_SBT_TAPE_2
  160. channel ORA_SBT_TAPE_1: starting archived log backup set
  161. channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
  162. input archived log thread=1 sequence=46 RECID=41 STAMP=1014077483
  163. channel ORA_SBT_TAPE_1: starting piece 1 at 20-JUL-19
  164. channel ORA_SBT_TAPE_1: finished piece 1 at 20-JUL-19
  165. piece handle=0mu7361d_1_1 tag=2T-WHOLE-INCR0 comment=API Version 2.0,MMS Version 10.4.0.4
  166. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:15
  167. channel ORA_SBT_TAPE_1: deleting archived log(s)
  168. archived log file name=+FRA/orcl/archivelog/2019_07_20/thread_1_seq_46.303.1014077483 RECID=41 STAMP=1014077483
  169. Finished backup at 20-JUL-19

  170. RMAN> list backup of tablespace system;


  171. List of Backup Sets
  172. ===================


  173. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  174. ------- ---- -- ---------- ----------- ------------ ---------------
  175. 157     Full    647.25M    SBT_TAPE    00:03:16     18-JUL-19
  176.         BP Key: 169   Status: AVAILABLE  Compressed: NO  Tag: TAG20190718T173340
  177.         Handle: 04u6vqbl_1_1   Media: station76-000001
  178.   List of Datafiles in backup set 157
  179.   File LV Type Ckp SCN    Ckp Time  Name
  180.   ---- -- ---- ---------- --------- ----
  181.   1       Full 1034213    18-JUL-19 +DATA/orcl/datafile/system.256.1013960881

  182. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  183. ------- ---- -- ---------- ----------- ------------ ---------------
  184. 161     Full    648.75M    SBT_TAPE    00:04:00     18-JUL-19
  185.         BP Key: 173   Status: AVAILABLE  Compressed: NO  Tag: TAG20190718T182614
  186.         Handle: 08u6vte7_1_1   Media: station76-000001,station76-000003
  187.   List of Datafiles in backup set 161
  188.   File LV Type Ckp SCN    Ckp Time  Name
  189.   ---- -- ---- ---------- --------- ----
  190.   1       Full 1037207    18-JUL-19 +DATA/orcl/datafile/system.256.1013960881

  191. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  192. ------- ---- -- ---------- ----------- ------------ ---------------
  193. 165     Full    649.00M    SBT_TAPE    00:00:28     18-JUL-19
  194.         BP Key: 177   Status: AVAILABLE  Compressed: NO  Tag: TAG20190718T183055
  195.         Handle: 0cu6vtmv_1_1   Media: station76-000003
  196.   List of Datafiles in backup set 165
  197.   File LV Type Ckp SCN    Ckp Time  Name
  198.   ---- -- ---- ---------- --------- ----
  199.   1       Full 1037443    18-JUL-19 +DATA/orcl/datafile/system.256.1013960881

  200. BS Key  Type LV Size       Device Type Elapsed Time Completion Time
  201. ------- ---- -- ---------- ----------- ------------ ---------------
  202. 286     Incr 0  712.75M    SBT_TAPE    00:01:46     20-JUL-19
  203.   List of Datafiles in backup set 286
  204.   File LV Type Ckp SCN    Ckp Time  Name
  205.   ---- -- ---- ---------- --------- ----
  206.   1    0  Incr 1082359    20-JUL-19 +DATA/orcl/datafile/system.256.1013960881

  207.   Backup Set Copy #1 of backup set 286
  208.   Device Type Elapsed Time Completion Time Compressed Tag
  209.   ----------- ------------ --------------- ---------- ---
  210.   SBT_TAPE    00:01:46     20-JUL-19       NO         2T-WHOLE-INCR0

  211.     List of Backup Pieces for backup set 286 Copy #1
  212.     BP Key  Pc# Status      Media                   Piece Name
  213.     ------- --- ----------- ----------------------- ----------
  214.     292     1   AVAILABLE   station76-000002        0iu735ts_1_1
  215.     293     2   AVAILABLE   station76-000002,station76-000004 0iu735ts_2_1
  216.     294     3   AVAILABLE   station76-000004        0iu735ts_3_1

  217. RMAN>
复制代码
如果RMAN默认去磁带机,但是临时要去磁盘,请参考:
  1. Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jul 20 00:42:04 2019

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

  3. RMAN>
  4. connected to target database: ORCL (DBID=1541741703)
  5. using target database control file instead of recovery catalog

  6. RMAN>
  7. echo set on


  8. RMAN> set command id to 'BACKUP_ORCL.EXAMPL_072019124141';
  9. executing command: SET COMMAND ID


  10. RMAN> backup incremental level 1 cumulative device type disk tag 'BACKUP_ORCL.EXAMPL_072019124141' database;
  11. Starting backup at 20-JUL-19
  12. allocated channel: ORA_DISK_1
  13. channel ORA_DISK_1: SID=53 device type=DISK
  14. allocated channel: ORA_DISK_2
  15. channel ORA_DISK_2: SID=72 device type=DISK
  16. allocated channel: ORA_DISK_3
  17. channel ORA_DISK_3: SID=59 device type=DISK
  18. allocated channel: ORA_DISK_4
  19. channel ORA_DISK_4: SID=49 device type=DISK
  20. allocated channel: ORA_DISK_5
  21. channel ORA_DISK_5: SID=42 device type=DISK
  22. allocated channel: ORA_DISK_6
  23. channel ORA_DISK_6: SID=1 device type=DISK
  24. allocated channel: ORA_DISK_7
  25. channel ORA_DISK_7: SID=48 device type=DISK
  26. allocated channel: ORA_DISK_8
  27. channel ORA_DISK_8: SID=80 device type=DISK
  28. channel ORA_DISK_1: starting incremental level 1 datafile backup set
  29. channel ORA_DISK_1: specifying datafile(s) in backup set
  30. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.1013960881
  31. channel ORA_DISK_1: starting piece 1 at 20-JUL-19
  32. channel ORA_DISK_2: starting incremental level 1 datafile backup set
  33. channel ORA_DISK_2: specifying datafile(s) in backup set
  34. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.1013960883
  35. channel ORA_DISK_2: starting piece 1 at 20-JUL-19
  36. channel ORA_DISK_3: starting incremental level 1 datafile backup set
  37. channel ORA_DISK_3: specifying datafile(s) in backup set
  38. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.1013960987
  39. channel ORA_DISK_3: starting piece 1 at 20-JUL-19
  40. channel ORA_DISK_4: starting incremental level 1 datafile backup set
  41. channel ORA_DISK_4: specifying datafile(s) in backup set
  42. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.1013960883
  43. channel ORA_DISK_4: starting piece 1 at 20-JUL-19
  44. channel ORA_DISK_5: starting incremental level 1 datafile backup set
  45. channel ORA_DISK_5: specifying datafile(s) in backup set
  46. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.1013960885
  47. channel ORA_DISK_5: starting piece 1 at 20-JUL-19
  48. channel ORA_DISK_5: finished piece 1 at 20-JUL-19
  49. piece handle=+FRA/orcl/backupset/2019_07_20/nnndn1_backup_orcl.exampl_0720191241_0.297.1014079337 tag=BACKUP_ORCL.EXAMPL_072019124141 comment=NONE
  50. channel ORA_DISK_5: backup set complete, elapsed time: 00:00:03
  51. channel ORA_DISK_1: finished piece 1 at 20-JUL-19
  52. piece handle=+FRA/orcl/backupset/2019_07_20/nnndn1_backup_orcl.exampl_0720191241_0.303.1014079335 tag=BACKUP_ORCL.EXAMPL_072019124141 comment=NONE
  53. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:08
  54. channel ORA_DISK_2: finished piece 1 at 20-JUL-19
  55. piece handle=+FRA/orcl/backupset/2019_07_20/nnndn1_backup_orcl.exampl_0720191241_0.301.1014079335 tag=BACKUP_ORCL.EXAMPL_072019124141 comment=NONE
  56. channel ORA_DISK_2: backup set complete, elapsed time: 00:00:08
  57. channel ORA_DISK_3: finished piece 1 at 20-JUL-19
  58. piece handle=+FRA/orcl/backupset/2019_07_20/nnndn1_backup_orcl.exampl_0720191241_0.300.1014079335 tag=BACKUP_ORCL.EXAMPL_072019124141 comment=NONE
  59. channel ORA_DISK_3: backup set complete, elapsed time: 00:00:08
  60. channel ORA_DISK_4: finished piece 1 at 20-JUL-19
  61. piece handle=+FRA/orcl/backupset/2019_07_20/nnndn1_backup_orcl.exampl_0720191241_0.298.1014079335 tag=BACKUP_ORCL.EXAMPL_072019124141 comment=NONE
  62. channel ORA_DISK_4: backup set complete, elapsed time: 00:00:08
  63. Finished backup at 20-JUL-19

  64. Starting Control File and SPFILE Autobackup at 20-JUL-19
  65. piece handle=+FRA/orcl/autobackup/2019_07_20/s_1014079343.296.1014079343 comment=NONE
  66. Finished Control File and SPFILE Autobackup at 20-JUL-19


  67. RMAN> backup device type disk tag 'BACKUP_ORCL.EXAMPL_072019124141' archivelog all not backed up delete all input;
  68. Starting backup at 20-JUL-19
  69. current log archived
  70. using channel ORA_DISK_1
  71. using channel ORA_DISK_2
  72. using channel ORA_DISK_3
  73. using channel ORA_DISK_4
  74. using channel ORA_DISK_5
  75. using channel ORA_DISK_6
  76. using channel ORA_DISK_7
  77. using channel ORA_DISK_8
  78. channel ORA_DISK_1: starting archived log backup set
  79. channel ORA_DISK_1: specifying archived log(s) in backup set
  80. input archived log thread=1 sequence=47 RECID=42 STAMP=1014079348
  81. channel ORA_DISK_1: starting piece 1 at 20-JUL-19
  82. channel ORA_DISK_1: finished piece 1 at 20-JUL-19
  83. piece handle=+FRA/orcl/backupset/2019_07_20/annnf0_backup_orcl.exampl_0720191241_0.294.1014079349 tag=BACKUP_ORCL.EXAMPL_072019124141 comment=NONE
  84. channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
  85. channel ORA_DISK_1: deleting archived log(s)
  86. archived log file name=+FRA/orcl/archivelog/2019_07_20/thread_1_seq_47.295.1014079347 RECID=42 STAMP=1014079348
  87. Finished backup at 20-JUL-19

  88. Starting Control File and SPFILE Autobackup at 20-JUL-19
  89. piece handle=+FRA/orcl/autobackup/2019_07_20/s_1014079351.295.1014079353 comment=NONE
  90. Finished Control File and SPFILE Autobackup at 20-JUL-19


  91. RMAN> exit;

  92. Recovery Manager complete.


复制代码
  1. ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
  2. ORACLE_SID=orcl
  3. ORACLE_BASE=/u01/app/oracle

  4. */3  * * * *   /u01/app/oracle/product/11.2.0/dbhome_1/bin/rman  target / catalog u76/oracle_4U@rcat cmdfile=/home/oracle/backupusers.rcv
复制代码













回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-9 19:58 , Processed in 0.039209 second(s), 24 queries .

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