SQL> select replace('xxyyxxxyyyxy', 'xxyyxxxyyyxy', 'xxyyxxxyyy') from dual;

REPLACE('X
----------
xxyyxxxyyy