如何生成Oracle AWR报告 (awrrpt)
2008-12-19 11:17
Oracle性能分析入门学习中,遇到Oracle数据库的性能问题,一般首要的步骤就是导出AWR的分析报告,AWR是10g中新引入的一个工具,在这之前一般是利用statspack。要导出AWR报告,只要利用Oracle的一个脚本即可以完成,下面是我利用script录制的一段导出AWR report的过程。 首先进入$ORACLE_HOME/rdbms/admin目录,在sqlplus下运行@awrrpt脚本,按照提示一步一步就可以达成,导出的格式有两种,txt格式和html格式。 在OTN上,有一个DBA新feature系列,第六周就是专门讲的这个feature,大家可以去那里了解一下(中文的) Script started on Sun 27 Jan 2008 08:47:15 PM PST [ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ cd $ORACLE_HOME/rdbms/admin [ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jan 27 20:47:38 2008 Copyright (c) 1982, 2007, Oracle. All Rights Reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options SQL> @awrrpt
Current Instance ~~~~~~~~~~~~~~~~ DB Id DB Name Inst Num Instance ———– ———— ——– ———— 2080780909 ORCLDB 1 orcldb1 Specify 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: text Type Specified: text Instances in this Workload Repository schema ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DB Id Inst Num DB Name Instance Host ———— ——– ———— ———— ———— * 2080780909 1 ORCLDB orcldb1 sun880-1 2080780909 4 ORCLDB orcldb4 sun880-4 2080780909 2 ORCLDB orcldb2 sun880-2 2080780909 3 ORCLDB orcldb3 sun880-3 Using 2080780909 for database Id Using 1 for instance number Specify 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 without specifying a number lists all completed snapshots. Enter value for num_days: 1 Listing the last day’s Completed Snapshots Snap Instance DB Name Snap Id Snap Started Level ———— ———— ——— —————— —– orcldb1 ORCLDB 66 27 Jan 2008 00:55 1 67 27 Jan 2008 01:55 1 68 27 Jan 2008 02:55 1 69 27 Jan 2008 03:55 1 70 27 Jan 2008 04:55 1 71 27 Jan 2008 05:55 1 72 27 Jan 2008 06:55 1 73 27 Jan 2008 07:55 1 74 27 Jan 2008 08:55 1 75 27 Jan 2008 09:55 1 76 27 Jan 2008 10:55 1 77 27 Jan 2008 11:55 1 78 27 Jan 2008 12:55 1 83 27 Jan 2008 17:54 1 84 27 Jan 2008 18:55 1 85 27 Jan 2008 19:55 1 Specify the Begin and End Snapshot Ids ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Enter value for begin_snap: 70 Begin Snapshot Id specified: 70 Enter value for end_snap: 71 End Snapshot Id specified: 71 Specify the Report Name ~~~~~~~~~~~~~~~~~~~~~~~ The default report file name is awrrpt_1_70_71.txt. To use this name, press to continue, otherwise enter an alternative. Enter value for report_name: Using the report name awrrpt_1_70_71.txt WORKLOAD REPOSITORY report for DB Name DB Id Instance Inst Num Release RAC Host ———— ———– ———— ——– ———– — ———— ORCLDB 2080780909 orcldb1 1 10.2.0.4.0 YES sun880-1 Snap Id Snap Time Sessions Curs/Sess ——— ——————- ——– ——— Begin Snap: 70 27-Jan-08 04:55:07 136 16.2 End Snap: 71 27-Jan-08 05:55:21 141 16.5 Elapsed: 60.23 (mins) DB Time: 5,814.07 (mins) Cache Sizes ~~~~~~~~~~~ Begin End //此处有删减
————————————————————- End of Report Report written to awrrpt_1_70_71.txt SQL> quit Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, OLAP, Data Mining and Real Application Testing options [ractest@sun880-1 /u01/app/oracle/orahome/rdbms/admin]$ exit script done on Sun 27 Jan 2008 08:48:16 PM PST
|
http://hi.baidu.com/daweeforever/blog/item/2824a82dcf864433359bf755.html
分享到:
相关推荐
使用非常详尽的步骤,一步一步的指引我们在oracle 中如何生成一份awr报告
ORACLE AWR报告生成
window下直接调用生成弹出html格式的awr报告,不用去linux下了,但是妖之道数据库密码的啊,不然没法调用,修改里bat里的连接串即可 样例: sqlplus sys/oracle@zhengshiku_2 as sysdba @addmrpt.sql
本文介绍Windows和Linux平台生成oracle awr报告方法,适合新手查阅。欢迎大家下载,如有建议和疑问可联系作者
oracle awr报告分析 详细介绍如何生成awr报告以及如何分析awr报告的详细内容。
Automatic Workload Repository-自动负载信息库 AWR 是通过对比两次快照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个部分
对oracle的AWR报表生成和各项关键指标分析进行具体分析论述。
AWR报告生成详解,详细介绍了ORACLE的AWR分析
此文档目的帮助更加深入理解 AWR 报表,为 oracle 从业者与技术爱好做性能分析与性 能监控提供参考资料。 文档编写依据: 文档基于 oracle 包源码分析得出。 dbms_swrf_report_internal,test_dbms_workload_...
oracle报表生成器,自动生成AWR,ASH等报告
oracle 11G生成Awr报告个人分享如果存在问题请老师批评指正
oracle查看awr的详细介绍 AWR 是 Oracle 10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动负载信息库, AWR 是通过对比两次快,照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个...
最近想要通过awr观察下某个oracle实例的性能情况,碰到了在sqlplus执行awrrpt.sql到选择snapshot区间的时候无任何区间供选导致无法进一步生 成awr的情况,而且手动使用execute DBMS_WORKLOAD_REPOSITORY.CREATE_...
性能测试过程中,我们会监控数据库资源,发现性能测试瓶颈在数据库后,需要打印oracle awr报告来定位问题,那我们如何打印awr报告呢?以下为生成awr步骤。1. 首先第一步查看实例:echo $ORACLE_SID 2. 赋值实例:...
AWR 是 Oracle 10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动负载信息库, AWR 是通过对比两次快照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个部分
AWR 是 Oracle 10g 版本 推出的新特性, 全称叫Automatic Workload Repository-自动负载信息库, AWR 是通过对比两次快,照(snapshot)收集到的统计信息,来生成报表数据,生成的报表包括多个部分.
本手册是以一个优化数据案例,一步一步生成AWR性能分析报告,对数据库性能优化有大帮助哦。
Linux下生成oracle awr和addm的数据库脚本。通过生产环境测试。
目前相当一部分公司会用到oracle,在做性能测试的时候,对数据库的监控很重要,那么这里先介绍下如何生成oracle自带的awr监控报告,而具体报告的内容分析会放在后续的博客中。 oracle性能分析入门学习中,遇到oracle...