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 and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)


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:


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