生成oracle awr 性能分析报告

在aix 或者 linux 环境下:

su - oracle

 

sqlplus '/ as sysdba'

 

SQL> @/oracle/app/oracle/product/11g/db/rdbms/admin/awrrpt.sql

 

Current Instance

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

 

   DB Id    DB Name      Inst Num Instance

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

 2207104388 SFE                 1 sfe

 

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'

Enter value for report_type: 9

 

Type Specified:  9

 

Instances in this Workload Repository schema

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

 

   DB Id     Inst Num DB Name      Instance     Host

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

* 2207104388        1 SFE          sfe          hgpsfe01

  2207104388        1 SFE          sfe          hgpsfe02

 

Using 2207104388 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: 8

 

Listing the last 8 days of Completed Snapshots

 

                                                        Snap

Instance     DB Name        Snap Id    Snap Started    Level

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

sfe          SFE               2468 31 Dec 2010 00:00      1

                               2469 31 Dec 2010 01:00      1

                               2470 31 Dec 2010 02:00      1

                               2471 31 Dec 2010 03:00      1

                               2472 31 Dec 2010 04:00      1

                               2473 31 Dec 2010 05:00      1

                               2474 31 Dec 2010 06:00      1

                               2475 31 Dec 2010 07:00      1

                               2476 31 Dec 2010 08:00      1

                               2477 31 Dec 2010 09:00      1

                               2478 31 Dec 2010 10:09      1

                               2479 31 Dec 2010 11:00      1

                               2480 31 Dec 2010 12:17      1

                               2481 31 Dec 2010 13:00      1

                               2482 31 Dec 2010 14:00      1

                               2483 31 Dec 2010 15:00      1

                               2484 31 Dec 2010 20:04      1

                               2485 31 Dec 2010 21:00      1

                               2486 31 Dec 2010 22:00      1

                               2487 31 Dec 2010 23:00      1

                               2488 01 Jan 2011 00:00      1

                               2489 01 Jan 2011 01:00      1

                               2490 01 Jan 2011 02:00      1

                               2491 01 Jan 2011 03:00      1

 

 

Specify the Begin and End Snapshot Ids

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

Enter value for begin_snap: 2468

Begin Snapshot Id specified: 2468

 

Enter value for end_snap: 2487

End   Snapshot Id specified: 2487

 

......

 

最后要写好一个report name:

Report name : awrrpt20110107.html

 

生成的awr report 用ie 打开就可以了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

shenghuiping2001

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值