12c的 Performance Hub Active Report

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xxzhaobb/article/details/86211118

参考文档:https://docs.oracle.com/en/database/oracle/oracle-database/12.2/tgdba/gathering-database-statistics.html#GUID-23061F14-767D-47B6-9B45-D1E26FB1E075

首先,在12c的AWR里面,选择AWR的格式,有HTML,TEXT,还有一个active-html,这个active-html就类似于performance hub active report。

SYS@test>@?/rdbms/admin/awrrpt.sql

Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
AWR reports can be generated in the following formats.  Please enter the
name of the format at the prompt.  Default value is 'html'.

'html'          HTML format (default)
'text'          Text format
'active-html'   Includes Performance Hub active report

Enter value for report_type:

运行出来的AWR效果如下,在awr的最后,事active-html report。如下

可以通过单独运行performance hub active report 

SYS@test>@?/rdbms/admin/perfhubrpt.sql
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~                   PERFHUB ACTIVE REPORT                              ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~  This script will generate PerfHub active report according to        ~
~  users input.  The script will prompt users for the                  ~
~  following information:                                              ~
~     (1) report level: basic, typical or all                          ~
~     (2) dbid                                                         ~
~     (3) instance id                                                  ~
~     (4) selected time range                                          ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Specify the report level
~~~~~~~~~~~~~~~~~~~~~~~~
*  Please enter basic, typical or all
*  Report level "basic" - include tab contents but no further details
*  Report level "typical" - include tab contents with details for top
*                           SQL statements
*  Report level "all" - include tab contents with details for all SQL
*                       statements

Please enter report level [typical]:

Please enter report level [typical]: all


Using all for report level



Available Databases and Instances.
The database with * is current database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DB Id        DB Name      AWR Data Source          Type
------------ ------------ ------------------------ ------------------------
* 2261741601 TEST         TEST                     NON_CDB

Specify the database ID
~~~~~~~~~~~~~~~~~~~~~~~
Please enter database ID [2261741601]: 2261741601


Using 2261741601 for database ID


Generating report for selected data source. Please press Enter
Specify the Instance Number
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Single Instance Database. Please press Enter





Default Start Time  Default End Time    Oldest Available Snapshot Time
------------------- ------------------- ------------------------------
01/09/2019 16:38:46 01/09/2019 16:43:46 11/22/2018 15:00:05

Specify selected time range
~~~~~~~~~~~~~~~~~~~~~~~~~~~
*  If the selected time range is in the past hour, report data will be
*    retrieved from V$ views.
*  If the selected time range is over 1 hour ago, report data
*    will be retrieved from AWR.
*  If the dbid selected is not for the current database, only AWR data
*    is available.
*
*  Valid input formats:
*      To specify absolute time:
*        [mm/dd[/yyyy]] hh24:mi[:ss]
*        Examples: 02/23/14 14:30:15
*                  02/23 14:30:15
*                  14:30:15
*                  14:30
*      To specify relative time: (start with '-' sign)
*        -[hh24:]mi
*        Examples: -1:15  (SYSDATE - 1 Hr 15 Mins)
*                  -25    (SYSDATE - 25 Mins)

Please enter start time [01/09/2019 16:38:46]:
Please enter end time [01/09/2019 16:43:46]:


Generating report for 01/09/2019 16:38:46 - 01/09/2019 16:43:46


Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
Please enter report name [perfhub_rt_01091643.html]:
Generating report perfhub_rt_01091643.html ...

Report written to perfhub_rt_01091643.html

SYS@test>

运行的结果如下:

END

猜你喜欢

转载自blog.csdn.net/xxzhaobb/article/details/86211118
今日推荐