问题
收集AWR报错
原因&解决方案
授予相关权限
grant execute on DBMS_WORKLOAD_REPOSITORY to scott;
select snap_id, dbid, instance_number from dba_hist_snapshot;
TEXT
SELECT output FROM TABLE(DBMS_WORKLOAD_REPOSITORY.awr_report_text(3873792761,2,793,794));
HTML
SELECT output FROM TABLE(DBMS_WORKLOAD_REPOSITORY.awr_report_html(3873792761,2,793,794));