473,403 Members | 2,222 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,403 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 1635
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.