10g new feature AWR report
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2016-02-16 11:34:15
 

target=_blank>http://wiki.gurubee.net/display/DBSTUDY/AWR


AWR »ç¿ë¹ý

1. ¾Æ·¡ °æ·Î·Î À̵¿

cd /oracle/app/ora/product/11g/db_1/rdbms/admin

=

cd $ORACLE_HOME/rdbms/admin

2. sqlplus Á¢¼Ó

sqlplus / as sysdba

3. User 񀀥.

SYS ³ª SYSTEM °°Àº dba ±ÇÇÑÀ» °¡Áø À¯Àú·Î Á¢¼ÓÇϽñ⠹ٶø´Ï´Ù.
±×¿Ü ÀÏ¹Ý À¯Àú¶ó¸é, SYS À¯Àú·Î ¾Æ·¡ ¼¼°¡Áö ±ÇÇÑÀ» ºÎ¿©Çϸé, ÇØ´ç ÀÏ¹Ý À¯Àú·Îµµ Á¢¼ÓÇϽǼö ÀÖ½À´Ï´Ù.
SQL> GRANT CONNECT TO À¯Àú¸í;
SQL> GRANT SELECT_CATALOG_ROLE TO À¯Àú¸í;
SQL> GRANT EXECUTE on SYS.DBMS_WORKLOAD_REPOSITORY TO À¯Àú¸í;


4. awrrpt.sql ½ÇÇà

@awrrpt.sql

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: text

htme/test ¸ðµå Áß ÇÑ°¡Áö ¼±ÅÃÇÏ¸é µÈ´Ù.

Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  DB Id    Inst Num DB Name    Instance Host
------------ -------- ------------ ------------ ------------
* 1981839973    1 DBWORKS    DBWORKS db3

Using 1981839973 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: 1

ÃÖ±Ù ÇÏ·ç ³ª´Â ¼ýÀÚ 1À» ÀÔ·ÂÇß´Ù.

Listing the last day's Completed Snapshots

      Snap
Instance    DB Name    Snap Id    Snap Started    Level
------------ ------------ --------- ------------------ -----
DBWORKS      DBWORKS  144 25 May 2015 00:00    1
    145 25 May 2015 01:00    1
    146 25 May 2015 02:00    1
    147 25 May 2015 03:00    1
    148 25 May 2015 04:00    1
    149 25 May 2015 05:00    1
    150 25 May 2015 06:00    1
    151 25 May 2015 07:00    1
    152 25 May 2015 08:00    1
    153 25 May 2015 09:00    1
    154 25 May 2015 10:00    1
    155 25 May 2015 11:00    1


Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 145


·¹Æ÷Æ® ºÐ¼® ½ÃÀÛ ±¸°£À» ¾Õ ¼ýÀÚ¸¦ º¸°í ÀÔ·ÂÇÑ´Ù.

¹®Á¦°¡ À־ ºÐ¼®À» ¿øÇÒ °æ¿ì ´ç¿¬È÷, Àú ±¸°£ÀÌ Á¼À»¼ö·Ï ´õ »óȲºÐ¼®ÀÌ ¿ëÀÌÇÏ´Ù.


Enter value for end_snap: 146
End  Snapshot Id specified: 146


ºÐ¼® ³¡³ª´Â ±¸°£ÀÇ ¼ýÀÚ ÀÔ·Â



Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_145_146.txt.  To use this name,
press <return> to continue, otherwise enter an alternative.

Enter value for report_name: 0525_145_146_awrreport.txt


ÆÄÀϸíÀ» Á÷Á¢ ÀÔ·ÂÇÏÁö ¾ÊÀ¸¸é À§ÀÇ µðÆúÆ® ¸íÀ¸·Î ÆÄÀÏÀÌ »ý¼ºµÈ´Ù.

Áß°£³»¿ë»ý·«


init.ora Multi-Valued Parameters    DB/Inst: DBWORKS/DBWORKS Snaps: 145-146
-> This section only displays parameters that have more one value
->'(NULL)' indicates a missing parameter value
-> A blank in the End Snapshot indicates the same value as the BeginSnapshot

        End value
Parameter Name        Begin value  (if different)
----------------------------- --------------------------------- --------------
control_files        /oradata/DBWORKS/control01.ctl
        /oradata/DBWORKS/control02.ctl
  -------------------------------------------------------------

Dynamic Remastering Stats      DB/Inst: DBWORKS/DBWORKS Snaps: 145-146

    No data exists for this section of the report.
  -------------------------------------------------------------

End of Report
Report written to 0525_145_146_awrreport.txt

ÀÌ °æ·Î¿¡ ³»°¡ ÁöÁ¤ÇØÁØ ÆÄÀϸíÀ¸·Î vi³ª ¸Þ¸ðÀåÀ¸·Î ¿­¾î¼­ ºÐ¼®À» ÇÏ¸é µÈ´Ù.


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦