473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error executting Stored procedure using Microsoft Oracle managed p

Hi We have Oracle 8.1.7.4 and
using .net framework 1.1 with Microsoft client.
While executting the stored procedure we are getting an error message.
Here is our code.

here is the code that executes the Stored procedure.

Dim connstr As String
Dim conn As OracleConnection
Dim comm As New OracleCommand
Dim dr As OracleDataReader

connstr = "XXXXX"
conn = New OracleConnection(connstr)
Try
comm.Connection = conn
comm.CommandText = "CPATEL.SP_TEST"
comm.CommandType = CommandType.StoredProcedure
comm.Parameters.Add("userid", OracleType.Number).Value = 12
comm.Parameters("userid").Direction = ParameterDirection.Input

conn.Open()
comm.ExecuteNonQuery()
Label1.Text = "Success"
Catch ex As OracleException
Label1.Text = ex.Message
End Try

Here is the simple stored procedure.

PROCEDURE SP_TEST ( uuserid in number)

IS

-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------

-- YWC 7/25/01 change null amount to zero
BEGIN
-- error_ind is used to indicate exception error.
-- Do some processing.

EXCEPTION
WHEN OTHERS THEN
NULL ;
END; -- Procedure NVL_TO_ZERO

I am getting following error message.

ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments
in call
to 'SP_TEST' ORA-06550: line 1, column 7: PL/SQL: Statement ignored
Jul 21 '05 #1
1 1633
guy
parameter mismatch?
calling it is userid
in the sp it is uuserid
(an extra u)

is this a typo in the post or in your sp?

hth

guy

"Chetan" wrote:
Hi We have Oracle 8.1.7.4 and
using .net framework 1.1 with Microsoft client.
While executting the stored procedure we are getting an error message.
Here is our code.

here is the code that executes the Stored procedure.

Dim connstr As String
Dim conn As OracleConnection
Dim comm As New OracleCommand
Dim dr As OracleDataReader

connstr = "XXXXX"
conn = New OracleConnection(connstr)
Try
comm.Connection = conn
comm.CommandText = "CPATEL.SP_TEST"
comm.CommandType = CommandType.StoredProcedure
comm.Parameters.Add("userid", OracleType.Number).Value = 12
comm.Parameters("userid").Direction = ParameterDirection.Input

conn.Open()
comm.ExecuteNonQuery()
Label1.Text = "Success"
Catch ex As OracleException
Label1.Text = ex.Message
End Try

Here is the simple stored procedure.

PROCEDURE SP_TEST ( uuserid in number)

IS

-- MODIFICATION HISTORY
-- Person Date Comments
-- --------- ------ -------------------------------------------

-- YWC 7/25/01 change null amount to zero
BEGIN
-- error_ind is used to indicate exception error.
-- Do some processing.

EXCEPTION
WHEN OTHERS THEN
NULL ;
END; -- Procedure NVL_TO_ZERO

I am getting following error message.

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

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mohammad | last post by:
hi when i try to send a blob or Longraw value with more than 32k as parameter to stored procedure in oracle 9i, the following exception raise "ORA-01460 : Unimplemented or Unreasonable...
3
by: Jawahar Rajan | last post by:
Is it possible for a Dataset that is added to a C# project to be based on a stored Procedure? Can I use either a OracleClient or Microsoft Oracle Client? Any help is appreciated. Jawahar
6
by: JV | last post by:
A ref cursor data type can obviously be returned as an output parameter of a stored procedure, but can an ASP.NET application call an oracle proc that uses a ref cursor as an input parameter? If...
1
by: Chetan | last post by:
Hi We have Oracle 8.1.7.4 and using .net framework 1.1 with Microsoft client. While executting the stored procedure we are getting an error message. Here is our code. here is the code that...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.