Return-Path: <ml-errors@fatcity.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h8PLr4Y30519
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 16:53:04 -0500
X-ClientAddr: 66.27.56.213
Received: from www2.fatcity.com (rrcs-west-66-27-56-213.biz.rr.com [66.27.56.213])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h8PLr3c30513
 for <oracle-l@orafaq.net>; Thu, 25 Sep 2003 16:53:03 -0500
Received: (from root@localhost)
 by www2.fatcity.com (8.11.6/8.11.6) id h8PJEEY25415
 for oracle-l@orafaq.net; Thu, 25 Sep 2003 12:14:14 -0700
Received: by fatcity.com (05-Jun-2003/v1.0g-b73/bab) via fatcity.com id 005D112C; Thu, 25 Sep 2003 12:10:02 -0800
Message-ID: <F001.005D112C.20030925121002@fatcity.com>
Date: Thu, 25 Sep 2003 12:10:02 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Roger Xu" <roger_xu@dp7uptx.com>
Sender: ml-errors@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Roger Xu" <roger_xu@dp7uptx.com>
Subject: RMAN: backup archivelog all delete input until time 'sysdate-14';
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 73; ListGuru (c) 1996-2003 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

Hi RMAN Gurus,

I tried to backup all offline redo logs and delete all logs which were generated 2 weeks ago.
But it failed with syntax error.

# cat redolog.del
run {
     backup
      format '/oback/obckp/redo-logs/DV2_%s_%p.logs'
      archivelog all delete input until time 'sysdate-14';
    }


# rman target / cmdfile redolog.del

Recovery Manager: Release 9.2.0.3.0 - 64bit Production

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

connected to target database: DV2 (DBID=3652871856)

RMAN> run {
2>      backup
3>       format '/oback/obckp/redo-logs/DV2_%s_%p.logs'
4>       archivelog all delete input until
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "until": expecting one of: "archivelog, backup, backupset, channel,
controlfilecopy, current, database, datafile, datafilecopy, delete, diskratio, filesperset, format,
force, include, keep, (, maxsetsize, noexclude, nokeep, not, parms, pool, plus, ;, skip, spfile, set
size, tablespace, tag"
RMAN-01007: at line 4 column 29 file: redolog.del

Roger Xu
Database Administrator
Dr Pepper Bottling Company of Texas
(972)721-8337

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Roger Xu
  INET: roger_xu@dp7uptx.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

