Bo's Oracle Station

查看: 1910|回复: 0

课程第26次(2017-05-09星期二)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-5-10 09:39:33 | 显示全部楼层 |阅读模式
上完1Z0-053第2章
1Z0-0
52共19章(上完12章),1Z0-053共21章(上完6章)和1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的18章


  1. Report of files that must be backed up to satisfy 1 days recovery window
  2. File Days  Name
  3. ---- ----- -----------------------------------------------------

  4. RMAN> report need backup;

  5. RMAN retention policy will be applied to the command
  6. RMAN retention policy is set to recovery window of 1 days
  7. Report of files that must be backed up to satisfy 1 days recovery window
  8. File Days  Name
  9. ---- ----- -----------------------------------------------------
  10. 1    2     +DATA/orcl/datafile/system.256.832197063
  11. 2    2     +DATA/orcl/datafile/sysaux.257.832197065
  12. 3    2     +DATA/orcl/datafile/undotbs1.258.832197065
  13. 4    2     +DATA/orcl/datafile/users.259.832197065
  14. 5    2     +DATA/orcl/datafile/example.265.832197353
  15. 6    2     +DATA/orcl/datafile/undotbs2.267.939552631

  16. RMAN> report need backup;

  17. RMAN retention policy will be applied to the command
  18. RMAN retention policy is set to recovery window of 1 days
  19. Report of files that must be backed up to satisfy 1 days recovery window
  20. File Days  Name
  21. ---- ----- -----------------------------------------------------
  22. 1    2     +DATA/orcl/datafile/system.256.832197063
  23. 2    2     +DATA/orcl/datafile/sysaux.257.832197065
  24. 3    2     +DATA/orcl/datafile/undotbs1.258.832197065
  25. 4    2     +DATA/orcl/datafile/users.259.832197065
  26. 5    2     +DATA/orcl/datafile/example.265.832197353
  27. 6    2     +DATA/orcl/datafile/undotbs2.267.939552631

  28. RMAN> backup '3rd DAY' database ;

  29. RMAN-00571: ===========================================================
  30. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  31. RMAN-00571: ===========================================================
  32. RMAN-00558: error encountered while parsing input commands
  33. RMAN-01009: syntax error: found "single-quoted-string": expecting one of: "archivelog, as, auxiliary, backupset, backup, channel, check, controlfilecopy, copies, copy, cumulative, current, database, datafilecopy, datafile, db_file_name_convert, db_recovery_file_dest, device, diskratio, duration, filesperset, force, format, for, from, full, incremental, keep, maxsetsize, nochecksum, noexclude, nokeep, not, pool, proxy, recovery, reuse, section, skip readonly, skip, spfile, tablespace, tag, to, validate, ("
  34. RMAN-01007: at line 1 column 8 file: standard input

  35. RMAN> backup tag '3rd DAY' database ;

  36. Starting backup at 2017-05-12:00:02:38
  37. allocated channel: ORA_SBT_TAPE_1
  38. channel ORA_SBT_TAPE_1: SID=15 device type=SBT_TAPE
  39. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  40. allocated channel: ORA_SBT_TAPE_2
  41. channel ORA_SBT_TAPE_2: SID=139 device type=SBT_TAPE
  42. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  43. channel ORA_SBT_TAPE_1: starting full datafile backup set
  44. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  45. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
  46. input datafile file number=00006 name=+DATA/orcl/datafile/undotbs2.267.939552631
  47. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
  48. channel ORA_SBT_TAPE_1: starting piece 1 at 2017-05-12:00:02:53
  49. channel ORA_SBT_TAPE_2: starting full datafile backup set
  50. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  51. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
  52. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
  53. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.832197065
  54. channel ORA_SBT_TAPE_2: starting piece 1 at 2017-05-12:00:02:58
  55. channel ORA_SBT_TAPE_1: finished piece 1 at 2017-05-12:00:04:45
  56. piece handle=22s40s9d_1_1 tag=3RD DAY comment=API Version 2.0,MMS Version 10.3.0.2
  57. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:52
  58. channel ORA_SBT_TAPE_2: finished piece 1 at 2017-05-12:00:04:55
  59. piece handle=23s40s9d_1_1 tag=3RD DAY comment=API Version 2.0,MMS Version 10.3.0.2
  60. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:57
  61. Finished backup at 2017-05-12:00:04:55

  62. Starting Control File and SPFILE Autobackup at 2017-05-12:00:04:55
  63. piece handle=c-1359978017-20170512-00 comment=API Version 2.0,MMS Version 10.3.0.2
  64. Finished Control File and SPFILE Autobackup at 2017-05-12:00:05:50

  65. RMAN> backup tag '4th' database ;

  66. Starting backup at 2017-05-12:00:06:05
  67. using channel ORA_SBT_TAPE_1
  68. using channel ORA_SBT_TAPE_2
  69. skipping datafile 4; already backed up 1 time(s)
  70. channel ORA_SBT_TAPE_1: starting full datafile backup set
  71. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  72. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
  73. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
  74. channel ORA_SBT_TAPE_1: starting piece 1 at 2017-05-12:00:06:06
  75. channel ORA_SBT_TAPE_2: starting full datafile backup set
  76. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  77. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
  78. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
  79. input datafile file number=00006 name=+DATA/orcl/datafile/undotbs2.267.939552631
  80. channel ORA_SBT_TAPE_2: starting piece 1 at 2017-05-12:00:06:06
  81. channel ORA_SBT_TAPE_1: finished piece 1 at 2017-05-12:00:07:51
  82. piece handle=25s40sfd_1_1 tag=4TH comment=API Version 2.0,MMS Version 10.3.0.2
  83. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:45
  84. channel ORA_SBT_TAPE_2: finished piece 1 at 2017-05-12:00:07:51
  85. piece handle=26s40sfe_1_1 tag=4TH comment=API Version 2.0,MMS Version 10.3.0.2
  86. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:45
  87. Finished backup at 2017-05-12:00:07:51

  88. Starting Control File and SPFILE Autobackup at 2017-05-12:00:07:51
  89. piece handle=c-1359978017-20170512-01 comment=API Version 2.0,MMS Version 10.3.0.2
  90. Finished Control File and SPFILE Autobackup at 2017-05-12:00:08:56

  91. RMAN> report obsolete;

  92. RMAN retention policy will be applied to the command
  93. RMAN retention policy is set to recovery window of 1 days
  94. Report of obsolete backups and copies
  95. Type                 Key    Completion Time    Filename/Handle
  96. -------------------- ------ ------------------ --------------------
  97. Backup Set           48     2017-05-09:21:04:38
  98.   Backup Piece       68     2017-05-09:21:04:38 1ss3r8vt_1_1
  99. Backup Set           49     2017-05-09:21:04:50
  100.   Backup Piece       69     2017-05-09:21:04:50 1ts3r8vt_1_1
  101. Backup Set           50     2017-05-09:21:05:45
  102.   Backup Piece       70     2017-05-09:21:05:45 c-1359978017-20170509-02

  103. RMAN> report obsolete recvoery window of 2 days   ;

  104. RMAN-00571: ===========================================================
  105. RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
  106. RMAN-00571: ===========================================================
  107. RMAN-00558: error encountered while parsing input commands
  108. RMAN-01009: syntax error: found "identifier": expecting one of: "device, high, recovery, redundancy, to restore point, until restore point, until, ;"
  109. RMAN-01008: the bad identifier was: recvoery
  110. RMAN-01007: at line 1 column 17 file: standard input

  111. RMAN> report obsolete recovery window of 2 days   ;

  112. no obsolete backups found

  113. RMAN> report obsolete redundancy 1   ;

  114. Report of obsolete backups and copies
  115. Type                 Key    Completion Time    Filename/Handle
  116. -------------------- ------ ------------------ --------------------
  117. Backup Set           48     2017-05-09:21:04:38
  118.   Backup Piece       68     2017-05-09:21:04:38 1ss3r8vt_1_1
  119. Backup Set           49     2017-05-09:21:04:50
  120.   Backup Piece       69     2017-05-09:21:04:50 1ts3r8vt_1_1
  121. Backup Set           50     2017-05-09:21:05:45
  122.   Backup Piece       70     2017-05-09:21:05:45 c-1359978017-20170509-02
  123. Backup Set           51     2017-05-10:21:09:57
  124.   Backup Piece       71     2017-05-10:21:09:57 1vs3ttlq_1_1
  125. Backup Set           52     2017-05-10:21:10:00
  126.   Backup Piece       72     2017-05-10:21:10:00 20s3ttlq_1_1
  127. Archive Log          35     2017-05-11:21:03:02 +FRA/orcl/archivelog/2017_05_11/thread_1_seq_40.293.943736581
  128. Backup Set           53     2017-05-10:21:10:54
  129.   Backup Piece       73     2017-05-10:21:10:54 c-1359978017-20170510-00
  130. Backup Set           54     2017-05-12:00:04:44
  131.   Backup Piece       74     2017-05-12:00:04:44 22s40s9d_1_1
  132. Backup Set           56     2017-05-12:00:05:43
  133.   Backup Piece       76     2017-05-12:00:05:43 c-1359978017-20170512-00

  134. RMAN> report obsolete redundancy 2  ;

  135. Report of obsolete backups and copies
  136. Type                 Key    Completion Time    Filename/Handle
  137. -------------------- ------ ------------------ --------------------
  138. Backup Set           48     2017-05-09:21:04:38
  139.   Backup Piece       68     2017-05-09:21:04:38 1ss3r8vt_1_1
  140. Backup Set           49     2017-05-09:21:04:50
  141.   Backup Piece       69     2017-05-09:21:04:50 1ts3r8vt_1_1
  142. Backup Set           50     2017-05-09:21:05:45
  143.   Backup Piece       70     2017-05-09:21:05:45 c-1359978017-20170509-02
  144. Backup Set           51     2017-05-10:21:09:57
  145.   Backup Piece       71     2017-05-10:21:09:57 1vs3ttlq_1_1
  146. Backup Set           53     2017-05-10:21:10:54
  147.   Backup Piece       73     2017-05-10:21:10:54 c-1359978017-20170510-00

  148. RMAN> report obsolete redundancy 3  ;

  149. Report of obsolete backups and copies
  150. Type                 Key    Completion Time    Filename/Handle
  151. -------------------- ------ ------------------ --------------------
  152. Backup Set           48     2017-05-09:21:04:38
  153.   Backup Piece       68     2017-05-09:21:04:38 1ss3r8vt_1_1
  154. Backup Set           50     2017-05-09:21:05:45
  155.   Backup Piece       70     2017-05-09:21:05:45 c-1359978017-20170509-02

  156. RMAN> report obsolete   ;

  157. RMAN retention policy will be applied to the command
  158. RMAN retention policy is set to recovery window of 1 days
  159. Report of obsolete backups and copies
  160. Type                 Key    Completion Time    Filename/Handle
  161. -------------------- ------ ------------------ --------------------
  162. Backup Set           48     2017-05-09:21:04:38
  163.   Backup Piece       68     2017-05-09:21:04:38 1ss3r8vt_1_1
  164. Backup Set           49     2017-05-09:21:04:50
  165.   Backup Piece       69     2017-05-09:21:04:50 1ts3r8vt_1_1
  166. Backup Set           50     2017-05-09:21:05:45
  167.   Backup Piece       70     2017-05-09:21:05:45 c-1359978017-20170509-02

  168. RMAN> delete noprompt obsolete;

  169. RMAN retention policy will be applied to the command
  170. RMAN retention policy is set to recovery window of 1 days
  171. allocated channel: ORA_DISK_1
  172. channel ORA_DISK_1: SID=16 device type=DISK
  173. allocated channel: ORA_DISK_2
  174. channel ORA_DISK_2: SID=70 device type=DISK
  175. allocated channel: ORA_DISK_3
  176. channel ORA_DISK_3: SID=137 device type=DISK
  177. allocated channel: ORA_DISK_4
  178. channel ORA_DISK_4: SID=11 device type=DISK
  179. allocated channel: ORA_DISK_5
  180. channel ORA_DISK_5: SID=68 device type=DISK
  181. allocated channel: ORA_DISK_6
  182. channel ORA_DISK_6: SID=138 device type=DISK
  183. allocated channel: ORA_DISK_7
  184. channel ORA_DISK_7: SID=192 device type=DISK
  185. allocated channel: ORA_DISK_8
  186. channel ORA_DISK_8: SID=12 device type=DISK
  187. using channel ORA_SBT_TAPE_1
  188. using channel ORA_SBT_TAPE_2
  189. Deleting the following obsolete backups and copies:
  190. Type                 Key    Completion Time    Filename/Handle
  191. -------------------- ------ ------------------ --------------------
  192. Backup Set           48     2017-05-09:21:04:38
  193.   Backup Piece       68     2017-05-09:21:04:38 1ss3r8vt_1_1
  194. Backup Set           49     2017-05-09:21:04:50
  195.   Backup Piece       69     2017-05-09:21:04:50 1ts3r8vt_1_1
  196. Backup Set           50     2017-05-09:21:05:45
  197.   Backup Piece       70     2017-05-09:21:05:45 c-1359978017-20170509-02
  198. deleted backup piece
  199. backup piece handle=1ss3r8vt_1_1 RECID=68 STAMP=943563773
  200. deleted backup piece
  201. backup piece handle=1ts3r8vt_1_1 RECID=69 STAMP=943563778
  202. deleted backup piece
  203. backup piece handle=c-1359978017-20170509-02 RECID=70 STAMP=943563898
  204. Deleted 3 objects


  205. RMAN> exit


  206. Recovery Manager complete.
  207. [oracle@station2 ~]$ rman target /      

  208. Recovery Manager: Release 11.2.0.1.0 - Production on Fri May 12 00:12:00 2017

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

  210. connected to target database: ORCL (DBID=1359978017)

  211. RMAN> exit


  212. Recovery Manager complete.
  213. [oracle@station2 ~]$ rman target /

  214. Recovery Manager: Release 11.2.0.1.0 - Production on Fri May 12 23:50:05 2017

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

  216. connected to target database: ORCL (DBID=1359978017)

  217. RMAN> backup tag '5th' database ;

  218. Starting backup at 2017-05-12:23:50:16
  219. using target database control file instead of recovery catalog
  220. allocated channel: ORA_SBT_TAPE_1
  221. channel ORA_SBT_TAPE_1: SID=139 device type=SBT_TAPE
  222. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  223. allocated channel: ORA_SBT_TAPE_2
  224. channel ORA_SBT_TAPE_2: SID=138 device type=SBT_TAPE
  225. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  226. skipping datafile 4; already backed up 1 time(s)
  227. channel ORA_SBT_TAPE_1: starting full datafile backup set
  228. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  229. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
  230. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
  231. channel ORA_SBT_TAPE_1: starting piece 1 at 2017-05-12:23:50:33
  232. channel ORA_SBT_TAPE_2: starting full datafile backup set
  233. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  234. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
  235. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
  236. input datafile file number=00006 name=+DATA/orcl/datafile/undotbs2.267.939552631
  237. channel ORA_SBT_TAPE_2: starting piece 1 at 2017-05-12:23:50:33
  238. channel ORA_SBT_TAPE_2: finished piece 1 at 2017-05-12:23:51:59
  239. piece handle=29s43fu9_1_1 tag=5TH comment=API Version 2.0,MMS Version 10.3.0.2
  240. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:26
  241. channel ORA_SBT_TAPE_1: finished piece 1 at 2017-05-12:23:52:59
  242. piece handle=28s43fu9_1_1 tag=5TH comment=API Version 2.0,MMS Version 10.3.0.2
  243. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:02:26
  244. Finished backup at 2017-05-12:23:52:59

  245. Starting Control File and SPFILE Autobackup at 2017-05-12:23:52:59
  246. piece handle=c-1359978017-20170512-02 comment=API Version 2.0,MMS Version 10.3.0.2
  247. Finished Control File and SPFILE Autobackup at 2017-05-12:23:53:54

  248. RMAN> run {
  249. 2> allocate channel c1 device type disk format '/home/oracle/backup/%U';
  250. 3> backup tablespace example;
  251. 4> }

  252. released channel: ORA_SBT_TAPE_1
  253. released channel: ORA_SBT_TAPE_2
  254. allocated channel: c1
  255. channel c1: SID=139 device type=DISK

  256. Starting backup at 2017-05-12:23:57:08
  257. channel c1: starting full datafile backup set
  258. channel c1: specifying datafile(s) in backup set
  259. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
  260. channel c1: starting piece 1 at 2017-05-12:23:57:08
  261. channel c1: finished piece 1 at 2017-05-12:23:57:15
  262. piece handle=/home/oracle/backup/2bs43gak_1_1 tag=TAG20170512T235708 comment=NONE
  263. channel c1: backup set complete, elapsed time: 00:00:07
  264. Finished backup at 2017-05-12:23:57:15

  265. Starting Control File and SPFILE Autobackup at 2017-05-12:23:57:15
  266. piece handle=+FRA/orcl/autobackup/2017_05_12/s_943833435.287.943833437 comment=NONE
  267. Finished Control File and SPFILE Autobackup at 2017-05-12:23:57:18
  268. released channel: c1

  269. RMAN> list backup of tablespace example;


  270. List of Backup Sets
  271. ===================


  272. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  273. ------- ---- -- ---------- ----------- ------------ -------------------
  274. 52      Full    496.25M    SBT_TAPE    00:01:50     2017-05-10:21:10:00
  275.         BP Key: 72   Status: AVAILABLE  Compressed: NO  Tag: 2ND DAY
  276.         Handle: 20s3ttlq_1_1   Media: station2-000006
  277.   List of Datafiles in backup set 52
  278.   File LV Type Ckp SCN    Ckp Time            Name
  279.   ---- -- ---- ---------- ------------------- ----
  280.   5       Full 1325932    2017-05-10:21:08:10 +DATA/orcl/datafile/example.265.832197353

  281. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  282. ------- ---- -- ---------- ----------- ------------ -------------------
  283. 55      Full    499.00M    SBT_TAPE    00:01:58     2017-05-12:00:04:51
  284.         BP Key: 75   Status: AVAILABLE  Compressed: NO  Tag: 3RD DAY
  285.         Handle: 23s40s9d_1_1   Media: station2-000006
  286.   List of Datafiles in backup set 55
  287.   File LV Type Ckp SCN    Ckp Time            Name
  288.   ---- -- ---- ---------- ------------------- ----
  289.   5       Full 1339326    2017-05-12:00:02:59 +DATA/orcl/datafile/example.265.832197353

  290. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  291. ------- ---- -- ---------- ----------- ------------ -------------------
  292. 58      Full    495.75M    SBT_TAPE    00:01:39     2017-05-12:00:07:45
  293.         BP Key: 78   Status: AVAILABLE  Compressed: NO  Tag: 4TH
  294.         Handle: 26s40sfe_1_1   Media: station2-000005
  295.   List of Datafiles in backup set 58
  296.   File LV Type Ckp SCN    Ckp Time            Name
  297.   ---- -- ---- ---------- ------------------- ----
  298.   5       Full 1339447    2017-05-12:00:06:06 +DATA/orcl/datafile/example.265.832197353

  299. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  300. ------- ---- -- ---------- ----------- ------------ -------------------
  301. 60      Full    495.75M    SBT_TAPE    00:01:24     2017-05-12:23:51:57
  302.         BP Key: 80   Status: AVAILABLE  Compressed: NO  Tag: 5TH
  303.         Handle: 29s43fu9_1_1   Media: station2-000006
  304.   List of Datafiles in backup set 60
  305.   File LV Type Ckp SCN    Ckp Time            Name
  306.   ---- -- ---- ---------- ------------------- ----
  307.   5       Full 1340293    2017-05-12:23:50:33 +DATA/orcl/datafile/example.265.832197353

  308. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  309. ------- ---- -- ---------- ----------- ------------ -------------------
  310. 63      Full    69.57M     DISK        00:00:04     2017-05-12:23:57:12
  311.         BP Key: 83   Status: AVAILABLE  Compressed: NO  Tag: TAG20170512T235708
  312.         Piece Name: /home/oracle/backup/2bs43gak_1_1
  313.   List of Datafiles in backup set 63
  314.   File LV Type Ckp SCN    Ckp Time            Name
  315.   ---- -- ---- ---------- ------------------- ----
  316.   5       Full 1340640    2017-05-12:23:57:08 +DATA/orcl/datafile/example.265.832197353

  317. RMAN> backup backupset 63;

  318. Starting backup at 2017-05-12:23:58:20
  319. allocated channel: ORA_SBT_TAPE_1
  320. channel ORA_SBT_TAPE_1: SID=139 device type=SBT_TAPE
  321. channel ORA_SBT_TAPE_1: Oracle Secure Backup
  322. allocated channel: ORA_SBT_TAPE_2
  323. channel ORA_SBT_TAPE_2: SID=138 device type=SBT_TAPE
  324. channel ORA_SBT_TAPE_2: Oracle Secure Backup
  325. skipping backup set key 63; already backed up 1 time(s)
  326. Finished backup at 2017-05-12:23:58:37

  327. RMAN> backup backupset 63 force ;

  328. Starting backup at 2017-05-12:23:59:01
  329. using channel ORA_SBT_TAPE_1
  330. using channel ORA_SBT_TAPE_2
  331. channel ORA_SBT_TAPE_1: input backup set: count=75, stamp=943833428, piece=1
  332. channel ORA_SBT_TAPE_1: starting piece 1 at 2017-05-12:23:59:03
  333. channel ORA_SBT_TAPE_1: backup piece /home/oracle/backup/2bs43gak_1_1
  334. piece handle=2bs43gak_1_2 comment=API Version 2.0,MMS Version 10.3.0.2
  335. channel ORA_SBT_TAPE_1: finished piece 1 at 2017-05-13:00:00:18
  336. channel ORA_SBT_TAPE_1: backup piece complete, elapsed time: 00:01:16
  337. Finished backup at 2017-05-13:00:00:18

  338. Starting Control File and SPFILE Autobackup at 2017-05-13:00:00:18
  339. piece handle=c-1359978017-20170513-00 comment=API Version 2.0,MMS Version 10.3.0.2
  340. Finished Control File and SPFILE Autobackup at 2017-05-13:00:01:13

  341. RMAN> list backup of tablespace example;


  342. List of Backup Sets
  343. ===================


  344. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  345. ------- ---- -- ---------- ----------- ------------ -------------------
  346. 52      Full    496.25M    SBT_TAPE    00:01:50     2017-05-10:21:10:00
  347.         BP Key: 72   Status: AVAILABLE  Compressed: NO  Tag: 2ND DAY
  348.         Handle: 20s3ttlq_1_1   Media: station2-000006
  349.   List of Datafiles in backup set 52
  350.   File LV Type Ckp SCN    Ckp Time            Name
  351.   ---- -- ---- ---------- ------------------- ----
  352.   5       Full 1325932    2017-05-10:21:08:10 +DATA/orcl/datafile/example.265.832197353

  353. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  354. ------- ---- -- ---------- ----------- ------------ -------------------
  355. 55      Full    499.00M    SBT_TAPE    00:01:58     2017-05-12:00:04:51
  356.         BP Key: 75   Status: AVAILABLE  Compressed: NO  Tag: 3RD DAY
  357.         Handle: 23s40s9d_1_1   Media: station2-000006
  358.   List of Datafiles in backup set 55
  359.   File LV Type Ckp SCN    Ckp Time            Name
  360.   ---- -- ---- ---------- ------------------- ----
  361.   5       Full 1339326    2017-05-12:00:02:59 +DATA/orcl/datafile/example.265.832197353

  362. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  363. ------- ---- -- ---------- ----------- ------------ -------------------
  364. 58      Full    495.75M    SBT_TAPE    00:01:39     2017-05-12:00:07:45
  365.         BP Key: 78   Status: AVAILABLE  Compressed: NO  Tag: 4TH
  366.         Handle: 26s40sfe_1_1   Media: station2-000005
  367.   List of Datafiles in backup set 58
  368.   File LV Type Ckp SCN    Ckp Time            Name
  369.   ---- -- ---- ---------- ------------------- ----
  370.   5       Full 1339447    2017-05-12:00:06:06 +DATA/orcl/datafile/example.265.832197353

  371. BS Key  Type LV Size       Device Type Elapsed Time Completion Time   
  372. ------- ---- -- ---------- ----------- ------------ -------------------
  373. 60      Full    495.75M    SBT_TAPE    00:01:24     2017-05-12:23:51:57
  374.         BP Key: 80   Status: AVAILABLE  Compressed: NO  Tag: 5TH
  375.         Handle: 29s43fu9_1_1   Media: station2-000006
  376.   List of Datafiles in backup set 60
  377.   File LV Type Ckp SCN    Ckp Time            Name
  378.   ---- -- ---- ---------- ------------------- ----
  379.   5       Full 1340293    2017-05-12:23:50:33 +DATA/orcl/datafile/example.265.832197353

  380. BS Key  Type LV Size
  381. ------- ---- -- ----------
  382. 63      Full    69.57M
  383.   List of Datafiles in backup set 63
  384.   File LV Type Ckp SCN    Ckp Time            Name
  385.   ---- -- ---- ---------- ------------------- ----
  386.   5       Full 1340640    2017-05-12:23:57:08 +DATA/orcl/datafile/example.265.832197353

  387.   Backup Set Copy #1 of backup set 63
  388.   Device Type Elapsed Time Completion Time     Compressed Tag
  389.   ----------- ------------ ------------------- ---------- ---
  390.   DISK        00:00:04     2017-05-12:23:57:11 NO         TAG20170512T235708

  391.     List of Backup Pieces for backup set 63 Copy #1
  392.     BP Key  Pc# Status      Piece Name
  393.     ------- --- ----------- ----------
  394.     83      1   AVAILABLE   /home/oracle/backup/2bs43gak_1_1

  395.   Backup Set Copy #2 of backup set 63
  396.   Device Type Elapsed Time Completion Time     Compressed Tag
  397.   ----------- ------------ ------------------- ---------- ---
  398.   SBT_TAPE    00:00:04     2017-05-13:00:00:08 NO         TAG20170512T235708

  399.     List of Backup Pieces for backup set 63 Copy #2
  400.     BP Key  Pc# Status      Media                   Piece Name
  401.     ------- --- ----------- ----------------------- ----------
  402.     85      1   AVAILABLE   station2-000005         2bs43gak_1_2

  403. RMAN> backup tag '6th' database ;      

  404. Starting backup at 2017-05-13:00:02:17
  405. using channel ORA_SBT_TAPE_1
  406. using channel ORA_SBT_TAPE_2
  407. channel ORA_SBT_TAPE_1: starting full datafile backup set
  408. channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
  409. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
  410. input datafile file number=00006 name=+DATA/orcl/datafile/undotbs2.267.939552631
  411. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
  412. channel ORA_SBT_TAPE_1: starting piece 1 at 2017-05-13:00:02:18
  413. channel ORA_SBT_TAPE_2: starting full datafile backup set
  414. channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
  415. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
  416. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
  417. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.832197065
  418. channel ORA_SBT_TAPE_2: starting piece 1 at 2017-05-13:00:02:23
  419. channel ORA_SBT_TAPE_1: finished piece 1 at 2017-05-13:00:04:13
  420. piece handle=2es43gka_1_1 tag=6TH comment=API Version 2.0,MMS Version 10.3.0.2
  421. channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:55
  422. channel ORA_SBT_TAPE_2: finished piece 1 at 2017-05-13:00:04:13
  423. piece handle=2fs43gka_1_1 tag=6TH comment=API Version 2.0,MMS Version 10.3.0.2
  424. channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:50
  425. Finished backup at 2017-05-13:00:04:13

  426. Starting Control File and SPFILE Autobackup at 2017-05-13:00:04:13











复制代码




回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-22 05:43 , Processed in 0.038789 second(s), 25 queries .

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