签到成功

知道了

CNDBA社区CNDBA社区

Oracle 12c AWR 报告中的新功能

2016-09-06 12:27 10126 0 原创 Oracle 18c
作者: dave


 

Oracle 12cAWR 报告的生成方法和之前的版本一样,直接运行awrrpt.sql 脚本即可。

 

SQL> show con_name
 
CON_NAME
------------------------------
CDB$ROOT
SQL> @?/rdbms/admin/awrrpt.sql
 
Current Instance
~~~~~~~~~~~~~~~~
 
   DB Id    DB Name   Inst Num Instance
----------- ------------ -------- ------------
  925913465 DAVE          1 dave
 
 
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: active-html
 
Type Specified:  active-html
 
 
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
   DB Id     Inst Num DB Name            Instance     Host
------------ -------- ------------ ------------ ------------
* 925913465        1 DAVE        dave  Ora12c
 
Using  925913465 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 <return> 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
------------ ------------ --------- ------------------ -----
dave      DAVE                81 06 Nov 2015 00:01       1
                                      82 06 Nov 2015 01:00       1
                                      83 06 Nov 2015 02:00       1
                                      84 06 Nov 2015 03:00       1
                                      85 06 Nov 2015 04:00       1
                                      86 06 Nov 2015 05:00       1
                                      87 06 Nov 2015 06:00       1
                                       88 06 Nov 2015 07:00       1
                                      89 06 Nov 2015 08:00       1
                                      90 06 Nov 2015 09:00       1
                                      91 06 Nov 2015 10:00       1
 
                                      92 06 Nov 2015 11:00       1
 
                                      93 06 Nov 2015 12:00       1
                                      94 06 Nov 2015 13:00       1
                                      95 06 Nov 2015 14:00       1
                                      96 06 Nov 2015 15:00       1
 
 
 
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 95
Begin Snapshot Id specified: 95
 
Enter value for end_snap: 96
End   Snapshot Id specified: 96
 
 
 
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_90_91.html.  To use this name,
press <return> to continue, otherwise enter an alternative.
 
Enter value for report_name:

 

 

http://www.cndba.cn/cndba/dave/article/237

Oracle 12c AWR 报告大部分延续Oracle 11g的内容。 几点不同如下:

 

1.创建的时候,多一种类型选择:

'active-html'     Includes Performance Hub active report

 

2.在AWR 报告中,包含了ASH 报告:





http://www.cndba.cn/cndba/dave/article/237


 

 

3.在AWR 报告中,包含了ADDM的报告:

 

http://www.cndba.cn/cndba/dave/article/237

 

 

4AWR 报告中包含了OGG的信息:

 

5.当然最牛逼的是Database Active Report,可以在上面选择不同的功能,关键是在一个html中实现,不多说,直接上图,

 

 

 http://www.cndba.cn/cndba/dave/article/237

 

 

因为使用的是active-html的格式,怀疑是这个所致,所以又重新使用默认的html拉了一份AWR. 里面还是会生成ASHADDM 的数据。

 http://www.cndba.cn/cndba/dave/article/237

6 CDB PDB 中生成的AWR 报告内容不同

上面的AWR 报告是在CDB中执行,后来切到PDB中生成一份,对比了一下,在关于DB总的信息部分,CDBPDB 信心一致,但是在一些具体内容上,PDB中只收集自己的信息,CDB 会收集所有的信息,还有就是PDB中的AWR,少了ADDM的数据。

 http://www.cndba.cn/cndba/dave/article/237

 http://www.cndba.cn/cndba/dave/article/237

 http://www.cndba.cn/cndba/dave/article/237

 

 

http://www.cndba.cn/cndba/dave/article/237

总之,根据上面的对比,在ORACLE 12c AWR 报告,还是多了不少内容,当然如果是喜欢图形界面的不用,记得选择active-html 这个Database Active Report 确实很酷。

 

 http://www.cndba.cn/cndba/dave/article/237

 

 

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2283
    原创
  • 3
    翻译
  • 579
    转载
  • 196
    评论
  • 访问:8181048次
  • 积分:4428
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ