Link to home
Start Free TrialLog in
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
Avatar of Alex [***Alex140181***]
Alex [***Alex140181***]
Flag of Germany image

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

Avatar of magento
magento

ASKER

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of magento

ASKER

Its works fine for me . Thanks for your help.