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 -> Re: Shell script question

Re: Shell script question

From: Alexander I. Doroshko <aid_at_grant.kharkov.ua>
Date: 3 Nov 1998 09:08:50 GMT
Message-ID: <01be0709$8bc387e0$190114c1@sister.grant.UUCP>


nimrodo_at_my-dejanews.com wrote in article <71k22n$4bf$1_at_nnrp1.dejanews.com>...
> I'm trying to call a stored procedure that resturn a value from a shell
> script. I tried something like:
>
> variable rc number
> exec myproc(:rc);
> exit rc
>
> but I can't use Exits that way.. Any idea how I can do that?

Try this:

col rc nopri new_v rc
var rc number
exec myproc(:rc)
set pau off
select :rc rc from dual;
exit &rc
---
 Alexander I.Doroshko, aid_at_grant.kharkov.ua

Received on Tue Nov 03 1998 - 03:08:50 CST

Original text of this message

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