Using ODP.NET (OracleBulkCopy) to load tables over 255 columns
We're using a C# code to do bulk loads of data between our EDW and a Oracle Database. It is leveraging the OracleBulkCopy function from the Oracle.DataAccess library. The process is failing with a generic ORA error ORA-3137:[klaprs_61] for a handful of tables. We did notice that the tables that are failing have over 255 columns. I created a test table with 255 columns and one with 256 columns and the process works fine on the 255 columns table and fails on the one with 256 columns.
The trace log shows the INSERT statement and right after the VALUES it is bringing all the values as "NULL":