Bo's Oracle Station

查看: 1420|回复: 0

课程第33次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-12-21 09:12:56 | 显示全部楼层 |阅读模式
RMAN加密的dual模式,仍然需要打开wallet,如果wallet没有开,就会报如下错误:

  1. [oracle@station76 wallet]$ rman target /

  2. Recovery Manager: Release 11.2.0.4.0 - Production on Fri Dec 20 20:32:16 2019

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

  4. connected to target database: ORCL (DBID=1554722616)

  5. RMAN> set encryption identified by "java123456" ;

  6. executing command: SET encryption
  7. using target database control file instead of recovery catalog

  8. RMAN> backup tag '1T_USERS_FULL'  tablespace users;

  9. Starting backup at 2019-12-20:20:33:06
  10. allocated channel: ORA_SBT_TAPE_1
  11. channel ORA_SBT_TAPE_1: SID=203 device type=SBT_TAPE
  12. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  13. allocated channel: ORA_SBT_TAPE_2
  14. channel ORA_SBT_TAPE_2: SID=70 device type=SBT_TAPE
  15. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  16. channel ORA_SBT_TAPE_1: starting full datafile backup set
  17. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  18. input datafile file number=00004 name=+DATA/orcl/datafile/users.265.1026941797
  19. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:20:33:37
  20. RMAN-00571: ===========================================================
  21. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  22. RMAN-00571: ===========================================================
  23. RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 12/20/2019 20:33:39
  24. ORA-19914: unable to encrypt backup
  25. ORA-28365: wallet is not open

  26. RMAN>
复制代码
如果使用密码方式加密,那么即使主密钥没有开,也不会报错,就只使用临时口令(set encryption identified by "java123456" only)。
如果使用TDE,那就不用口令。
得出推论:生产环境没有人使用以上两种模式,都是使用双重模式。

  1. Last login: Fri Dec 20 20:37:25 2019 from station41.example.com
  2. [root@station76 ~]# su - oracle
  3. [oracle@station76 ~]$ rman target /

  4. Recovery Manager: Release 11.2.0.4.0 - Production on Fri Dec 20 20:42:51 2019

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

  6. connected to target database: ORCL (DBID=1554722616)

  7. RMAN>  set encryption identified by "java123456" only;

  8. executing command: SET encryption
  9. using target database control file instead of recovery catalog

  10. RMAN>  backup tag '1T_USERS_FULL'  tablespace users;

  11. Starting backup at 2019-12-20:20:44:01
  12. allocated channel: ORA_SBT_TAPE_1
  13. channel ORA_SBT_TAPE_1: SID=5 device type=SBT_TAPE
  14. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  15. allocated channel: ORA_SBT_TAPE_2
  16. channel ORA_SBT_TAPE_2: SID=76 device type=SBT_TAPE
  17. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  18. channel ORA_SBT_TAPE_1: starting full datafile backup set
  19. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  20. input datafile file number=00004 name=+DATA/orcl/datafile/users.265.1026941797
  21. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:20:44:19
  22. channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:20:44:54
  23. piece handle=2buju4d3_1_1 tag=1T_USERS_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  24. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
  25. Finished backup at 2019-12-20:20:44:54

  26. RMAN> exit


  27. Recovery Manager complete.
  28. [oracle@station76 ~]$ rman target /

  29. Recovery Manager: Release 11.2.0.4.0 - Production on Fri Dec 20 20:45:41 2019

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

  31. connected to target database: ORCL (DBID=1554722616)

  32. RMAN>  backup tag  '2T_USERS_FULL' tablespace users;

  33. Starting backup at 2019-12-20:20:46:02
  34. using target database control file instead of recovery catalog
  35. allocated channel: ORA_SBT_TAPE_1
  36. channel ORA_SBT_TAPE_1: SID=76 device type=SBT_TAPE
  37. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  38. allocated channel: ORA_SBT_TAPE_2
  39. channel ORA_SBT_TAPE_2: SID=70 device type=SBT_TAPE
  40. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  41. channel ORA_SBT_TAPE_1: starting full datafile backup set
  42. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  43. input datafile file number=00004 name=+DATA/orcl/datafile/users.265.1026941797
  44. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:20:46:26
  45. channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:20:47:01
  46. piece handle=2cuju4h1_1_1 tag=2T_USERS_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  47. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
  48. Finished backup at 2019-12-20:20:47:01

  49. RMAN> restore tablespace users ;

  50. Starting restore at 2019-12-20:20:55:07
  51. allocated channel: ORA_DISK_1
  52. channel ORA_DISK_1: SID=17 device type=DISK
  53. allocated channel: ORA_DISK_2
  54. channel ORA_DISK_2: SID=5 device type=DISK
  55. allocated channel: ORA_DISK_3
  56. channel ORA_DISK_3: SID=204 device type=DISK
  57. allocated channel: ORA_DISK_4
  58. channel ORA_DISK_4: SID=12 device type=DISK
  59. allocated channel: ORA_DISK_5
  60. channel ORA_DISK_5: SID=77 device type=DISK
  61. allocated channel: ORA_DISK_6
  62. channel ORA_DISK_6: SID=141 device type=DISK
  63. allocated channel: ORA_DISK_7
  64. channel ORA_DISK_7: SID=206 device type=DISK
  65. allocated channel: ORA_DISK_8
  66. channel ORA_DISK_8: SID=14 device type=DISK
  67. using channel ORA_SBT_TAPE_1
  68. using channel ORA_SBT_TAPE_2

  69. channel ORA_SBT_TAPE_1: starting datafile backup set restore
  70. channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
  71. channel ORA_SBT_TAPE_1: restoring datafile 00004 to +DATA/orcl/datafile/users.265.1026941797
  72. channel ORA_SBT_TAPE_1: reading from backup piece 2cuju4h1_1_1
  73. RMAN-00571: ===========================================================
  74. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  75. RMAN-00571: ===========================================================
  76. RMAN-03002: failure of restore command at 12/20/2019 20:56:05
  77. ORA-19870: error while restoring backup piece 2cuju4h1_1_1
  78. ORA-19913: unable to decrypt backup
  79. ORA-28365: wallet is not open

  80. RMAN> list backup;


  81. List of Backup Sets
  82. ===================


  83. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  84. ------- ---- -- ---------- ----------- ------------ -------------------
  85. 63      Full    1.50M      SBT_TAPE    00:00:26     2019-12-20:20:44:45
  86.         BP Key: 78   Status: AVAILABLE  Compressed: NO  Tag: 1T_USERS_FULL
  87.         Handle: 2buju4d3_1_1   Media: station76-000053
  88.   List of Datafiles in backup set 63
  89.   File LV Type Ckp SCN    Ckp Time            Name
  90.   ---- -- ---- ---------- ------------------- ----
  91.   4       Full 1286715    2019-12-20:20:44:19 +DATA/orcl/datafile/users.265.1026941797

  92. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  93. ------- ---- -- ---------- ----------- ------------ -------------------
  94. 64      Full    1.50M      SBT_TAPE    00:00:32     2019-12-20:20:46:57
  95.         BP Key: 79   Status: AVAILABLE  Compressed: NO  Tag: 2T_USERS_FULL
  96.         Handle: 2cuju4h1_1_1   Media: station76-000053
  97.   List of Datafiles in backup set 64
  98.   File LV Type Ckp SCN    Ckp Time            Name
  99.   ---- -- ---- ---------- ------------------- ----
  100.   4       Full 1286844    2019-12-20:20:46:26 +DATA/orcl/datafile/users.265.1026941797

  101. RMAN>  set decryption identified by "oracle123456","java123456";

  102. executing command: SET decryption

  103. RMAN> restore tablespace users ;

  104. Starting restore at 2019-12-20:20:57:27
  105. using channel ORA_DISK_1
  106. using channel ORA_DISK_2
  107. using channel ORA_DISK_3
  108. using channel ORA_DISK_4
  109. using channel ORA_DISK_5
  110. using channel ORA_DISK_6
  111. using channel ORA_DISK_7
  112. using channel ORA_DISK_8
  113. using channel ORA_SBT_TAPE_1
  114. using channel ORA_SBT_TAPE_2

  115. channel ORA_SBT_TAPE_1: starting datafile backup set restore
  116. channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
  117. channel ORA_SBT_TAPE_1: restoring datafile 00004 to +DATA/orcl/datafile/users.265.1026941797
  118. channel ORA_SBT_TAPE_1: reading from backup piece 2cuju4h1_1_1
  119. RMAN-00571: ===========================================================
  120. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  121. RMAN-00571: ===========================================================
  122. RMAN-03002: failure of restore command at 12/20/2019 20:58:06
  123. ORA-19870: error while restoring backup piece 2cuju4h1_1_1
  124. ORA-19913: unable to decrypt backup
  125. ORA-28365: wallet is not open

  126. RMAN> list backup of tablespace users;


  127. List of Backup Sets
  128. ===================


  129. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  130. ------- ---- -- ---------- ----------- ------------ -------------------
  131. 63      Full    1.50M      SBT_TAPE    00:00:26     2019-12-20:20:44:45
  132.         BP Key: 78   Status: AVAILABLE  Compressed: NO  Tag: 1T_USERS_FULL
  133.         Handle: 2buju4d3_1_1   Media: station76-000053
  134.   List of Datafiles in backup set 63
  135.   File LV Type Ckp SCN    Ckp Time            Name
  136.   ---- -- ---- ---------- ------------------- ----
  137.   4       Full 1286715    2019-12-20:20:44:19 +DATA/orcl/datafile/users.265.1026941797

  138. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  139. ------- ---- -- ---------- ----------- ------------ -------------------
  140. 64      Full    1.50M      SBT_TAPE    00:00:32     2019-12-20:20:46:57
  141.         BP Key: 79   Status: AVAILABLE  Compressed: NO  Tag: 2T_USERS_FULL
  142.         Handle: 2cuju4h1_1_1   Media: station76-000053
  143.   List of Datafiles in backup set 64
  144.   File LV Type Ckp SCN    Ckp Time            Name
  145.   ---- -- ---- ---------- ------------------- ----
  146.   4       Full 1286844    2019-12-20:20:46:26 +DATA/orcl/datafile/users.265.1026941797

  147. RMAN> restore tablespace users from tag '1T_USERS_FULL';

  148. Starting restore at 2019-12-20:20:58:45
  149. using channel ORA_DISK_1
  150. using channel ORA_DISK_2
  151. using channel ORA_DISK_3
  152. using channel ORA_DISK_4
  153. using channel ORA_DISK_5
  154. using channel ORA_DISK_6
  155. using channel ORA_DISK_7
  156. using channel ORA_DISK_8
  157. using channel ORA_SBT_TAPE_1
  158. using channel ORA_SBT_TAPE_2

  159. channel ORA_SBT_TAPE_1: starting datafile backup set restore
  160. channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
  161. channel ORA_SBT_TAPE_1: restoring datafile 00004 to +DATA/orcl/datafile/users.265.1026941797
  162. channel ORA_SBT_TAPE_1: reading from backup piece 2buju4d3_1_1
  163. channel ORA_SBT_TAPE_1: piece handle=2buju4d3_1_1 tag=1T_USERS_FULL
  164. channel ORA_SBT_TAPE_1: restored backup piece 1
  165. channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:35
  166. Finished restore at 2019-12-20:20:59:23

  167. RMAN> exit


  168. Recovery Manager complete.
  169. [oracle@station76 ~]$ rman target /

  170. Recovery Manager: Release 11.2.0.4.0 - Production on Fri Dec 20 20:59:56 2019

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

  172. connected to target database: ORCL (DBID=1554722616)

  173. RMAN> set decryption identified by "xxxx123456";

  174. executing command: SET decryption
  175. using target database control file instead of recovery catalog

  176. RMAN> restore tablespace users from tag '1T_USERS_FULL';

  177. Starting restore at 2019-12-20:21:00:42
  178. allocated channel: ORA_DISK_1
  179. channel ORA_DISK_1: SID=14 device type=DISK
  180. allocated channel: ORA_DISK_2
  181. channel ORA_DISK_2: SID=76 device type=DISK
  182. allocated channel: ORA_DISK_3
  183. channel ORA_DISK_3: SID=144 device type=DISK
  184. allocated channel: ORA_DISK_4
  185. channel ORA_DISK_4: SID=12 device type=DISK
  186. allocated channel: ORA_DISK_5
  187. channel ORA_DISK_5: SID=77 device type=DISK
  188. allocated channel: ORA_DISK_6
  189. channel ORA_DISK_6: SID=17 device type=DISK
  190. allocated channel: ORA_DISK_7
  191. channel ORA_DISK_7: SID=82 device type=DISK
  192. allocated channel: ORA_DISK_8
  193. channel ORA_DISK_8: SID=141 device type=DISK
  194. allocated channel: ORA_SBT_TAPE_1
  195. channel ORA_SBT_TAPE_1: SID=206 device type=SBT_TAPE
  196. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  197. allocated channel: ORA_SBT_TAPE_2
  198. channel ORA_SBT_TAPE_2: SID=204 device type=SBT_TAPE
  199. channel ORA_SBT_TAPE_2: Oracle Secure Backup

  200. channel ORA_SBT_TAPE_1: starting datafile backup set restore
  201. channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
  202. channel ORA_SBT_TAPE_1: restoring datafile 00004 to +DATA/orcl/datafile/users.265.1027544353
  203. channel ORA_SBT_TAPE_1: reading from backup piece 2buju4d3_1_1
  204. RMAN-00571: ===========================================================
  205. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  206. RMAN-00571: ===========================================================
  207. RMAN-03002: failure of restore command at 12/20/2019 21:01:58
  208. ORA-19870: error while restoring backup piece 2buju4d3_1_1
  209. ORA-19913: unable to decrypt backup
  210. ORA-28365: wallet is not open

  211. RMAN>  set decryption identified by "xxxx123456","java123456";

  212. executing command: SET decryption

  213. RMAN> restore tablespace users from tag '1T_USERS_FULL';

  214. Starting restore at 2019-12-20:21:02:21
  215. using channel ORA_DISK_1
  216. using channel ORA_DISK_2
  217. using channel ORA_DISK_3
  218. using channel ORA_DISK_4
  219. using channel ORA_DISK_5
  220. using channel ORA_DISK_6
  221. using channel ORA_DISK_7
  222. using channel ORA_DISK_8
  223. using channel ORA_SBT_TAPE_1
  224. using channel ORA_SBT_TAPE_2

  225. channel ORA_SBT_TAPE_1: starting datafile backup set restore
  226. channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set
  227. channel ORA_SBT_TAPE_1: restoring datafile 00004 to +DATA/orcl/datafile/users.265.1027544353
  228. channel ORA_SBT_TAPE_1: reading from backup piece 2buju4d3_1_1
  229. channel ORA_SBT_TAPE_1: piece handle=2buju4d3_1_1 tag=1T_USERS_FULL
  230. channel ORA_SBT_TAPE_1: restored backup piece 1
  231. channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:45
  232. Finished restore at 2019-12-20:21:03:09

  233. RMAN> recover tablespace users;

  234. Starting recover at 2019-12-20:21:03:33
  235. using channel ORA_DISK_1
  236. using channel ORA_DISK_2
  237. using channel ORA_DISK_3
  238. using channel ORA_DISK_4
  239. using channel ORA_DISK_5
  240. using channel ORA_DISK_6
  241. using channel ORA_DISK_7
  242. using channel ORA_DISK_8
  243. using channel ORA_SBT_TAPE_1
  244. using channel ORA_SBT_TAPE_2

  245. starting media recovery

  246. archived log for thread 1 with sequence 29 is already on disk as file +FRA/orcl/archivelog/2019_12_20/thread_1_seq_29.492.1027543835
  247. archived log for thread 1 with sequence 30 is already on disk as file +FRA/orcl/archivelog/2019_12_20/thread_1_seq_30.277.1027543835
  248. archived log for thread 1 with sequence 31 is already on disk as file +FRA/orcl/archivelog/2019_12_20/thread_1_seq_31.483.1027543837
  249. archived log for thread 1 with sequence 32 is already on disk as file +FRA/orcl/archivelog/2019_12_20/thread_1_seq_32.496.1027543837
  250. archived log for thread 1 with sequence 33 is already on disk as file +FRA/orcl/archivelog/2019_12_20/thread_1_seq_33.514.1027543837
  251. archived log for thread 1 with sequence 34 is already on disk as file +FRA/orcl/archivelog/2019_12_20/thread_1_seq_34.484.1027543839
  252. archived log file name=+FRA/orcl/archivelog/2019_12_20/thread_1_seq_29.492.1027543835 thread=1 sequence=29
  253. archived log file name=+FRA/orcl/archivelog/2019_12_20/thread_1_seq_30.277.1027543835 thread=1 sequence=30
  254. archived log file name=+FRA/orcl/archivelog/2019_12_20/thread_1_seq_31.483.1027543837 thread=1 sequence=31
  255. archived log file name=+FRA/orcl/archivelog/2019_12_20/thread_1_seq_32.496.1027543837 thread=1 sequence=32
  256. media recovery complete, elapsed time: 00:00:01
  257. Finished recover at 2019-12-20:21:03:39

  258. RMAN>
复制代码
归档性备份:
  1. RMAN> backup tag '3T_WHOLE_FULL' database keep until time 'sysdate+60' restore point rsp_archive1;

  2. Starting backup at 2019-12-20:21:50:45
  3. current log archived

  4. using channel ORA_SBT_TAPE_1
  5. using channel ORA_SBT_TAPE_2
  6. backup will be obsolete on date 2020-02-18:21:50:48
  7. archived logs required to recover from this backup will be backed up
  8. channel ORA_SBT_TAPE_1: starting full datafile backup set
  9. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  10. input datafile file number=00001 name=+DATA/orcl/datafile/system.283.1026941797
  11. input datafile file number=00004 name=+DATA/orcl/datafile/users.265.1027544577
  12. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:21:50:51
  13. channel ORA_SBT_TAPE_2: starting full datafile backup set
  14. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  15. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.282.1026941797
  16. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.281.1026941797
  17. channel ORA_SBT_TAPE_2: starting piece 1 at 2019-12-20:21:50:52
  18. channel ORA_SBT_TAPE_2: finished piece 1 at 2019-12-20:21:53:27
  19. piece handle=2ouju89r_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  20. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:02:35
  21. channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:21:53:37
  22. piece handle=2nuju89r_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  23. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:02:46

  24. using channel ORA_SBT_TAPE_1
  25. using channel ORA_SBT_TAPE_2
  26. backup will be obsolete on date 2020-02-18:21:53:39
  27. archived logs required to recover from this backup will be backed up
  28. channel ORA_SBT_TAPE_1: starting full datafile backup set
  29. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  30. including current SPFILE in backup set
  31. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:21:53:42
  32. channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:21:54:28
  33. piece handle=2puju8f6_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  34. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:46


  35. current log archived
  36. using channel ORA_SBT_TAPE_1
  37. using channel ORA_SBT_TAPE_2
  38. backup will be obsolete on date 2020-02-18:21:54:32
  39. archived logs required to recover from this backup will be backed up
  40. channel ORA_SBT_TAPE_1: starting archived log backup set
  41. channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
  42. input archived log thread=1 sequence=36 RECID=31 STAMP=1027547671
  43. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:21:54:34
  44. channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:21:54:59
  45. piece handle=2quju8gp_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  46. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25

  47. using channel ORA_SBT_TAPE_1
  48. using channel ORA_SBT_TAPE_2
  49. backup will be obsolete on date 2020-02-18:21:54:59
  50. archived logs required to recover from this backup will be backed up
  51. channel ORA_SBT_TAPE_1: starting full datafile backup set
  52. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  53. including current control file in backup set
  54. channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:21:55:01
  55. channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:21:55:36
  56. piece handle=2ruju8hk_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
  57. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
  58. Finished backup at 2019-12-20:21:55:37

  59. RMAN>
复制代码
以上请注意观察这段:
current log archived
using channel ORA_SBT_TAPE_1
using channel ORA_SBT_TAPE_2
backup will be obsolete on date 2020-02-18:21:54:32
archived logs required to recover from this backup will be backed up
channel ORA_SBT_TAPE_1: starting archived log backup set
channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=36 RECID=31 STAMP=1027547671
channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:21:54:34
channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:21:54:59
piece handle=2quju8gp_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:25

using channel ORA_SBT_TAPE_1
using channel ORA_SBT_TAPE_2
backup will be obsolete on date 2020-02-18:21:54:59
archived logs required to recover from this backup will be backed up
channel ORA_SBT_TAPE_1: starting full datafile backup set
channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
including current control file in backup set
channel ORA_SBT_TAPE_1: starting piece 1 at 2019-12-20:21:55:01
channel ORA_SBT_TAPE_1: finished piece 1 at 2019-12-20:21:55:36
piece handle=2ruju8hk_1_1 tag=3T_WHOLE_FULL comment=API Version 2.0,MMS Version 10.4.0.4
channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
Finished backup at 2019-12-20:21:55:37

RMAN>


列出归档性备份:
BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
------- ---- -- ---------- ----------- ------------ -------------------
65      Full    470.50M    SBT_TAPE    00:02:26     2019-12-20:21:53:17
        BP Key: 80   Status: AVAILABLE  Compressed: NO  Tag: 3T_WHOLE_FULL
        Handle: 2ouju89r_1_1   Media: station76-000054
        Keep: BACKUP_LOGS        Until: 2020-02-18:21:50:48
  List of Datafiles in backup set 65
  File LV Type Ckp SCN    Ckp Time            Name
  ---- -- ---- ---------- ------------------- ----
  2       Full 1291130    2019-12-20:21:50:52 +DATA/orcl/datafile/sysaux.282.1026941797
  3       Full 1291130    2019-12-20:21:50:52 +DATA/orcl/datafile/undotbs1.281.1026941797

BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
------- ---- -- ---------- ----------- ------------ -------------------
66      Full    642.25M    SBT_TAPE    00:02:39     2019-12-20:21:53:30
        BP Key: 81   Status: AVAILABLE  Compressed: NO  Tag: 3T_WHOLE_FULL
        Handle: 2nuju89r_1_1   Media: station76-000053
       Keep: BACKUP_LOGS        Until: 2020-02-18:21:50:48
  List of Datafiles in backup set 66
  File LV Type Ckp SCN    Ckp Time            Name
  ---- -- ---- ---------- ------------------- ----
  1       Full 1291129    2019-12-20:21:50:51 +DATA/orcl/datafile/system.283.1026941797
  4       Full 1291129    2019-12-20:21:50:51 +DATA/orcl/datafile/users.265.1027544577

BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
------- ---- -- ---------- ----------- ------------ -------------------
67      Full    256.00K    SBT_TAPE    00:00:39     2019-12-20:21:54:21
        BP Key: 82   Status: AVAILABLE  Compressed: NO  Tag: 3T_WHOLE_FULL
        Handle: 2puju8f6_1_1   Media: station76-000053
       Keep: BACKUP_LOGS        Until: 2020-02-18:21:53:39
  SPFILE Included: Modification time: 2019-12-20:18:34:54
  SPFILE db_unique_name: ORCL

BS Key  Size       Device Type Elapsed Time Completion Time   
------- ---------- ----------- ------------ -------------------
68      256.00K    SBT_TAPE    00:00:25     2019-12-20:21:54:58
        BP Key: 83   Status: AVAILABLE  Compressed: NO  Tag: 3T_WHOLE_FULL
        Handle: 2quju8gp_1_1   Media: station76-000053
        Keep: BACKUP_LOGS        Until: 2020-02-18:21:54:32

  List of Archived Logs in backup set 68
  Thrd Seq     Low SCN    Low Time            Next SCN   Next Time
  ---- ------- ---------- ------------------- ---------- ---------
  1    36      1291121    2019-12-20:21:50:46 1291274    2019-12-20:21:54:30

BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
------- ---- -- ---------- ----------- ------------ -------------------
69      Full    9.50M      SBT_TAPE    00:00:27     2019-12-20:21:55:27
        BP Key: 84   Status: AVAILABLE  Compressed: NO  Tag: 3T_WHOLE_FULL
        Handle: 2ruju8hk_1_1   Media: station76-000053
       Keep: BACKUP_LOGS        Until: 2020-02-18:21:54:59
  Control File Included: Ckp SCN: 1291337      Ckp time: 2019-12-20:21:55:00

RMAN>










回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-9 06:46 , Processed in 0.028338 second(s), 24 queries .

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