Entity Framework 6 With ODP.Net Provider Automatically Generates Lengthy(OVER 1000-COLUMNS) SQL Causing ORA-1792 Error

(Doc ID 2346677.1)

Last updated on JANUARY 11, 2018

Applies to:

Oracle Data Provider for .NET - Version to [Release 12.1]
Generic Windows


ODP.NET with Entity Framework 6 automatically generates lengthy (over 1000-columns) SQL causing application to fail with ORA-1792 error.

Same sample code with Entity Framework 6 tested with MS SQL Server, and found that the SQL generated from Microsoft dll (bundled with MS Entity Framework) is much more concise, i.e, no lengthy 1000-columns sub-query.


 ODP.NET driver used in place of Microsoft ADO.NET


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms