如何使用awrrpt.sql 生成AWR报告
admin
2023-05-08 11:02:19
0

使用  /home/oracle/app/oracle/product/11.2.9/dbhome_1/rdbms/admin/awrrpt.sql  脚本生成awr报告

oracle@linux:~> sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on 星期三 8月 19 07:34:53 2015

Copyright (c) 1982, 2011, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @/home/oracle/app/oracle/product/11.2.9/dbhome_1/rdbms/admin/awrrpt.sql        awrrpt.sql 该脚本的绝对路径;

Current Instance
~~~~~~~~~~~~~~~~

   DB Id    DB Name     Inst Num Instance
----------- ------------ -------- ------------
1407296662 ORCL          1 orcl


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: html                 报告类型,html或text

Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   DB Id     Inst Num DB Name        Instance     Host
------------ -------- ------------ ------------ ------------
* 1407296662         1 ORCL        orcl      linux

Using 1407296662 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                 要生成报告的天数,默认是7天

Listing the last day's Completed Snapshots

                                   Snap
Instance     DB Name         Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
orcl         ORCL              2179 19 8月  2015 00:00     1
                               2180 19 8月  2015 01:00     1
                               2181 19 8月  2015 02:00     1
                               2182 19 8月  2015 03:00     1
                               2183 19 8月  2015 04:00     1
                               2184 19 8月  2015 05:00     1
                               2185 19 8月  2015 06:00     1
                               2186 19 8月  2015 07:00     1



Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 2181           开始快照的id 如:2181

Begin Snapshot Id specified: 2181

Enter value for end_snap: 2183             结束快照的id 如:2183
End   Snapshot Id specified: 2183



Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_2181_2183.html.  To use this name,
press to continue, otherwise enter an alternative.

Enter value for report_name: awrrpt_1_2181_2183.html             生成报告的名称

............................................


Report written to awrrpt_1_2181_2183.html                 当看到这个表示生成成功了;

oracle@linux:~> ll /home/oracle/awrrpt_1_2181_2183.html
-rw-r--r-- 1 oracle dba 379333 2015-08-19 07:38 /home/oracle/awrrpt_1_2181_2183.html

默认保存在/home/oracle 的路径下;

相关内容

热门资讯

中国量子计算新突破!“九章四号... 记者从中国科学技术大学获悉,由该校潘建伟院士领衔的科研团队联合国内多家科研机构、大学,近期成功研制出...
跳河救人的外卖小哥找到了! 外... 5月12日下午5时许,漯河市郾城区孟庙镇幸福渠河堤旁,57岁的甘女士蹲在河边打水,准备回家给鱼换水,...
今年以来,越来越多美国交流团来... 4月,数十名美国犹他州青少年来豫参加2026年YES项目交流活动。图为美国青少年在郑州体验书法项目。...
“打工机器人”亮相郑州街头 机器人服务员“小盖”在郑州街边的一零售店工作。 王磊 摄机器人当服务员,在街头卖咖啡——这不是科幻电...
打响“河南服务”品牌丨盾构机有... 【开栏的话】为深入贯彻落实全省服务业大会精神,本报即日起开设“打响‘河南服务&rsquo...
一季度我国数字产业收入9.5万... 【大河财立方消息】5月14日,工信部发布的数据显示,一季度,我国数字产业实现良好开局,行业利润大幅改...
一体推进整治形式主义为基层减负... 形式主义实质是主观主义、功利主义,根源是政绩观错位、责任心缺失。当前,各地以深化“六个纠治”为抓手,...
5月上旬汽油柴油价格环比继续下... 【大河财立方消息】 5月14日,国家统计局发布2026年5月上旬流通领域重要生产资料市场价格变动情况...
河南信阳凌晨通报:常某朋(男,... 2026年5月13日21时43分许,我市浉河区发生一起道路交通事故。经查,常某朋(男,40岁)驾驶私...
马化腾回应腾讯AI是否落后;曝... “IT早报”时间,大家好,现在是 2026 年 5 月 14 日星期四,今天的重要科技资讯有: 1、...