Oracle 12c中AWR 报告的生成方法和之前的版本一样,直接运行awrrpt.sql 脚本即可。https://www.cndba.cn/dave/article/237
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 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 to continue, otherwise enter an alternative.
Enter value for report_name:
Oracle 12c AWR 报告大部分延续Oracle 11g的内容。 几点不同如下:
1.创建的时候,多一种类型选择:https://www.cndba.cn/dave/article/237
'active-html' Includes Performance Hub active report
2.在AWR 报告中,包含了ASH 报告:
3.在AWR 报告中,包含了ADDM的报告:
https://www.cndba.cn/dave/article/237
4.AWR 报告中包含了OGG的信息:
5.当然最牛逼的是Database Active Report,可以在上面选择不同的功能,关键是在一个html中实现,不多说,直接上图,
https://www.cndba.cn/dave/article/237
因为使用的是active-html的格式,怀疑是这个所致,所以又重新使用默认的html拉了一份AWR. 里面还是会生成ASH和ADDM 的数据。
6. CDB 和PDB 中生成的AWR 报告内容不同
上面的AWR 报告是在CDB中执行,后来切到PDB中生成一份,对比了一下,在关于DB总的信息部分,CDB和PDB 信心一致,但是在一些具体内容上,PDB中只收集自己的信息,CDB 会收集所有的信息,还有就是PDB中的AWR,少了ADDM的数据。
https://www.cndba.cn/dave/article/237
https://www.cndba.cn/dave/article/237https://www.cndba.cn/dave/article/237
总之,根据上面的对比,在ORACLE 12c 的AWR 报告,还是多了不少内容,当然如果是喜欢图形界面的不用,记得选择active-html。 这个Database Active Report 确实很酷。
版权声明:本文为博主原创文章,未经博主允许不得转载。