select dbms_workload_repository.create_snapshot('ALL') from dual;
select end_interval_time, error_count from DBA_HIST_SNAPSHOT;