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

Home -> Community -> Mailing Lists -> Oracle-L -> Re:

Re:

From: Scott Stefick <sstefick_at_harper.cc.il.us>
Date: Wed, 28 Aug 2002 14:38:56 -0800
Message-ID: <F001.004C214D.20020828143856@fatcity.com>


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" <ORACLE-L_at_fatcity.com>
>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_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;" >>$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: 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-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: philipd_at_sirs.com
>
>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-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: 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-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 Wed Aug 28 2002 - 17:38:56 CDT

Original text of this message

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