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

Home -> Community -> Usenet -> c.d.o.server -> Re: RMAN scripting & Unix shell

Re: RMAN scripting & Unix shell

From: Keith Sharp <ksharp_at_bear.com>
Date: Mon, 15 Nov 1999 21:04:32 GMT
Message-ID: <01bf2fac$aa741d40$9e10a8a5@emc2369>


David, put this in your shell script which calls rman, or create one.

rman
RMAN_STAT=$?
export RMAN_STAT

if [ $RMAN_STAT = 0 ]

    then

        {execute removal_program}
    else

        echo "ERROR: rman failed with status $RMAN_STAT" >logfile fi

> I need to kick off a korn shell script ONLY of my nightly rman script
> runs successfully. I can do this with the $status variable within the
> korn shell.
>
> Does anyone know how to run a shell script based on a sucessful rman
> backup? I'm backing up to disk and I need to delete my archive files
> after rman runs but need to make sure rman actually has backed up.
>
> I would let rman delete my archives but due to disk space I have to
> compress and move them around many file system on my Sun. I generate
> 100Meg archives around every 3 minutes.
>
> Many thanks.
>
> David Knollhoff
>
>

>
Received on Mon Nov 15 1999 - 15:04:32 CST

Original text of this message

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