ORACLE 11G生成AWR报告

运行awrrpt脚本
SQL> @?/rdbms/admin/awrrpt
Current Instance
~~~~~~~~~~~~~~~~
   DB Id    DB Name      Inst Num Instance
----------- ------------ -------- ------------
 1309338602 ORCL                1 orcl
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'
#输入报告的文件格式,如果不输入,直接回车,则为默认的html格式
输入 report_type 的值:
Type Specified:  html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   DB Id     Inst Num DB Name      Instance     Host
------------ -------- ------------ ------------ ------------
  1309338602        1 ORCL         orcl         GPS-DBSVR
* 1309338602        1 ORCL         orcl         CQJTYJAPPSEV
                                                ER2
Using 1309338602 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 的值:  2
Listing the last 2 days of Completed Snapshots
                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
orcl         ORCL             27291 28 6月  2015 00:00     1
                              27292 28 6月  2015 01:00     1
                              27293 28 6月  2015 02:00     1
                              27294 28 6月  2015 03:00     1
                              27295 28 6月  2015 04:00     1
                              27296 28 6月  2015 05:00     1
                              27297 28 6月  2015 06:00     1
                              27298 28 6月  2015 07:00     1
                              27299 28 6月  2015 08:00     1
                              27300 28 6月  2015 09:00     1
                              27301 28 6月  2015 10:00     1
                              27302 28 6月  2015 11:00     1
                              27303 28 6月  2015 12:00     1
                              27304 28 6月  2015 13:00     1
                              27305 28 6月  2015 14:00     1
                              27306 28 6月  2015 15:00     1
                              27307 28 6月  2015 16:00     1
                              27308 28 6月  2015 17:00     1
                              27309 28 6月  2015 18:00     1
                              27310 28 6月  2015 19:00     1
                              27311 28 6月  2015 20:00     1
                              27312 28 6月  2015 21:00     1
                              27313 28 6月  2015 22:00     1
                              27314 28 6月  2015 23:00     1
                              27315 29 6月  2015 00:00     1
                              27316 29 6月  2015 01:00     1
                              27317 29 6月  2015 02:00     1
                              27318 29 6月  2015 03:00     1
                              27319 29 6月  2015 04:00     1
                              27320 29 6月  2015 05:00     1
                              27321 29 6月  2015 06:00     1
                              27322 29 6月  2015 07:00     1
                              27323 29 6月  2015 08:00     1
                              27324 29 6月  2015 09:00     1
                              27325 29 6月  2015 10:00     1
                              27326 29 6月  2015 11:00     1
                              27327 29 6月  2015 12:00     1
                              27328 29 6月  2015 13:00     1
                              27329 29 6月  2015 14:00     1
                              27330 29 6月  2015 15:00     1
                              27331 29 6月  2015 16:00     1
                              27332 29 6月  2015 17:00     1
                              27333 29 6月  2015 18:00     1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#输入起始快照编号
输入 begin_snap 的值:  27309
Begin Snapshot Id specified: 27309
#输入结束快照编号
输入 end_snap 的值:  27333
End   Snapshot Id specified: 27333
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_27309_27333.html.  To use this name,
press to continue, otherwise enter an alternative.
#输入报告名称,不输入,直接回车,则使用默认的名称
输入 report_name 的值:
Using the report name awrrpt_1_27309_27333.html

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28536251/viewspace-1719696/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28536251/viewspace-1719696/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值