Oracle性能分析入門學習中
首先進入$ORACLE_HOME/rdbms/admin目錄
在OTN上
Script started on Sun
[ractest@sun
[ractest@sun
SQL*Plus: Release
Copyright (c)
Connected to:
Oracle Database
With the Partitioning
and Real Application Testing options
SQL> @awrrpt
Current Instance
~~~~~~~~~~~~~~~~
DB Id DB Name Inst Num Instance
———– ———— ——– ————
Specify the Report Type
~~~~~~~~~~~~~~~~~~~~~~~
Would you like an HTML report
Enter
Defaults to
Enter value for report_type: text
Type Specified: text
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DB Id Inst Num DB Name Instance Host
———— ——– ———— ———— ————
*
Using
Using
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
specifying a number lists all completed snapshots
Enter value for num_days:
Listing the last day
Snap
Instance DB Name Snap Id Snap Started Level
———— ———— ——— —————— —–
orcldb
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap:
Begin Snapshot Id specified:
Enter value for end_snap:
End Snapshot Id specified:
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_
press to continue
Enter value for report_name:
Using the report name awrrpt_
WORKLOAD REPOSITORY report for
DB Name DB Id Instance Inst Num Release RAC Host
———— ———– ———— ——– ———– — ————
ORCLDB
Snap Id Snap Time Sessions Curs/Sess
——— ——————
Begin Snap:
End Snap:
Elapsed:
DB Time:
Cache Sizes
~~~~~~~~~~~ Begin End
//此處有刪減
————————————————————
End of Report
Report written to awrrpt_
SQL> quit
Disconnected from Oracle Database
With the Partitioning
and Real Application Testing options
[ractest@sun
script done on Sun
來源
自己試驗做過html的
From:http://tw.wingwit.com/Article/program/Oracle/201311/17629.html