RE: RMAN backup all but delete n days old

From: Xu, Roger <>
Date: Tue, 17 Feb 2009 13:19:45 -0700
Message-ID: <>

Then you would have to "crosscheck archivelog all"?

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

[] On Behalf Of Newman, Christopher Sent: Tuesday, February 17, 2009 2:09 PM To:; Subject: RE: RMAN backup all but delete n days old


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: [] 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.



-- 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 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.
-- Received on Tue Feb 17 2009 - 14:19:45 CST

Original text of this message