RE: RMAN backup all but delete n days old

From: Xu, Roger <Roger.Xu_at_dpsg.com>
Date: Tue, 17 Feb 2009 13:19:45 -0700
Message-ID: <C7F02F80BA89DB47AA7345919AF9F72C015CAA9A_at_bcxoemb02.dpsg.net>



Then you would have to "crosscheck archivelog all"?

-----Original Message-----

From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Newman, Christopher Sent: Tuesday, February 17, 2009 2:09 PM To: fmhabash_at_gmail.com; oracle-l_at_freelists.org 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_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] 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

--

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

--

http://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_at_dpsg.com 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 r  eceived by Dr Pepper Snapple Group may be monitored in accordance with applicable law.
--

http://www.freelists.org/webpage/oracle-l Received on Tue Feb 17 2009 - 14:19:45 CST

Original text of this message