oracle 备份与恢复

#!/bin/ksh
DATE=`date +%Y%m%d`

export ORACLE_HOME=/oracle/app/db
export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"


DATE=`date +%Y%m%d`

/oracle/app/db/bin/exp boss_v2/ owner=boss_v2 compress=n direct=y recordlength=65535 file=./boss_v2$DATE.dmp log=./log/boss_v2$DATE.log
if [ -f boss_v2$DATE.dmp ]
then
  rm -f old.dmp
  mv new.dmp old.dmp
  mv boss_v2$DATE.dmp new.dmp
fi   

你可能感兴趣的:(oracle,F#)