|
select * from dba_tablespaces;
alter tablespace users read only;
select * from v_$session s where s.PROGRAM like '%rman%';
select * from dict where table_name like 'V$%BACKUP%';
select * from V$BACKUP_DATAFILE_details;
select * from dict where table_name like 'V$%USAGE%';
select * from V$FLASH_RECOVERY_AREA_USAGE;
select * from v$log;
select * from v$logfile;
alter system switch logfile;
alter database drop logfile member '+DATA/orcl/onlinelog/group_3.263.816169641';
alter database add logfile member '+data' to group 3;
select * from v$ir_failure;
SQL> alter database backup controlfile to trace as '/home/oracle/control.txt' ;
Database altered.
SQL>
RMAN> allocate channel for maintenance device type sbt;
1 Full 2268293 2014-08-26:05:27:06 +DATA/orcl/datafile/system.256.816169553
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
90 Full 192.00K SBT_TAPE 00:00:45 2014-08-26:05:27:51
BP Key: 90 Status: AVAILABLE Compressed: YES Tag: TAG20140826T052705
Handle: 2qpgt0ta_1_1 Media: station90-000016
Control File Included: Ckp SCN: 2268294 Ckp time: 2014-08-26:05:27:06
RMAN> exit
Recovery Manager complete.
[oracle@station90 ~]$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Aug 26 05:46:28 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1343950367)
RMAN> list backup;
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
87 Full 384.00K SBT_TAPE 00:00:23 2014-08-26:05:26:42
BP Key: 87 Status: AVAILABLE Compressed: YES Tag: TAG20140826T052619
Handle: 2opgt0rr_1_1 Media: station90-000015
List of Datafiles in backup set 87
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- ------------------- ----
4 Full 2104375 2014-08-23:11:06:35 +DATA/orcl/datafile/users.259.816169553
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
88 Full 128.00K SBT_TAPE 00:00:24 2014-08-26:05:27:30
BP Key: 88 Status: AVAILABLE Compressed: YES Tag: TAG20140826T052705
Handle: 2rpgt0ta_1_1 Media: station90-000016
SPFILE Included: Modification time: 2014-08-26:04:27:59
SPFILE db_unique_name: ORCL
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
89 Full 202.38M SBT_TAPE 00:00:30 2014-08-26:05:27:36
BP Key: 89 Status: AVAILABLE Compressed: YES Tag: TAG20140826T052705
Handle: 2ppgt0ta_1_1 Media: station90-000015
List of Datafiles in backup set 89
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- ------------------- ----
1 Full 2268293 2014-08-26:05:27:06 +DATA/orcl/datafile/system.256.816169553
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
90 Full 192.00K SBT_TAPE 00:00:45 2014-08-26:05:27:51
BP Key: 90 Status: AVAILABLE Compressed: YES Tag: TAG20140826T052705
Handle: 2qpgt0ta_1_1 Media: station90-000016
Control File Included: Ckp SCN: 2268294 Ckp time: 2014-08-26:05:27:06
RMAN> delete backupset;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=140 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=199 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=8 device type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=69 device type=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: SID=131 device type=DISK
allocated channel: ORA_DISK_6
channel ORA_DISK_6: SID=195 device type=DISK
allocated channel: ORA_DISK_7
channel ORA_DISK_7: SID=10 device type=DISK
allocated channel: ORA_DISK_8
channel ORA_DISK_8: SID=78 device type=DISK
specification does not match any backup in the repository
RMAN> allocate channel for maintenance device type sbt;
released channel: ORA_DISK_1
released channel: ORA_DISK_2
released channel: ORA_DISK_3
released channel: ORA_DISK_4
released channel: ORA_DISK_5
released channel: ORA_DISK_6
released channel: ORA_DISK_7
released channel: ORA_DISK_8
allocated channel: ORA_MAINT_SBT_TAPE_1
channel ORA_MAINT_SBT_TAPE_1: SID=140 device type=SBT_TAPE
channel ORA_MAINT_SBT_TAPE_1: Oracle Secure Backup
RMAN> delete backupset;
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
------- ------- --- --- ----------- ----------- ----------
87 87 1 1 AVAILABLE SBT_TAPE 2opgt0rr_1_1
88 88 1 1 AVAILABLE SBT_TAPE 2rpgt0ta_1_1
89 89 1 1 AVAILABLE SBT_TAPE 2ppgt0ta_1_1
90 90 1 1 AVAILABLE SBT_TAPE 2qpgt0ta_1_1
Do you really want to delete the above objects (enter YES or NO)? YES
deleted backup piece
backup piece handle=2opgt0rr_1_1 RECID=87 STAMP=856589179
deleted backup piece
backup piece handle=2rpgt0ta_1_1 RECID=88 STAMP=856589226
deleted backup piece
backup piece handle=2ppgt0ta_1_1 RECID=89 STAMP=856589226
deleted backup piece
backup piece handle=2qpgt0ta_1_1 RECID=90 STAMP=856589227
Deleted 4 objects
RMAN> list backup;
specification does not match any backup in the repository
RMAN> list copy;
specification does not match any datafile copy in the repository
specification does not match any control file copy in the repository
specification does not match any archived log in the repository
RMAN> backup as copy tag '1DISK_WHOLE_INCR0' incremental level 0 database ;
Starting backup at 2014-08-26:05:48:53
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=199 device type=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID=8 device type=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: SID=69 device type=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: SID=131 device type=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: SID=195 device type=DISK
allocated channel: ORA_DISK_6
channel ORA_DISK_6: SID=10 device type=DISK
allocated channel: ORA_DISK_7
channel ORA_DISK_7: SID=78 device type=DISK
allocated channel: ORA_DISK_8
channel ORA_DISK_8: SID=9 device type=DISK
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
channel ORA_DISK_2: starting datafile copy
input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
channel ORA_DISK_3: starting datafile copy
input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
channel ORA_DISK_4: starting datafile copy
input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
channel ORA_DISK_5: starting datafile copy
copying current control file
channel ORA_DISK_6: starting datafile copy
input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
channel ORA_DISK_7: starting incremental level 0 datafile backup set
channel ORA_DISK_7: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_7: starting piece 1 at 2014-08-26:05:49:05
output file name=+FRA/orcl/datafile/system.332.856590535 tag=1DISK_WHOLE_INCR0 RECID=7 STAMP=856590558
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:42
channel ORA_DISK_7: finished piece 1 at 2014-08-26:05:49:36
piece handle=+FRA/orcl/backupset/2014_08_26/nnsnn0_1disk_whole_incr0_0.326.856590549 tag=1DISK_WHOLE_INCR0 comment=NONE
channel ORA_DISK_7: backup set complete, elapsed time: 00:00:31
output file name=+FRA/orcl/datafile/example.327.856590547 tag=1DISK_WHOLE_INCR0 RECID=9 STAMP=856590572
channel ORA_DISK_4: datafile copy complete, elapsed time: 00:00:43
output file name=+FRA/orcl/controlfile/backup.333.856590535 tag=1DISK_WHOLE_INCR0 RECID=6 STAMP=856590555
channel ORA_DISK_5: datafile copy complete, elapsed time: 00:00:46
output file name=+FRA/orcl/datafile/users.325.856590551 tag=1DISK_WHOLE_INCR0 RECID=8 STAMP=856590565
channel ORA_DISK_6: datafile copy complete, elapsed time: 00:00:39
output file name=+FRA/orcl/datafile/undotbs1.328.856590541 tag=1DISK_WHOLE_INCR0 RECID=10 STAMP=856590578
channel ORA_DISK_2: datafile copy complete, elapsed time: 00:00:50
output file name=+FRA/orcl/datafile/sysaux.323.856590545 tag=1DISK_WHOLE_INCR0 RECID=11 STAMP=856590584
channel ORA_DISK_3: datafile copy complete, elapsed time: 00:01:00
Finished backup at 2014-08-26:05:49:54
RMAN> list copy;
specification does not match any archived log in the repository
List of Datafile Copies
=======================
Key File S Completion Time Ckp SCN Ckp Time
------- ---- - ------------------- ---------- -------------------
7 1 A 2014-08-26:05:49:18 2270192 2014-08-26:05:48:54
Name: +FRA/orcl/datafile/system.332.856590535
Tag: 1DISK_WHOLE_INCR0
11 2 A 2014-08-26:05:49:44 2270198 2014-08-26:05:48:55
Name: +FRA/orcl/datafile/sysaux.323.856590545
Tag: 1DISK_WHOLE_INCR0
10 3 A 2014-08-26:05:49:38 2270195 2014-08-26:05:48:54
Name: +FRA/orcl/datafile/undotbs1.328.856590541
Tag: 1DISK_WHOLE_INCR0
8 4 A 2014-08-26:05:49:25 2104375 2014-08-23:11:06:35
Name: +FRA/orcl/datafile/users.325.856590551
Tag: 1DISK_WHOLE_INCR0
9 5 A 2014-08-26:05:49:32 2270202 2014-08-26:05:48:57
Name: +FRA/orcl/datafile/example.327.856590547
Tag: 1DISK_WHOLE_INCR0
List of Control File Copies
===========================
Key S Completion Time Ckp SCN Ckp Time
------- - ------------------- ---------- -------------------
6 A 2014-08-26:05:49:15 2270201 2014-08-26:05:48:56
Name: +FRA/orcl/controlfile/backup.333.856590535
Tag: 1DISK_WHOLE_INCR0
RMAN> backup tag '2DISK_WHOLE_INCR1' incremental level 1 database ;
Starting backup at 2014-08-26:05:52:29
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
channel ORA_DISK_1: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DATA/orcl/datafile/system.256.816169553
channel ORA_DISK_1: starting piece 1 at 2014-08-26:05:52:29
channel ORA_DISK_2: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_2: specifying datafile(s) in backup set
input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.258.816169553
channel ORA_DISK_2: starting piece 1 at 2014-08-26:05:52:29
channel ORA_DISK_3: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_3: specifying datafile(s) in backup set
input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.257.816169553
channel ORA_DISK_3: starting piece 1 at 2014-08-26:05:52:30
channel ORA_DISK_4: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_4: specifying datafile(s) in backup set
input datafile file number=00005 name=+DATA/orcl/datafile/example.265.816169651
channel ORA_DISK_4: starting piece 1 at 2014-08-26:05:52:30
channel ORA_DISK_5: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_5: specifying datafile(s) in backup set
channel ORA_DISK_6: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_6: specifying datafile(s) in backup set
input datafile file number=00004 name=+DATA/orcl/datafile/users.259.816169553
skipping datafile 00004 because it has not changed
channel ORA_DISK_6: backup cancelled because all files were skipped
channel ORA_DISK_7: starting compressed incremental level 1 datafile backup set
channel ORA_DISK_7: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_7: starting piece 1 at 2014-08-26:05:52:31
channel ORA_DISK_1: finished piece 1 at 2014-08-26:05:52:31
piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751 tag=2DISK_WHOLE_INCR1 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_2: finished piece 1 at 2014-08-26:05:52:32
piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751 tag=2DISK_WHOLE_INCR1 comment=NONE
channel ORA_DISK_2: backup set complete, elapsed time: 00:00:03
channel ORA_DISK_3: finished piece 1 at 2014-08-26:05:52:32
piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751 tag=2DISK_WHOLE_INCR1 comment=NONE
channel ORA_DISK_3: backup set complete, elapsed time: 00:00:02
including current control file in backup set
channel ORA_DISK_5: starting piece 1 at 2014-08-26:05:52:32
channel ORA_DISK_7: finished piece 1 at 2014-08-26:05:52:32
piece handle=+FRA/orcl/backupset/2014_08_26/nnsnn1_2disk_whole_incr1_0.331.856590751 tag=2DISK_WHOLE_INCR1 comment=NONE
channel ORA_DISK_7: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_4: finished piece 1 at 2014-08-26:05:52:32
piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753 tag=2DISK_WHOLE_INCR1 comment=NONE
channel ORA_DISK_4: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_5: finished piece 1 at 2014-08-26:05:52:33
piece handle=+FRA/orcl/backupset/2014_08_26/ncnnn1_2disk_whole_incr1_0.319.856590753 tag=2DISK_WHOLE_INCR1 comment=NONE
channel ORA_DISK_5: backup set complete, elapsed time: 00:00:01
Finished backup at 2014-08-26:05:52:33
RMAN> list copy;
specification does not match any archived log in the repository
List of Datafile Copies
=======================
Key File S Completion Time Ckp SCN Ckp Time
------- ---- - ------------------- ---------- -------------------
7 1 A 2014-08-26:05:49:18 2270192 2014-08-26:05:48:54
Name: +FRA/orcl/datafile/system.332.856590535
Tag: 1DISK_WHOLE_INCR0
11 2 A 2014-08-26:05:49:44 2270198 2014-08-26:05:48:55
Name: +FRA/orcl/datafile/sysaux.323.856590545
Tag: 1DISK_WHOLE_INCR0
10 3 A 2014-08-26:05:49:38 2270195 2014-08-26:05:48:54
Name: +FRA/orcl/datafile/undotbs1.328.856590541
Tag: 1DISK_WHOLE_INCR0
8 4 A 2014-08-26:05:49:25 2104375 2014-08-23:11:06:35
Name: +FRA/orcl/datafile/users.325.856590551
Tag: 1DISK_WHOLE_INCR0
9 5 A 2014-08-26:05:49:32 2270202 2014-08-26:05:48:57
Name: +FRA/orcl/datafile/example.327.856590547
Tag: 1DISK_WHOLE_INCR0
List of Control File Copies
===========================
Key S Completion Time Ckp SCN Ckp Time
------- - ------------------- ---------- -------------------
6 A 2014-08-26:05:49:15 2270201 2014-08-26:05:48:56
Name: +FRA/orcl/controlfile/backup.333.856590535
Tag: 1DISK_WHOLE_INCR0
RMAN> recover copy of database with tag '1DISK_WHOLE_INCR0';
Starting recover at 2014-08-26:05:57:47
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
no copy of datafile 4 found to recover
channel ORA_DISK_1: starting incremental datafile backup set restore
channel ORA_DISK_1: specifying datafile copies to recover
recovering datafile copy file number=00001 name=+FRA/orcl/datafile/system.332.856590535
channel ORA_DISK_1: reading from backup piece +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751
channel ORA_DISK_2: starting incremental datafile backup set restore
channel ORA_DISK_2: specifying datafile copies to recover
recovering datafile copy file number=00003 name=+FRA/orcl/datafile/undotbs1.328.856590541
channel ORA_DISK_2: reading from backup piece +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751
channel ORA_DISK_3: starting incremental datafile backup set restore
channel ORA_DISK_3: specifying datafile copies to recover
recovering datafile copy file number=00002 name=+FRA/orcl/datafile/sysaux.323.856590545
channel ORA_DISK_3: reading from backup piece +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751
channel ORA_DISK_4: starting incremental datafile backup set restore
channel ORA_DISK_4: specifying datafile copies to recover
recovering datafile copy file number=00005 name=+FRA/orcl/datafile/example.327.856590547
channel ORA_DISK_4: reading from backup piece +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753
channel ORA_DISK_1: piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751 tag=2DISK_WHOLE_INCR1
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_DISK_2: piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751 tag=2DISK_WHOLE_INCR1
channel ORA_DISK_2: restored backup piece 1
channel ORA_DISK_2: restore complete, elapsed time: 00:00:01
channel ORA_DISK_3: piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751 tag=2DISK_WHOLE_INCR1
channel ORA_DISK_3: restored backup piece 1
channel ORA_DISK_3: restore complete, elapsed time: 00:00:01
channel ORA_DISK_4: piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753 tag=2DISK_WHOLE_INCR1
channel ORA_DISK_4: restored backup piece 1
channel ORA_DISK_4: restore complete, elapsed time: 00:00:01
Finished recover at 2014-08-26:05:57:48
RMAN> list copy;
specification does not match any archived log in the repository
List of Datafile Copies
=======================
Key File S Completion Time Ckp SCN Ckp Time
------- ---- - ------------------- ---------- -------------------
12 1 A 2014-08-26:05:57:48 2270443 2014-08-26:05:52:29
Name: +FRA/orcl/datafile/system.332.856590535
Tag: 1DISK_WHOLE_INCR0
15 2 A 2014-08-26:05:57:48 2270449 2014-08-26:05:52:30
Name: +FRA/orcl/datafile/sysaux.323.856590545
Tag: 1DISK_WHOLE_INCR0
13 3 A 2014-08-26:05:57:48 2270446 2014-08-26:05:52:30
Name: +FRA/orcl/datafile/undotbs1.328.856590541
Tag: 1DISK_WHOLE_INCR0
8 4 A 2014-08-26:05:49:25 2104375 2014-08-23:11:06:35
Name: +FRA/orcl/datafile/users.325.856590551
Tag: 1DISK_WHOLE_INCR0
14 5 A 2014-08-26:05:57:48 2270453 2014-08-26:05:52:31
Name: +FRA/orcl/datafile/example.327.856590547
Tag: 1DISK_WHOLE_INCR0
List of Control File Copies
===========================
Key S Completion Time Ckp SCN Ckp Time
------- - ------------------- ---------- -------------------
6 A 2014-08-26:05:49:15 2270201 2014-08-26:05:48:56
Name: +FRA/orcl/controlfile/backup.333.856590535
Tag: 1DISK_WHOLE_INCR0
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 DISK;
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'MEDIUM' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
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> report obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 1 days
no obsolete backups found
RMAN> report obsolete redundancy 1 ;
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Control File Copy 6 2014-08-26:05:49:15 +FRA/orcl/controlfile/backup.333.856590535
Backup Set 91 2014-08-26:05:49:14
Backup Piece 91 2014-08-26:05:49:14 +FRA/orcl/backupset/2014_08_26/nnsnn0_1disk_whole_incr0_0.326.856590549
Backup Set 92 2014-08-26:05:52:30
Backup Piece 92 2014-08-26:05:52:30 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751
Backup Set 93 2014-08-26:05:52:31
Backup Piece 93 2014-08-26:05:52:31 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751
Backup Set 95 2014-08-26:05:52:32
Backup Piece 95 2014-08-26:05:52:32 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751
Backup Set 96 2014-08-26:05:52:32
Backup Piece 96 2014-08-26:05:52:32 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753
RMAN>
user interrupt received
delete obsolete redundancy 1 ;
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Control File Copy 6 2014-08-26:05:49:15 +FRA/orcl/controlfile/backup.333.856590535
Backup Set 91 2014-08-26:05:49:14
Backup Piece 91 2014-08-26:05:49:14 +FRA/orcl/backupset/2014_08_26/nnsnn0_1disk_whole_incr0_0.326.856590549
Backup Set 92 2014-08-26:05:52:30
Backup Piece 92 2014-08-26:05:52:30 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751
Backup Set 93 2014-08-26:05:52:31
Backup Piece 93 2014-08-26:05:52:31 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751
Backup Set 95 2014-08-26:05:52:32
Backup Piece 95 2014-08-26:05:52:32 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751
Backup Set 96 2014-08-26:05:52:32
Backup Piece 96 2014-08-26:05:52:32 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753
Do you really want to delete the above objects (enter YES or NO)?
Do you really want to delete the above objects (enter YES or NO)? NO
RMAN> list backupset 91;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ -------------------
91 Incr 0 80.00K DISK 00:00:18 2014-08-26:05:49:22
BP Key: 91 Status: AVAILABLE Compressed: NO Tag: 1DISK_WHOLE_INCR0
Piece Name: +FRA/orcl/backupset/2014_08_26/nnsnn0_1disk_whole_incr0_0.326.856590549
SPFILE Included: Modification time: 2014-08-26:04:27:59
SPFILE db_unique_name: ORCL
RMAN> delete obsolete redundancy 1 ;
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Control File Copy 6 2014-08-26:05:49:15 +FRA/orcl/controlfile/backup.333.856590535
Backup Set 91 2014-08-26:05:49:14
Backup Piece 91 2014-08-26:05:49:14 +FRA/orcl/backupset/2014_08_26/nnsnn0_1disk_whole_incr0_0.326.856590549
Backup Set 92 2014-08-26:05:52:30
Backup Piece 92 2014-08-26:05:52:30 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751
Backup Set 93 2014-08-26:05:52:31
Backup Piece 93 2014-08-26:05:52:31 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751
Backup Set 95 2014-08-26:05:52:32
Backup Piece 95 2014-08-26:05:52:32 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751
Backup Set 96 2014-08-26:05:52:32
Backup Piece 96 2014-08-26:05:52:32 +FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753
Do you really want to delete the above objects (enter YES or NO)? YES
deleted control file copy
control file copy file name=+FRA/orcl/controlfile/backup.333.856590535 RECID=6 STAMP=856590555
deleted backup piece
backup piece handle=+FRA/orcl/backupset/2014_08_26/nnsnn0_1disk_whole_incr0_0.326.856590549 RECID=91 STAMP=856590545
deleted backup piece
backup piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.324.856590751 RECID=92 STAMP=856590750
deleted backup piece
backup piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.329.856590751 RECID=93 STAMP=856590750
deleted backup piece
backup piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.330.856590751 RECID=95 STAMP=856590751
deleted backup piece
backup piece handle=+FRA/orcl/backupset/2014_08_26/nnndn1_2disk_whole_incr1_0.320.856590753 RECID=96 STAMP=856590751
Deleted 6 objects
RMAN>
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'+DATA/orcl/onlinelog/group_1.261.816169635',
'+FRA/orcl/onlinelog/group_1.257.816169637'
) SIZE 50M BLOCKSIZE 512,
GROUP 2 (
'+DATA/orcl/onlinelog/group_2.262.816169639',
'+FRA/orcl/onlinelog/group_2.258.816169639'
) SIZE 50M BLOCKSIZE 512,
GROUP 3 (
'+DATA/orcl/onlinelog/group_3.263.816169641',
'+FRA/orcl/onlinelog/group_3.259.816169641'
) SIZE 50M BLOCKSIZE 512
DATAFILE
'+DATA/orcl/datafile/system.256.816169553',
'+DATA/orcl/datafile/sysaux.257.816169553',
'+DATA/orcl/datafile/undotbs1.258.816169553',
'+DATA/orcl/datafile/example.265.816169651'
CHARACTER SET AL32UTF8
;
-- Configure RMAN configuration record 1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('RETENTION POLICY','TO RECOVERY WINDOW OF 1 DAYS');
-- Configure RMAN configuration record 2
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('BACKUP OPTIMIZATION','ON');
-- Configure RMAN configuration record 3
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEFAULT DEVICE TYPE TO','''SBT_TAPE''');
-- Configure RMAN configuration record 4
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON');
-- Configure RMAN configuration record 5
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET');
-- Configure RMAN configuration record 6
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','''SBT_TAPE'' PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET');
-- Configure RMAN configuration record 7
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','1 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 8
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','2 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 9
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','3 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 10
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','4 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 11
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','5 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 12
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','6 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 13
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','7 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 14
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','8 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 15
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('COMPRESSION ALGORITHM','''MEDIUM'' AS OF RELEASE ''DEFAULT'' OPTIMIZE FOR LOAD TRUE');
ALTER DATABASE RENAME FILE 'MISSING00004'
TO '+DATA/orcl/datafile/users.259.816169553';
CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'+DATA/orcl/onlinelog/group_1.261.816169635',
'+FRA/orcl/onlinelog/group_1.257.816169637'
) SIZE 50M BLOCKSIZE 512,
GROUP 2 (
'+DATA/orcl/onlinelog/group_2.262.816169639',
'+FRA/orcl/onlinelog/group_2.258.816169639'
) SIZE 50M BLOCKSIZE 512,
GROUP 3 (
'+DATA/orcl/onlinelog/group_3.263.816169641',
'+FRA/orcl/onlinelog/group_3.259.816169641'
) SIZE 50M BLOCKSIZE 512
DATAFILE
'+DATA/orcl/datafile/system.256.816169553',
'+DATA/orcl/datafile/sysaux.257.816169553',
'+DATA/orcl/datafile/undotbs1.258.816169553',
'+DATA/orcl/datafile/example.265.816169651'
CHARACTER SET AL32UTF8
;
-- Configure RMAN configuration record 1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('RETENTION POLICY','TO RECOVERY WINDOW OF 1 DAYS');
-- Configure RMAN configuration record 2
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('BACKUP OPTIMIZATION','ON');
-- Configure RMAN configuration record 3
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEFAULT DEVICE TYPE TO','''SBT_TAPE''');
-- Configure RMAN configuration record 4
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON');
-- Configure RMAN configuration record 5
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','DISK PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET');
-- Configure RMAN configuration record 6
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('DEVICE TYPE','''SBT_TAPE'' PARALLELISM 8 BACKUP TYPE TO COMPRESSED BACKUPSET');
-- Configure RMAN configuration record 7
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','1 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 8
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','2 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 9
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','3 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 10
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','4 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 11
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','5 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 12
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','6 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 13
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','7 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 14
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CHANNEL','8 DEVICE TYPE ''SBT_TAPE'' PARMS ''ENV=(OB_MEDIA_FAMILY=station90)''');
-- Configure RMAN configuration record 15
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('COMPRESSION ALGORITHM','''MEDIUM'' AS OF RELEASE ''DEFAULT'' OPTIMIZE FOR LOAD TRUE');
ALTER DATABASE RENAME FILE 'MISSING00004'
TO '+DATA/orcl/datafile/users.259.816169553';
|
|