oracle Awr报告

Select DBID,INSTANCE_NUMBER,SNAP_ID,TO_CHAR(END_INTERVAL_TIME,'YYYY-MM-DD HH24:MM:SS') AS END_TIME,TO_CHAR(BEGIN_INTERVAL_TIME,'YYYY-MM-DD HH24:MM:SS') AS BEGIN_TIME From dba_hist_snapshot a where begin_interval_time >= sysdate-NVL(5, 0.5) order by snap_id desc;

  

SELECT * FROM TABLE(DBMS_WORKLOAD_REPOSITORY.awr_report_html(上面查到的DBID,实例1或者2,快照开始ID,快照结束ID));

  

posted on 2019-01-04 13:47  唯伊  阅读(135)  评论(0编辑  收藏  举报

导航