# exp-backup.sh
# initialize oracle database env variable
/home/oracle/oraenv
# assign current date to variable rq
# 注意:定义rq变量用的单引号是Tab键上面的~键。
rq=`date +"%Y%m%d"`
# export whole database
exp expuser/web2dump5@ctgpcweb parfile=./export.par FILE=/backup/db_1634_$rq.d
mp LOG=./db_1634_$rq.log
|