A Query Using a Like Predicate and NVL Function Causes ORA-01560

(Doc ID 2310133.1)

Last updated on SEPTEMBER 25, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database - Standard Edition - Version 12.1.0.1 and later
Information in this document applies to any platform.

Symptoms

SQL> variable attr22 varchar2(200)
SQL> execute :attr22 := '<Multibyte character>....';
SQL> select 1 from dual where dummy like nvl(:attr22, ' ');
*
ERROR at line 1:
ORA-01560: LIKE pattern contains partial or illegal character

(In this case, multibyte characters set into a bind variable before executing a query)

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