Thank you so much! I was losing my mind on why that script wouldn't work. The rman1.sh script seems to be a much cleaner solution.
At 12:54 PM 8/28/02 -0800, you wrote: >My guess is that script was written for an older version of rman. Your >version of Oracle already comes with a script to do just what that script >attempts to do anyway: $ORACLE_HOME/rdbms/demo/rman1.sh > >it uses the 'report obsolete' command to provide the list of files to >delete, which seems like a better idea to me than just listing backupsets >for a specified time frame. You can always edit rman1.sh to keep some >obsolete backups, eg. 'report obsolete redundancy 4' >-- >Philip Douglass >Internet Networking Group >Database Administrator >SIRS Publishing, Inc. > >----- Original Message ----- >To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> >Sent: Wednesday, August 28, 2002 4:26 PM > > >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). > > >-- >Please see the official ORACLE-L FAQ: http://www.orafaq.com >-- >Author: Philip Douglass > 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). ****************************************** 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).
