My Oracle Support Banner

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 MAY 01, 2018

Applies to:

Oracle Data Provider for .NET - Version and later
Microsoft Windows x64 (64-bit)
Microsoft Windows (32-bit)
*** Checked for relevance on 01-May-2018 ***


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:


To view full details, 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 a vibrant support community of peers and Oracle experts.