Oracle
Allen 2010-05-12 0 10400 0 0 0 0
Oracle性能,AWR报告,Oracle AWR报告生成步骤

Oracle AWR报告生成步骤如下:

简洁说明

sqlplus  /  as  sysdba       
SQL>exec DBMS_WORKLOAD_REPOSITORY.AWR_SET_REPORT_THRESHOLDS(top_n_sql=>300);     
SQL>@?/rdbms/admin/awrrpt.sql; 
Enter value for report_type:
--此处直接回车,使用html格式
Enter value for num_days:
--此处直接回车
Enter value for begin_snap: 17477
Begin Snapshot Id specified: 17478
--这里要输入开始时间和结束时间对应的snap_id号码,我这里开始输入的17477,结束输入的17478,收集的就是2023年4月20日20:00到21:00这一个小时的awr.
Enter value for report_name:
--这里输入awr报告的名字,也可以不输入直接默认
Report written to awrrpt_1_17448_17449.html
--报告制作完成
SQL>exit
--最后exit退出,报告就在当前目录下awrrpt_1_17448_17449.html

详细:

sqlplus  /  as  sysdba       
exec DBMS_WORKLOAD_REPOSITORY.AWR_SET_REPORT_THRESHOLDS(top_n_sql=>300);     
@?/rdbms/admin/awrrpt.sql; 

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格式

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:
--此处直接回车

                              17477 20 Apr 2023 20:00      1
                              17478 20 Apr 2023 21:00      1
                              17479 20 Apr 2023 22:00      1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 17477
Begin Snapshot Id specified: 17478

Enter value for end_snap: 17478
--这里要输入开始时间和结束时间对应的snap_id号码,我这里开始输入的17477,结束输入的17478,收集的就是2023年4月20日20:00到21:00这一个小时的awr.

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

Enter value for report_name:

--这里输入awr报告的名字,如果不输入直接回车的话,名字就是awrrpt_1_17448_17449.html

Report written to awrrpt_1_17448_17449.html
--报告制作完成

SQL>exit

--最后exit退出,报告就在当前目录下awrrpt_1_17448_17449.html

版本:oracle 11g


【版權聲明】
本文爲原創,遵循CC 4.0 BY-SA版權協議!轉載時請附上原文鏈接及本聲明。
原文鏈接:https://tdlib.com/am.php?t=Z8bOxI3XKy22
Tag: Oracle性能 AWR报告
我也要發一個   ·   返回首頁   ·   返回[Oracle]   ·   前一個   ·   下一個
歡迎評論
未登錄,
請先 [ 註冊 ] or [ 登錄 ]
(一分鍾即可完成註冊!)
返回首頁     ·   返回[Oracle]   ·   返回頂部