Hello,
I have researched and tried many way to pass OUT parameter to be stored in variable in KSH Script.Still not success, please help.
Here is my Store Procedure.
create procedure testout3(v_in varchar2,v_out OUT integer)
as
begin
v_out := 1;
end;
Here is my testvout.ksh
#!/bin/ksh
vvarr=$(sqlplus -s username/password<<!EOF
declare
v_out integer;
begin
execute testout3('test',:v_out);
commit;
END;
EOF)
echo $vvarr
Note: I have added "echo $vvarr" to check that the variable is passed or not.
After I run this command below, there is nothing happened, no error , no show data.
>testvout.ksh