| Author |
new to oracle How to execute Stored Procedure
|
praneeth ram
Ranch Hand
Joined: Sep 21, 2009
Posts: 56
|
|
hi all, i have the bellow stored procedure how to execute it.
> Procedure created.
No i am trying to run it
> exec myproc1 (john)
i am getting the bellow error
*
Can any one help me how to run the above one.
Thanks,
Praneeth
|
 |
Ninad Kulkarni
Ranch Hand
Joined: Aug 31, 2007
Posts: 754
|
|
Try to execute below code and let us know
|
SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
|
 |
praneeth ram
Ranch Hand
Joined: Sep 21, 2009
Posts: 56
|
|
nothing great same error we are getting.
could you please post the procedure code and execution command.
Thanks,
Praneeth
|
 |
Fatih Keles
Ranch Hand
Joined: Sep 01, 2005
Posts: 177
|
|
a variable named john is looked for but can not be found.
This one will work.
|
 |
Ninad Kulkarni
Ranch Hand
Joined: Aug 31, 2007
Posts: 754
|
|
@praneeth
As explained by Fatih you need to send varchar2 type parameter in procedure
|
 |
praneeth ram
Ranch Hand
Joined: Sep 21, 2009
Posts: 56
|
|
Hi Ninad Kulkarni,Fatih Keles I got the solution. please find it bellow. thanks for replying.
Step:1
After creation of the above stored procedure. Now declare one bind variable in the sql prompt.
Step:2
Now call the StoredProcedure by passing the "name" and the bind variable.
Step:3
PL/SQL procedure successfully completed.
After execution of the above command the output is stored in bind variable. Now print the bind variable
Step:4
*****output********
D
---------------
sai1
So Finally i got the expected solution for the stored procedure. Ninad Kulkarni,Fatih Keles thanks for replying for my query.
|
 |
 |
|
|
subject: new to oracle How to execute Stored Procedure
|
|
|