sorry, I think you have another mistake:
when you pass variables into stored procedures, you don't quote them:
so try to run this:
exec stored_proc_name (in1,in2,in3,in4,in5);
make sure in3 is varchar type
Main Topics
Browse All TopicsHi,
I am just trying to execute stored procedures that are already built, and i get error messages when i try to execute.
I have several IN parameters that i assign, but my IN OUT parameters i don't have the values for, or i don't think they are relevant.
So i go in sqlplus and type
exec stored_proc_name (in1,in2,in3,'in4',);
It tells me that there are not enough arguments
My IN OUT are like this
inout1 integer
inout2 integer
inout3 varchar 2
inout4 integer
inout5 integer
so when i try with NULL values for the integers and ' ' for the varchar it gives me this error
ORA-06550: line 1, column 56:
PLS-00363: expression ' NULL' cannot be used as an assignment target
ORA-06550: line 1, column 61:
PLS-00363: expression ' NULL' cannot be used as an assignment target
ORA-06550: line 1, column 66:
PLS-00363: expression ' ' cannot be used as an assignment target
ORA-06550: line 1, column 70:
PLS-00363: expression ' NULL' cannot be used as an assignment target
ORA-06550: line 1, column 75:
PLS-00363: expression ' NULL' cannot be used as an assignment target
When i try with 0 instead of NULL i get this error
ORA-06550: line 1, column 56:
PLS-00363: expression '0' cannot be used as an assignment target
ORA-06550: line 1, column 58:
PLS-00363: expression '0' cannot be used as an assignment target
ORA-06550: line 1, column 60:
PLS-00363: expression ' ' cannot be used as an assignment target
ORA-06550: line 1, column 64:
PLS-00363: expression '0' cannot be used as an assignment target
ORA-06550: line 1, column 66:
PLS-00363: expression '0' cannot be used as an assignment target
What is the correct syntax to run a stored procedure ?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
Does not seem to work
I have 5 in parameters then 6 in out parameters
If i put only the 5 IN without any types i still get the mismatched parameters.
If i put all of them i get an error on my in out varchar
ORA-06550: line 1, column 64:
PLS-00201: identifier 'A' must be declared
If i leave that same in out varchar empty i get this error
ORA-06550: line 1, column 64:
PLS-00103: Encountered the symbol "," when expecting one of the following:
( - + case mod new not null others <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
The symbol "null" was substituted for "," to continue.
Thanks
When you call a stored procedure (or function) you must provide a value (or a variable) for each "in" parameter (unless some or all of the "in" parameters have default values). You must also provide a variable (not a literal value) for each "inout" parameter.
If you post the text or the description (that contains the list of the parameters with their datatypes) of your stored procedure here, we can give you the exact syntax you need.
For 'in out' variables, oracle needs a place to store the results of the 'out' part of the equation.
In SQL*Plus you can declare variables to be used for this. The following is a quick example of this in SQL*Plus:
==========================
create or replace procedure junk( myvar in out varchar2) as
begin
myvar := 'Hello World';
end;
/
show errors
var myvar varchar2(50);
exec junk(:myvar);
print myvar
Business Accounts
Answer for Membership
by: seazodiacPosted on 2004-10-17 at 15:07:40ID: 12334576
you have to pass the exact number of the parameter you defined in the stored procedure definition as well as the RIGHT data type.
for example:
to run your sp:
exec stored_proc_name (in1,in2,in3,'in4',in5);