Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: EXIT SQL.SQLCODE and ksh
Hi
error=3D `sqlplus lisa/shutup << !=20
begin ... exception dbms_output.put_line(sqlcode); end; exit;=20
echo $error
Davide
-----Original Message-----
From: Marina Leonardo, Jose Luis JLMarina_at_Uni2.es
Sent: Fri, 15 Sep 2000 01:35:49 -0800
To: ORACLE-L_at_fatcity.com
Subject: RE: EXIT SQL.SQLCODE and ksh
Hi Lisa,
echo $?, echoes the last return code from a program.=20 But there is a problem: unix program return codes are from 0 to 255 (I think)
HTH
=09Joselu
=09http://www.oraes.com
> -----Mensaje original-----
> De:=09Koivu, Lisa [SMTP:lkoivu_at_qode.com]
> Enviado el:=09jueves 14 de septiembre de 2000 21:56
> Para:=09Multiple recipients of list ORACLE-L
> Asunto:=09EXIT SQL.SQLCODE and ksh
>=20
> Anyone know how to catch this value in a ksh script? I believe I've se=
en
> it done before but I just can't remember how. For example:
>=20
>=20
>=20
>=20
>=20
>=20
>=20> F: 954.484.2933=20
> V: 954.484.3191, x174=20
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
_________________________________________________________________________=__
![]() |
![]() |