source /home/oracle/.bash_profile /home/oracle_11/app/oracle/product/11.2.0/db_1/bin/exp userid=tctscm/tctscm@192.168.99.80:1521/orcl file=/usr/java/apache-tomcat-7.0.41/webapps/WebTCT/dataBackup/TCT`date +%Y%m%d%H`.dmp grants=y根据需要自行修改里面的内容,然后执行命令: sh backup.sh 就可以了