Bo's Oracle Station

查看: 1787|回复: 0

第6次活动:2017-08-14(星期一晚上7:00-10:00)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-8-14 21:19:56 | 显示全部楼层 |阅读模式
第6次活动:2017-08-14(星期日晚上7:00-10:00)
脚本:
  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';
复制代码
第一天:
  1. Recovery Manager: Release 11.2.0.1.0 - Production on Mon Aug 14 21:30:24 2017

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

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

  6. RMAN>
  7. echo set on


  8. RMAN> run {
  9. 2> allocate channel oem_disk_backup device type disk;
  10. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  11. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  12. 5> release channel oem_disk_backup;
  13. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  14. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  15. 8> backup archivelog all not backed up;
  16. 9> }
  17. allocated channel: oem_disk_backup
  18. channel oem_disk_backup: SID=72 device type=DISK

  19. Starting recover at 14-AUG-17
  20. no copy of datafile 1 found to recover
  21. no copy of datafile 2 found to recover
  22. no copy of datafile 3 found to recover
  23. no copy of datafile 4 found to recover
  24. no copy of datafile 5 found to recover
  25. Finished recover at 14-AUG-17

  26. Starting backup at 14-AUG-17
  27. no parent backup or copy of datafile 1 found
  28. no parent backup or copy of datafile 2 found
  29. no parent backup or copy of datafile 3 found
  30. no parent backup or copy of datafile 5 found
  31. no parent backup or copy of datafile 4 found
  32. channel oem_disk_backup: starting datafile copy
  33. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  34. output file name=+FRA/orcl/datafile/system.267.952032625 tag=ORA_OEM_LEVEL_0 RECID=2 STAMP=952032629
  35. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
  36. channel oem_disk_backup: starting datafile copy
  37. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  38. output file name=+FRA/orcl/datafile/sysaux.266.952032633 tag=ORA_OEM_LEVEL_0 RECID=3 STAMP=952032635
  39. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
  40. channel oem_disk_backup: starting datafile copy
  41. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  42. output file name=+FRA/orcl/datafile/undotbs1.265.952032641 tag=ORA_OEM_LEVEL_0 RECID=4 STAMP=952032640
  43. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
  44. channel oem_disk_backup: starting datafile copy
  45. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  46. output file name=+FRA/orcl/datafile/example.264.952032643 tag=ORA_OEM_LEVEL_0 RECID=5 STAMP=952032643
  47. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
  48. channel oem_disk_backup: starting datafile copy
  49. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  50. output file name=+FRA/orcl/datafile/users.263.952032645 tag=ORA_OEM_LEVEL_0 RECID=6 STAMP=952032644
  51. channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
  52. Finished backup at 14-AUG-17

  53. Starting Control File and SPFILE Autobackup at 14-AUG-17
  54. piece handle=+FRA/orcl/autobackup/2017_08_14/s_952032645.261.952032645 comment=NONE
  55. Finished Control File and SPFILE Autobackup at 14-AUG-17

  56. released channel: oem_disk_backup
复制代码

Screenshot.png

第二天:
  1. Recovery Manager: Release 11.2.0.1.0 - Production on Tue Aug 15 21:30:24 2017

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

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

  6. RMAN>
  7. echo set on


  8. RMAN> run {
  9. 2> allocate channel oem_disk_backup device type disk;
  10. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  11. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  12. 5> release channel oem_disk_backup;
  13. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  14. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  15. 8> backup recovery area;
  16. 9> }
  17. allocated channel: oem_disk_backup
  18. channel oem_disk_backup: SID=196 device type=DISK

  19. Starting recover at 15-AUG-17
  20. no copy of datafile 1 found to recover
  21. no copy of datafile 2 found to recover
  22. no copy of datafile 3 found to recover
  23. no copy of datafile 4 found to recover
  24. no copy of datafile 5 found to recover
  25. Finished recover at 15-AUG-17

  26. Starting backup at 15-AUG-17
  27. channel oem_disk_backup: starting incremental level 1 datafile backup set
  28. channel oem_disk_backup: specifying datafile(s) in backup set
  29. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  30. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  31. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  32. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  33. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  34. channel oem_disk_backup: starting piece 1 at 15-AUG-17
  35. channel oem_disk_backup: finished piece 1 at 15-AUG-17
  36. piece handle=+FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027 tag=ORA_OEM_LEVEL_0 comment=NONE
  37. channel oem_disk_backup: backup set complete, elapsed time: 00:00:03
  38. Finished backup at 15-AUG-17

  39. Starting Control File and SPFILE Autobackup at 15-AUG-17
  40. piece handle=+FRA/orcl/autobackup/2017_08_15/s_952119029.269.952119029 comment=NONE
  41. Finished Control File and SPFILE Autobackup at 15-AUG-17

  42. released channel: oem_disk_backup

  43. allocated channel: oem_sbt_backup1
  44. channel oem_sbt_backup1: SID=196 device type=SBT_TAPE
  45. channel oem_sbt_backup1: Oracle Secure Backup

  46. allocated channel: oem_sbt_backup2
  47. channel oem_sbt_backup2: SID=71 device type=SBT_TAPE
  48. channel oem_sbt_backup2: Oracle Secure Backup

  49. Starting backup at 15-AUG-17
  50. skipping archived log file +FRA/orcl/archivelog/2017_08_14/thread_1_seq_27.262.952032659; already backed up 1 time(s)
  51. channel oem_sbt_backup1: starting full datafile backup set
  52. channel oem_sbt_backup1: including datafile copy of datafile 00001 in backup set
  53. input file name=+FRA/orcl/datafile/system.267.952032625
  54. channel oem_sbt_backup1: including datafile copy of datafile 00005 in backup set
  55. input file name=+FRA/orcl/datafile/example.264.952032643
  56. channel oem_sbt_backup1: starting piece 1 at 15-AUG-17
  57. channel oem_sbt_backup2: starting full datafile backup set
  58. channel oem_sbt_backup2: including datafile copy of datafile 00002 in backup set
  59. input file name=+FRA/orcl/datafile/sysaux.266.952032633
  60. channel oem_sbt_backup2: including datafile copy of datafile 00003 in backup set
  61. input file name=+FRA/orcl/datafile/undotbs1.265.952032641
  62. channel oem_sbt_backup2: including datafile copy of datafile 00004 in backup set
  63. input file name=+FRA/orcl/datafile/users.263.952032645
  64. channel oem_sbt_backup2: starting piece 1 at 15-AUG-17
  65. channel oem_sbt_backup1: finished piece 1 at 15-AUG-17
  66. piece handle=1gsc0bo2_1_1 tag=TAG20170815T213042 comment=API Version 2.0,MMS Version 10.4.0.4
  67. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:36
  68. channel oem_sbt_backup2: finished piece 1 at 15-AUG-17
  69. piece handle=1hsc0bo2_1_1 tag=TAG20170815T213042 comment=API Version 2.0,MMS Version 10.4.0.4
  70. channel oem_sbt_backup2: backup set complete, elapsed time: 00:00:35
  71. channel oem_sbt_backup1: input backup set: count=43, stamp=952032645, piece=1
  72. channel oem_sbt_backup1: starting piece 1 at 15-AUG-17
  73. channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_08_14/s_952032645.261.952032645
  74. channel oem_sbt_backup2: input backup set: count=46, stamp=952119026, piece=1
  75. channel oem_sbt_backup2: starting piece 1 at 15-AUG-17
  76. channel oem_sbt_backup2: backup piece +FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027
  77. piece handle=c-1343950367-20170814-00 comment=API Version 2.0,MMS Version 10.4.0.4
  78. channel oem_sbt_backup1: finished piece 1 at 15-AUG-17
  79. channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:25
  80. channel oem_sbt_backup1: input backup set: count=47, stamp=952119029, piece=1
  81. channel oem_sbt_backup1: starting piece 1 at 15-AUG-17
  82. channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_08_15/s_952119029.269.952119029
  83. piece handle=1esc0bni_1_2 comment=API Version 2.0,MMS Version 10.4.0.4
  84. channel oem_sbt_backup2: finished piece 1 at 15-AUG-17
  85. channel oem_sbt_backup2: backup piece complete, elapsed time: 00:00:25
  86. piece handle=c-1343950367-20170815-00 comment=API Version 2.0,MMS Version 10.4.0.4
  87. channel oem_sbt_backup1: finished piece 1 at 15-AUG-17
  88. channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:25
  89. Finished backup at 15-AUG-17

  90. Starting Control File and SPFILE Autobackup at 15-AUG-17
  91. piece handle=c-1343950367-20170815-01 comment=API Version 2.0,MMS Version 10.4.0.4
  92. Finished Control File and SPFILE Autobackup at 15-AUG-17
  93. released channel: oem_sbt_backup1
  94. released channel: oem_sbt_backup2


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


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


  101. RMAN> exit;

  102. Recovery Manager complete.
复制代码
第三天:
  1. Recovery Manager: Release 11.2.0.1.0 - Production on Wed Aug 16 21:30:30 2017

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

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

  6. RMAN>
  7. echo set on


  8. RMAN> run {
  9. 2> allocate channel oem_disk_backup device type disk;
  10. 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
  11. 4> backup incremental level 1 cumulative  copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
  12. 5> release channel oem_disk_backup;
  13. 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  14. 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  15. 8> backup archivelog all not backed up;
  16. 9> }
  17. allocated channel: oem_disk_backup
  18. channel oem_disk_backup: SID=196 device type=DISK

  19. Starting recover at 16-AUG-17
  20. channel oem_disk_backup: starting incremental datafile backup set restore
  21. channel oem_disk_backup: specifying datafile copies to recover
  22. recovering datafile copy file number=00001 name=+FRA/orcl/datafile/system.267.952032625
  23. recovering datafile copy file number=00002 name=+FRA/orcl/datafile/sysaux.266.952032633
  24. recovering datafile copy file number=00003 name=+FRA/orcl/datafile/undotbs1.265.952032641
  25. recovering datafile copy file number=00004 name=+FRA/orcl/datafile/users.263.952032645
  26. recovering datafile copy file number=00005 name=+FRA/orcl/datafile/example.264.952032643
  27. channel oem_disk_backup: reading from backup piece +FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027
  28. channel oem_disk_backup: piece handle=+FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027 tag=ORA_OEM_LEVEL_0
  29. channel oem_disk_backup: restored backup piece 1
  30. channel oem_disk_backup: restore complete, elapsed time: 00:00:03
  31. Finished recover at 16-AUG-17

  32. Starting backup at 16-AUG-17
  33. channel oem_disk_backup: starting incremental level 1 datafile backup set
  34. channel oem_disk_backup: specifying datafile(s) in backup set
  35. input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
  36. input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
  37. input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
  38. input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
  39. input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
  40. channel oem_disk_backup: starting piece 1 at 16-AUG-17
  41. channel oem_disk_backup: finished piece 1 at 16-AUG-17
  42. piece handle=+FRA/orcl/backupset/2017_08_16/nnndn1_ora_oem_level_0_0.270.952205439 tag=ORA_OEM_LEVEL_0 comment=NONE
  43. channel oem_disk_backup: backup set complete, elapsed time: 00:00:03
  44. Finished backup at 16-AUG-17

  45. Starting Control File and SPFILE Autobackup at 16-AUG-17
  46. piece handle=+FRA/orcl/autobackup/2017_08_16/s_952205439.271.952205441 comment=NONE
  47. Finished Control File and SPFILE Autobackup at 16-AUG-17

  48. released channel: oem_disk_backup

  49. allocated channel: oem_sbt_backup1
  50. channel oem_sbt_backup1: SID=196 device type=SBT_TAPE
  51. channel oem_sbt_backup1: Oracle Secure Backup

  52. allocated channel: oem_sbt_backup2
  53. channel oem_sbt_backup2: SID=198 device type=SBT_TAPE
  54. channel oem_sbt_backup2: Oracle Secure Backup

  55. Starting backup at 16-AUG-17
  56. current log archived
  57. skipping archived log file +FRA/orcl/archivelog/2017_08_14/thread_1_seq_27.262.952032659; already backed on 14-AUG-17
  58. channel oem_sbt_backup1: starting archived log backup set
  59. channel oem_sbt_backup1: specifying archived log(s) in backup set
  60. input archived log thread=1 sequence=28 RECID=20 STAMP=952205452
  61. channel oem_sbt_backup1: starting piece 1 at 16-AUG-17
  62. channel oem_sbt_backup1: finished piece 1 at 16-AUG-17
  63. piece handle=1lsc304d_1_1 tag=TAG20170816T213053 comment=API Version 2.0,MMS Version 10.4.0.4
  64. channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:25
  65. Finished backup at 16-AUG-17

  66. Starting Control File and SPFILE Autobackup at 16-AUG-17
  67. piece handle=c-1343950367-20170816-01 comment=API Version 2.0,MMS Version 10.4.0.4
  68. Finished Control File and SPFILE Autobackup at 16-AUG-17
  69. released channel: oem_sbt_backup1
  70. released channel: oem_sbt_backup2


  71. RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
  72. allocated channel: ORA_MAINT_SBT_TAPE_1
  73. channel ORA_MAINT_SBT_TAPE_1: SID=196 device type=SBT_TAPE
  74. channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup


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


  77. RMAN> exit;

  78. Recovery Manager complete.
复制代码
Screenshot-1.png




回复

使用道具 举报

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

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-23 23:14 , Processed in 0.151893 second(s), 27 queries .

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