473,587 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OleDb Provider and parameterized SQL to Oracle

Tom
Looking for some help with stored procedure call issues. Conceptually, I
need to pass a data structure as the sole parameter to the Oracle stored
procedure. Sounds simple enough....but how?

First, looking at this from the stored procedure side, I see a few things
the procedure can do:

1) receive a CLOB/BLOB
2) receive a user defined data type
3) receive multiple params, one for each distinct data element

Looking at this from the C# app side, I would be making the stored procedure
call with parameterized SQL. The goal here would be to marry the options for
how the oracle stored procedure can receive the params with my OleDb Provider
ability to make the call.

The obvious solution I see is to make the stored proc call with a string
containing formatted XML (via XmlTextWriter features of fw2.0), and receive
it in the stored proc as a CLOB.

In the proc, I would parse the XML, save the element data content in local
vars, and go about my INSERT/UPDATE/DELETE business as needed.

HOWEVER...

In our Oracle environment, we do not have the Oracle XDK (XML Dev Kit)
installed, so the procedure cannot actually do the xml parsing, etc, etc...
without it. I know, I know...install the XDK, problem solved. But that is
a policy matter that will not be resolved in a timely manner (by my standard).

I am trying really hard to avoid sending distinct params for each data
element, especially since I have not disclosed to you if I have 1-10 data
elements, or 100-1000 data elements that would need to be passed.

All this leaves me with a user-defined data type on the oracle side as the
last way to receive a parameter into the stored procedure. So now the
question....

How, if at all, can I do a stored proc call from my C# app, sending "data"
into a user-defined data type on the oracle side????

Or...is there another option I do not see????

Any help is appreciated here.

Thanks in advance....Tom
Oct 11 '06 #1
0 2208

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

Similar topics

0
2481
by: Tzanko | last post by:
Hi, We are using ADO with the Otacle Provider for OLEDB in our COM+ MTS C++ client (Oracle 8.1. It seems there is no way to timeout our ORACLE SQL calls, in case the database is verry slow for what-ever reason. Our calls just wait for the SQL to complete and we do not seem to have any control over the time it takes. The normal way to achive...
0
5793
by: Prabhakar Chola | last post by:
I got this error on production and I rebooted the server and the problem went away. It happens at random. Please help. Environment W2K with Oracle 9.2 client connected to oracle using oracle.oledb provider Specified argument was out of the range of valid values.
0
1892
by: Error while executing SP | last post by:
Hi, I am getting an error while executing a sp from Oracle database. Can you let me know what could be the problem? here is the code using(System.Data.OleDb.OleDbConnection cn = new System.Data.OleDb.OleDbConnection()) { cn.ConnectionString="Provider=OraOLEDB.Oracle;Password=STORED_OBJ;User ID=STORED_OBJ;Data...
12
10871
by: Parking Meters | last post by:
Today I managed to get the OleDB provider to let me put datasets from an as400 using sql. Great, the provider string I used is: Provider=IBMDA400.DataSource.1;User ID=XXXXX;Password=XXXX;Data Source=nnn.nnn.nnn.nnn;"/> Question:
4
7797
by: NS | last post by:
Hi, I am trying to execute a prepare statement using oledb provider for DB2. The command.Prepare() statement is giving me an exception " No error information available: DB_E_NOCOMMAND(0x80040E0C)." My code is very simple and is working with other oledb provider, like SQL Server and oracle.
2
2846
by: Martin | last post by:
Hi, I currently have an application that connects to an MS ACCESS database. This application uses an OLEDB connection string for MS ACCESS. Now, I'd like to upsize the application so I converted the db to SQL SERVER and this went well. Next thing I changed the connection string from OLEDB for MS ACCESS to OLEDB for SQL SERVER. I...
5
9637
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve this error? Oracle error occurred, but error message could not be retrieved from Oracle. Description: An unhandled exception occurred during the...
0
1131
by: Tom | last post by:
Short and to the point.... Can a C# application make a parameterized SQL call to a stored procedure, where that stored proc receives an Oracle user-defined data type???? Conceptually, I need to pass a "data structure" to the procedure. Passing XML is not an option 'cuz our Oracle environment does not have the Oracle XDK installed (don't...
0
2155
by: alasdair.johnson | last post by:
A bug I noticed which doesn't seem to be posted on usenet, nor recognized by Oracle (who didn't want to help unless we had been using their ADO.NET provider...): We used to retrieve the sequence id, mysequence.nextval, into ADO.NET. This was returned as a decimal and so we cast it directly to a decimal. However, when we upgraded the Oracle...
0
7915
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7843
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8339
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5392
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3872
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2347
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.