RE: RMAN backup all but delete n days old

  • From: "Xu, Roger" <Roger.Xu@xxxxxxxx>
  • To: <cjnewman@xxxxxxxxxxxxx>, <fmhabash@xxxxxxxxx>, <oracle-l@xxxxxxxxxxxxx>
  • Date: Tue, 17 Feb 2009 13:19:45 -0700

Then you would have to "crosscheck archivelog all"?

-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Newman, Christopher
Sent: Tuesday, February 17, 2009 2:09 PM
To: fmhabash@xxxxxxxxx; oracle-l@xxxxxxxxxxxxx
Subject: RE: RMAN backup all but delete n days old

Hi,

I've never come across an easy way to do that exclusively with RMAN, but
you can rely on an OS cronjob to handle that; just use RMAN for the
backups and use the OS for the deletes... something like:

10 04 * * * find /u05/oradata/MyDB -name  1\*.log(or .dbf or whatever
you tag your logs as) -mtime +2 -exec rm -f {} \;

- Chris
-----Original Message-----
From: oracle-l-bounce@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of FMHabash
Sent: Tuesday, February 17, 2009 1:36 PM
To: Oracle-L Group
Subject: RMAN backup all but delete n days old

Is there away in rman to backup all logs on disk, but delete n days old
ones.  
 The backup ... Logs ... Delete input does not allow to have separate
criteria for backup vs. Delete.

Thanks

--
//www.freelists.org/webpage/oracle-l


--
//www.freelists.org/webpage/oracle-l



 
http://www.drpeppersnapplegroup.com/about/corporate to learn more about Dr 
Pepper Snapple Group’s commitment to corporate social responsibility.

Please be conscious of the environment and print this email only if absolutely 
necessary. 
This e-mail (including any attachments) is confidential and may contain 
privileged information of Dr Pepper Snapple Group, Inc. and/or its subsidiaries 
("Dr Pepper Snapple Group"). If you are not the intended recipient or receive 
it in error, you may not use, distribute, disclose or copy any of the 
information contained within it and it may be unlawful to do so. If you are not 
the intended recipient, please notify us immediately by returning this e-mail 
to us at mailto:mailerror@xxxxxxxx and destroy all copies. Any views expressed 
by individuals within this e-mail do not necessarily reflect the views of Dr 
Pepper Snapple Group. This e-mail does not constitute a binding offer, 
acceptance, amendment, waiver or other agreement, unless the intent that an 
e-mail will constitute such is clearly stated in the body of the email. 
Recipients are advised to subject this e-mail and attachments to their own 
virus checking, in keeping with good computing practice. Please note that 
e-mail received by Dr Pepper Snapple Group may be monitored in accordance with 
applicable law.
--
//www.freelists.org/webpage/oracle-l


Other related posts: