#!/bin/bash
BACKUP_DATE=`date +%y%m%d`
USER=`id|cut -d "(" -f2|cut -d ")" -f1`
export ORACLE_HOSTNAME=testrac2
export ORACLE_UNQNAME=dw
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/11.2.0/grid
export ORACLE_SID=+ASM2
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/grid/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
asmcmd md_backup /home/grid/mdback/backupsets/dgbackup_$BACKUP_DATE
BACKUP_DATE=`date +%y%m%d`
USER=`id|cut -d "(" -f2|cut -d ")" -f1`
export ORACLE_HOSTNAME=testrac2
export ORACLE_UNQNAME=dw
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/11.2.0/grid
export ORACLE_SID=+ASM2
export ORACLE_TERM=xterm
export PATH=$ORACLE_HOME/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/grid/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
asmcmd md_backup /home/grid/mdback/backupsets/dgbackup_$BACKUP_DATE