I'm trying to execute the next query:
SELECT * FROM all_triggers t
WHERE UPPER(trigger_name) like UPPER('%ABC%')
AND UPPER(TRIGGER_BODY) LIKE '%DEF%';
But I get the following error:
ORA-00932: inconsistent data types: expected CHAR has been obtained LONG
How can I avoid this error?
Best regards.
Best Answer
Maybe the simplest way is:
You can find the other methods using PL/SQL or XML functions here: working with long columns
Or just use ALL_SOURCE to find the trigger: