码迷,mamicode.com
首页 > 数据库 > 详细

AWR oracle

时间:2015-09-29 15:05:17      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:oracle awr

SELECT dbid, baseline_name, baseline_type, moving_window_size from dba_hist_baseline; 


      DBID BASELINE_NAME    BASELINE_TYPE MOVING_WINDOW_SIZE

---------- ---------------------------------------------------------------- ------------- ------------------

 536511065 SYSTEM_MOVING_WINDOW    MOVING_WINDOW   8


begin

dbms_workload_repository.modify_snapshot_settings(interval=>60,retention=>90*24*60);

end;

col RETENTION for a20

select * from dba_hist_wr_control;


      DBID SNAP_INTERVAL       RETENTION    TOPNSQL

---------- --------------------------------------------------------------------------- -------------------- ----------

 536511065 +00000 01:00:00.0       +00090 00:00:00.0    DEFAULT


 

select snap_id,

       to_char(begin_interval_time, ‘YYYY-MM-DD‘),

       to_char(end_interval_time, ‘YYYY-MM-DD‘)

  from dba_hist_snapshot

 order by snap_id;

 

手动生成AWR:

exec dbms_workload_repository.create_snapshot();


AWR oracle

标签:oracle awr

原文地址:http://7642644.blog.51cto.com/7632644/1699026

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!