#! /bin/sh # rmanFull-tools.sh # 12-10-2001 Bikle # RMAN script to do full backup of tools tablespace. # set env vars . /oracle/.BIKLE55 dstamp=`/bin/date +%m%d` export dstamp # cd to the right place cd /bikle/db/bikle55/rman/ # create a special dir /bin/mkdir backup.$dstamp.f # cd to the right place cd backup.$dstamp.f $ORACLE_HOME/bin/rman target / catalog rman/gmany@rcat << EOF run { allocate channel d1 type disk; setlimit channel d1 kbytes 1572864 maxopenfiles 32 readrate 200; allocate channel d2 type disk; setlimit channel d2 kbytes 1572864 maxopenfiles 32 readrate 200; set maxcorrupt for datafile 1 to 0; backup full skip inaccessible tag rman_full filesperset 1 (tablespace tools format '/bikle/db/bikle55/rman/backup.$dstamp.f/rman_t%t_s%s_p%p'); release channel d1; release channel d2; } exit; EOF