with ash as (select /*+ materialize*/ CAST(sample_time AS DATE) as stime, s.* from &1) --SYSTEM.ASH_201901151747 s)--dba_hist_active_sess_history s where '&&2' is ...
$ &test_dir\compare_files.bat c:\temp\substr_de123_expected.txt c:\temp\substr_de123_gotten.txt $ &test_dir\compare_files.bat c:\temp\substr_234_expected.txt c:\temp ...