ITPub博客

首页 > Linux操作系统 > Linux操作系统 > awr baseline

awr baseline

原创 Linux操作系统 作者:wei-xh 时间:2011-09-21 13:00:13 0 删除 编辑

Generating Various Types of AWR Reports

AWR reports can be generated by running various SQL scripts to satisfy various requirements. Each report is available in HTML or TXT format:
  •  awrrpt.sql
    Displays various statistics for a range of snapshots Ids.

  • awrrpti.sql
    Displays statistics for a range of snapshot Ids on a specified database and instance.

  • awrsqrpt.sql
    Displays statistics of a particular SQL statement for a range of snapshot Ids. Run this report to inspect or debug the performance of a particular SQL statement.

  • awrsqrpi.sql
    Displays statistics of a particular SQL statement for a range of snapshot Ids on a specified SQL.

  • awrddrpt.sql
    Compares detailed performance attributes and configuration settings between two selected time periods.

  • awrddrpi.sql
    Compares detailed performance attributes and configuration settings between two selected time periods on a specific database and instance


 

Baselines

A baseline is a pair of snapshots that represents a specific period of usage. Once baselines are defined they can be used to compare current performance against similar periods in the past. You may wish to create baseline to represent a period of batch processing.

BEGIN
  DBMS_WORKLOAD_REPOSITORY.create_baseline (
    start_snap_id => 210, 
    end_snap_id   => 220,
    baseline_name => 'batch baseline');
END;
/

The pair of snapshots associated with a baseline are retained until the baseline is explicitly deleted.

BEGIN
  DBMS_WORKLOAD_REPOSITORY.drop_baseline (
    baseline_name => 'batch baseline',
    cascade       => FALSE); -- Deletes associated snapshots if TRUE.
END;
/

Baseline information can be queried from the DBA_HIST_BASELINE view.

 

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

请登录后发表评论 登录
全部评论
Oracle ACE组成员,DBGeeK用户组发起人。曾在DTCC、ORACLE技术嘉年华、Gdevops等公开场合做过数据库技术专题分享,2017年应Oracle邀请在世界最大的数据库会议OOW上做技术分享。组织翻译了《拨云见日,解密Oracle ASM内核》一书。

注册时间:2009-07-04

  • 博文量
    422
  • 访问量
    2425381