in reply to sqlplus or DBI
You probably also want to use the -s switch to use silent mode. After implementing this, you can say:whenever SQLERROR exit SQL.SQLCODE set feeback off set verify off set lines 32 set pages 0 set linesize 500 set tab off * your script 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"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: sqlplus or DBI
by tommyw (Hermit) on Nov 19, 2002 at 12:01 UTC | |
by insensate (Hermit) on Nov 19, 2002 at 14:49 UTC | |
by x31forest (Novice) on Nov 19, 2002 at 16:33 UTC | |
by tommyw (Hermit) on Nov 19, 2002 at 16:16 UTC |