Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RMAN: backup archivelog all delete input until time 'sysdate-14';

RMAN: backup archivelog all delete input until time 'sysdate-14';

From: Roger Xu <roger_xu_at_dp7uptx.com>
Date: Thu, 25 Sep 2003 12:10:02 -0800
Message-ID: <F001.005D112C.20030925121002@fatcity.com>


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_at_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_at_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).
Received on Thu Sep 25 2003 - 15:10:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US