I'm new here. I have a problem. I want to execute this code in C#:
string XMLData = File.ReadAllText(App.FolderImport + "\\" + FileName);
Command.CommandType = CommandType.StoredProcedure;
Command.CommandText = "PKG_DATA_EXCHANGE.IMPORT_DATA";
Command.Parameters.Add("pID_USER_M", OracleType.Number).Value = App.User.IdUser;
Command.Parameters.Add("pFILE_NAME", OracleType.VarChar).Value = FileName;
Command.Parameters.Add("pXMLDATA", OracleType.Clob).Value = XMLDataString;
Command.ExecuteNonQuery();
It works fine for small XMLDataString, but if it is bigger then I get exception
ORA-01460
.
I understand that it is linked somehow to CLOB problem, but I don't know how to solve it.
I was searching for such problem here, but I had no luck.
Please any help, links or code will be very appreciated!
There are other reported causes of the ORA-01460 as well:
It appears, according to information on bug 5872943, that the ORA-01460 associated with ODP.NET, while not an ODP error, persisted through database version 11.2 where it has been reported as fixed.