ORACLE 11G生成AWR報告

stonebox1122發表於2015-07-01
執行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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章