11g_awr:如何生成AWR

在11g中AWR自动的每隔一小时进行一次数据采集并生成快照,所以我们只管用就行!下面是生成AWR报告的步骤:
1:At the SQL prompt, enter:
@$ORACLE_HOME/rdbms/admin/awrrpt.sql
2:Specify whether you want an HTML or a text report:
指定生成报表的格式:建议html,方便查看
Enter value for report_type: html
3:Specify the number of days for which you want to list snapshot IDs.
指定显示几天的快照id(11g中AWR快照默认保留时间为8天)
Enter value for num_days: 2
回车后,就会出现2天以来的所有快照ID
4:Specify a beginning and ending snapshot ID for the workload repository report:
给负载库报表指定开始快照ID和结束快照ID(可以跨越多个ID)
Enter value for begin_snap: 150
Enter value for end_snap: 160
5:Enter a report name, or accept the default report name:
输入报表名,或者不输入(oracle会生成一个默认名)
Enter value for report_name: 
Using the report name /u01/awrrpt_1_150_160.html
这样就生成了一个名为:awrrpt_1_150_160.html的AWR报表文件了,该文件位于/u01下!!
 



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章