A query using like predicate causes ORA-1560
(Doc ID 2289850.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Standard Edition - Version 220.127.116.11 and later
Oracle Database - Enterprise Edition - Version 18.104.22.168 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)
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!