Linux上备份Oracle数据库脚本(16.34)

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
Published At
Categories with 数据库类
comments powered by Disqus