mysql awr报告生成_【Oracle】AWR报告生成

生成AWR报告

1.进入Oracle SQL环境

[oracle@oradb awrrpt]$ sqlplus "/as sysdba"

SQL*Plus: Release 11.2.0.4.0 Production on 星期三 1月 13 14:20:40 2021

Copyright (c) 1982, 2013, Oracle. All rights reserved.

连接到:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SYS@oradb>

2.执行awrrpt sql语句

>@?/rdbms/admin/awrrpt.sql

Current Instance

~~~~~~~~~~~~~~~~

DB Id DB Name Inst Num Instance

----------- ------------ -------- ------------

2697310494 ORADB1 oradb

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'

输入 report_type 的值:

report_type代表报告的类型,输出为html。

3.num_days的描述

Instances in this Workload Repository schema

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DB Id Inst Num DB Name InstanceHost

------------ -------- ------------ ------------ ------------

* 2697310494 1 ORADB oradboradb

Using 2697310494 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.

输入 num_days 的值: 4

上述输入的4,代表会生成最近4天的快照:

Listing the last 4 days of Completed Snapshots

Snap

Instance DB Name Snap Id Snap Started Level

------------ ------------ --------- ------------------ -----

oradb ORADB 17435 10 1月 2021 00:00 1

17436 10 1月 2021 01:00 1

17437 10 1月 2021 02:00 1

17438 10 1月 2021 03:00 1

17439 10 1月 2021 04:00 1

17440 10 1月 2021 05:00 1

17441 10 1月 2021 06:00 1

17442 10 1月 2021 07:00 1

17443 10 1月 2021 08:00 1

17444 10 1月 2021 09:00 1

17445 10 1月 2021 10:00 1

17446 10 1月 2021 11:00 1

17447 10 1月 2021 12:00 1

17448 10 1月 2021 13:00 1

17449 10 1月 2021 14:00 1

17450 10 1月 2021 15:00 1

17451 10 1月 2021 16:00 1

17452 10 1月 2021 17:00 1

17453 10 1月 2021 18:00 1

17454 10 1月 2021 19:00 1

17455 10 1月 2021 20:00 1

17456 10 1月 2021 21:00 1

17457 10 1月 2021 22:00 1

17458 10 1月 2021 23:00 1

17459 11 1月 2021 00:00 1

17460 11 1月 2021 01:00 1

17461 11 1月 2021 02:00 1

17462 11 1月 2021 03:00 1

17463 11 1月 2021 04:00 1

17464 11 1月 2021 05:00 1

17465 11 1月 2021 06:00 1

17466 11 1月 2021 07:00 1

17467 11 1月 2021 08:00 1

17468 11 1月 2021 09:00 1

17469 11 1月 2021 10:00 1

17470 11 1月 2021 11:00 1

17471 11 1月 2021 12:00 1

17472 11 1月 2021 13:00 1

17473 11 1月 2021 14:00 1

17474 11 1月 2021 15:00 1

17475 11 1月 2021 16:00 1

17476 11 1月 2021 17:00 1

17477 11 1月 2021 18:00 1

17478 11 1月 2021 19:00 1

17479 11 1月 2021 20:00 1

17480 11 1月 2021 21:00 1

17481 11 1月 2021 22:00 1

17482 11 1月 2021 23:00 1

17483 12 1月 2021 00:00 1

17484 12 1月 2021 01:00 1

17485 12 1月 2021 02:00 1

17486 12 1月 2021 03:00 1

17487 12 1月 2021 04:00 1

17488 12 1月 2021 05:00 1

17489 12 1月 2021 06:00 1

17490 12 1月 2021 07:00 1

Snap

Instance DB Name Snap Id Snap Started Level

------------ ------------ --------- ------------------ -----

oradb ORADB 17491 12 1月 2021 08:00 1

17492 12 1月 2021 09:00 1

17493 12 1月 2021 10:00 1

17494 12 1月 2021 11:00 1

17495 12 1月 2021 12:00 1

17496 12 1月 2021 13:00 1

17497 12 1月 2021 14:00 1

17498 12 1月 2021 15:00 1

17499 12 1月 2021 16:00 1

17500 12 1月 2021 17:00 1

17501 12 1月 2021 18:00 1

17502 12 1月 2021 19:00 1

17503 12 1月 2021 20:00 1

17504 12 1月 2021 21:00 1

17505 12 1月 2021 22:00 1

17506 12 1月 2021 23:00 1

17507 13 1月 2021 00:00 1

17508 13 1月 2021 01:00 1

17509 13 1月 2021 02:00 1

17510 13 1月 2021 03:00 1

17511 13 1月 2021 04:00 1

17512 13 1月 2021 05:00 1

17513 13 1月 2021 06:00 1

17514 13 1月 2021 07:00 1

17515 13 1月 2021 08:00 1

17516 13 1月 2021 09:00 1

17517 13 1月 2021 10:00 1

17518 13 1月 2021 11:00 1

17519 13 1月 2021 12:00 1

17520 13 1月 2021 13:00 1

17521 13 1月 2021 14:00 1

4.指定区间的快照id。

Specify the Begin and End Snapshot Ids

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

输入 begin_snap 的值: 17435

Begin Snapshot Id specified: 17435

输入 end_snap 的值: 17521

End Snapshot Id specified: 17521

5.指定输出的报告的名字

Specify the Report Name

~~~~~~~~~~~~~~~~~~~~~~~

The default report file name is awrrpt_1_17435_17521.html. To use this name,

press to continue, otherwise enter an alternative.

输入 report_name 的值:

这里可以输出你要的名称。至此,AWR报告生成。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值