WHENEVER SQLERROR never works
问题 I don't know what can be a reason and I spent already hours on the Web trying to figure out what's wrong in my case. I've checked official documentation and some thought from Tom Kyte on this and surely topic on stackoverflow about it. I use following code: .. < <(sqlplus -s /nolog <<EOF set errorlogging on WHENEVER OSERROR EXIT FAILURE WHENEVER SQLERROR EXIT FAILURE connect ${use}/${pwd}@${database} @$SCRIPTS_PATH/script.sql EOF ) echo Exited with $? I've emulated different failure scenarios