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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to return an value from Oracle to Unix in a shell scrtip.

Re: How to return an value from Oracle to Unix in a shell scrtip.

From: John Strange <jstrange_at_imtn.dsccc.com>
Date: 24 Oct 2000 17:28:51 GMT
Message-ID: <8t4gsj$o5r$1@relay1.dsccc.com>

I am un-aware of any settings which affect the "EXIT VALUE" format.

As a test you might want to run a few exit test values to see how they show up in $?

sqlplus tiger/scott <<EOF
exit 100
EOF
echo $?

sqlplus tiger/scott <<EOF
exit 512
EOF
echo $?

gojo (kckcabc_at_email.com) wrote:
: I tried the method of variable_name = `sqlplus tiger/scott`, and it is
: returning me the result i wanted. Do I have to ensure the ORACLE (i.e.
: Serverout, FeedBack ) settings are setup correctly? If so, what are they?

--
While Alcatel may claim ownership of all my ideas (on or off the job),
Alcatel does not claim any responsibility for them. Warranty expired when u
opened this article and I will not be responsible for its contents or use.
Received on Tue Oct 24 2000 - 12:28:51 CDT

Original text of this message

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