I have a script that performs an oracle export:
Code:
<snip>
if [ ${exp_type} = FULL ]
then
exp / full=y file=${exp_file} log=${exp_log} direct=y feedback=1000000 STATISTICS=NONE buffer=20000000
else
exp / full=n owner=${schema_name} file=${exp_file} log=${exp_log} direct=y feedback=1000000 STATISTICS=NONE buffer=20000000
fi
if [ $? -ne 0 ]
then
echo "Export command failed"
exit 1
fi
echo "Export command succeeded"
exit 0
If the export succeeds then I get the message and the script ends with no process in memory. However, if it fails, the script stops (ie. doesn't display "Export Succeeded") but the process remains:
Code:
> ps -ef|grep export
oracle 23241 1 0 10:04 pts/1 00:00:00 /bin/bash /u01/ct_scr/export.sh TAXTST FULL Y
Anyone know what's happening here?