Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> exit

exit

From: Antoine Tissier <nospam_at_nospam.net>
Date: Thu, 18 Jul 2002 18:26:24 +0200
Message-ID: <20020718.182620.213975407.3290@nospam.net>


hi,

i'd like to retrieve the sql code from a sqlscript.

--fichier.sql
whenever sqlerror exit sql.sqlcode;
select * from doesnotexist;
--fichier.sql

when i launch sqlplus from the shell, this is what i get
$>sqlplus / @fichier.sql

blabla
ORA-942 : doesnotexist does not exist.... blabla

$>echo $?

174

so the return code of sqlplus is 174, while the sqlcode is 942. Why such a difference ?

I also noticed that it always differs from 768 for a ora error.

Any idea ?

Thx in advance

Antoine Received on Thu Jul 18 2002 - 11:26:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US