Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> (no subject)
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_at_RCAT target sys/password_at_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;" >>$CMDFILEdone
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!
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Scott Stefick INET: sstefick_at_harper.cc.il.us 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: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Wed Aug 28 2002 - 15:26:52 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).