- 论坛徽章:
- 0
|
全库导出时报错误
这种错误我没有遇到过。不过我师傅给过我一个脚本。你可以看看。
# Created By Kurt Z on 20050806
# You can edit ONLY this line for real application:
# these envionment variable can be modified by user. for example, if you hope the backup dump files to place into the path:
# /oradisk1/backupdb, then shoud write this line like this "export exppath=/oradisk1/backupdb"
export exppath=/data/backup
# !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !! NO EDIT BELOW !!
export ORACLE_SID=hz2004
export exptime=`date +%Y%m%d`
export ORACLE_HOME=/oracle/app/oracle/product/920
export PATH=$PATH:/oracle/app/oracle/product/920/bin HOME/bin
if [ "`date +"%u"`" = "6" ]; then
echo "Today is Saturday, no bakcup the database!";
else
if [ "`date +"%u"`" = "7" ]; then
echo "Today is Sunday, no bakcup the database!";
else
su - oracle "-c /oracle/app/oracle/product/920/bin/exp sys/oracle@hz2004 file=$exppath/data1_$exptime.dmp,$exppath/data2_$exptime.dmp,$exppath/data3_$exptime.dmp,$exppath/data4_$exptime.dmp,$exppath/data5_$exptime.dmp,$exppath/data6_$exptime.dmp,$exppath/data7_$exptime.dmp,$exppath/data8_$exptime.dmp,$exppath/data9_$exptime.dmp,$exppath/data10_$exptime.dmp,$exppath/data11_$exptime.dmp,$exppath/data12_$exptime.dmp,$exppath/data13_$exptime.dmp,$exppath/data14_$exptime.dmp,$exppath/data15_$exptime.dmp,$exppath/data16_$exptime.dmp,$exppath/data17_$exptime.dmp,$exppath/data18_$exptime.dmp,$exppath/data19_$exptime.dmp,$exppath/data20_$exptime.dmp filesize=1500M log=$exppath/exp_$exptime.log GRANTS=y FULL=y INDEXES=y TRIGGERS=y FEEDBACK=1000";
fi
fi
# !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! NO EDIT ABOVE !! |
|