ok, a little more diagnosis:
The Y flag on the script is to indicate whether the dump should be compressed via pipe. executing the script with: "/u01/ct_scr/export.sh TAXTST FULL N" exits just fine.
Here's the code for $3=Y:
Code:
if [ ${compress} = Y ]
then
pipe_name=${exp_loc}/compress_${ORACLE_SID}_${schema_name:-FULL}_${today}_p
# remove any existing pipe
rm -f ${pipe_name}
# Make a new pipe
/bin/mknod ${pipe_name} p
# initiate compression process on the new pipe to run in the background
gzip -c < ${pipe_name} > ${exp_file}.gz &
# Re-direct export output to the pipe
exp_file=${pipe_name}
fi
I also included a cleanup function which is called before the exit 1:
Code:
cleanup()
{
if [ ${compress:-N} = Y ]
then
rm -f ${pipe_name}
fi
}
The pipe and background gzip command are gone once the script ends but maybe the script doesn't know that and hangs around?
Let me know if I've confused the heck out of you. I'd post the whole script but it's kinda long...