ODP.NET: ORA-1425 When Using Backslash As Escape Character In Select / Sql*Plus Works (Doc ID 1399875.1)

Last updated on JANUARY 25, 2012

Applies to:

Oracle Data Provider for .NET - Version: 9.2.0.1 and later   [Release: 9.2 and later ]
Information in this document applies to any platform.

Symptoms

Using ODP.NET in combination with nHibernate framework and performing SELECT containing

ESCAPE '\';

fails sometimes with

ORA-1425 escape character must be character string of length 1

Performing same query in SQL*Plus works without raising an error

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