|
增量备份和判断需要多少段增量备份的命令:
- [oracle@station87 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat Jun 9 17:33:46 2018
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- RMAN> list archivelog all;
- using target database control file instead of recovery catalog
- List of Archived Log Copies for database with db_unique_name ORCL
- =====================================================================
- Key Thrd Seq S Low Time
- ------- ---- ------- - -------------------
- 44 1 48 A 2018-06-08:00:44:31
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_48.278.978227071
- 45 1 49 A 2018-06-08:01:44:31
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_49.275.978227073
- 46 1 50 A 2018-06-08:01:44:32
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_50.277.978227077
- 47 1 51 A 2018-06-08:01:44:35
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_51.276.978227079
- 48 1 52 A 2018-06-08:01:44:38
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_52.274.978227083
- 49 1 53 A 2018-06-08:01:44:41
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_53.273.978227085
- 50 1 54 A 2018-06-08:01:44:44
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_54.272.978227785
- 51 1 55 A 2018-06-08:01:56:25
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_55.271.978227787
- 52 1 56 A 2018-06-08:01:56:25
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_56.270.978227787
- 53 1 57 A 2018-06-08:01:56:26
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_57.267.978227789
- 54 1 58 A 2018-06-08:01:56:29
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_58.260.978227793
- 55 1 59 A 2018-06-08:01:56:32
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_59.269.978227793
- 56 1 60 A 2018-06-08:01:56:33
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_60.287.978228469
- 57 1 61 A 2018-06-08:02:07:49
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_61.286.978228471
- 58 1 62 A 2018-06-08:02:07:49
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_62.285.978228471
- 59 1 63 A 2018-06-08:02:07:50
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_63.284.978228473
- 60 1 64 A 2018-06-08:02:07:53
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_64.283.978228477
- 61 1 65 A 2018-06-08:02:07:56
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_65.282.978228477
- 62 1 66 A 2018-06-08:02:07:56
- Name: +FRA/orcl/archivelog/2018_06_06/thread_1_seq_66.281.978065947
- 63 1 67 A 2018-06-06:04:59:06
- Name: +FRA/orcl/archivelog/2018_06_06/thread_1_seq_67.280.978120771
- 64 1 68 A 2018-06-06:20:12:51
- Name: +FRA/orcl/archivelog/2018_06_07/thread_1_seq_68.279.978195181
- 65 1 69 A 2018-06-07:16:53:00
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_69.268.978236523
- 66 1 70 A 2018-06-08:04:22:01
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_70.262.978236529
- 67 1 71 A 2018-06-08:04:22:06
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_71.263.978236623
- 68 1 72 A 2018-06-08:04:23:43
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_72.266.978236639
- 69 1 73 A 2018-06-08:04:23:57
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_73.265.978236653
- 70 1 74 A 2018-06-08:04:24:10
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_74.264.978236663
- 71 1 75 A 2018-06-08:04:24:21
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_75.261.978237207
- 72 1 76 A 2018-06-08:04:33:25
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_76.288.978237221
- 73 1 77 A 2018-06-08:04:33:39
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_77.289.978237229
- 74 1 78 A 2018-06-08:04:33:46
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_78.290.978237241
- 75 1 79 A 2018-06-08:04:34:01
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_79.291.978237573
- 76 1 80 A 2018-06-08:04:39:31
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_80.292.978237583
- 77 1 81 A 2018-06-08:04:39:42
- Name: +FRA/orcl/archivelog/2018_06_08/thread_1_seq_81.293.978239425
- 78 1 82 A 2018-06-08:05:10:25
- Name: +FRA/orcl/archivelog/2018_06_09/thread_1_seq_82.296.978315691
- 79 1 83 A 2018-06-09:02:21:30
- Name: +FRA/orcl/archivelog/2018_06_09/thread_1_seq_83.312.978328975
- 80 1 84 A 2018-06-09:06:02:55
- Name: +FRA/orcl/archivelog/2018_06_09/thread_1_seq_84.317.978369677
- RMAN> backup tag '1T_ARCH78-80' archivelog from sequence 78 until sequence 80;
- Starting backup at 2018-06-09:17:35:40
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=10 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=12 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- 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=78 RECID=74 STAMP=978237243
- input archived log thread=1 sequence=79 RECID=75 STAMP=978237574
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:17:35:50
- channel ORA_SBT_TAPE_2: starting archived log backup set
- channel ORA_SBT_TAPE_2: specifying archived log(s) in backup set
- input archived log thread=1 sequence=80 RECID=76 STAMP=978237586
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:17:35:50
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 06/09/2018 17:35:50
- ORA-19914: unable to encrypt backup
- ORA-28365: wallet is not open
- RMAN> show all;
- RMAN configuration parameters for database with db_unique_name ORCL are:
- CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 1 DAYS;
- CONFIGURE BACKUP OPTIMIZATION ON;
- CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
- CONFIGURE CONTROLFILE AUTOBACKUP ON;
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
- CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
- CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
- CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
- CONFIGURE CHANNEL 1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station87)';
- CONFIGURE CHANNEL 2 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station87)';
- CONFIGURE MAXSETSIZE TO UNLIMITED; # default
- CONFIGURE ENCRYPTION FOR DATABASE ON;
- CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
- CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
- CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
- CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_orcl.f'; # default
- RMAN> CONFIGURE ENCRYPTION FOR DATABASE off;
- old RMAN configuration parameters:
- CONFIGURE ENCRYPTION FOR DATABASE ON;
- new RMAN configuration parameters:
- CONFIGURE ENCRYPTION FOR DATABASE OFF;
- new RMAN configuration parameters are successfully stored
- RMAN> backup tag '1T_ARCH78-80' archivelog from sequence 78 until sequence 80;
- Starting backup at 2018-06-09:17:36:08
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- 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=78 RECID=74 STAMP=978237243
- input archived log thread=1 sequence=79 RECID=75 STAMP=978237574
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:17:36:08
- channel ORA_SBT_TAPE_2: starting archived log backup set
- channel ORA_SBT_TAPE_2: specifying archived log(s) in backup set
- input archived log thread=1 sequence=80 RECID=76 STAMP=978237586
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:17:36:08
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:17:37:23
- piece handle=2st51g08_1_1 tag=1T_ARCH78-80 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:15
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:17:37:33
- piece handle=2tt51g08_1_1 tag=1T_ARCH78-80 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:25
- Finished backup at 2018-06-09:17:37:33
- Starting Control File and SPFILE Autobackup at 2018-06-09:17:37:33
- piece handle=c-1359978017-20180609-00 comment=API Version 2.0,MMS Version 10.3.0.2
- Finished Control File and SPFILE Autobackup at 2018-06-09:17:38:18
- RMAN> list backup;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 65 Incr 0 436.25M SBT_TAPE 00:01:00 2018-06-08:01:08:17
- BP Key: 71 Status: AVAILABLE Compressed: NO Tag: 1T_SYSAUX_INCR0
- Handle: 2ct4t1m5_1_1 Media: station87-000008
- List of Datafiles in backup set 65
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 2 0 Incr 1155660 2018-06-08:01:07:17 +DATA/orcl/datafile/sysaux.257.832197065
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 66 Full 10.00M SBT_TAPE 00:00:39 2018-06-08:01:09:01
- BP Key: 72 Status: AVAILABLE Compressed: NO Tag: TAG20180608T010822
- Handle: c-1359978017-20180608-07 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1155709 Ckp time: 2018-06-08:01:08:22
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 67 Incr 0 86.50M SBT_TAPE 00:00:53 2018-06-08:01:13:00
- BP Key: 73 Status: AVAILABLE Compressed: YES Tag: 2TC_SYSAUX_INCR0
- Handle: 2et4t1v7_1_1 Media: station87-000008
- List of Datafiles in backup set 67
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 2 0 Incr 1155986 2018-06-08:01:12:07 +DATA/orcl/datafile/sysaux.257.832197065
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 68 Full 10.00M SBT_TAPE 00:00:41 2018-06-08:01:13:43
- BP Key: 74 Status: AVAILABLE Compressed: NO Tag: TAG20180608T011302
- Handle: c-1359978017-20180608-08 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1156051 Ckp time: 2018-06-08:01:13:02
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 70 Full 10.00M SBT_TAPE 00:00:27 2018-06-08:01:42:19
- BP Key: 76 Status: AVAILABLE Compressed: NO Tag: TAG20180608T014152
- Handle: c-1359978017-20180608-09 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1157970 Ckp time: 2018-06-08:01:41:52
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 71 Incr 0 3.50M SBT_TAPE 00:00:56 2018-06-08:02:04:36
- BP Key: 77 Status: AVAILABLE Compressed: NO Tag: 4TEDUAL_USERS_INCR0
- Handle: 2kt4t4vs_1_1 Media: station87-000008
- List of Datafiles in backup set 71
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 0 Incr 1160195 2018-06-08:02:03:40 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 72 Full 10.00M SBT_TAPE 00:00:37 2018-06-08:02:05:22
- BP Key: 78 Status: AVAILABLE Compressed: NO Tag: TAG20180608T020445
- Handle: c-1359978017-20180608-0a Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:02:04:15
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1160247 Ckp time: 2018-06-08:02:04:45
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ -------------------
- 73 87.00M SBT_TAPE 00:01:13 2018-06-09:17:37:21
- BP Key: 79 Status: AVAILABLE Compressed: NO Tag: 1T_ARCH78-80
- Handle: 2st51g08_1_1 Media: station87-000008
- List of Archived Logs in backup set 73
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- ------------------- ---------- ---------
- 1 78 1323993 2018-06-08:04:33:46 1328678 2018-06-08:04:34:01
- 1 79 1328678 2018-06-08:04:34:01 1340398 2018-06-08:04:39:31
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ -------------------
- 74 46.00M SBT_TAPE 00:01:20 2018-06-09:17:37:28
- BP Key: 80 Status: AVAILABLE Compressed: NO Tag: 1T_ARCH78-80
- Handle: 2tt51g08_1_1 Media: station87-000009
- List of Archived Logs in backup set 74
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- ------------------- ---------- ---------
- 1 80 1340398 2018-06-08:04:39:31 1344895 2018-06-08:04:39:42
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 75 Full 10.00M SBT_TAPE 00:00:36 2018-06-09:17:38:09
- BP Key: 81 Status: AVAILABLE Compressed: NO Tag: TAG20180609T173733
- Handle: c-1359978017-20180609-00 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408511 Ckp time: 2018-06-09:17:37:33
- RMAN> backup tag '2T_USERS_INCR1' incremental level 1 tablespace users;
- Starting backup at 2018-06-09:17:42:44
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting incremental level 1 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:17:42:44
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:17:43:39
- piece handle=2vt51gck_1_1 tag=2T_USERS_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:55
- Finished backup at 2018-06-09:17:43:39
- Starting Control File and SPFILE Autobackup at 2018-06-09:17:43:39
- piece handle=c-1359978017-20180609-01 comment=API Version 2.0,MMS Version 10.3.0.2
- Finished Control File and SPFILE Autobackup at 2018-06-09:17:44:24
- RMAN> list backup of tablespace users;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 71 Incr 0 3.50M SBT_TAPE 00:00:56 2018-06-08:02:04:36
- BP Key: 77 Status: AVAILABLE Compressed: NO Tag: 4TEDUAL_USERS_INCR0
- Handle: 2kt4t4vs_1_1 Media: station87-000008
- List of Datafiles in backup set 71
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 0 Incr 1160195 2018-06-08:02:03:40 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 76 Incr 1 30.50M SBT_TAPE 00:00:48 2018-06-09:17:43:32
- BP Key: 82 Status: AVAILABLE Compressed: NO Tag: 2T_USERS_INCR1
- Handle: 2vt51gck_1_1 Media: station87-000009
- List of Datafiles in backup set 76
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1408699 2018-06-09:17:42:44 +DATA/orcl/datafile/users.259.978228669
- RMAN> report need backup incremental 1;
- Report of files that need more than 1 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- RMAN> report need backup incremental 0;
- Report of files that need more than 0 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- 4 1 +DATA/orcl/datafile/users.259.978228669
- RMAN> report need backup incremental 1;
- Report of files that need more than 1 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- RMAN> backup tag '3T_USERS_INCR1' incremental level 1 tablespace users;
- Starting backup at 2018-06-09:17:46:30
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting incremental level 1 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:17:46:30
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:17:47:15
- piece handle=31t51gjm_1_1 tag=3T_USERS_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:45
- Finished backup at 2018-06-09:17:47:15
- Starting Control File and SPFILE Autobackup at 2018-06-09:17:47:15
- piece handle=c-1359978017-20180609-02 comment=API Version 2.0,MMS Version 10.3.0.2
- Finished Control File and SPFILE Autobackup at 2018-06-09:17:48:00
- RMAN>
复制代码
以下两个命令表示需要2个以上的增量备份记录段才能恢复完成的那些对象(表空间、数据库):
- RMAN> report need backup incremental 1;
- Report of files that need more than 1 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- 4 2 +DATA/orcl/datafile/users.259.978228669
复制代码- RMAN> backup tag '4T_USERS_INCR1C' incremental level 1 cumulative tablespace users;
- Starting backup at 2018-06-09:17:54:38
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting incremental level 1 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:17:54:38
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:17:55:33
- piece handle=33t51h2u_1_1 tag=4T_USERS_INCR1C comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:55
- Finished backup at 2018-06-09:17:55:33
- Starting Control File and SPFILE Autobackup at 2018-06-09:17:55:33
- piece handle=c-1359978017-20180609-03 comment=API Version 2.0,MMS Version 10.3.0.2
- Finished Control File and SPFILE Autobackup at 2018-06-09:17:56:08
- RMAN> report need backup incremental 1;
- Report of files that need more than 1 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- RMAN> report need backup incremental 0;
- Report of files that need more than 0 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- 4 1 +DATA/orcl/datafile/users.259.978228669
- RMAN>
复制代码
有了累积增量备份,就不需要之前做的那些差分增量备份:
- RMAN> backup tag '4T_USERS_INCR1C' incremental level 1 cumulative tablespace users;
- Starting backup at 2018-06-09:17:54:38
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_1: starting incremental level 1 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:17:54:38
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:17:55:33
- piece handle=33t51h2u_1_1 tag=4T_USERS_INCR1C comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:55
- Finished backup at 2018-06-09:17:55:33
- Starting Control File and SPFILE Autobackup at 2018-06-09:17:55:33
- piece handle=c-1359978017-20180609-03 comment=API Version 2.0,MMS Version 10.3.0.2
- Finished Control File and SPFILE Autobackup at 2018-06-09:17:56:08
- RMAN> report need backup incremental 1;
- Report of files that need more than 1 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- RMAN> report need backup incremental 0;
- Report of files that need more than 0 incrementals during recovery
- File Incrementals Name
- ---- ------------ ----------------------------------------------
- 4 1 +DATA/orcl/datafile/users.259.978228669
复制代码
加速增量备份的速度:
- SQL> alter database enable block change tracking using file '+fra';
- Database altered.
- SQL> exit
- Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
- With the Partitioning, Automatic Storage Management, OLAP, Data Mining
- and Real Application Testing options
- [oracle@station87 ~]$ ps aux | grep ora_ctwr
- oracle 29589 0.0 0.4 960752 17992 ? Ss 18:05 0:00 ora_ctwr_orcl
- oracle 29604 0.0 0.0 4220 628 pts/1 S+ 18:05 0:00 grep ora_ctwr
- [oracle@station87 ~]$
复制代码- [oracle@station87 ~]$ sqlplus /nolog
- SQL*Plus: Release 11.2.0.1.0 Production on Sat Jun 9 18:06:58 2018
- Copyright (c) 1982, 2009, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected.
- SQL> set linesize 1000
- SQL> select * from v$block_change_tracking;
- STATUS FILENAME BYTES
- ---------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------
- ENABLED +FRA/orcl/changetracking/ctf.320.978372301 11599872
复制代码
对磁盘上的备份集,再备份,目的都是为了转移它们到磁带机:
maxpiecesize开片方式,任何时候都只有一个通道在运行:
- ob> lsjob
- Job ID Sched time Contents State
- ---------------- ----------- ------------------------------ ---------------------------------------
- oracle/69 none database orcl (dbid=1359978017) processed; Oracle job(s) scheduled
- oracle/69.1 none incremental backup running since 2018/0
复制代码 section size开片方式,任何时候都有并行度:
- ob> lsjob
- Job ID Sched time Contents State
- ---------------- ----------- ------------------------------ ---------------------------------------
- oracle/70 none database orcl (dbid=1359978017) processed; Oracle job(s) scheduled
- oracle/70.1 none incremental backup running since 2018/06/09.18:44
- oracle/70.2 none incremental backup running since 2018/06/09.18:44
复制代码- RMAN> run {
- 2> allocate channel c1 DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(OB_MEDIA_FAMILY=station87)' maxpiecesize 200M;
- 3> backup tag '5T_SYSTEM_INCR0' copies 1 incremental level 0 tablespace system;
- 4> release channel c1;
- 5> }
- released channel: ORA_SBT_TAPE_1
- released channel: ORA_SBT_TAPE_2
- allocated channel: c1
- channel c1: SID=72 device type=SBT_TAPE
- channel c1: Oracle Secure Backup
- Starting backup at 2018-06-09:18:37:49
- channel c1: starting incremental level 0 datafile backup set
- channel c1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- channel c1: starting piece 1 at 2018-06-09:18:37:49
- channel c1: finished piece 1 at 2018-06-09:18:38:52
- piece handle=38t51jjt_1_1 tag=5T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel c1: starting piece 2 at 2018-06-09:18:38:52
- channel c1: finished piece 2 at 2018-06-09:18:39:37
- piece handle=38t51jjt_2_1 tag=5T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel c1: starting piece 3 at 2018-06-09:18:39:37
- channel c1: finished piece 3 at 2018-06-09:18:40:32
- piece handle=38t51jjt_3_1 tag=5T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel c1: backup set complete, elapsed time: 00:02:43
- channel c1: starting incremental level 0 datafile backup set
- channel c1: specifying datafile(s) in backup set
- including current control file in backup set
- including current SPFILE in backup set
- channel c1: starting piece 1 at 2018-06-09:18:40:33
- channel c1: finished piece 1 at 2018-06-09:18:41:18
- piece handle=39t51jp0_1_1 tag=5T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel c1: backup set complete, elapsed time: 00:00:45
- Finished backup at 2018-06-09:18:41:18
- released channel: c1
- RMAN> list backup;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 65 Incr 0 436.25M SBT_TAPE 00:01:00 2018-06-08:01:08:17
- BP Key: 71 Status: AVAILABLE Compressed: NO Tag: 1T_SYSAUX_INCR0
- Handle: 2ct4t1m5_1_1 Media: station87-000008
- List of Datafiles in backup set 65
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 2 0 Incr 1155660 2018-06-08:01:07:17 +DATA/orcl/datafile/sysaux.257.832197065
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 66 Full 10.00M SBT_TAPE 00:00:39 2018-06-08:01:09:01
- BP Key: 72 Status: AVAILABLE Compressed: NO Tag: TAG20180608T010822
- Handle: c-1359978017-20180608-07 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1155709 Ckp time: 2018-06-08:01:08:22
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 67 Incr 0 86.50M SBT_TAPE 00:00:53 2018-06-08:01:13:00
- BP Key: 73 Status: AVAILABLE Compressed: YES Tag: 2TC_SYSAUX_INCR0
- Handle: 2et4t1v7_1_1 Media: station87-000008
- List of Datafiles in backup set 67
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 2 0 Incr 1155986 2018-06-08:01:12:07 +DATA/orcl/datafile/sysaux.257.832197065
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 68 Full 10.00M SBT_TAPE 00:00:41 2018-06-08:01:13:43
- BP Key: 74 Status: AVAILABLE Compressed: NO Tag: TAG20180608T011302
- Handle: c-1359978017-20180608-08 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1156051 Ckp time: 2018-06-08:01:13:02
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 70 Full 10.00M SBT_TAPE 00:00:27 2018-06-08:01:42:19
- BP Key: 76 Status: AVAILABLE Compressed: NO Tag: TAG20180608T014152
- Handle: c-1359978017-20180608-09 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1157970 Ckp time: 2018-06-08:01:41:52
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 71 Incr 0 3.50M SBT_TAPE 00:00:56 2018-06-08:02:04:36
- BP Key: 77 Status: AVAILABLE Compressed: NO Tag: 4TEDUAL_USERS_INCR0
- Handle: 2kt4t4vs_1_1 Media: station87-000008
- List of Datafiles in backup set 71
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 0 Incr 1160195 2018-06-08:02:03:40 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 72 Full 10.00M SBT_TAPE 00:00:37 2018-06-08:02:05:22
- BP Key: 78 Status: AVAILABLE Compressed: NO Tag: TAG20180608T020445
- Handle: c-1359978017-20180608-0a Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:02:04:15
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1160247 Ckp time: 2018-06-08:02:04:45
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ -------------------
- 73 87.00M SBT_TAPE 00:01:13 2018-06-09:17:37:21
- BP Key: 79 Status: AVAILABLE Compressed: NO Tag: 1T_ARCH78-80
- Handle: 2st51g08_1_1 Media: station87-000008
- List of Archived Logs in backup set 73
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- ------------------- ---------- ---------
- 1 78 1323993 2018-06-08:04:33:46 1328678 2018-06-08:04:34:01
- 1 79 1328678 2018-06-08:04:34:01 1340398 2018-06-08:04:39:31
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ -------------------
- 74 46.00M SBT_TAPE 00:01:20 2018-06-09:17:37:28
- BP Key: 80 Status: AVAILABLE Compressed: NO Tag: 1T_ARCH78-80
- Handle: 2tt51g08_1_1 Media: station87-000009
- List of Archived Logs in backup set 74
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- ------------------- ---------- ---------
- 1 80 1340398 2018-06-08:04:39:31 1344895 2018-06-08:04:39:42
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 75 Full 10.00M SBT_TAPE 00:00:36 2018-06-09:17:38:09
- BP Key: 81 Status: AVAILABLE Compressed: NO Tag: TAG20180609T173733
- Handle: c-1359978017-20180609-00 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408511 Ckp time: 2018-06-09:17:37:33
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 76 Incr 1 30.50M SBT_TAPE 00:00:48 2018-06-09:17:43:32
- BP Key: 82 Status: AVAILABLE Compressed: NO Tag: 2T_USERS_INCR1
- Handle: 2vt51gck_1_1 Media: station87-000009
- List of Datafiles in backup set 76
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1408699 2018-06-09:17:42:44 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 77 Full 10.00M SBT_TAPE 00:00:42 2018-06-09:17:44:21
- BP Key: 83 Status: AVAILABLE Compressed: NO Tag: TAG20180609T174339
- Handle: c-1359978017-20180609-01 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408731 Ckp time: 2018-06-09:17:43:39
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 78 Incr 1 256.00K SBT_TAPE 00:00:35 2018-06-09:17:47:05
- BP Key: 84 Status: AVAILABLE Compressed: NO Tag: 3T_USERS_INCR1
- Handle: 31t51gjm_1_1 Media: station87-000009
- List of Datafiles in backup set 78
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1408937 2018-06-09:17:46:30 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 79 Full 10.00M SBT_TAPE 00:00:37 2018-06-09:17:47:52
- BP Key: 85 Status: AVAILABLE Compressed: NO Tag: TAG20180609T174715
- Handle: c-1359978017-20180609-02 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408966 Ckp time: 2018-06-09:17:47:15
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 80 Incr 1 30.50M SBT_TAPE 00:00:47 2018-06-09:17:55:25
- BP Key: 86 Status: AVAILABLE Compressed: NO Tag: 4T_USERS_INCR1C
- Handle: 33t51h2u_1_1 Media: station87-000009
- List of Datafiles in backup set 80
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1409298 2018-06-09:17:54:38 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 81 Full 10.00M SBT_TAPE 00:00:28 2018-06-09:17:56:01
- BP Key: 87 Status: AVAILABLE Compressed: NO Tag: TAG20180609T175533
- Handle: c-1359978017-20180609-03 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1409338 Ckp time: 2018-06-09:17:55:33
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 82 Full 33.70M SBT_TAPE 00:00:02 2018-06-09:18:14:10
- BP Key: 90 Status: AVAILABLE Compressed: NO Tag: TAG20180609T181408
- Handle: 35t51i7g_1_2 Media: station87-000009
- List of Datafiles in backup set 82
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 Full 1410584 2018-06-09:18:14:08 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 83 Full 9.86M DISK 00:00:01 2018-06-09:18:14:12
- BP Key: 89 Status: AVAILABLE Compressed: NO Tag: TAG20180609T181411
- Piece Name: +FRA/orcl/autobackup/2018_06_09/s_978372851.322.978372853
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1410592 Ckp time: 2018-06-09:18:14:11
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 84 Full 10.00M SBT_TAPE 00:00:38 2018-06-09:18:16:59
- BP Key: 91 Status: AVAILABLE Compressed: NO Tag: TAG20180609T181621
- Handle: c-1359978017-20180609-05 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:18:15:20
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1410754 Ckp time: 2018-06-09:18:16:21
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 85 Incr 0 597.50M SBT_TAPE 00:02:39 2018-06-09:18:40:28
- List of Datafiles in backup set 85
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 1 0 Incr 1411610 2018-06-09:18:37:49 +DATA/orcl/datafile/system.256.832197063
- Backup Set Copy #1 of backup set 85
- Device Type Elapsed Time Completion Time Compressed Tag
- ----------- ------------ ------------------- ---------- ---
- SBT_TAPE 00:02:39 2018-06-09:18:40:28 NO 5T_SYSTEM_INCR0
- List of Backup Pieces for backup set 85 Copy #1
- BP Key Pc# Status Media Piece Name
- ------- --- ----------- ----------------------- ----------
- 92 1 AVAILABLE station87-000009 38t51jjt_1_1
- 93 2 AVAILABLE station87-000009 38t51jjt_2_1
- 94 3 AVAILABLE station87-000009 38t51jjt_3_1
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 86 Incr 0 10.00M SBT_TAPE 00:00:42 2018-06-09:18:41:14
- BP Key: 95 Status: AVAILABLE Compressed: NO Tag: 5T_SYSTEM_INCR0
- Handle: 39t51jp0_1_1 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:18:38:42
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1411697 Ckp time: 2018-06-09:18:40:32
- RMAN> backup section size 200M tag '6T_SYSTEM_INCR0' copies 1 incremental level 0 tablespace system;
- Starting backup at 2018-06-09:18:43:54
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=72 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=197 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of backup command at 06/09/2018 18:44:06
- RMAN-06808: SECTION SIZE cannot be used when piece limit is in effect
- RMAN> exit
- Recovery Manager complete.
- [oracle@station87 ~]$ rman target /
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat Jun 9 18:44:17 2018
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- RMAN> backup section size 200M tag '6T_SYSTEM_INCR0' copies 1 incremental level 0 tablespace system;
- Starting backup at 2018-06-09:18:44:19
- using target database control file instead of recovery catalog
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=70 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=197 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- backing up blocks 1 through 25600
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:18:44:30
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- including current control file in backup set
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:18:44:31
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:18:45:36
- piece handle=3at51k0e_1_1 tag=6T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:06
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- backing up blocks 25601 through 51200
- channel ORA_SBT_TAPE_1: starting piece 2 at 2018-06-09:18:45:37
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:18:45:37
- piece handle=3bt51k0e_1_1 tag=6T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:06
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- backing up blocks 51201 through 76800
- channel ORA_SBT_TAPE_2: starting piece 3 at 2018-06-09:18:45:37
- channel ORA_SBT_TAPE_1: finished piece 2 at 2018-06-09:18:46:32
- piece handle=3at51k0e_2_1 tag=6T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:55
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- backing up blocks 76801 through 88320
- channel ORA_SBT_TAPE_1: starting piece 4 at 2018-06-09:18:46:32
- channel ORA_SBT_TAPE_2: finished piece 3 at 2018-06-09:18:46:35
- piece handle=3at51k0e_3_1 tag=6T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:58
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- including current SPFILE in backup set
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:18:46:36
- channel ORA_SBT_TAPE_1: finished piece 4 at 2018-06-09:18:47:21
- piece handle=3at51k0e_4_1 tag=6T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:49
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:18:47:31
- piece handle=3ft51k4c_1_1 tag=6T_SYSTEM_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:55
- Finished backup at 2018-06-09:18:47:31
- RMAN> list backup;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 65 Incr 0 436.25M SBT_TAPE 00:01:00 2018-06-08:01:08:17
- BP Key: 71 Status: AVAILABLE Compressed: NO Tag: 1T_SYSAUX_INCR0
- Handle: 2ct4t1m5_1_1 Media: station87-000008
- List of Datafiles in backup set 65
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 2 0 Incr 1155660 2018-06-08:01:07:17 +DATA/orcl/datafile/sysaux.257.832197065
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 66 Full 10.00M SBT_TAPE 00:00:39 2018-06-08:01:09:01
- BP Key: 72 Status: AVAILABLE Compressed: NO Tag: TAG20180608T010822
- Handle: c-1359978017-20180608-07 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1155709 Ckp time: 2018-06-08:01:08:22
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 67 Incr 0 86.50M SBT_TAPE 00:00:53 2018-06-08:01:13:00
- BP Key: 73 Status: AVAILABLE Compressed: YES Tag: 2TC_SYSAUX_INCR0
- Handle: 2et4t1v7_1_1 Media: station87-000008
- List of Datafiles in backup set 67
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 2 0 Incr 1155986 2018-06-08:01:12:07 +DATA/orcl/datafile/sysaux.257.832197065
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 68 Full 10.00M SBT_TAPE 00:00:41 2018-06-08:01:13:43
- BP Key: 74 Status: AVAILABLE Compressed: NO Tag: TAG20180608T011302
- Handle: c-1359978017-20180608-08 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1156051 Ckp time: 2018-06-08:01:13:02
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 70 Full 10.00M SBT_TAPE 00:00:27 2018-06-08:01:42:19
- BP Key: 76 Status: AVAILABLE Compressed: NO Tag: TAG20180608T014152
- Handle: c-1359978017-20180608-09 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:01:07:07
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1157970 Ckp time: 2018-06-08:01:41:52
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 71 Incr 0 3.50M SBT_TAPE 00:00:56 2018-06-08:02:04:36
- BP Key: 77 Status: AVAILABLE Compressed: NO Tag: 4TEDUAL_USERS_INCR0
- Handle: 2kt4t4vs_1_1 Media: station87-000008
- List of Datafiles in backup set 71
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 0 Incr 1160195 2018-06-08:02:03:40 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 72 Full 10.00M SBT_TAPE 00:00:37 2018-06-08:02:05:22
- BP Key: 78 Status: AVAILABLE Compressed: NO Tag: TAG20180608T020445
- Handle: c-1359978017-20180608-0a Media: station87-000008
- SPFILE Included: Modification time: 2018-06-08:02:04:15
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1160247 Ckp time: 2018-06-08:02:04:45
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ -------------------
- 73 87.00M SBT_TAPE 00:01:13 2018-06-09:17:37:21
- BP Key: 79 Status: AVAILABLE Compressed: NO Tag: 1T_ARCH78-80
- Handle: 2st51g08_1_1 Media: station87-000008
- List of Archived Logs in backup set 73
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- ------------------- ---------- ---------
- 1 78 1323993 2018-06-08:04:33:46 1328678 2018-06-08:04:34:01
- 1 79 1328678 2018-06-08:04:34:01 1340398 2018-06-08:04:39:31
- BS Key Size Device Type Elapsed Time Completion Time
- ------- ---------- ----------- ------------ -------------------
- 74 46.00M SBT_TAPE 00:01:20 2018-06-09:17:37:28
- BP Key: 80 Status: AVAILABLE Compressed: NO Tag: 1T_ARCH78-80
- Handle: 2tt51g08_1_1 Media: station87-000009
- List of Archived Logs in backup set 74
- Thrd Seq Low SCN Low Time Next SCN Next Time
- ---- ------- ---------- ------------------- ---------- ---------
- 1 80 1340398 2018-06-08:04:39:31 1344895 2018-06-08:04:39:42
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 75 Full 10.00M SBT_TAPE 00:00:36 2018-06-09:17:38:09
- BP Key: 81 Status: AVAILABLE Compressed: NO Tag: TAG20180609T173733
- Handle: c-1359978017-20180609-00 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408511 Ckp time: 2018-06-09:17:37:33
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 76 Incr 1 30.50M SBT_TAPE 00:00:48 2018-06-09:17:43:32
- BP Key: 82 Status: AVAILABLE Compressed: NO Tag: 2T_USERS_INCR1
- Handle: 2vt51gck_1_1 Media: station87-000009
- List of Datafiles in backup set 76
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1408699 2018-06-09:17:42:44 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 77 Full 10.00M SBT_TAPE 00:00:42 2018-06-09:17:44:21
- BP Key: 83 Status: AVAILABLE Compressed: NO Tag: TAG20180609T174339
- Handle: c-1359978017-20180609-01 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408731 Ckp time: 2018-06-09:17:43:39
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 78 Incr 1 256.00K SBT_TAPE 00:00:35 2018-06-09:17:47:05
- BP Key: 84 Status: AVAILABLE Compressed: NO Tag: 3T_USERS_INCR1
- Handle: 31t51gjm_1_1 Media: station87-000009
- List of Datafiles in backup set 78
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1408937 2018-06-09:17:46:30 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 79 Full 10.00M SBT_TAPE 00:00:37 2018-06-09:17:47:52
- BP Key: 85 Status: AVAILABLE Compressed: NO Tag: TAG20180609T174715
- Handle: c-1359978017-20180609-02 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1408966 Ckp time: 2018-06-09:17:47:15
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 80 Incr 1 30.50M SBT_TAPE 00:00:47 2018-06-09:17:55:25
- BP Key: 86 Status: AVAILABLE Compressed: NO Tag: 4T_USERS_INCR1C
- Handle: 33t51h2u_1_1 Media: station87-000009
- List of Datafiles in backup set 80
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 1 Incr 1409298 2018-06-09:17:54:38 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 81 Full 10.00M SBT_TAPE 00:00:28 2018-06-09:17:56:01
- BP Key: 87 Status: AVAILABLE Compressed: NO Tag: TAG20180609T175533
- Handle: c-1359978017-20180609-03 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1409338 Ckp time: 2018-06-09:17:55:33
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 82 Full 33.70M SBT_TAPE 00:00:02 2018-06-09:18:14:10
- BP Key: 90 Status: AVAILABLE Compressed: NO Tag: TAG20180609T181408
- Handle: 35t51i7g_1_2 Media: station87-000009
- List of Datafiles in backup set 82
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 4 Full 1410584 2018-06-09:18:14:08 +DATA/orcl/datafile/users.259.978228669
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 83 Full 9.86M DISK 00:00:01 2018-06-09:18:14:12
- BP Key: 89 Status: AVAILABLE Compressed: NO Tag: TAG20180609T181411
- Piece Name: +FRA/orcl/autobackup/2018_06_09/s_978372851.322.978372853
- SPFILE Included: Modification time: 2018-06-09:17:35:40
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1410592 Ckp time: 2018-06-09:18:14:11
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 84 Full 10.00M SBT_TAPE 00:00:38 2018-06-09:18:16:59
- BP Key: 91 Status: AVAILABLE Compressed: NO Tag: TAG20180609T181621
- Handle: c-1359978017-20180609-05 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:18:15:20
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1410754 Ckp time: 2018-06-09:18:16:21
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 85 Incr 0 597.50M SBT_TAPE 00:02:39 2018-06-09:18:40:28
- List of Datafiles in backup set 85
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 1 0 Incr 1411610 2018-06-09:18:37:49 +DATA/orcl/datafile/system.256.832197063
- Backup Set Copy #1 of backup set 85
- Device Type Elapsed Time Completion Time Compressed Tag
- ----------- ------------ ------------------- ---------- ---
- SBT_TAPE 00:02:39 2018-06-09:18:40:28 NO 5T_SYSTEM_INCR0
- List of Backup Pieces for backup set 85 Copy #1
- BP Key Pc# Status Media Piece Name
- ------- --- ----------- ----------------------- ----------
- 92 1 AVAILABLE station87-000009 38t51jjt_1_1
- 93 2 AVAILABLE station87-000009 38t51jjt_2_1
- 94 3 AVAILABLE station87-000009 38t51jjt_3_1
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 86 Incr 0 10.00M SBT_TAPE 00:00:42 2018-06-09:18:41:14
- BP Key: 95 Status: AVAILABLE Compressed: NO Tag: 5T_SYSTEM_INCR0
- Handle: 39t51jp0_1_1 Media: station87-000009
- SPFILE Included: Modification time: 2018-06-09:18:38:42
- SPFILE db_unique_name: ORCL
- Control File Included: Ckp SCN: 1411697 Ckp time: 2018-06-09:18:40:32
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 87 Incr 0 597.75M SBT_TAPE 00:02:44 2018-06-09:18:47:14
- List of Datafiles in backup set 87
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 1 0 Incr 1411863 2018-06-09:18:44:30 +DATA/orcl/datafile/system.256.832197063
- Backup Set Copy #1 of backup set 87
- Device Type Elapsed Time Completion Time Compressed Tag
- ----------- ------------ ------------------- ---------- ---
- SBT_TAPE 00:02:44 2018-06-09:18:47:14 NO 6T_SYSTEM_INCR0
- List of Backup Pieces for backup set 87 Copy #1
- BP Key Pc# Status Media Piece Name
- ------- --- ----------- ----------------------- ----------
- 96 1 AVAILABLE station87-000009 3at51k0e_1_1
- 98 2 AVAILABLE station87-000009 3at51k0e_2_1
- 99 3 AVAILABLE station87-000008 3at51k0e_3_1
- 100 4 AVAILABLE station87-000009 3at51k0e_4_1
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 88 Incr 0 10.00M SBT_TAPE 00:01:04 2018-06-09:18:45:34
- BP Key: 97 Status: AVAILABLE Compressed: NO Tag: 6T_SYSTEM_INCR0
- Handle: 3bt51k0e_1_1 Media: station87-000008
- Control File Included: Ckp SCN: 1411864 Ckp time: 2018-06-09:18:44:30
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 89 Incr 0 256.00K SBT_TAPE 00:00:49 2018-06-09:18:47:25
- BP Key: 101 Status: AVAILABLE Compressed: NO Tag: 6T_SYSTEM_INCR0
- Handle: 3ft51k4c_1_1 Media: station87-000008
- SPFILE Included: Modification time: 2018-06-09:18:44:01
- SPFILE db_unique_name: ORCL
- RMAN> list backup of tablespace system ;
- List of Backup Sets
- ===================
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 85 Incr 0 597.50M SBT_TAPE 00:02:39 2018-06-09:18:40:28
- List of Datafiles in backup set 85
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 1 0 Incr 1411610 2018-06-09:18:37:49 +DATA/orcl/datafile/system.256.832197063
- Backup Set Copy #1 of backup set 85
- Device Type Elapsed Time Completion Time Compressed Tag
- ----------- ------------ ------------------- ---------- ---
- SBT_TAPE 00:02:39 2018-06-09:18:40:28 NO 5T_SYSTEM_INCR0
- List of Backup Pieces for backup set 85 Copy #1
- BP Key Pc# Status Media Piece Name
- ------- --- ----------- ----------------------- ----------
- 92 1 AVAILABLE station87-000009 38t51jjt_1_1
- 93 2 AVAILABLE station87-000009 38t51jjt_2_1
- 94 3 AVAILABLE station87-000009 38t51jjt_3_1
- BS Key Type LV Size Device Type Elapsed Time Completion Time
- ------- ---- -- ---------- ----------- ------------ -------------------
- 87 Incr 0 597.75M SBT_TAPE 00:02:44 2018-06-09:18:47:14
- List of Datafiles in backup set 87
- File LV Type Ckp SCN Ckp Time Name
- ---- -- ---- ---------- ------------------- ----
- 1 0 Incr 1411863 2018-06-09:18:44:30 +DATA/orcl/datafile/system.256.832197063
- Backup Set Copy #1 of backup set 87
- Device Type Elapsed Time Completion Time Compressed Tag
- ----------- ------------ ------------------- ---------- ---
- SBT_TAPE 00:02:44 2018-06-09:18:47:14 NO 6T_SYSTEM_INCR0
- List of Backup Pieces for backup set 87 Copy #1
- BP Key Pc# Status Media Piece Name
- ------- --- ----------- ----------------------- ----------
- 96 1 AVAILABLE station87-000009 3at51k0e_1_1
- 98 2 AVAILABLE station87-000009 3at51k0e_2_1
- 99 3 AVAILABLE station87-000008 3at51k0e_3_1
- 100 4 AVAILABLE station87-000009 3at51k0e_4_1
- RMAN>
复制代码
归档性备份:
- RMAN> backup tag '7T_WHOLE_INCR0' incremental level 0 database keep until time 'sysdate+60' restore point rsp1;
- Starting backup at 2018-06-09:18:58:58
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:18:58:59
- archived logs required to recover from this backup will be backed up
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- input datafile file number=00006 name=+DATA/orcl/datafile/tbsfda.267.978234227
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:18:58:59
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
- input datafile file number=00007 name=+DATA/orcl/datafile/tbsfda.268.978236837
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:18:59:00
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:19:00:55
- piece handle=3gt51krj_1_1 tag=7T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:56
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:19:01:05
- piece handle=3ht51krj_1_1 tag=7T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:02:05
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:19:01:05
- 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 SPFILE in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:19:01:05
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:19:01:40
- piece handle=3it51kvh_1_1 tag=7T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:19:01:41
- 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=86 RECID=82 STAMP=978375701
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:19:01:41
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:19:02:26
- piece handle=3jt51l0l_1_1 tag=7T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:45
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:19:02:26
- 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 2018-06-09:19:02:28
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:19:03:03
- piece handle=3kt51l23_1_1 tag=7T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- Finished backup at 2018-06-09:19:03:03
- RMAN>
复制代码
- RMAN> backup tag '7T_WHOLE_INCR0' incremental level 0 database keep forever restore point rsp2;
- Starting backup at 2018-06-09:19:05:07
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- RMAN-00571: ===========================================================
- RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
- RMAN-00571: ===========================================================
- RMAN-03002: failure of backup command at 06/09/2018 19:05:07
- RMAN-06522: KEEP FOREVER option is not supported without the recovery catalog
复制代码
如果要forever就需要连接recovery catalog:
- RMAN> backup tag '7T_WHOLE_INCR0' incremental level 0 database keep forever restore point rsp2;
- Starting backup at 2018-06-09:19:06:01
- starting full resync of recovery catalog
- full resync complete
- current log archived
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=70 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=200 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- backup will never be obsolete
- archived logs required to recover from this backup will be backed up
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- input datafile file number=00006 name=+DATA/orcl/datafile/tbsfda.267.978234227
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:19:06:21
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
- input datafile file number=00007 name=+DATA/orcl/datafile/tbsfda.268.978236837
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:19:06:21
复制代码
注意以下的KEEP标签:
备份介质检查:
- RMAN> crosscheck backup;
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2ct4t1m5_1_1 RECID=71 STAMP=978224837
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-07 RECID=72 STAMP=978224903
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2et4t1v7_1_1 RECID=73 STAMP=978225127
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-08 RECID=74 STAMP=978225183
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-09 RECID=76 STAMP=978226912
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2kt4t4vs_1_1 RECID=77 STAMP=978228220
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-0a RECID=78 STAMP=978228286
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2st51g08_1_1 RECID=79 STAMP=978370568
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2tt51g08_1_1 RECID=80 STAMP=978370568
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-00 RECID=81 STAMP=978370654
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2vt51gck_1_1 RECID=82 STAMP=978370964
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-01 RECID=83 STAMP=978371020
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=31t51gjm_1_1 RECID=84 STAMP=978371190
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-02 RECID=85 STAMP=978371235
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=33t51h2u_1_1 RECID=86 STAMP=978371678
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-03 RECID=87 STAMP=978371734
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=35t51i7g_1_2 RECID=90 STAMP=978372926
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=+FRA/orcl/autobackup/2018_06_09/s_978372851.322.978372853 RECID=89 STAMP=978372852
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-05 RECID=91 STAMP=978372982
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=38t51jjt_1_1 RECID=92 STAMP=978374269
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=38t51jjt_2_1 RECID=93 STAMP=978374332
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=38t51jjt_3_1 RECID=94 STAMP=978374377
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=39t51jp0_1_1 RECID=95 STAMP=978374433
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3at51k0e_1_1 RECID=96 STAMP=978374670
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3at51k0e_2_1 RECID=98 STAMP=978374737
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3at51k0e_3_1 RECID=99 STAMP=978374737
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3at51k0e_4_1 RECID=100 STAMP=978374793
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3bt51k0e_1_1 RECID=97 STAMP=978374671
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3ft51k4c_1_1 RECID=101 STAMP=978374796
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3gt51krj_1_1 RECID=102 STAMP=978375540
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3ht51krj_1_1 RECID=103 STAMP=978375540
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3it51kvh_1_1 RECID=104 STAMP=978375665
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3jt51l0l_1_1 RECID=105 STAMP=978375701
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3kt51l23_1_1 RECID=106 STAMP=978375748
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3mt51l9d_1_1 RECID=107 STAMP=978375982
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3lt51l9d_1_1 RECID=108 STAMP=978375982
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3nt51ld0_1_1 RECID=109 STAMP=978376096
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3ot51lef_1_1 RECID=110 STAMP=978376143
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=3pt51lfi_1_1 RECID=111 STAMP=978376179
- Crosschecked 39 objects
- RMAN>
复制代码- RMAN> list expired backup;
- specification does not match any backup in the repository
复制代码 模拟破坏:
- ob> lspiece
- POID Database Content Copy Created Host Piece name
- 153 orcl incremental 0 06/08.01:07 station87 2ct4t1m5_1_1
- 154 orcl autobackup 0 06/08.01:08 station87 c-1359978017-20180608-07
- 155 orcl incremental 0 06/08.01:12 station87 2et4t1v7_1_1
- 156 orcl autobackup 0 06/08.01:13 station87 c-1359978017-20180608-08
- 158 orcl autobackup 0 06/08.01:41 station87 c-1359978017-20180608-09
- 159 orcl incremental 0 06/08.02:04 station87 2kt4t4vs_1_1
- 160 orcl autobackup 0 06/08.02:04 station87 c-1359978017-20180608-0a
- 161 orcl archivelog 0 06/09.17:36 station87 2st51g08_1_1
- 162 orcl archivelog 0 06/09.17:37 station87 2tt51g08_1_1
- 163 orcl autobackup 0 06/09.17:37 station87 c-1359978017-20180609-00
- 164 orcl incremental 0 06/09.17:43 station87 2vt51gck_1_1
- 165 orcl autobackup 0 06/09.17:43 station87 c-1359978017-20180609-01
- 166 orcl incremental 0 06/09.17:46 station87 31t51gjm_1_1
- 167 orcl autobackup 0 06/09.17:47 station87 c-1359978017-20180609-02
- 168 orcl incremental 0 06/09.17:55 station87 33t51h2u_1_1
- 169 orcl autobackup 0 06/09.17:55 station87 c-1359978017-20180609-03
- 170 orcl full 0 06/09.18:15 station87 35t51i7g_1_2
- 171 orcl autobackup 0 06/09.18:16 station87 c-1359978017-20180609-05
- 172 orcl incremental 0 06/09.18:38 station87 38t51jjt_1_1
- 173 orcl incremental 0 06/09.18:38 station87 38t51jjt_2_1
- 174 orcl incremental 0 06/09.18:39 station87 38t51jjt_3_1
- 175 orcl incremental 0 06/09.18:40 station87 39t51jp0_1_1
- 176 orcl incremental 0 06/09.18:44 station87 3at51k0e_1_1
- 177 orcl incremental 0 06/09.18:45 station87 3bt51k0e_1_1
- 178 orcl incremental 0 06/09.18:45 station87 3at51k0e_2_1
- 179 orcl incremental 0 06/09.18:45 station87 3at51k0e_3_1
- 180 orcl incremental 0 06/09.18:46 station87 3at51k0e_4_1
- 181 orcl incremental 0 06/09.18:46 station87 3ft51k4c_1_1
- 182 orcl incremental 0 06/09.18:59 station87 3gt51krj_1_1
- 183 orcl incremental 0 06/09.18:59 station87 3ht51krj_1_1
- 184 orcl full 0 06/09.19:01 station87 3it51kvh_1_1
- 185 orcl archivelog 0 06/09.19:01 station87 3jt51l0l_1_1
- 186 orcl full 0 06/09.19:02 station87 3kt51l23_1_1
- 187 orcl incremental 0 06/09.19:06 station87 3mt51l9d_1_1
- 188 orcl incremental 0 06/09.19:06 station87 3lt51l9d_1_1
- 189 orcl full 0 06/09.19:08 station87 3nt51ld0_1_1
- 190 orcl archivelog 0 06/09.19:09 station87 3ot51lef_1_1
- 191 orcl full 0 06/09.19:09 station87 3pt51lfi_1_1
- ob> rmpiece 3pt51lfi_1_1
- remove backup piece 3pt51lfi_1_1? (a, n, q, y, ?) [n]: y
- ob> lspiece
- POID Database Content Copy Created Host Piece name
- 153 orcl incremental 0 06/08.01:07 station87 2ct4t1m5_1_1
- 154 orcl autobackup 0 06/08.01:08 station87 c-1359978017-20180608-07
- 155 orcl incremental 0 06/08.01:12 station87 2et4t1v7_1_1
- 156 orcl autobackup 0 06/08.01:13 station87 c-1359978017-20180608-08
- 158 orcl autobackup 0 06/08.01:41 station87 c-1359978017-20180608-09
- 159 orcl incremental 0 06/08.02:04 station87 2kt4t4vs_1_1
- 160 orcl autobackup 0 06/08.02:04 station87 c-1359978017-20180608-0a
- 161 orcl archivelog 0 06/09.17:36 station87 2st51g08_1_1
- 162 orcl archivelog 0 06/09.17:37 station87 2tt51g08_1_1
- 163 orcl autobackup 0 06/09.17:37 station87 c-1359978017-20180609-00
- 164 orcl incremental 0 06/09.17:43 station87 2vt51gck_1_1
- 165 orcl autobackup 0 06/09.17:43 station87 c-1359978017-20180609-01
- 166 orcl incremental 0 06/09.17:46 station87 31t51gjm_1_1
- 167 orcl autobackup 0 06/09.17:47 station87 c-1359978017-20180609-02
- 168 orcl incremental 0 06/09.17:55 station87 33t51h2u_1_1
- 169 orcl autobackup 0 06/09.17:55 station87 c-1359978017-20180609-03
- 170 orcl full 0 06/09.18:15 station87 35t51i7g_1_2
- 171 orcl autobackup 0 06/09.18:16 station87 c-1359978017-20180609-05
- 172 orcl incremental 0 06/09.18:38 station87 38t51jjt_1_1
- 173 orcl incremental 0 06/09.18:38 station87 38t51jjt_2_1
- 174 orcl incremental 0 06/09.18:39 station87 38t51jjt_3_1
- 175 orcl incremental 0 06/09.18:40 station87 39t51jp0_1_1
- 176 orcl incremental 0 06/09.18:44 station87 3at51k0e_1_1
- 177 orcl incremental 0 06/09.18:45 station87 3bt51k0e_1_1
- 178 orcl incremental 0 06/09.18:45 station87 3at51k0e_2_1
- 179 orcl incremental 0 06/09.18:45 station87 3at51k0e_3_1
- 180 orcl incremental 0 06/09.18:46 station87 3at51k0e_4_1
- 181 orcl incremental 0 06/09.18:46 station87 3ft51k4c_1_1
- 182 orcl incremental 0 06/09.18:59 station87 3gt51krj_1_1
- 183 orcl incremental 0 06/09.18:59 station87 3ht51krj_1_1
- 184 orcl full 0 06/09.19:01 station87 3it51kvh_1_1
- 185 orcl archivelog 0 06/09.19:01 station87 3jt51l0l_1_1
- 186 orcl full 0 06/09.19:02 station87 3kt51l23_1_1
- 187 orcl incremental 0 06/09.19:06 station87 3mt51l9d_1_1
- 188 orcl incremental 0 06/09.19:06 station87 3lt51l9d_1_1
- 189 orcl full 0 06/09.19:08 station87 3nt51ld0_1_1
- 190 orcl archivelog 0 06/09.19:09 station87 3ot51lef_1_1
- ob>
复制代码- RMAN> crosscheck backup;
- using channel ORA_DISK_1
- using channel ORA_DISK_2
- using channel ORA_DISK_3
- using channel ORA_DISK_4
- using channel ORA_DISK_5
- using channel ORA_DISK_6
- using channel ORA_DISK_7
- using channel ORA_DISK_8
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2ct4t1m5_1_1 RECID=71 STAMP=978224837
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-07 RECID=72 STAMP=978224903
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2et4t1v7_1_1 RECID=73 STAMP=978225127
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-08 RECID=74 STAMP=978225183
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-09 RECID=76 STAMP=978226912
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2kt4t4vs_1_1 RECID=77 STAMP=978228220
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180608-0a RECID=78 STAMP=978228286
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2st51g08_1_1 RECID=79 STAMP=978370568
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2tt51g08_1_1 RECID=80 STAMP=978370568
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-00 RECID=81 STAMP=978370654
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=2vt51gck_1_1 RECID=82 STAMP=978370964
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-01 RECID=83 STAMP=978371020
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=31t51gjm_1_1 RECID=84 STAMP=978371190
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-02 RECID=85 STAMP=978371235
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=33t51h2u_1_1 RECID=86 STAMP=978371678
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-03 RECID=87 STAMP=978371734
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=35t51i7g_1_2 RECID=90 STAMP=978372926
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=+FRA/orcl/autobackup/2018_06_09/s_978372851.322.978372853 RECID=89 STAMP=978372852
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=c-1359978017-20180609-05 RECID=91 STAMP=978372982
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=38t51jjt_1_1 RECID=92 STAMP=978374269
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=38t51jjt_2_1 RECID=93 STAMP=978374332
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=38t51jjt_3_1 RECID=94 STAMP=978374377
- crosschecked backup piece: found to be 'AVAILABLE'
- backup piece handle=39t51jp0_1_1 RECID=95 STAMP=978374433
- crosschecked backup piece: found to be 'AVAILABLE'
复制代码
关于在线日志组的特殊恢复方法(不要人为地去关闭database,导致7a/7b的实验):
inactive日志组的问题:
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 28 52428800 512 1 NO INACTIVE 1997075 2018-06-02:20:09:15 2009327 2018-06-09:11:02:30 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 30 52428800 512 1 NO CURRENT 2013082 2018-06-09:11:12:41 2.8147E+14 0
- SQL> select member from v$logfile;
- MEMBER
- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- /u01/app/oracle/oradata/rcat/redo03.log
- /u01/app/oracle/oradata/rcat/redo02.log
- /u01/app/oracle/oradata/rcat/redo01.log
- SQL> select open_mode from v$database;
- OPEN_MODE
- --------------------
- READ WRITE
- SQL> alter database clear logfile group 1;
- Database altered.
- SQL>
复制代码
active日志组的问题:
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 0 52428800 512 1 NO UNUSED 1997075 2018-06-02:20:09:15 2009327 2018-06-09:11:02:30 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 30 52428800 512 1 NO CURRENT 2013082 2018-06-09:11:12:41 2.8147E+14 0
- SQL> alter system switch logfile;
- System altered.
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 31 52428800 512 1 NO CURRENT 2015655 2018-06-09:11:41:25 2.8147E+14 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 30 52428800 512 1 NO ACTIVE 2013082 2018-06-09:11:12:41 2015655 2018-06-09:11:41:25 0
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 31 52428800 512 1 NO CURRENT 2015655 2018-06-09:11:41:25 2.8147E+14 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 30 52428800 512 1 NO ACTIVE 2013082 2018-06-09:11:12:41 2015655 2018-06-09:11:41:25 0
- SQL> alter database clear logfile group 3;
- alter database clear logfile group 3
- *
- ERROR at line 1:
- ORA-01624: log 3 needed for crash recovery of instance rcat (thread 1)
- ORA-00312: online log 3 thread 1: '/u01/app/oracle/oradata/rcat/redo03.log'
- SQL> alter system checkpoint;
- System altered.
- SQL> alter database clear logfile group 3;
- Database altered.
- SQL>
复制代码
current的问题:
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 31 52428800 512 1 NO CURRENT 2015655 2018-06-09:11:41:25 2.8147E+14 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 0 52428800 512 1 NO UNUSED 2013082 2018-06-09:11:12:41 2015655 2018-06-09:11:41:25 0
- SQL> alter database clear logfile group 1;
- alter database clear logfile group 1
- *
- ERROR at line 1:
- ORA-01624: log 1 needed for crash recovery of instance rcat (thread 1)
- ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/rcat/redo01.log'
- SQL> alter system checkpoint;
- System altered.
- SQL> alter database clear logfile group 1;
- alter database clear logfile group 1
- *
- ERROR at line 1:
- ORA-01624: log 1 needed for crash recovery of instance rcat (thread 1)
- ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/rcat/redo01.log'
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 31 52428800 512 1 NO CURRENT 2015655 2018-06-09:11:41:25 2.8147E+14 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 0 52428800 512 1 NO UNUSED 2013082 2018-06-09:11:12:41 2015655 2018-06-09:11:41:25 0
- SQL> alter system switch logfile;
- System altered.
- SQL> select * from v$log;
- GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME CON_ID
- ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- ------------------- ------------ ------------------- ----------
- 1 1 31 52428800 512 1 NO ACTIVE 2015655 2018-06-09:11:41:25 2015826 2018-06-09:11:46:28 0
- 2 1 29 52428800 512 1 NO INACTIVE 2009327 2018-06-09:11:02:30 2013082 2018-06-09:11:12:41 0
- 3 1 32 52428800 512 1 NO CURRENT 2015826 2018-06-09:11:46:28 2.8147E+14 0
- SQL> alter system checkpoint;
- System altered.
- SQL> alter database clear logfile group 1;
- Database altered.
- SQL> alter database clear unarchived logfile group 1;
- Database altered.
- SQL>
复制代码 在上1Z0-053第7章之前,综合以前的知识,做一个备份:
- RMAN> backup section size 500M tag '9T_WHOLE_INCR0' incremental level 0 database keep until time 'sysdate+60' plus archivelog delete all input ;
复制代码
PPT上的这几句话,目的就是省掉restore的时间:
- Perform fast recovery by performing the following steps:
- 1. Take data files offline.
- 2. Use the SWITCH TO ... COPY command to switch to image copies.
- 3. Recover data files.
- 4. Bring data files online.
复制代码
三部曲:1.set newname。 2.restore。3.switch datafile(or database):
- run{
- set newname for datafile 5 to '/home/oracle/examplettio.dbf';
- restore datafile 5;
- switch datafile 5 to copy;
- }
复制代码 为了测试磁带机的还原速度:
- run{
- set newname for datafile 5 to '/home/oracle/examplettio.dbf';
- restore datafile 5;
- delete datafilecopy '/home/oracle/examplettio.dbf';
- }
复制代码
下面做11a的实验:
- [oracle@station87 ~]$ rman target / catalog u87/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat Jun 9 20:14:28 2018
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- connected to recovery catalog database
- RMAN> backup section size 500M tag '9T_WHOLE_INCR0' incremental level 0 database keep until time 'sysdate+60' plus archivelog delete all input ;
- Starting backup at 2018-06-09:20:15:51
- current log archived
- allocated channel: ORA_SBT_TAPE_1
- channel ORA_SBT_TAPE_1: SID=142 device type=SBT_TAPE
- channel ORA_SBT_TAPE_1: Oracle Secure Backup
- allocated channel: ORA_SBT_TAPE_2
- channel ORA_SBT_TAPE_2: SID=17 device type=SBT_TAPE
- channel ORA_SBT_TAPE_2: Oracle Secure Backup
- skipping archived log file +FRA/orcl/archivelog/2018_06_08/thread_1_seq_78.290.978237241; already backed up 1 time(s)
- skipping archived log file +FRA/orcl/archivelog/2018_06_08/thread_1_seq_79.291.978237573; already backed up 1 time(s)
- skipping archived log file +FRA/orcl/archivelog/2018_06_08/thread_1_seq_80.292.978237583; already backed up 1 time(s)
- 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=48 RECID=44 STAMP=978227072
- input archived log thread=1 sequence=49 RECID=45 STAMP=978227072
- input archived log thread=1 sequence=50 RECID=46 STAMP=978227076
- input archived log thread=1 sequence=51 RECID=47 STAMP=978227079
- input archived log thread=1 sequence=52 RECID=48 STAMP=978227082
- input archived log thread=1 sequence=53 RECID=49 STAMP=978227085
- input archived log thread=1 sequence=54 RECID=50 STAMP=978227785
- input archived log thread=1 sequence=55 RECID=51 STAMP=978227786
- input archived log thread=1 sequence=56 RECID=52 STAMP=978227786
- input archived log thread=1 sequence=57 RECID=53 STAMP=978227790
- input archived log thread=1 sequence=58 RECID=54 STAMP=978227793
- input archived log thread=1 sequence=59 RECID=55 STAMP=978227794
- input archived log thread=1 sequence=60 RECID=56 STAMP=978228469
- input archived log thread=1 sequence=61 RECID=57 STAMP=978228470
- input archived log thread=1 sequence=62 RECID=58 STAMP=978228470
- input archived log thread=1 sequence=63 RECID=59 STAMP=978228473
- input archived log thread=1 sequence=64 RECID=60 STAMP=978228476
- input archived log thread=1 sequence=65 RECID=61 STAMP=978228477
- input archived log thread=1 sequence=66 RECID=62 STAMP=978065947
- input archived log thread=1 sequence=67 RECID=63 STAMP=978120772
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:16:08
- channel ORA_SBT_TAPE_2: starting archived log backup set
- channel ORA_SBT_TAPE_2: specifying archived log(s) in backup set
- input archived log thread=1 sequence=68 RECID=64 STAMP=978195181
- input archived log thread=1 sequence=69 RECID=65 STAMP=978236524
- input archived log thread=1 sequence=70 RECID=66 STAMP=978236531
- input archived log thread=1 sequence=71 RECID=67 STAMP=978236625
- input archived log thread=1 sequence=72 RECID=68 STAMP=978236646
- input archived log thread=1 sequence=73 RECID=69 STAMP=978236658
- input archived log thread=1 sequence=74 RECID=70 STAMP=978236668
- input archived log thread=1 sequence=75 RECID=71 STAMP=978237207
- input archived log thread=1 sequence=76 RECID=72 STAMP=978237224
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:20:16:08
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:17:33
- piece handle=3qt51pc7_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:25
- channel ORA_SBT_TAPE_1: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_48.278.978227071 RECID=44 STAMP=978227072
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_49.275.978227073 RECID=45 STAMP=978227072
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_50.277.978227077 RECID=46 STAMP=978227076
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_51.276.978227079 RECID=47 STAMP=978227079
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_52.274.978227083 RECID=48 STAMP=978227082
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_53.273.978227085 RECID=49 STAMP=978227085
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_54.272.978227785 RECID=50 STAMP=978227785
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_55.271.978227787 RECID=51 STAMP=978227786
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_56.270.978227787 RECID=52 STAMP=978227786
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_57.267.978227789 RECID=53 STAMP=978227790
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_58.260.978227793 RECID=54 STAMP=978227793
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_59.269.978227793 RECID=55 STAMP=978227794
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_60.287.978228469 RECID=56 STAMP=978228469
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_61.286.978228471 RECID=57 STAMP=978228470
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_62.285.978228471 RECID=58 STAMP=978228470
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_63.284.978228473 RECID=59 STAMP=978228473
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_64.283.978228477 RECID=60 STAMP=978228476
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_65.282.978228477 RECID=61 STAMP=978228477
- archived log file name=+FRA/orcl/archivelog/2018_06_06/thread_1_seq_66.281.978065947 RECID=62 STAMP=978065947
- archived log file name=+FRA/orcl/archivelog/2018_06_06/thread_1_seq_67.280.978120771 RECID=63 STAMP=978120772
- 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=77 RECID=73 STAMP=978237232
- input archived log thread=1 sequence=81 RECID=77 STAMP=978239427
- input archived log thread=1 sequence=82 RECID=78 STAMP=978315691
- input archived log thread=1 sequence=83 RECID=79 STAMP=978328977
- input archived log thread=1 sequence=84 RECID=80 STAMP=978369678
- input archived log thread=1 sequence=85 RECID=81 STAMP=978375538
- input archived log thread=1 sequence=86 RECID=82 STAMP=978375701
- input archived log thread=1 sequence=87 RECID=83 STAMP=978375907
- input archived log thread=1 sequence=88 RECID=84 STAMP=978375969
- input archived log thread=1 sequence=89 RECID=85 STAMP=978376142
- input archived log thread=1 sequence=90 RECID=86 STAMP=978380152
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:17:37
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:20:17:37
- piece handle=3rt51pc8_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:29
- channel ORA_SBT_TAPE_2: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2018_06_07/thread_1_seq_68.279.978195181 RECID=64 STAMP=978195181
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_69.268.978236523 RECID=65 STAMP=978236524
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_70.262.978236529 RECID=66 STAMP=978236531
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_71.263.978236623 RECID=67 STAMP=978236625
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_72.266.978236639 RECID=68 STAMP=978236646
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_73.265.978236653 RECID=69 STAMP=978236658
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_74.264.978236663 RECID=70 STAMP=978236668
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_75.261.978237207 RECID=71 STAMP=978237207
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_76.288.978237221 RECID=72 STAMP=978237224
- channel ORA_SBT_TAPE_2: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_78.290.978237241 RECID=74 STAMP=978237243
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_79.291.978237573 RECID=75 STAMP=978237574
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_80.292.978237583 RECID=76 STAMP=978237586
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:18:25
- piece handle=3st51pf1_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:48
- channel ORA_SBT_TAPE_1: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_77.289.978237229 RECID=73 STAMP=978237232
- archived log file name=+FRA/orcl/archivelog/2018_06_08/thread_1_seq_81.293.978239425 RECID=77 STAMP=978239427
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_82.296.978315691 RECID=78 STAMP=978315691
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_83.312.978328975 RECID=79 STAMP=978328977
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_84.317.978369677 RECID=80 STAMP=978369678
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_85.323.978375539 RECID=81 STAMP=978375538
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_86.325.978375701 RECID=82 STAMP=978375701
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_87.326.978375907 RECID=83 STAMP=978375907
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_88.327.978375969 RECID=84 STAMP=978375969
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_89.328.978376143 RECID=85 STAMP=978376142
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_90.330.978380153 RECID=86 STAMP=978380152
- Finished backup at 2018-06-09:20:18:27
- Starting backup at 2018-06-09:20:18:27
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:20:18:29
- archived logs required to recover from this backup will be backed up
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- backing up blocks 1 through 64000
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:18:30
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
- backing up blocks 1 through 64000
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:20:18:31
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:19:36
- piece handle=3tt51pgm_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:06
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- backing up blocks 64001 through 88320
- channel ORA_SBT_TAPE_1: starting piece 2 at 2018-06-09:20:19:36
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:20:19:51
- piece handle=3ut51pgm_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:01:20
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
- backing up blocks 64001 through 74240
- channel ORA_SBT_TAPE_2: starting piece 2 at 2018-06-09:20:19:51
- channel ORA_SBT_TAPE_1: finished piece 2 at 2018-06-09:20:20:16
- piece handle=3tt51pgm_2_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:40
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:20:16
- channel ORA_SBT_TAPE_2: finished piece 2 at 2018-06-09:20:20:41
- piece handle=3ut51pgm_2_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:50
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
- input datafile file number=00007 name=+DATA/orcl/datafile/tbsfda.268.978236837
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- input datafile file number=00006 name=+DATA/orcl/datafile/tbsfda.267.978234227
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:20:20:42
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:20:57
- piece handle=41t51pk0_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:41
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:20:21:17
- piece handle=42t51pkp_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:00:35
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:20:21:17
- 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 SPFILE in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:21:17
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:21:52
- piece handle=43t51plt_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:20:21:53
- 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=92 RECID=88 STAMP=978380512
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:21:53
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:22:28
- piece handle=44t51pn1_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:20:22:29
- 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 2018-06-09:20:22:30
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:23:05
- piece handle=45t51po5_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- Finished backup at 2018-06-09:20:23:05
- Starting backup at 2018-06-09:20:23:05
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- 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=93 RECID=89 STAMP=978380585
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:20:23:06
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:20:23:51
- piece handle=46t51ppa_1_1 tag=9T_WHOLE_INCR0 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:45
- channel ORA_SBT_TAPE_1: deleting archived log(s)
- archived log file name=+FRA/orcl/archivelog/2018_06_09/thread_1_seq_93.327.978380585 RECID=89 STAMP=978380585
- Finished backup at 2018-06-09:20:23:51
- RMAN> backup tag '10T_WHOLE_INCR1' incremental level 1 database keep until time 'sysdate+60' ;
- Starting backup at 2018-06-09:23:44:16
- starting full resync of recovery catalog
- full resync complete
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:23:44:20
- archived logs required to recover from this backup will be backed up
- no parent backup or copy of datafile 1 found
- no parent backup or copy of datafile 4 found
- no parent backup or copy of datafile 2 found
- no parent backup or copy of datafile 5 found
- no parent backup or copy of datafile 3 found
- channel ORA_SBT_TAPE_1: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.832197065
- input datafile file number=00005 name=+DATA/orcl/datafile/example.265.832197353
- input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.832197065
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:23:44:20
- channel ORA_SBT_TAPE_2: starting incremental level 0 datafile backup set
- channel ORA_SBT_TAPE_2: specifying datafile(s) in backup set
- input datafile file number=00001 name=+DATA/orcl/datafile/system.256.832197063
- input datafile file number=00004 name=+DATA/orcl/datafile/users.259.978228669
- channel ORA_SBT_TAPE_2: starting piece 1 at 2018-06-09:23:44:20
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:23:46:12
- piece handle=47t525ik_1_1 tag=10T_WHOLE_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:01:52
- channel ORA_SBT_TAPE_1: starting incremental level 1 datafile backup set
- channel ORA_SBT_TAPE_1: specifying datafile(s) in backup set
- input datafile file number=00007 name=+DATA/orcl/datafile/tbsfda.268.978236837
- input datafile file number=00006 name=+DATA/orcl/datafile/tbsfda.267.978234227
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:23:46:12
- channel ORA_SBT_TAPE_2: finished piece 1 at 2018-06-09:23:46:27
- piece handle=48t525ik_1_1 tag=10T_WHOLE_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_2: backup set complete, elapsed time: 00:02:07
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:23:46:57
- piece handle=49t525m4_1_1 tag=10T_WHOLE_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:45
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:23:46:58
- 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 SPFILE in backup set
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:23:46:58
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:23:47:43
- piece handle=4at525ni_1_1 tag=10T_WHOLE_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:45
- current log archived
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:23:47:44
- 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=95 RECID=91 STAMP=978392863
- channel ORA_SBT_TAPE_1: starting piece 1 at 2018-06-09:23:47:44
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:23:48:19
- piece handle=4bt525p0_1_1 tag=10T_WHOLE_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- using channel ORA_SBT_TAPE_1
- using channel ORA_SBT_TAPE_2
- backup will be obsolete on date 2018-08-08:23:48:20
- 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 2018-06-09:23:48:21
- channel ORA_SBT_TAPE_1: finished piece 1 at 2018-06-09:23:48:56
- piece handle=4ct525q4_1_1 tag=10T_WHOLE_INCR1 comment=API Version 2.0,MMS Version 10.3.0.2
- channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:00:35
- Finished backup at 2018-06-09:23:48:56
- RMAN> exit
- Recovery Manager complete.
- [oracle@station87 ~]$ rman target / catalog u87/oracle_4U@rcat
- Recovery Manager: Release 11.2.0.1.0 - Production on Sat Jun 9 23:49:12 2018
- Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
- connected to target database: ORCL (DBID=1359978017)
- connected to recovery catalog database
- RMAN> resync catalog;
- starting full resync of recovery catalog
- full resync complete
- RMAN>
复制代码
|
|