RMAN OBULETE and Expired Backup
HI Experts
i need a query which can tell me about my expired backups and Obsolete backups . my recovery window is of 14 days
My database version is 10g(10.2.0.4) on AIX 6.1
regards,
AMIABU wrote:
HI Experts
i need a query which can tell me about my expired backups and Obsolete backups . my recovery window is of 14 days
My database version is 10g(10.2.0.4) on AIX 6.1
regards,Use command:
Rman > crosscheck backup;
Rman > crosscheck archivelog all;
Rman > list backup;
Rman > list archive logall;
Expired Backup: List Expired
Then use report obsolete command it show the backup that you dont need it and after that use Delete obsolete command
It will delete the backup that you dont need it.
The term obsolete does not mean the same as expired. In short obsolete means "not needed " whereas expired means "not found."
reference: http://download.oracle.com/docs/cd/B14117_01/server.101/b10734/rcmconc3.htm
http://www.geekinterview.com/question_details/66392
Similar Messages
-
Difference betwen RMAN,COLD and HOT backup
Hi Experts,
I have faces some interview question .
what is difference between COLD and HOT backup ?
what is difference between RMAN, COLD and HOT backup?You mean the following,
Mark the beginning of the online tablespace backup.
SQL> ALTER TABLESPACE users BEGIN BACKUP;
Back up the online datafiles of the online tablespace with operating system commands. For UNIX:
% cp /oracle/oradata/trgt/users01.dbf /d2/users01_'date "+%m_%d_%y"'.dbf
After backing up the datafiles of the online tablespace, run the SQL statement ALTER TABLESPACE with the END BACKUP option.
SQL> ALTER TABLESPACE users END BACKUP;
Please visit here for more details:
Making User-Managed Backups of Online Read/Write Tablespaces
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osbackup004.htm#sthref1489
Adith -
Can't delete obsolete and expired backups.
Every Sundays I create 0 level backup.
Every Thuesdays I create 1 level comulative backup.
Every other days I create 1 level incremental backup.
Sometimes I need a free space for new backups and I try clean old backups.
As I can understand, rman remove backups from 'list backup', but doens't delete physically from disk storage.
SQL> select banner from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production
TNS for Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
0 level backup
CONNECT TARGET / ;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u06/backup/df_%d_%s_%U';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u06/backup/cf_%F';
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u06/backup/snapcf.f';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE MAXSETSIZE TO 20G;
BACKUP CURRENT CONTROLFILE;
BACKUP INCREMENTAL LEVEL 0 DATABASE FILESPERSET 100 ;
BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
RESTORE VALIDATE DATABASE;
RESTORE VALIDATE CONTROLFILE TO '$ORACLE_BASE/admin/rman_scripts/cf_tmp.ctl';
RESTORE VALIDATE SPFILE TO '$ORACLE_BASE/admin/rman_scripts/spf_tmp.ora';
RESTORE VALIDATE ARCHIVELOG FROM TIME 'SYSDATE-4';
REPORT NEED BACKUP;
DELETE OBSOLETE;
LIST BACKUP;
LIST BACKUP SUMMARY;
1 level comulative backup
CONNECT TARGET / ;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u06/backup/df_%d_%s_%U';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u06/backup/cf_%F';
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u06/backup/snapcf.f';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE MAXSETSIZE TO 20G;
BACKUP CURRENT CONTROLFILE;
BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE FILESPERSET 100;
BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
RESTORE VALIDATE DATABASE;
RESTORE VALIDATE CONTROLFILE TO '$ORACLE_BASE/admin/rman_scripts/cf_tmp.ctl';
RESTORE VALIDATE SPFILE TO '$ORACLE_BASE/admin/rman_scripts/spf_tmp.ora';
RESTORE VALIDATE ARCHIVELOG FROM TIME 'SYSDATE-4';
REPORT NEED BACKUP;
DELETE OBSOLETE;
LIST BACKUP;
LIST BACKUP SUMMARY;
1 level incremental backup
CONNECT TARGET / ;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE DEVICE TYPE DISK PARALLELISM 1;
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/u06/backup/df_%d_%s_%U';
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u06/backup/cf_%F';
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u06/backup/snapcf.f';
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE MAXSETSIZE TO 20G;
BACKUP CURRENT CONTROLFILE;
BACKUP INCREMENTAL LEVEL 1 DATABASE FILESPERSET 100;
BACKUP ARCHIVELOG ALL DELETE ALL INPUT;
RESTORE VALIDATE DATABASE;
RESTORE VALIDATE CONTROLFILE TO '$ORACLE_BASE/admin/rman_scripts/cf_tmp.ctl';
RESTORE VALIDATE SPFILE TO '$ORACLE_BASE/admin/rman_scripts/spf_tmp.ora';
RESTORE VALIDATE ARCHIVELOG FROM TIME 'SYSDATE-4';
REPORT NEED BACKUP;
DELETE OBSOLETE;
LIST BACKUP;
LIST BACKUP SUMMARY;
Try delete old backups:
CONNECT TARGET / ;
RMAN> CROSSCHECK BACKUP;
Crosschecked 173 objects
RMAN> DELETE EXPIRED BACKUP;
using channel ORA_DISK_1
specification does not match any backup in the repository
RMAN> DELETE OBSOLETE;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 3 days
using channel ORA_DISK_1
no obsolete backups found
RMAN>
Edited by: 848540 on 31.10.2011 23:15I try to ask one more time.
I make all backups in the folder \u06\backup.
I make full backups every week.
After command "crosscheck backup" all backups older 2 weeks must be mark as "OBSOLETE". This operation works correctly, becouse in "list backup" i look all backups for last two weeks and no older (for today they all made earlyer then 06/11/2011)!
After crosscheck operation i try to delete old backups from HDD.
RMAN> delete expired backup;
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=2 device type=DISK
specification does not match any backup in the repository
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 3 days
using channel ORA_DISK_1
no obsolete backups found
But after this operation I look in my backup folder files since 02/10/2011. How to sync backups (delete obsolete backups from HDD) in rman list (command 'list backup') and in operation system list (command 'ls' in sun10)?
Edited by: 848540 on 14.11.2011 0:32 -
RMAN crosscheck and expire guidelines for data warehouse environment
O/S: Windows Server 2008
DB: Oracle 11gR2
Are there any guidelines to how often one should do a RMAN crosscheck and set an expiration on archivelogs for data warehouse environments?
It would seem once a day would be enough for the crosscheck in a data warehouse environment that gets refreshed nightly. Expiration I would expect no less than 1 week.
Cheers!I agree with damorgan
refer the below links for best practices.
http://www.oracle.com/technetwork/database/features/availability/311394-132335.pdf
https://blogs.oracle.com/datawarehousing/entry/data_warehouse_in_archivelog_m
Hope this helps,
Regards
http://www.oracleracepxert.com
Understand the Power of Oracle RMAN
http://www.oracleracexpert.com/2011/10/understand-power-of-oracle-rman.html
Duplicating RAC database using RMAN
http://www.oracleracexpert.com/2009/12/duplicate-rac-database-using-rman.html -
10g rman database and archivelogs backup with multipled archlog destination
I would like to use the 10g database and archivelogs backup statetement
backup database plus archivelog;
I would like to restrict the location of the archivelogs backed out as I am multiplexing the
archivelogs
I did not find a LIKE statement and the backup database plus archivelog
Did i miss something
patrick boulayI meant backup
I just want to restrict rman form backing up the two location using the 'one shot' 10g syntax
I used to backup using two steps
1) datafile
2) archlogs with a LIKE expression to tell Rman where to find the archlogs
1+2 with autobackup of control+spfile
the 'backup database plus archivelog ' syntax does accept a 'LIKE' expression
patrick -
Rman Full and Archivelog backups
I am scripting my rman stuff and it's part of a much larger Perl maintenance. I have nightly and hourly jobs. Nightly will do a full backup and hourly will do archivelog backup. Full backups take about 2-3 hours.
My question is: is there a problem with running archivelog backups be running while I am doing a full backup. If system resources are not an issues, what are some arguments for or against it?Thanks Tychos.
That is something that I've debated - if my full would be with Plus ArchiveLog or not. So, I've decided not to backup the log during a full backup.
This is for my nightly:
open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
print RMAN <<"END";
run {
allocate channel d1 device type disk format \'$HBDir/$HBFiles\';
set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
backup as compressed backupset database;
crosscheck backup;
delete noprompt obsolete;
report need backup;}
END
close (RMAN);
This is the hourly:
open (RMAN, "| rman target sys/$SYPASS\@$CSID catalog rman/$CATPSS\@catalog >$Rlog");
print RMAN <<"END";
run {
allocate channel d1 device type disk format \'$TempArchHBDir/$BUFile\';
CROSSCHECK ARCHIVELOG ALL;
set controlfile autobackup format for device type disk to \'$HBDir/$ControlFile\';
backup archivelog all not backed up 1 times delete input;
END
close (RMAN); -
RMAN tables and last backup done
Hi,
in 10g R2
which table and which column should be queried to see the last Rman Back up ?
Thank you.hi,
You get the info from below query.
select RECID ,to_char(START_TIME,'DD-MON-RR HH:MI AM'),to_char(COMPLETION_TIME,'DD-MON-RR HH:MI AM') from v$backup_set where START_TIME>trunc(SYSDATE);
Regards
Jafar -
RMAN LIST backup and maintain backup.
Hi Experts,
Currently we have some changes on the rman retention policy from 168days to 90days.
RMAN Retention policy is:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
And RMAN Scripts monthly backup is:
run
allocate channel t1 type 'sbt_tape' parms
'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo_monthly.opt)';
backup as compressed backupset database tag ${SID}_MONTHLY keep until time 'sysdate+168';
release channel t1;
I believe I still have the old backup after I changed the 'sysdate+168' to 'sysdate+90'; on my scripts
How do I manage to delete this ?
Using, List backup and list backup summary will prompt me very long line and window,
How do I create the CONFIGURE settings I can remove the allocate channel... on my scripts ?
Cheers,
RaffHi mseberg,
I have executed as your advised below, but somehow it doesnt get the files.
Is there any way to check what is the oldest backup that available ?
RMAN> DELETE noprompt BACKUP COMPLETED BEFORE 'SYSDATE-90';
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=100 device type=DISK
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: SID=138 device type=SBT_TAPE
channel ORA_SBT_TAPE_1: Data Protection for Oracle: version 5.5.1.0
specification does not match any backup in the repository
RMAN> DELETE EXPIRED BACKUP;
using channel ORA_DISK_1
using channel ORA_SBT_TAPE_1
specification does not match any backup in the repository
RMAN> DELETE FORCE NOPROMPT BACKUP COMPLETED BEFORE 'SYSDATE-90';
using channel ORA_DISK_1
using channel ORA_SBT_TAPE_1
specification does not match any backup in the repository -
RMAN throwing errors during Tablespace Backup - RMAN-06004 and RMAN-06019
Hi All.
Please help me to fix trail of error message I'm getting while trying backup of a newly added tablespace in database. I'm using RMAN as a recovery method.
Tablespace Name: test
DB Version: Oracle 10g R1.
OS: Red Hat Linux 5
RMAN> report schema;
Report of database schema
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
1 490 SYSTEM YES /u01/app/oracle/oradata/qrcl/system01.dbf
2 25 UNDOTBS1 YES /u01/app/oracle/oradata/qrcl/undotbs01.dbf
3 270 SYSAUX NO /u01/app/oracle/oradata/qrcl/sysaux01.dbf
4 23 USERS NO /u01/app/oracle/oradata/qrcl/users01.dbf
5 40 TEST NO /u01/app/test01.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
1 20 TEMP 32767 /u01/app/oracle/oradata/qrcl/temp01.dbf
RMAN>
RMAN> backup tablespace "test";
Starting backup at 22-AUG-12
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 08/22/2012 11:57:13
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20202: tablespace not found in the recovery catalog
RMAN-06019: could not translate tablespace name "test"
RMAN> restore tablespace test;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "test": expecting one of: "double-quoted-string, identifier, single-quoted-string"
RMAN-01007: at line 1 column 20 file: standard input
I tried to update Catalog Server but still no luck:
RMAN> RESYNC CATALOG;
starting full resync of recovery catalog
full resync complete
Please Assist.
Thanks
Prashant DixitHello Prashant;
The main issue is your tablespace name is an RMAN Reserved Word "Test"
http://docs.oracle.com/cd/B13789_01/server.101/b10770/rcmcomma.htm#1006728
Different test
-- Create the tablespace
CREATE TABLESPACE OTN_TEST DATAFILE
'/u01/oradata/RECOVER2/test01.dbf' SIZE 1M AUTOEXTEND OFF
LOGGING
ONLINE;-- Create a user for the tablespace
CREATE USER RMAN_TEST
IDENTIFIED BY RMAN_TEST
DEFAULT TABLESPACE OTN_TEST
TEMPORARY TABLESPACE TEMP
PROFILE DEFAULT
ACCOUNT UNLOCK;
ALTER USER RMAN_TEST QUOTA UNLIMITED ON "OTN_TEST"; -- Create a table in the tablespace
CREATE TABLE RMAN_TEST.EMP
EMPNO NUMBER,
ENAME VARCHAR2(30 BYTE),
JOB VARCHAR2(30 BYTE),
MGR NUMBER,
HIREDATE DATE,
SAL NUMBER,
COMM NUMBER,
DEPTNO NUMBER
TABLESPACE OTN_TEST;-- Add some data
SET DEFINE OFF;
Insert into RMAN_TEST.EMP
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
(7369, 'SMITH', 'CLERK', 7902, TO_DATE('12/17/1980 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
800, 20, 0);
Insert into RMAN_TEST.EMP
(EMPNO, ENAME, JOB, MGR, HIREDATE, SAL, COMM, DEPTNO)
Values
(5000, 'NOCATALOG', 'DBA', 77902, TO_DATE('04/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'),
200, 0, 0);
COMMIT;-- start RMAN and backup tablespace
RMAN> BACKUP TABLESPACE OTN_TEST;
Starting backup at 22-AUG-12
starting full resync of recovery catalog
full resync complete
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00007 name=/u01/oradata/RECOVER2/test01.dbf
channel ORA_DISK_1: starting piece 1 at 22-AUG-12
channel ORA_DISK_1: finished piece 1 at 22-AUG-12
piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/backupset/2012_08_22/o1_mf_nnndf_TAG20120822T080711_839pczng_.bkp tag=TAG20120822T080711 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 22-AUG-12
Starting Control File and SPFILE Autobackup at 22-AUG-12
piece handle=/u01/app/oracle/flash_recovery_area/RECOVER2/autobackup/2012_08_22/o1_mf_s_791971633_839pd1bm_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 22-AUG-12
Note
If you dropped the tablespace then you need to recover the database to a point in time, not the tablespace.
Best Regards
mseberg -
How to find expired backup?
Dear All,
how to find expired RMAN backup?
how it got expired?(according to which concept)
expired RMAN backup not used to restore?
If catalog database is their we need to register and then take backup?(is must?)
sorry for easy questions..but i'm in situation to know?
please help me :-)
Note:oracle 9i
Os:HP-UX
regards,
DB :-)
Edited by: DB on Feb 9, 2013 2:42 PMHello,
Expired backups are those that are unavailable on the location that you had taken the backup (disk or tape). Running a "crosscheck backup" lists out the expired backups and also updates the repository saying that these backups have been expired. You can delete the expired backups using "delete expired backup".
If you have the backups copied to a different location using OS commands and if the repository is not updated, then the crosscheck commands lists these backups to be expired. If these backups are required for a restoration purpose, then you can catalog them to the location where they are currently place using "catalog start with <path where the backup is stored>".
Since you are on 9i, "catalog start with .." is not supported. May be you can use this DBMS_RCVMAN package but not sure about its usage.
Regards,
Shivananda -
Deleting expired backup not working.
Hi,
I am cleaning up the backup by deleting all the expired backups. My OS is RHEL 4 and DB is 10.2.0.3 and the backup is Veritas Netbackup using RMAN
Recovery Manager: Release 10.2.0.3.0 - Production on Mon Mar 28 12:51:16 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: WHSEPROD (DBID=2974933951)
connected to recovery catalog database
RMAN> delete expired backup;
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=136 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: Veritas NetBackup for Oracle - Release 6.5 (2007072400)
allocated channel: ORA_SBT_TAPE_2
channel ORA_SBT_TAPE_2: sid=145 devtype=SBT_TAPE
channel ORA_SBT_TAPE_2: Veritas NetBackup for Oracle - Release 6.5 (2007072400)
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=181 devtype=DISK
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
255513 255464 1 1 EXPIRED SBT_TAPE arch-s254-p1-t662126514
484866 484825 1 1 EXPIRED SBT_TAPE arch-s5711-p1-t680801187
1256712 1256637 1 1 EXPIRED SBT_TAPE arch-s257-p1-t724703694
1433633 1433540 1 1 EXPIRED SBT_TAPE arch-s5681-p1-t733340847
Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=arch-s254-p1-t662126514 recid=254 stamp=662126515
deleted backup piece
backup piece handle=arch-s5711-p1-t680801187 recid=5674 stamp=680801188
deleted backup piece
backup piece handle=arch-s257-p1-t724703694 recid=254 stamp=724703695
deleted backup piece
backup piece handle=arch-s5681-p1-t733340847 recid=5674 stamp=733340848
Deleted 4 EXPIRED objects
RMAN> delete expired backup;
using channel ORA_SBT_TAPE_1
using channel ORA_SBT_TAPE_2
using channel ORA_DISK_1
List of Backup Pieces
BP Key BS Key Pc# Cp# Status Device Type Piece Name
255513 255464 1 1 EXPIRED SBT_TAPE arch-s254-p1-t662126514
484866 484825 1 1 EXPIRED SBT_TAPE arch-s5711-p1-t680801187
1256712 1256637 1 1 EXPIRED SBT_TAPE arch-s257-p1-t724703694
1433633 1433540 1 1 EXPIRED SBT_TAPE arch-s5681-p1-t733340847
Do you really want to delete the above objects (enter YES or NO)?Even after it says it deleted 4 EXPIRED objects, why does it show those same four pieces? How can I get rid of it? Obviously, it is EXPIRED, so I don't need it. I ran crosscheck command too. That didn't worked. I ran the delete with force and obsolete options too. They also did not worked. Please help. What am I missing?I tried that change command. But I am getting
RMAN> change backupset completed before '01-Jan-2011' uncatalog;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of uncatalog command at 04/06/2011 12:55:34
RMAN-06122: CHANGE .. UNCATALOG not supported for BACKUPSET
The action change suggested was to use
RMAN> change backupset .... delete;
This says deleted. But again when I list backup this shows. -
How to find expired backups...
What rman command to use to see which backups are expired..
rman's crosscheck take stoo long.user632098 wrote:
What rman command to use to see which backups are expired..
rman's crosscheck take stoo long.
[oracle@edmtr7p0-orcl ~]$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Wed Nov 21 11:44:16 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
;sconnected to target database: ORCL (DBID=1327554174)
RMANlist expired backup;
using target database control file instead of recovery catalog
specification does not match any backup in the repository
RMAN> Aman.... -
Hi expert,
i want delete expired backup of databae
CONFIGURE RETENTION POLICY TO REDUNDANCY 7
this is my RMAN Database setting
how can delete RMAN backup ,
i have take backup of every day.
delete backup 'sysdate -2';
but how can delete it?I think you are confusing the things.
If you set a policy of REDUNDANCY = 7, then you want to keep 7 copies of the files in the backups.
And that is excluded with DELETE OBSOLETE clause and not to DELETE EXPIRED clause.
And also, if you define REDUNDANCY = 7, you may not use a DELETE SYSDATE-2, because there may be a file that was not backuped 7 times. -
Hi all,
I am using RMAN as a primary tool for BAckup & Recovery. It is consistently syncronizing itself regarding my archived log filles and when I execute 'List Copy' command , it shows all the archived logs . One day I executed crosscheck command for archived logs and found that few are expired . so I wanted to delete them using 'Delete Expired' command . but it didn't worked . Moreover there is an error of validation fail for those expired archivelogs .
Please help me .
Thanks
AkhileshUnqualified LIST or CROSSCHECK commands are likely to take a long time when you have many days or weeks of archived logs on tape/disk. You need to learn some RMAN syntax. For example:
LIST BACKUP OF DATABASE COMPLETED AFTER "SYSDATE-1";
This will eliminate archived logs and restrict your query to the last 24 hours.
Expired backups need to be deleted in a special way. However, before offering further advice I would echo the request of the previous helper and ask you to post your error messages.
Chin up. We'll help you out here.
--Tony
http://tonyhasler.wordpress.com -
I want to delete expired backups
Hey, I had manually deleted some backups, I didn't know about the "delete obsolete" command at the time. So when I do a "report obsolete" the expired backups are still showing and when I do a delete expired, it wont delete them since they were already deleted, but they are still showing up when i do a crosscheck and report obsolete.
So, my question is, is there anyway to tell rman that they have already been deleted? So they wont show up anymore?Can you tell the output of CROSSCHECK and DELETE EXPIRED statements. RMAN marks backups and copies as expired when you run a CROSSCHECK command and the files are absent or inaccessible.
Maybe you are looking for
-
Automatic postings out of MR11 pick wrong Alternative a/c no from the GL.
Hello Experts, I am facing an issue with MR11 GR/IR clearing. I came up this topic that the alternative accounts used were not the same as per the automatic postings out of MR11 meaning that MR11 post wrong alternative account, while the manual uses
-
please help!
-
I have a new iPad mini and my contacts are synching with each others information and pictures
I am trying to set up a new iPad. My contacts from Facebook are putting wrong picture and combining names
-
Check printing: Amount in words is getting jumbled
Hi, I have a problem in displaying amount in words in check. I am getting the amount in words through functuion module SPELL_AMOUNT correctly,i.e,(for example,110,002 ) ONE HUNDRED TEN THOUSAND TWO. After getting the amount,i am concatenating the wor
-
Hi, I have pdf document, which contains PDEText, PDEPath, and other element, using SDK functions, Numchars = PDETextGetNumChars((PDEText)pdeElement); PDETextGetBBox((PDEText)kPDETextChar,pdeElement, charindex, bboxP); PDETextGetText((PDEText)pdeEleme