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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).