I don't do much .ksh scripting.
I am in the process of converting from BMC SQLBT to Oracle RMAN.
I have a .ksh that backs up and deletes archived redo logs similar to the dtoarchmon process by BMC SQLBT.
I had environment variables set to capture errors as I was debugging. So now I'm good to go but I no longer want to log the output of the RMAN command in .ksh.
The dtoarchmon runs with the parameters -quiet and -backgroud.
How do I do the same?
Here is my .ksh script that calls the RMAN cmd file:
#!/bin/ksh
##########################
##########
##########
##########
##########
#######
# 4/01/08 LBains - .ksh that call RMAN CMD file to backs up #
# deletes archived redo logs for those databases #
# that are in archivelog mode #
##########################
##########
##########
##########
##########
#######
##########################
##########
##########
##########
##########
#######
# Environment Variables #
##########################
##########
##########
##########
##########
#######
export ORACLE_BASE=/oracle/ED1/ap
p/oracle
export ORACLE_HOME=$ORACLE_BASE/p
roduct/10.
2.0
export ORACLE_SID=alta
export SCRDIR=$ORACLE_BASE/admin/
scripts
export SYSPWD=`cat $ORACLE_BASE/admin/.${ORAC
LE_SID}_sy
spass`
export RMANPWD=`cat $ORACLE_BASE/admin/.rman_p
ass`
TS=`date +%m-%d-%T`;export TS
##########################
##########
##########
##########
##########
#######
# 5/16/08 LBains Used LOGFILE to test #
# Will turn off after Controlm job is scheduled #
##########################
##########
##########
##########
##########
#######
export LOGDIG=$ORACLE_BASE/admin/
log
export LOGFILE=$ORACLE_BASE/admin
/log/rman.
bu.del.arc
h_$ORACLE_
SID.$TS.lo
g;
cd $SCRDIR
/$ORACLE_HOME/bin/rman target sys/$SYSPWD@$ORACLE_SID catalog rman/$RMANPWD@rmanp
rd CMDFILE $SCRDIR/rman_bu_del_arch.c
md LOG $LOGFILE
Start Free Trial