Unix Technical Forum

C# Program, Passing LongVarChar to Package expecting CLOB.

This is a discussion on C# Program, Passing LongVarChar to Package expecting CLOB. within the Oracle Database forums, part of the Database Server Software category; --> Greetings All, I am not sure if this is the location for this issue but I will ask anyhow. ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 01:08 PM
LineVoltageHalogen
 
Posts: n/a
Default C# Program, Passing LongVarChar to Package expecting CLOB.

Greetings All, I am not sure if this is the location for this issue but
I will ask anyhow. In short I have a C# program that calls a package,
the package takes one argument and that argument is defined in the
package as a clob. I am using the OleDb provider for Oracle MSDAORA to
make all this happen in the C# program. The problem is that the object
I am passing to the package is not being accepted as a complete clob.
In the program I am using the OleDbType.LongVarChar data type to hold
the value of my data in the program and this is what I am passing to
the package. I think that that the package can only accept 4k of the
clob at a time and therefore the rest of my clob is being truncated?
My question is this: Can I pass a clob to a package in Oracle from a C#
program directly or am I limited by how much I can pass at a time? I
have this bad feeling that I am going to have to put the file on disk
and then use PL/SQL to read it in via 32k chunks to build the clob.

Let me know if any of you can assist. It would be greatly appreciated.

TFD

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 01:08 PM
stephen.howard@us.pwcglobal.com
 
Posts: n/a
Default Re: C# Program, Passing LongVarChar to Package expecting CLOB.

I realize this is of absolutely no use to you in C#, but I have had
problems in the past with the particular JDBC driver used to handle
*LOB's in Oracle and the resulting value truncation. Have you checked
any other ADO/ODBC/OLEDB, etc. drivers that may be available for C#?

Regards,


Steve

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 01:08 PM
LineVoltageHalogen
 
Posts: n/a
Default Re: C# Program, Passing LongVarChar to Package expecting CLOB.

Steve, thanks for the reply. The issue is a limitation of PL/SQL. You
cannot pass more that 32K at a time to PL/SQL and that prevents me from
passing the entire clob to the Package. Some work arounds include
creating a temporary clob in memory on the server and populating it via
the C# code. ONce populated you can then pass that temp clob object to
the package, etc. I am tryign to dig up a good C# example of this type
of operation.

TFD

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com