A query using like predicate causes ORA-1560
Last updated on FEBRUARY 21, 2018
Applies to:Oracle Database - Standard Edition - Version 184.108.40.206 and later
Oracle Database - Enterprise Edition - Version 220.127.116.11 and later
Information in this document applies to any platform.
A query using like predicate causes ORA-1560.
This is caused when concatinating bind bariables including more than 22 multibyte characters and a character '%'.
SQL> var dname varchar2(64 char)
SQL> exec :dname :='<Multibyte character>....';
SQL> SELECT count(*) FROM scott.emp WHERE ename LIKE :dname || '%' ;
SELECT count(*) FROM scott.emp WHERE ename LIKE :dname || '%'
ERROR at line 1:
ORA-01560: LIKE pattern contains partial or illegal character
(In this case, multibyte charcters set into a bind variable before executing a query)
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