(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> crosscheck backup; <br> <br>using channel ORA_SBT_TAPE_1 <br>using channel ORA_DISK_1 <br>crosschecked backup piece: found to be 'EXPIRED' <br>backup piece handle=7nf7oa5t_1_1 recid=242 stamp=511453373 <br>crosschecked backup piece: found to be 'AVAILABLE' <br>backup piece handle=7pfb1hh7_1_1 recid=243 stamp=514901544 <br> <br>crosschecked backup piece: found to be 'AVAILABLE' <br>backup piece handle=/mnt/disk2/6uf7lgq5_1_1 recid=220 stamp=511361861<br>File no longer in tape catalog. Could still exist on tape.<br>This file is in the tape index. However, Legato does not mount tape to validate physical file!<br>This disk file was found.<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> crosscheck backup of database; <br> <br>RMAN> crosscheck backup of archivelog all; <br> <br>RMAN> crosscheck backup of controlfile;<br>RMAN> crosscheck backup completed after 'sysdate-7'; <br>RMAN> crosscheck backup device type sbt; <br>RMAN> crosscheck backup of tablespace users; <br>RMAN> crosscheck archivelog all;<br>Check existence of archivelogs<br>Check existence of pieces created in last 7 days<br>Crosscheck all obsolete datafile backups, arc log backups and control file backups<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> list expired backup; <br> <br> <br>List of Backup Sets <br>=================== <br> <br>BS Key Type LV Size Device Type Elapsed Time Completion Time <br>------- ---- -- -------- ----------- ------------ --------------- <br>2177 Full 536M SBT_TAPE 00:02:38 08-JAN-04 <br> BP Key: 2178 Status: EXPIRED Tag: TAPE1 <br> Piece Name: 7pfb1hh7_1_1 <br> SPFILE Included: Modification time: 28-NOV-03 <br> List of Datafiles in backup set 2177 <br> File LV Type Ckp SCN Ckp Time Name <br> ---- -- ---- -------- --------- ---- <br> 1 Full 2540689 08-JAN-04 /opt/oracle/oradata/test/system01.dbf <br> 2 Full 2540689 08-JAN-04 /opt/oracle/oradata/test/undotbs01.db <br> . . . <br>Display info on expired backups <br> <br>Execute after CROSSCHECK<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
rman@DAVE> select handle, 2 case status when 'A' then 'AVAILABLE' <br> 3 when 'X' then 'EXPIRED' <br> 4 end as status, <br> 5 to_char(start_time, 'mm/dd/yyyy hh24:mi') as time, <br> 6 case backup_type when 'D' then 'FULL/LEV 0' <br> 7 when 'I' then 'INCREMENTAL' <br> 8 when 'L' then 'ARC LOG' <br> 9 end as type <br> 10 from rc_backup_piece <br> 11 where db_id = 1808373586 <br> 12 order by start_time <br> 13 / <br> <br>HANDLE STATUS TIME TYPE <br>------------------------- --------- ---------------- ----------- <br>/mnt/disk2/6uf7lgq5_1_1 AVAILABLE 11/29/2003 12:57 FULL/LEV 0 <br>/mnt/disk2/6vf7lh23_1_1 AVAILABLE 11/29/2003 13:01 FULL/LEV 0 <br>. . . <br>7nf7oa5t_1_1 AVAILABLE 11/30/2003 14:22 FULL/LEV 0 <br>7pfb1hh7_1_1 AVAILABLE 01/08/2004 12:12 FULL/LEV 0 <br>7qfbca3e_1_1 AVAILABLE 01/12/2004 14:13 FULL/LEV 0<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> delete expired backup; <br> <br>using channel ORA_SBT_TAPE_1 <br>using channel ORA_DISK_1 <br> <br>List of Backup Pieces <br>BP Key BS Key Pc# Cp# Status Device Type Piece Name <br>------- ------- --- --- ----------- ----------- ---------- <br>2147 2146 1 1 EXPIRED SBT_TAPE 7nf7oa5t_1_1 <br> <br>Do you really want to delete the above objects (enter YES or NO)? yes <br>deleted backup piece <br>backup piece handle=7nf7oa5t_1_1 recid=242 stamp=511453373 <br>Deleted 1 EXPIRED objects<br>Confirm delete; suppress with the NOPROMPT option<br>Releases before 8.1.6 left catalog entries; use prgrmanc.sql to clean-up catalog.<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> crosscheck backup of database; <br>RMAN> delete noprompt expired backup of database; <br>RMAN> crosscheck backup of archivelog all; <br>RMAN> delete noprompt expired backup of archivelog all; <br>RMAN> crosscheck backup of controlfile; <br>RMAN> delete noprompt expired backup of controlfile; <br>Crosscheck and remove all obsolete datafile backups, arc log backups and control file backups<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> configure retention policy to recovery window of 14 days; <br> <br>new RMAN configuration parameters: <br>CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS; <br>. . . <br> <br>RMAN> report obsolete ; <br> <br>RMAN retention policy will be applied to the command <br>RMAN retention policy is set to recovery window of 14 days <br>Report of obsolete backups and copies <br>Type Key Completion Time Filename/Handle <br>-------------------- ------ ----------------- -------------------- <br>Backup Set 1963 29-NOV-03 <br> Backup Piece 1964 29-NOV-03 /mnt/disk2/6uf7lgq5_1_1 <br>Backup Set 1987 29-NOV-03 <br> Backup Piece 1988 29-NOV-03 /mnt/disk2/75f7lqtm_1_1<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> delete obsolete; <br> <br>RMAN retention policy will be applied to the command <br>RMAN retention policy is set to recovery window of 14 days <br>allocated channel: ORA_SBT_TAPE_1 <br>allocated channel: ORA_DISK_1 <br>Deleting the following obsolete backups and copies: <br>Type Key Completion Time Filename/Handle <br>-------------------- ------ ----------------- -------------------- <br>Backup Set 1963 29-NOV-03 <br> Backup Piece 1964 29-NOV-03 /mnt/disk2/6uf7lgq5_1_1 <br>Backup Set 1987 29-NOV-03 <br> Backup Piece 1988 29-NOV-03 /mnt/disk2/75f7lqtm_1_1 <br> <br>Do you really want to delete the above objects (enter YES or NO)? yes <br>Deleted 2 objects<br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> backup tablespace users keep forever logs; <br> <br>Starting backup at 15-JAN-04 <br>released channel: ORA_SBT_TAPE_1 <br>using channel ORA_DISK_1 <br>backup will never be obsolete <br>archived logs required to recover from this backup will expire when this backup expires <br>. . . <br>piece handle=/opt/oracle/product/9.2.0/dbs/80fbkdhc_1_1 comment=NONE <br>channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03 <br>Finished backup at 15-JAN-04 <br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
RMAN> change backupset 2306 nokeep; <br> <br>. . . <br>using channel ORA_DISK_1 <br>keep attributes for the backup are deleted <br>backup set key=2306 recid=248 stamp=515520046 <br> <br>RMAN> <br>
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).
(If applicable)
Other Text:
(Examples or comments displayed on slide, if any).