Connecting Tech Pros Worldwide Forums | Help | Site Map

wrong number or types of arguments in call to 'GET_DNAME_FOR_ID1.

Newbie
 
Join Date: Apr 2009
Posts: 1
#1: Apr 29 '09
Hi all,

M create a procedure which will return the matching value .
when m creating the procedure is beging crerated but its throwing an error while excuating...

here is the script

Create or replace Procedure get_dname_for_id1
( i_dept_id in dept.deptno%type,
o_dname out dept.dname%type ) IS
begin
select dname
into o_dname
from dept
where deptno = i_dept_id;
End;
/

Procedure created.

When m trying to excute its throwing the error......

ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'GET_DNAME_FOR_ID1'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored


please help me......


thanks,
sonu chadha.....

Nepomuk's Avatar
Moderator
 
Join Date: Aug 2007
Location: Germany
Posts: 2,466
#2: Apr 29 '09

re: wrong number or types of arguments in call to 'GET_DNAME_FOR_ID1.


Hi sonu!
This is the introductions area and not the place for technical questions. Those belong under topics -> the language you're using -> answers. If the language you're using isn't represented there, the Misc Section is the right place.

Now, in this case I don't know, which language it is you're using. Might be Delphi from what I know but as the error says something about SQL, maybe it's MySQL or something like that? If you tell us which language it is, I'm sure one of us mods will move it to the right section for you.

Greetings,
Nepomuk
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,514
#3: Apr 30 '09

re: wrong number or types of arguments in call to 'GET_DNAME_FOR_ID1.


The error message is self explanatory.

How are you calling the procedure ?
Reply