Avatar of magento
magento
 asked on

oracle get many out params from procedures

Hi,

Reference to post: https://www.experts-exchange.com/questions/28605273/Oracle-help-with-Linux.html
Solution id:ID: 40575654

If i have 2 out parameters ,how can i get them both in my shell variables.

Thanks
Oracle Database

Avatar of undefined
Last Comment
magento

8/22/2022 - Mon
Alex [***Alex140181***]

Did you try?!

Result=`sqlplus -s userid/passwd <<EOSQL
var var1 number;
exec myProc( :var1 out number, :var2 out number);
print :var1
print :var2
exit
EOSQL`

Open in new window

magento

ASKER
So both the out parameters will be stored in variable $Result?
ASKER CERTIFIED SOLUTION
Alex [***Alex140181***]

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
magento

ASKER
Its works fine for me . Thanks for your help.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck