My Oracle Support Banner

ORA-01425 when using 'like' or 'escape' on NVARCHAR2 column (Doc ID 1470516.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Standard Edition - Version 11.1.0.7 to 11.1.0.7 [Release 11.1]
Information in this document applies to any platform.

Symptoms

You are using using 'like' or 'escape' on NVARCHAR2 column and you get the following error:

ERROR at line 1:
ORA-01425: escape character must be character string of length 1

Here is an example of possible failing syntax:
SQL> select * from t1 where col2 like '%\$$%' escape '\';



Changes

 You may see this problem while setting Cursor_sharing=force.

Cause

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.