-- 找到指定的snap select snap_id, max(sample_time) from sys.wrh$_active_session_history group by snap_id order by snap_id desc; -- AWR SELECT * FROM TABLE(dbms_workload_repository.awr_report_html( (, 26663, -- begin snap_id 26664 -- end snap_id )); SELECT…
1.双击awr.cmd,通过cmd窗口运行awr.sql cmd.exe /c sqlplus lcam_1230/zcpzg1z_1230@54_orcl @awr.sql awr.cmd 2.awr.sql,定义需要生成的AWR报告的时间区间,调用myawr.sql exit 2.awr.sql 3.myawr.sql,获取AWR报告数据 set echo off; set veri off; set feedback off; set termout on; set heading off…