Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Store return value from the procedure into shell variable

961913Sep 24 2012 — edited Sep 25 2012
Hi Gurus,

I am trying to store the OUT Parameter return value from the procedure into shell variable as below;

RET_VAL=`sqlplus $DB_USER/$DB_PASS << EOT| egrep . > $SCRIPT.tmp
set linesize 2500 pagesize 0 echo off heading off feedback off verify off
VARIABLE line VARCHAR2(4000)
exec UPCStreamDiffNodeVersions($MStreamName,$oldVersion,$newVersion,:line);
print line;
EOT`

echo $RET_VAL

i can print whats in the variable line but cannot get into the $RET_VAL. Kindly suggest.

Regards
Rajan
This post has been answered by EdStevens on Sep 24 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2012
Added on Sep 24 2012
5 comments
1,057 views