AWRレポートの取り方
AWRレポートの取り方
1) sysdbaで接続
2) EXECUTE DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT('ALL');
@?/rdbms/admin/awrrpt.sql
report_typeに値を入力して下さい: text or html -> text形式かhtml形式
num_daysに値を入力して下さい: リスト表示期間
begin_snapに値を入力して下さい:スナップショット期間
end_snapに値を入力して下さい: スナップショット期間
report_nameに値を入力して下さい:出力ファイル名
参考URL:
http://otn.oracle.co.jp/skillup/stats_diag/1/#c9
--例
SQL> @awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
----------- ------------ -------- ------------
******* ******** 1 *******
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に値を入力してください: html
Type Specified: html
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
------------ -------- ------------ ------------ ------------
* ****** 1 ****** ****** *********
* ****** 1 ****** ****** *********
Using ********* for database Id
Using * 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.
num_daysに値を入力してください: 1
Listing the last day's Completed Snapshots
Snap
Instance DB Name Snap Id Snap Started Level
------------ ------------ --------- ------------------ -----
***** ******* 8386 27 1月 2008 00:00 1
8387 27 1月 2008 01:00 1
8388 27 1月 2008 02:00 1
8389 27 1月 2008 03:00 1
8390 27 1月 2008 04:00 1
8391 27 1月 2008 05:00 1
8392 27 1月 2008 06:00 1
8393 27 1月 2008 07:00 1
8394 27 1月 2008 08:00 1
8395 27 1月 2008 09:00 1
8396 27 1月 2008 10:00 1
8397 27 1月 2008 11:00 1
8398 27 1月 2008 12:00 1
8399 27 1月 2008 13:00 1
8400 27 1月 2008 14:00 1
8401 27 1月 2008 15:00 1
8402 27 1月 2008 16:00 1
8403 27 1月 2008 17:00 1
8404 27 1月 2008 18:00 1
8405 27 1月 2008 19:00 1
8406 27 1月 2008 20:00 1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
begin_snapに値を入力してください: 8386
Begin Snapshot Id specified: 8386
end_snapに値を入力してください: 8406
End Snapshot Id specified: 8406
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_8386_8406.html. To use this name,
press <return> to continue, otherwise enter an alternative.
report_nameに値を入力してください: test