本帖最后由 fancive 于 2012-3-18 19:35 编辑
我在系统内制定了一个crontab计划
30 23 * * * su - oracle -c /usr/export/exp_full_sgarc.sh >/usr/export/exp_full.log 2>&1
sh内容是
DATE=`date +%u`
echo $DATE
cd /usr/export
rm -f sgarc$DATE.dmp.gz
exp system/sgarcsys@sgarc full=y file=/usr/export/sgarc$DATE.dmp log=/usr/export/expsgarc$DATE.log direct=y buffer=20000000
cd /usr/export
gzip -9 /usr/export/sgarc$DATE.dmp
计划执行两天一切正常,但是第三天就执行不了了,查看日志一直卡在下面画面,不知为什么,通过toad查看原来是之前的exp没有释放,释放后就可以了,请问大家这个怎么处理呢,怎么才能让系统自动释放exp呢
Export: Release 11.2.0.1.0 - Production on Sun Mar 18 19:21:42 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses ZHS16GBK character set (possible charset conversion)
About to export the entire database ...
. exporting tablespace definitions
. exporting profiles
. exporting user definitions
. exporting roles
. exporting resource costs
. exporting rollback segment definitions
. exporting database links
. exporting sequence numbers
. exporting directory aliases
. exporting context namespaces
. exporting foreign function library names
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions
. exporting system procedural objects and actions