Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: RMAN scripting & Unix shell
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