ITPub博客

首页 > 数据库 > Oracle > AWR修改收集策略

AWR修改收集策略

原创 Oracle 作者:tolilong 时间:2016-01-20 10:28:00 0 删除 编辑
SQL> select * from dba_hist_wr_control;


      DBID SNAP_INTERVAL                  RETENTION                      TOPNSQL
---------- ------------------------------ ------------------------------ ------------------------------
4270115873 +00000 01:00:00.0              +00007 00:00:00.0              DEFAULT


SQL> begin
  2  dbms_workload_repository.modify_snapshot_settings(interval=>30,retention=>10*24*60);
  3  end;
  4  /


PL/SQL procedure successfully completed.


SQL> select * from dba_hist_wr_control;


      DBID SNAP_INTERVAL                  RETENTION                      TOPNSQL
---------- ------------------------------ ------------------------------ ------------------------------
4270115873 +00000 00:30:00.0              +00010 00:00:00.0              DEFAULT

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24237320/viewspace-1979434/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208671