|
第6次活动:2017-08-14(星期日晚上7:00-10:00)
脚本:
- Daily Script:
- run {
- allocate channel oem_disk_backup device type disk;
- recover copy of database with tag 'ORA_OEM_LEVEL_0';
- backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
- release channel oem_disk_backup;
- allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- backup archivelog all not backed up;
- }
- allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
- Weekly Script:
- run {
- allocate channel oem_disk_backup device type disk;
- recover copy of database with tag 'ORA_OEM_LEVEL_0';
- backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
- release channel oem_disk_backup;
- allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- backup recovery area;
- }
- allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
复制代码 第一天:
- Recovery Manager: Release 11.2.0.1.0 - Production on Mon Aug 14 21:30:24 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- RMAN>
- connected to target database: ORCL (DBID=1343950367)
- using target database control file instead of recovery catalog
- RMAN>
- echo set on
- RMAN> run {
- 2> allocate channel oem_disk_backup device type disk;
- 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
- 4> backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
- 5> release channel oem_disk_backup;
- 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- 8> backup archivelog all not backed up;
- 9> }
- allocated channel: oem_disk_backup
- channel oem_disk_backup: SID=72 device type=DISK
- Starting recover at 14-AUG-17
- no copy of datafile 1 found to recover
- no copy of datafile 2 found to recover
- no copy of datafile 3 found to recover
- no copy of datafile 4 found to recover
- no copy of datafile 5 found to recover
- Finished recover at 14-AUG-17
- Starting backup at 14-AUG-17
- no parent backup or copy of datafile 1 found
- no parent backup or copy of datafile 2 found
- no parent backup or copy of datafile 3 found
- no parent backup or copy of datafile 5 found
- no parent backup or copy of datafile 4 found
- channel oem_disk_backup: starting datafile copy
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- output file name=+FRA/orcl/datafile/system.267.952032625 tag=ORA_OEM_LEVEL_0 RECID=2 STAMP=952032629
- channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
- channel oem_disk_backup: starting datafile copy
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- output file name=+FRA/orcl/datafile/sysaux.266.952032633 tag=ORA_OEM_LEVEL_0 RECID=3 STAMP=952032635
- channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:07
- channel oem_disk_backup: starting datafile copy
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- output file name=+FRA/orcl/datafile/undotbs1.265.952032641 tag=ORA_OEM_LEVEL_0 RECID=4 STAMP=952032640
- channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:03
- channel oem_disk_backup: starting datafile copy
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- output file name=+FRA/orcl/datafile/example.264.952032643 tag=ORA_OEM_LEVEL_0 RECID=5 STAMP=952032643
- channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
- channel oem_disk_backup: starting datafile copy
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- output file name=+FRA/orcl/datafile/users.263.952032645 tag=ORA_OEM_LEVEL_0 RECID=6 STAMP=952032644
- channel oem_disk_backup: datafile copy complete, elapsed time: 00:00:01
- Finished backup at 14-AUG-17
- Starting Control File and SPFILE Autobackup at 14-AUG-17
- piece handle=+FRA/orcl/autobackup/2017_08_14/s_952032645.261.952032645 comment=NONE
- Finished Control File and SPFILE Autobackup at 14-AUG-17
- released channel: oem_disk_backup
复制代码
第二天:
- Recovery Manager: Release 11.2.0.1.0 - Production on Tue Aug 15 21:30:24 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- RMAN>
- connected to target database: ORCL (DBID=1343950367)
- using target database control file instead of recovery catalog
- RMAN>
- echo set on
- RMAN> run {
- 2> allocate channel oem_disk_backup device type disk;
- 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
- 4> backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
- 5> release channel oem_disk_backup;
- 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- 8> backup recovery area;
- 9> }
- allocated channel: oem_disk_backup
- channel oem_disk_backup: SID=196 device type=DISK
- Starting recover at 15-AUG-17
- no copy of datafile 1 found to recover
- no copy of datafile 2 found to recover
- no copy of datafile 3 found to recover
- no copy of datafile 4 found to recover
- no copy of datafile 5 found to recover
- Finished recover at 15-AUG-17
- Starting backup at 15-AUG-17
- channel oem_disk_backup: starting incremental level 1 datafile backup set
- channel oem_disk_backup: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel oem_disk_backup: starting piece 1 at 15-AUG-17
- channel oem_disk_backup: finished piece 1 at 15-AUG-17
- piece handle=+FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027 tag=ORA_OEM_LEVEL_0 comment=NONE
- channel oem_disk_backup: backup set complete, elapsed time: 00:00:03
- Finished backup at 15-AUG-17
- Starting Control File and SPFILE Autobackup at 15-AUG-17
- piece handle=+FRA/orcl/autobackup/2017_08_15/s_952119029.269.952119029 comment=NONE
- Finished Control File and SPFILE Autobackup at 15-AUG-17
- released channel: oem_disk_backup
- allocated channel: oem_sbt_backup1
- channel oem_sbt_backup1: SID=196 device type=SBT_TAPE
- channel oem_sbt_backup1: Oracle Secure Backup
- allocated channel: oem_sbt_backup2
- channel oem_sbt_backup2: SID=71 device type=SBT_TAPE
- channel oem_sbt_backup2: Oracle Secure Backup
- Starting backup at 15-AUG-17
- skipping archived log file +FRA/orcl/archivelog/2017_08_14/thread_1_seq_27.262.952032659; already backed up 1 time(s)
- channel oem_sbt_backup1: starting full datafile backup set
- channel oem_sbt_backup1: including datafile copy of datafile 00001 in backup set
- input file name=+FRA/orcl/datafile/system.267.952032625
- channel oem_sbt_backup1: including datafile copy of datafile 00005 in backup set
- input file name=+FRA/orcl/datafile/example.264.952032643
- channel oem_sbt_backup1: starting piece 1 at 15-AUG-17
- channel oem_sbt_backup2: starting full datafile backup set
- channel oem_sbt_backup2: including datafile copy of datafile 00002 in backup set
- input file name=+FRA/orcl/datafile/sysaux.266.952032633
- channel oem_sbt_backup2: including datafile copy of datafile 00003 in backup set
- input file name=+FRA/orcl/datafile/undotbs1.265.952032641
- channel oem_sbt_backup2: including datafile copy of datafile 00004 in backup set
- input file name=+FRA/orcl/datafile/users.263.952032645
- channel oem_sbt_backup2: starting piece 1 at 15-AUG-17
- channel oem_sbt_backup1: finished piece 1 at 15-AUG-17
- piece handle=1gsc0bo2_1_1 tag=TAG20170815T213042 comment=API Version 2.0,MMS Version 10.4.0.4
- channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:36
- channel oem_sbt_backup2: finished piece 1 at 15-AUG-17
- piece handle=1hsc0bo2_1_1 tag=TAG20170815T213042 comment=API Version 2.0,MMS Version 10.4.0.4
- channel oem_sbt_backup2: backup set complete, elapsed time: 00:00:35
- channel oem_sbt_backup1: input backup set: count=43, stamp=952032645, piece=1
- channel oem_sbt_backup1: starting piece 1 at 15-AUG-17
- channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_08_14/s_952032645.261.952032645
- channel oem_sbt_backup2: input backup set: count=46, stamp=952119026, piece=1
- channel oem_sbt_backup2: starting piece 1 at 15-AUG-17
- channel oem_sbt_backup2: backup piece +FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027
- piece handle=c-1343950367-20170814-00 comment=API Version 2.0,MMS Version 10.4.0.4
- channel oem_sbt_backup1: finished piece 1 at 15-AUG-17
- channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:25
- channel oem_sbt_backup1: input backup set: count=47, stamp=952119029, piece=1
- channel oem_sbt_backup1: starting piece 1 at 15-AUG-17
- channel oem_sbt_backup1: backup piece +FRA/orcl/autobackup/2017_08_15/s_952119029.269.952119029
- piece handle=1esc0bni_1_2 comment=API Version 2.0,MMS Version 10.4.0.4
- channel oem_sbt_backup2: finished piece 1 at 15-AUG-17
- channel oem_sbt_backup2: backup piece complete, elapsed time: 00:00:25
- piece handle=c-1343950367-20170815-00 comment=API Version 2.0,MMS Version 10.4.0.4
- channel oem_sbt_backup1: finished piece 1 at 15-AUG-17
- channel oem_sbt_backup1: backup piece complete, elapsed time: 00:00:25
- Finished backup at 15-AUG-17
- Starting Control File and SPFILE Autobackup at 15-AUG-17
- piece handle=c-1343950367-20170815-01 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 15-AUG-17
- released channel: oem_sbt_backup1
- released channel: oem_sbt_backup2
- RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- allocated channel: ORA_MAINT_SBT_TAPE_1
- channel ORA_MAINT_SBT_TAPE_1: SID=196 device type=SBT_TAPE
- channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup
- RMAN> delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
- no obsolete backups found
- RMAN> exit;
- Recovery Manager complete.
复制代码 第三天:
- Recovery Manager: Release 11.2.0.1.0 - Production on Wed Aug 16 21:30:30 2017
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- RMAN>
- connected to target database: ORCL (DBID=1343950367)
- using target database control file instead of recovery catalog
- RMAN>
- echo set on
- RMAN> run {
- 2> allocate channel oem_disk_backup device type disk;
- 3> recover copy of database with tag 'ORA_OEM_LEVEL_0';
- 4> backup incremental level 1 cumulative copies=1 for recover of copy with tag 'ORA_OEM_LEVEL_0' database;
- 5> release channel oem_disk_backup;
- 6> allocate channel oem_sbt_backup1 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- 7> allocate channel oem_sbt_backup2 type 'SBT_TAPE' format '%U' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- 8> backup archivelog all not backed up;
- 9> }
- allocated channel: oem_disk_backup
- channel oem_disk_backup: SID=196 device type=DISK
- Starting recover at 16-AUG-17
- channel oem_disk_backup: starting incremental datafile backup set restore
- channel oem_disk_backup: specifying datafile copies to recover
- recovering datafile copy file number=00001 name=+FRA/orcl/datafile/system.267.952032625
- recovering datafile copy file number=00002 name=+FRA/orcl/datafile/sysaux.266.952032633
- recovering datafile copy file number=00003 name=+FRA/orcl/datafile/undotbs1.265.952032641
- recovering datafile copy file number=00004 name=+FRA/orcl/datafile/users.263.952032645
- recovering datafile copy file number=00005 name=+FRA/orcl/datafile/example.264.952032643
- channel oem_disk_backup: reading from backup piece +FRA/orcl/backupset/2017_08_15/nnndn1_ora_oem_level_0_0.268.952119027
- 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
- channel oem_disk_backup: restored backup piece 1
- channel oem_disk_backup: restore complete, elapsed time: 00:00:03
- Finished recover at 16-AUG-17
- Starting backup at 16-AUG-17
- channel oem_disk_backup: starting incremental level 1 datafile backup set
- channel oem_disk_backup: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
- channel oem_disk_backup: starting piece 1 at 16-AUG-17
- channel oem_disk_backup: finished piece 1 at 16-AUG-17
- piece handle=+FRA/orcl/backupset/2017_08_16/nnndn1_ora_oem_level_0_0.270.952205439 tag=ORA_OEM_LEVEL_0 comment=NONE
- channel oem_disk_backup: backup set complete, elapsed time: 00:00:03
- Finished backup at 16-AUG-17
- Starting Control File and SPFILE Autobackup at 16-AUG-17
- piece handle=+FRA/orcl/autobackup/2017_08_16/s_952205439.271.952205441 comment=NONE
- Finished Control File and SPFILE Autobackup at 16-AUG-17
- released channel: oem_disk_backup
- allocated channel: oem_sbt_backup1
- channel oem_sbt_backup1: SID=196 device type=SBT_TAPE
- channel oem_sbt_backup1: Oracle Secure Backup
- allocated channel: oem_sbt_backup2
- channel oem_sbt_backup2: SID=198 device type=SBT_TAPE
- channel oem_sbt_backup2: Oracle Secure Backup
- Starting backup at 16-AUG-17
- current log archived
- skipping archived log file +FRA/orcl/archivelog/2017_08_14/thread_1_seq_27.262.952032659; already backed on 14-AUG-17
- channel oem_sbt_backup1: starting archived log backup set
- channel oem_sbt_backup1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=28 RECID=20 STAMP=952205452
- channel oem_sbt_backup1: starting piece 1 at 16-AUG-17
- channel oem_sbt_backup1: finished piece 1 at 16-AUG-17
- piece handle=1lsc304d_1_1 tag=TAG20170816T213053 comment=API Version 2.0,MMS Version 10.4.0.4
- channel oem_sbt_backup1: backup set complete, elapsed time: 00:00:25
- Finished backup at 16-AUG-17
- Starting Control File and SPFILE Autobackup at 16-AUG-17
- piece handle=c-1343950367-20170816-01 comment=API Version 2.0,MMS Version 10.4.0.4
- Finished Control File and SPFILE Autobackup at 16-AUG-17
- released channel: oem_sbt_backup1
- released channel: oem_sbt_backup2
- RMAN> allocate channel for maintenance device type 'SBT_TAPE' parms 'ENV=(OB_MEDIA_FAMILY=station90)';
- allocated channel: ORA_MAINT_SBT_TAPE_1
- channel ORA_MAINT_SBT_TAPE_1: SID=196 device type=SBT_TAPE
- channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup
- RMAN> delete noprompt obsolete recovery window of 31 days device type 'SBT_TAPE';
- no obsolete backups found
- RMAN> exit;
- Recovery Manager complete.
复制代码
|
|