From oracle-l-bounce@freelists.org Wed Oct 12 16:23:58 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j9CLNwGk020886 for ; Wed, 12 Oct 2005 16:23:58 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j9CLNtvX020871 for ; Wed, 12 Oct 2005 16:23:55 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 712461FB7B1; Wed, 12 Oct 2005 16:23:49 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27454-10; Wed, 12 Oct 2005 16:23:49 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D5F3B1FBD34; Wed, 12 Oct 2005 16:23:48 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by Ecartis Subject: RE: rman question Date: Wed, 12 Oct 2005 17:21:43 -0400 Message-ID: <0E53E25A408CD847A76100C1D5D347970D9A7A@UAEXCH.univ.albany.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: rman question Thread-Index: AcXPce3Jvb6aXBDyQYylcOQhO8GGdAAAOYTg From: "Stephen T Murphy" To: , Cc: X-OriginalArrivalTime: 12 Oct 2005 21:21:43.0538 (UTC) FILETIME=[F1882520:01C5CF72] X-archive-position: 26865 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: SMurphy@uamail.albany.edu Precedence: normal Reply-To: SMurphy@uamail.albany.edu X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-mailscan-MailScanner-Information: Please contact the ISP for more information X-mailscan-MailScanner: Found to be clean X-MailScanner-From: oracle-l-bounce@freelists.org X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on air891.startdedicated.com X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 Within RMAN, just use DELETE NOPROMPT OBSOLETE; -- *----------------------------------------------------------------------- ----* Stephen T. Murphy Manager, Database and Technical Support ITS - University Applications Development MSC-100 The University at Albany, S.U.N.Y. Albany, New York 12222 Phone: (518) 437-4523 Fax: (518) 437-4540 MailTo: SMurphy@UAMail.Albany.EDU AIM: SMurphy199 -----Original Message----- From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] On Behalf Of Phil Jones Sent: Wednesday, October 12, 2005 9:48 AM To: joe_dba@hotmail.com Cc: oracle-l@freelists.org Subject: Re: rman question You can use "expect" to do this. Have a look at the man page. Cheers, Phil On 12/10/05, Joe Smith wrote: > Is there any way to force rman to delete files within a rman script? > > My shell script does a > > rman < connect target > report obsolete; > EOF > > But, as you know to do a delete obsolete a "YES" needs to be passed to rman. > Has anybody ever done this within a rman script? > > thanks. > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > -- > http://www.freelists.org/webpage/oracle-l > -- http://www.freelists.org/webpage/oracle-l -- http://www.freelists.org/webpage/oracle-l