473,395 Members | 1,797 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,395 software developers and data experts.

Calling Oracle Stored Procs

JV
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 so, how? What object do you
pass as that parameter?

We are using System.Data.OracleClient, but if necessary, we might be able to
switch.
Nov 21 '05 #1
6 2809
Hi Dear JV,

here are the some links that may be useful which gives how to call oracle
stored procedure from ado.net in turn asp.net and also how to use ref cursor
with DataReader and some general features and limitations.

How To Return an Oracle Ref Cursor to a .NET DataReader Object by Using the
..NET Managed Provider for Oracle
================================================== ================================================== ==========================================

http://support.microsoft.com/default...b;en-us;322160
How to call Oracle stored procedures in Visual Basic .NET with the Microsoft
Oracle Managed Provider
================================================== =====================
http://support.microsoft.com/default...b;en-us;321718
Features and limitations of the .NET Managed Provider for Oracle
================================================== ===============
http://support.microsoft.com/default...b;en-us;322158
************************************************** *********************
Mastering .NET Application Development with Oracle
Optimize Result Set Retrieval Using ODP.NET and Ref Cursors
by Mark A. Williams
================================================== =============
http://www.oracle.com/technology/pub...efcursors.html

Bye
Venkat_KL
Nov 23 '05 #2
JV
Thanks, but I think you missed the point of the question. I already know
how to RETRIEVE a cursor parameter (parameterdirection.out). The question
is can ASP.NET pass IN a cursor.

--John
"Venkat_KL" <Ve******@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
Hi Dear JV,

here are the some links that may be useful which gives how to call oracle
stored procedure from ado.net in turn asp.net and also how to use ref
cursor
with DataReader and some general features and limitations.

How To Return an Oracle Ref Cursor to a .NET DataReader Object by Using
the
.NET Managed Provider for Oracle
================================================== ================================================== ==========================================

http://support.microsoft.com/default...b;en-us;322160
How to call Oracle stored procedures in Visual Basic .NET with the
Microsoft
Oracle Managed Provider
================================================== =====================
http://support.microsoft.com/default...b;en-us;321718
Features and limitations of the .NET Managed Provider for Oracle
================================================== ===============
http://support.microsoft.com/default...b;en-us;322158
************************************************** *********************
Mastering .NET Application Development with Oracle
Optimize Result Set Retrieval Using ODP.NET and Ref Cursors
by Mark A. Williams
================================================== =============
http://www.oracle.com/technology/pub...efcursors.html

Bye
Venkat_KL

Nov 23 '05 #3
When you use the OleDb providers, you can simply consume the returned ref
cursor as a DataTable.

With the OracleClient provider, you have to specify the ref_cursor as an
output parameter. There is no need to actually consume this parameter, as
you will receive your output through normal means once you send in the
properly named ref cursor output parameter, but the param has to be there to
link the MS world with the Oracle world.

If I remember correctly, the same is true with ODP.NET.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************
"JV" <jo**********@goisc.com> wrote in message
news:eB**************@tk2msftngp13.phx.gbl...
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 so, how? What object do you
pass as that parameter?

We are using System.Data.OracleClient, but if necessary, we might be able
to switch.

Nov 23 '05 #4
The .NET Managed Provider for Oracle supports binding Ref_cursors as output
parameters only. There is no support for Ref_cursors as an input parameter.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************
"JV" <jo**********@goisc.com> wrote in message
news:uN**************@TK2MSFTNGP15.phx.gbl...
Thanks, but I think you missed the point of the question. I already know
how to RETRIEVE a cursor parameter (parameterdirection.out). The question
is can ASP.NET pass IN a cursor.

--John
"Venkat_KL" <Ve******@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
Hi Dear JV,

here are the some links that may be useful which gives how to call oracle
stored procedure from ado.net in turn asp.net and also how to use ref
cursor
with DataReader and some general features and limitations.

How To Return an Oracle Ref Cursor to a .NET DataReader Object by Using
the
.NET Managed Provider for Oracle
================================================== ================================================== ==========================================

http://support.microsoft.com/default...b;en-us;322160
How to call Oracle stored procedures in Visual Basic .NET with the
Microsoft
Oracle Managed Provider
================================================== =====================
http://support.microsoft.com/default...b;en-us;321718
Features and limitations of the .NET Managed Provider for Oracle
================================================== ===============
http://support.microsoft.com/default...b;en-us;322158
************************************************** *********************
Mastering .NET Application Development with Oracle
Optimize Result Set Retrieval Using ODP.NET and Ref Cursors
by Mark A. Williams
================================================== =============
http://www.oracle.com/technology/pub...efcursors.html

Bye
Venkat_KL


Nov 23 '05 #5
JV
Thanks, Greg. That was what I expected, but couldn't find actual
information about it.

"Cowboy (Gregory A. Beamer)" wrote
The .NET Managed Provider for Oracle supports binding Ref_cursors as
output parameters only. There is no support for Ref_cursors as an input
parameter.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Nov 23 '05 #6
Hi Dear JV,

one more useful link

How To Retrieve Multiple Ref_cursors from an Oracle Stored Procedure by
Using the .NET Managed Provider For Oracle
================================================== ================================================== ======

http://support.microsoft.com/kb/321715/

bye
Venkat_KL
Nov 23 '05 #7

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

Similar topics

13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
3
by: Clausmeyer | last post by:
I want to execute a dynamically generated sql-statement from inside an user-defined-function. Calling functions and extended stored-procs is allowed so I tried sp_executesql as well as...
2
by: Sezhman | last post by:
I am using Oracle Database, Can anyone tell me, how to connect to the oracle database and run the stored procedure in oracle. I am facing some problem in this. please guide me.. -- Sezhman
45
by: John | last post by:
Hi When developing vb.bet winform apps bound to sql server datasource, is it preferable to use SELECTs or stored procedure to read and write data from/to SQL Server? Why? Thanks Regards
1
by: lottoman2000 | last post by:
Hello Team.. No, I am not posting in the wrong forum :). I meant to check if the MS pros have read/heard of anything about Oracle Lite 10R2 and its support for .Net Stored Procedure.. Oracle docs...
1
by: kentk | last post by:
Is there a difference in how SQL Server 7 and SQL 2000 processes SQL passed from a program by an ADO command object. Reason I ask is I rewrote a couple applications a couple years ago were the SQL...
0
by: Richard | last post by:
Hi, I have in VB ASP.NET design mode, a SQLDataSource and I need to connect it to a stored procedure in Oracle 9i, but this stored procedure is inside an Oracle package. The problem is that...
8
by: colmkav | last post by:
Can someone tell me how I can access the return value of a function called from Oracle as opposed to a store proc from oracle? my oracle function is get_num_dates_varposfile. I am only used to...
23
by: Gloops | last post by:
Hello everybody, Is anyone able to give me some indications about how to develop an Access interface for an Oracle database ? I dispose of Access 2003 (11.6566.8107) SP2, Oracle 9i 9.2.0.1.0...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.