Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Can't insert an array of type Clob

deaa7e10-e5b1-4f26-a629-31ffbf7a1927Jun 12 2018 — edited Jun 12 2018

For my .NET project i really need to be able to insert an array of Clob's into an Oracle Db, using the Oracle.ManagedDataAccess lib.but i can't seem to do it.

i created a demo to reproduce the issue

byte[] newval = System.Text.Encoding.Unicode.GetBytes("Testyy"); 
var clob = new OracleClob(connection);
var clobList = new List<OracleClob>() { clob, clob };
clob.Write(newval, 0, newval.Length); 
var longText = new OracleParameter
{
   ParameterName = "p_tc_long_text",
   OracleDbType = OracleDbType.Clob,
   CollectionType = OracleCollectionType.PLSQLAssociativeArray,
   Value = clobList.ToArray(), Size = clobList.Count,
}; 
command
.Parameters.Add(longText);

After execution of the command i get the Oracle Error:

ORA-03120: two-task conversion routine: integer overflow.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 10 2018
Added on Jun 12 2018
2 comments
411 views