Help for this page
whenever SQLERROR exit SQL.SQLCODE set feeback off ... exit SQL.SQLCODE *SQLPlus often formats white space in output using tab characters, not + spaces... "set tab off" prevents this
$result=`sqlplus -s user/pass \@myfile`; if($result=~/(?:SP2|ORA)/){ print "SQL ERROR: $result\n"; }