oracle awr 重要几点,Oracle 12c AWR 报告中的新功能

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 报告:

6d0f3932412cb5b8f13531d97a4a5287.png

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

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

654eec8a44b358bc2bd613e601a4196e.png

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

84f479b71321337753bafb91f5d011c8.png

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

673c05d8d28e0e5da8eb432d455e7abf.png

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

04c63abef0969af68da0030aa14766d5.png

因为使用的是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

342b81526e406a85690766bb9db24869.png

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

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值