Home All Groups Group Topic Archive Search About

PLS-00306: wrong number or types of arguments in call

Author
19 Apr 2005 4:50 PM
Pial
Hi:

I am facing the problem while entering data: I am using C# parameters
to  PL/SQL functon.....

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


Thanks in Advance
Zahir
Author
19 Apr 2005 10:10 PM
Alvin Bruney [MVP - ASP.NET]
have you checked your arguments to see if they are the correct type and
correct number? this is what the error message indicates

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc
Show quoteHide quote
"Pial" <zis***@gmail.com> wrote in message
news:795114e5.0504190850.468deb4c@posting.google.com...
> Hi:
>
> I am facing the problem while entering data: I am using C# parameters
> to  PL/SQL functon.....
>
> ORA-06550: line 1, column 7:
> PLS-00306: wrong number or types of arguments in call to '....'
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
>
>
> Thanks in Advance
> Zahir
Are all your drivers up to date? click for free checkup

Author
20 Apr 2005 8:45 AM
Manpreet Khurana
Hi Zahir,
It could be that you are binding the parameters of object refering
Stored Procedure without check whether parameter have already been
bounded to object or not. If parameter are already bounded then you
need to remove the existing binding before your new binding.

If you do not remove existing binding then you obviously will get the
error that "Wrong number of argument supplied" because if orginally
your procedure expects 2 parameter and you are rebinding the parameters
to command object then it will become 4 which indeed oracle will not
accept.

Hope this helps!

cheers!
Manpreet Khurana


Pial wrote:
Show quoteHide quote
> Hi:
>
> I am facing the problem while entering data: I am using C# parameters
> to  PL/SQL functon.....
>
> ORA-06550: line 1, column 7:
> PLS-00306: wrong number or types of arguments in call to '....'
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
>
>
> Thanks in Advance
> Zahir
Author
20 Apr 2005 8:47 AM
Manpreet Khurana
Hi Zahir,
It could be that you are binding the parameters of object refering
Stored Procedure without check whether parameter have already been
bounded to object or not. If parameter are already bounded then you
need to remove the existing binding before your new binding.

If you do not remove existing binding then you obviously will get the
error that "Wrong number of argument supplied" because if orginally
your procedure expects 2 parameter and you are rebinding the parameters
to command object then it will become 4 which indeed oracle will not
accept.

Hope this helps!

cheers!
Manpreet Khurana
Pial wrote:
Show quoteHide quote
> Hi:
>
> I am facing the problem while entering data: I am using C# parameters
> to  PL/SQL functon.....
>
> ORA-06550: line 1, column 7:
> PLS-00306: wrong number or types of arguments in call to '....'
> ORA-06550: line 1, column 7:
> PL/SQL: Statement ignored
>
>
> Thanks in Advance
> Zahir

Bookmark and Share