本文旨在用来指导项目人员自行提取Oracle数据库的AWR报告.

1.当前连接实例的AWR报告提取:@?/rdbms/admin/awrrpt

2.RAC的其他实例AWR报告提取:@?/rdbms/admin/awrrpti

3.手工生成一个快照

1.当前连接实例的AWR报告提取:@?/rdbms/admin/awrrpt

SQL> @?/rdbms/admin/awrrpt//注意输入的@?/rdbms/admin/awrrpt 中间没有任何空格,需要在数据库服务器上Oracle用户登陆,sqlplus / as sysdba 进入SQL> 下执行.Current Instance
~~~~~~~~~~~~~~~~DB Id    DB Name      Inst Num Instance
----------- ------------ -------- ------------857123342 JY                  1 jy1Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type:
//注意这里直接回车即可,默认就是html格式的
Type Specified:  htmlInstances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------857123342         2 JY           jy2          rac2-server
* 857123342         1 JY           jy1          rac1-serverUsing  857123342 for database Id
Using          1 for instance numberSpecify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed.  Pressing <return> without
specifying a number lists all completed snapshots.Enter value for num_days: 1
//注意这里根据实际需要选择几天的AWR报告,一般取最近的AWR报告选择1天即可
Listing the last day's Completed SnapshotsSnap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
jy1          JY                  92 16 Oct 2014 07:32      193 16 Oct 2014 09:00      194 16 Oct 2014 10:00      195 16 Oct 2014 11:00      1Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 94
Begin Snapshot Id specified: 94Enter value for end_snap: 95
End   Snapshot Id specified: 95//注意这里输入的begin_snap 和 end_snap都是根据上面具体时间点对应的实际Snap Id那一列决定的. 比如我要选 09:00 - 10:00的话,那起始就应该是93和94. Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_94_95.html.  To use this name,
press <return> to continue, otherwise enter an alternative.Enter value for report_name:
//这里默认回车即可,名字会有一个默认值的。
Using the report name awrrpt_1_94_95.html
此处省略大量屏幕输出..
End of Report
</BODY></HTML>
Report written to awrrpt_1_94_95.html
SQL> !pwd
/home/oracle 

注:生成的报告文件发送给我即可,例如此处就是指awrrpt_1_94_95.html文件,代表的是2014年10月16日10点~11点这一小时的数据库实例jy1的工作负载报告。

2.RAC的其他实例AWR报告提取:@?/rdbms/admin/awrrpti

SQL> @?/rdbms/admin/awrrptiSpecify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report, or a plain text report?
Enter 'html' for an HTML report, or 'text' for plain text
Defaults to 'html'
Enter value for report_type: Type Specified:  htmlInstances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------857123342         2 JY           jy2          rac2-server
* 857123342         1 JY           jy1          rac1-serverEnter value for dbid: 857123342
Using 857123342 for database Id
Enter value for inst_num: 2
Using 2 for instance numberSpecify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed.  Pressing <return> without
specifying a number lists all completed snapshots.Enter value for num_days: Listing all Completed SnapshotsSnap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
jy2          JY                  91 14 Oct 2014 10:10      192 16 Oct 2014 07:32      193 16 Oct 2014 09:00      194 16 Oct 2014 10:00      195 16 Oct 2014 11:00      1Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 94
Begin Snapshot Id specified: 94Enter value for end_snap: 95
End   Snapshot Id specified: 95Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_2_94_95.html.  To use this name,
press <return> to continue, otherwise enter an alternative.Enter value for report_name: Using the report name awrrpt_2_94_95.html此处省略大量屏幕输出..End of Report
</BODY></HTML>
Report written to awrrpt_2_94_95.html

3.手工生成一个快照:

exec dbms_workload_repository.create_snapshot();

SQL> exec dbms_workload_repository.create_snapshot();PL/SQL procedure successfully completed.

Oracle AWR报告提取方法相关推荐

  1. Oracle AWR报告指标全解析-11011552

    1-5 Top 5 Timed Events Waits : 该等待事件发生的次数, 对于DB CPU此项不可用 Times : 该等待事件消耗的总计时间,单位为秒, 对于DB CPU 而言是前台进程 ...

  2. Oracle AWR报告指标全解析

    1-5 Top 5 Timed Events Waits : 该等待事件发生的次数, 对于DB CPU此项不可用 Times : 该等待事件消耗的总计时间,单位为秒, 对于DB CPU 而言是前台进程 ...

  3. Oracle AWR报告详细分析

    Oracle AWR报告详细分析  (文档 ID 1523048.1) AWR 是 Oracle  10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动 ...

  4. 【性能调优】Oracle AWR报告指标全解析

    [性能调优]Oracle AWR报告指标全解析 啥是AWR? ===================================================================== ...

  5. oracle awr报告生成_分享AWR报告的生成和简单分析方法

    生成AWR报告方法: 第一步:数据库压力测试卡开始时:生成第一个快照: Sql>exec dbms_workload_repository.create_snapshot(); 第二步:数据库压 ...

  6. oracle awr报告生成_oracle11g awr报告分析—WORKLOAD REPOSITORY report

    概述 关于生产环境的一份awr报告分析,之前闲着无聊整理了100页,后面拆分下各个模块介绍下怎么看awr报告. 我们在看性能指标的时候,需要知道数据库出现性能问题,一般都在三个地方,io,内存,cpu ...

  7. Oracle AWR 报告的生成和分析

    1.背景 1.1.Linux 服务器情况 # cat /etc/issue Red Hat Enterprise Linux Server release 6.1 (Santiago) Kernel ...

  8. Oracle AWR 报告中 No data exists for this section of the report 说明

    在AWR中,如果有部分选项是:Nodata exists for this section of the report.那么属正常现象. 如: 那么现在看一个有数据的AWR: 在下面的这个图中就显示了 ...

  9. Oracle AWR报告生成步骤

    1.手工刷出快照 开始压测前执行 SQL> exec dbms_workload_repository.create_snapshot();  结束压测后执行 SQL> exec dbms ...

最新文章

  1. Oracle DBA学习互联网化的内容
  2. Flex 元数据标签使用
  3. 窗口移到屏幕边上拉不出来解决办法
  4. 网络编程--sockaddr 与 sockaddr_in
  5. 【博客美化】08.添加扩大/缩小浏览区域大小 按钮
  6. arraylist如何检测某一元素是否为空_我们应该如何理解Java集合框架的关键知识点?...
  7. 【中国版Office 365 应用程序注册】
  8. hdata datax交流总结
  9. 为什么需要分布式配置中心
  10. 并发编程学习之Callable接口
  11. 360安全卫士默认浏览器设置 360默认浏览器设置 锁定浏览器
  12. 全国重点城市建筑物矢量数据合集三(Shp格式+带高度)
  13. 特征检测和特征提取算子
  14. 9.支撑向量机SVM
  15. Java考试常考基础题(Examination Questions Parsing01)
  16. 山水印|竹林野茶:走向世界的中国茶文化
  17. 华为路由器hilink怎么用_HUAWEI HiLink 两个华为路由器无线中继实测效果【图解】...
  18. HashMap的实际应用
  19. 苹果推出iPhone 12维修计划,解决无声音问题
  20. 【算法】时间复杂度/运行时间——大O表示法

热门文章

  1. 李想发布了一款怎样的智能电动车?
  2. 业内最大规模多标签图像数据集开源 | GitHub资源
  3. 复杂场景下,如何用AI技术做地图?
  4. linux CentOS7最小化安装环境静默安装Oracle11GR2数据库(修改配置文件)
  5. 视频AI对话杭州云栖:新一代视频智能生产的探索与实践
  6. python内置数据结构方法的时间复杂度
  7. 特斯拉进入Autopilot 2.0时代,高举“普通雷达”旗帜!
  8. 让Python更加充分的使用Sqlite3
  9. SpringMVC中自定义类型转换器
  10. 2950交换机简明配置维护手册