Managed ODP.NET Provider Fails With ORA-1008 Error While Executing SELECT Statement With Single Quote And Bind Variable (Doc ID 2169794.1)

Last updated on AUGUST 09, 2016

Applies to:

Oracle Data Provider for .NET - Version 12.1.0.1 and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)

Symptoms

Managed ODP.NET provider throws "ORA-1008 not all variables bound" error, while executing a SELECT statement which includes single quoted string constant and bind variable.

Issue can be reproduced using the below code.

Database Script:

Cause

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