Home Inserting an OracleClob array
Reply: 0

Inserting an OracleClob array

user1023 Published in July 18, 2018, 12:40 am

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.

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,


After execution of the command i get the Oracle Error:

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

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.305936 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO