Możesz użyć TRANSLATE aby to zrobić. Zasadniczo translate usuń wszystkie znaki do wydrukowania ASCII (nie ma ich zbyt wiele) i zobacz, co Ci zostało.
Oto zapytanie, które to robi:
WITH input ( p_string_to_test) AS (
SELECT 'This this string' FROM DUAL UNION ALL
SELECT 'Test this ' || CHR(7) || ' string too!' FROM DUAL UNION ALL
SELECT 'xxx' FROM DUAL)
SELECT p_string_to_test,
case when translate(p_string_to_test,
chr(0) || q'[ !"#$%&'()*+,-./0123456789:;<=>example@sqldat.com[\]^_`abcdefghijklmnopqrstuvwxyz{|}~]',
chr(0)) is null then 'Yes' else 'No' END is_ascii
FROM input;