I just found a Korn shell script on-line to Delete RMAN backupsets older 
than a specified number of days.  It has syntax in it that RMAN doesn't 
like, and I can't find a reference to what the script is trying to do 
anywhere.

OS: HPUX 11i
Production DB: Oracle 8.1.7.4
Recovery Catalog DB: Oracle 8.1.7.4

The syntax in the script is this:
(rman catalog rman/password@RCAT target sys/password@HOST  <<- EOF
      list backupset of database
              from time 'SYSDATE-1000' until time 'SYSDATE-$DAYSTOKEEP';
      exit;
      EOF ) | grep RMAN-06233 | while read filler key filler filler date rest
do
      echo "# Delete backupset $key dated $date..." >>$CMDFILE
      echo "CHANGE BACKUPSET $key DELETE;"  >>$CMDFILE
done

The syntax I am confused about is the "list ..... from time ....until time" 
part.  I cannot find reference to that syntax anywhere.  Is there actually 
a way to make this work?

When I run the script, it gets to this point and gives me the following 
error messages:
RMAN-00558: error encountered while parsing input commands
RMAN-01005: syntax error: found "from": expecting one of: "archivelog, 
completed, controlfile, database, datafile, device, like, recoverable, ;, 
skip, tablespace, tag"
RMAN-01007: at line 2 column 1 file: standard input

Thanks in Advance!


******************************************
Scott Stefick
UNIX Systems Administrator
Oracle Certified Professional DBA
Wm. Rainey Harper College
847.925.6130
******************************************
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Scott Stefick
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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).

Reply via email to