Understanding awr reports...

HI, I am trying to understand information we have in our AWR reports. In the section top 5 timed events we usually see something like the following...
Top 5 Timed Events
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 1,855 83.9
db file sequential read 101,452 395 4 17.9 User I/O
gc current block 2-way 156,259 51 0 2.3 Cluster
gc cr block 2-way 98,696 34 0 1.5 Cluster
log file sync 23,665 21 1 1.0 Commit
So when it says the CPU time is the top timed event and it is 83.9% of the top 5 timed events what does that actually mean? Is that a good thing that the CPU time is my top timed event? My system is running very good and I am assuming that this is a good thing?
Thanks.

>
Top 5 Timed Events
Event Waits Time(s) Avg Wait(ms) % Total Call Time Wait Class
CPU time 1,855 83.9
db file sequential read 101,452 395 4 17.9 User I/O
gc current block 2-way 156,259 51 0 2.3 Cluster
gc cr block 2-way 98,696 34 0 1.5 Cluster
log file sync 23,665 21 1 1.0 Commit
My system is running very good and I am assuming that this is a good thing?
This doesn't mean anything without a context. For a start - are you taking snapshots at the default 1 hour interval, how many CPUs do you have, and how many nodes in your cluster. (I'd guess it's just two).
The best answer is from Taral Desai - but I'd like to add [+*this thought*+|http://jonathanlewis.wordpress.com/2009/09/10/philosophy-5/] >.
Note - even if your 1,855 seconds of CPU is (effectively) one out of 16 CPUs running at 50% utilisation for an hour - which would make your AWR report look as if the database is pretty idle - it may be that one user is sitting at his desk swearing because his report took 900 (CPU) seconds to run when he reckons he should be getting a sub-second response.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
"Science is more than a body of knowledge; it is a way of thinking"
Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to Understand AWR Report

    Hi
    How to understand AWR report?

    Hi,
    first of all, you need to understand things that this report is about -- like wait events, DB time, CPU time, etc. If you are familiar with these things, the rest is easy.
    There are also some articles about reading AWR reports in my blog, including some examples: http://savvinov.com/awr/
    Best regards,
    Nikolay

  • AWR report understanding document

    Hi,
    Could someone please provide me with a good link for understanding the AWR report.
    Thanks.

    See if these links help
    http://www.oracle.com/technology/products/manageability/database/pdf/ow05/PS_S001_274001_106-1_FIN_v1.pdf
    http://www.oracle.com/technology/obe/10gr2_db_vmware/manage/addm/addm.htm
    MOS Doc 842884.1 - How To Understand AWR Report / Statspack Report
    MOS Doc 744143.1 - Tuning performance on eBusiness suite (see section "How to interpret AWR or Statspack report ?")
    HTH
    Srini

  • How to monitor on disk i/o on healthcheck and awr report on biweekly health

    can you explain how to monitor from disk i/o and awr report from old snap shot to new snap shot
    how to check and analyze .,,,,,,,,,,,,,,,,,,,,,can any one tell few points which we can **regularly maintain for health check**
    thanks in advance
    SQL> SELECT group_number ,disk_number ,mount_status ,total_mb/1024 ,free_mb/1024
    2 ,reads, (bytes_read / (1024*1024*1024)) mb_read ,read_errs ,read_time,writes
    3 ,write_errs ,write_time FROM v$asm_disk;
    GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
    MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
    2 0 OPENED 199.989258 0 13697147
    402.589765 0 44542.38 4358669 0 8883.86
    2 1 OPENED 199.989258 0 13653653
    405.503195 0 46014.33 4805783 0 11138.13
    2 2 OPENED 199.989258 0 15272350
    415.620874 0 45524.7 4571038 0 9806.01
    GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
    MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
    2 3 OPENED 199.989258 0 22713630
    533.380945 0 48105.68 4692729 0 9994.31
    2 4 OPENED 199.99707 0 23986390
    547.804756 0 57601.79 5788565 0 11073.44
    1 0 OPENED 199.989258 0 310810
    47.4352741 0 9652.12 1877994 0 3490.5
    GROUP_NUMBER DISK_NUMBER MOUNT_S TOTAL_MB/1024 FREE_MB/1024 READS
    MB_READ READ_ERRS READ_TIME WRITES WRITE_ERRS WRITE_TIME
    1 1 OPENED 199.99707 0 137665
    44.7837362 0 9155.21 751099 0 3092.96
    1 2 OPENED 199.99707 0 139561
    44.7904587 0 9424.26 753116 0 2858.23
    1 3 OPENED 199.99707 0 141139
    44.7718539 0 9506.27 802414 0 2768.22
    9 rows selected.
    can you please tell me how to monitor on disk i/os which is as shown above and
    please tell me AWR report to analyze some basic points for health check
    please give some details for health check of database.
    thanks in advance

    Hi;
    What is DB version?
    Please check below doc:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28275/tdppt_degrade.htm#CACGCJDC
    Also see:
    What is AWR( Automatic workload repository ) and How to generate the AWR report? [ID 748642.1]
    How To Understand AWR Report / Statspack Report [ID 842884.1]
    Regard
    Helios

  • Understanding the AWR report

    Hello,
    Just to start off on the right path I would like you to know that I am a Java developer trying to understand the AWR report. To give a quick overview of my problem :
    I have built a load test framework using JMeter and trying to send SOAP requests to my weblogic server. Each of these requests are getting converted multiple Insert, Update and Merge statements and getting executed on the Oracle 10g productions grade DB server. When I run the AWR report, under the "SQL ordered by Executions (Global)" I see statements that have run for 2 billion times. The JDBC connection to the database is configured to have a maximum of 40 connections and I do not see all of them being used up. The issue now is I am NOT generating that kind of load yet. I am creating around 15000 SOAP requests in an hour and I am expecting around 1million records to hit the database. The test runs fine for a couple of hours and then the server starts failing because the database is not responding back properly. When I run the statistics query on tables "gv$session s, gv$sqlarea t, gv$process p" to get the pending sessions in the database I have seen anywhere between 30 - 62 pending sessions with a activity time of more than 300 minutes.
    I am sure I am not sending in 2 billion requests from the LoadTest env that I have developed but the AWR report says so. I want to know if there is a possible reason for this behavior. The stuck threads start occurring on the Weblogic server after 30 mins I start the test. Below is the exception I got on weblogic just in case it helps
    2014-10-06 19:26:04,960[[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)']ERROR DAOUtil -- DAOUtil@SQLException > weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: Could not create pool connection. The DBMS driver exception was: Closed Connection
        at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:249)
        at weblogic.jdbc.pool.Driver.connect(Driver.java:160)
        at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:642)
        at weblogic.jdbc.jts.Driver.connect(Driver.java:124)
        at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:338)
        at com.bci.rms.ea.common.eautil.dao.DAOUtil.getConnectionFromDataSource(DAOUtil.java:222)
    Looking forward for reply/questions...
    Thanks in Advance,
    Sameer.

    Hello,
    Just to start off on the right path I would like you to know that I am a Java developer trying to understand the AWR report. To give a quick overview of my problem :
    I have built a load test framework using JMeter and trying to send SOAP requests to my weblogic server. Each of these requests are getting converted multiple Insert, Update and Merge statements and getting executed on the Oracle 10g productions grade DB server. When I run the AWR report, under the "SQL ordered by Executions (Global)" I see statements that have run for 2 billion times. The JDBC connection to the database is configured to have a maximum of 40 connections and I do not see all of them being used up. The issue now is I am NOT generating that kind of load yet. I am creating around 15000 SOAP requests in an hour and I am expecting around 1million records to hit the database. The test runs fine for a couple of hours and then the server starts failing because the database is not responding back properly. When I run the statistics query on tables "gv$session s, gv$sqlarea t, gv$process p" to get the pending sessions in the database I have seen anywhere between 30 - 62 pending sessions with a activity time of more than 300 minutes.
    I am sure I am not sending in 2 billion requests from the LoadTest env that I have developed but the AWR report says so. I want to know if there is a possible reason for this behavior. The stuck threads start occurring on the Weblogic server after 30 mins I start the test. Below is the exception I got on weblogic just in case it helps
    2014-10-06 19:26:04,960[[STUCK] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)']ERROR DAOUtil -- DAOUtil@SQLException > weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: Could not create pool connection. The DBMS driver exception was: Closed Connection
        at weblogic.jdbc.common.internal.JDBCUtil.wrapAndThrowResourceException(JDBCUtil.java:249)
        at weblogic.jdbc.pool.Driver.connect(Driver.java:160)
        at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:642)
        at weblogic.jdbc.jts.Driver.connect(Driver.java:124)
        at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:338)
        at com.bci.rms.ea.common.eautil.dao.DAOUtil.getConnectionFromDataSource(DAOUtil.java:222)
    Looking forward for reply/questions...
    Thanks in Advance,
    Sameer.

  • User I/O and db file parallel read is high in AWR report

    Hi,
    We have one performance issue during a job execution.
    From the awr report we have identified one query with a table having millions of records causing problems and then we had also fine tuned that query by changing it's code and by using the optmizer hints. It is being executed in plsql batches. After fine tuning, On the first batch execution(first 5000 records) the query is taking only 5 mins, but on the consecutive batches it is consuming more time( more than 30 mins).
    From the awr report I got the statistics as
    Release : 11.2.0.2.0
    Instance Efficiency Percentages (Target 100%)
    Buffer Nowait %: 100.00 Redo NoWait %: 100.00
    Buffer Hit %: 85.44 In-memory Sort %: 99.98
    Library Hit %: 99.76 Soft Parse %: 99.15
    Execute to Parse %: 88.91 Latch Hit %: 100.00
    Parse CPU to Parse Elapsd %: 87.32 % Non-Parse CPU: 98.65
    The buffer hit % is good. On each batch execution it is taking different set of records.
    Top 5 Timed Foreground Events
    Event Waits Time(s) Avg wait (ms) % DB time Wait Class
    db file parallel read 120,485 42,540 353 89.60 User I/O
    DB CPU 3,794 7.99
    db file sequential read 145,074 606 4 1.28 User I/O
    db file scattered read 70,030 556 8 1.17 User I/O
    direct path write temp 12,423 21 2 0.04 User I/O
    So the I/O is our main concern since that query contains one table with millions of records.
    Host CPU (CPUs: 24 Cores: 24 Sockets: 4)
    Load Average Begin Load Average End %User %System %WIO %Idle
    1.40 1.45 0.6 0.3 3.7 99.0
    Load is also normal.
    From the Time model statistics , sql execute elapsed time is 98.27% of db time and only 7.99% is that of DB CPU.
    Memory Statistics
    Begin End
    Host Mem (MB): 64,318.0 64,318.0
    SGA use (MB): 30,720.0 30,720.0
    PGA use (MB): 488.2 497.1
    % Host Mem used for SGA+PGA: 48.52 48.54
    Both the size of sga_max_size and sga_target are 32,212,254,720(32gb) bytes and that of
    pga_aggregate target is 629,145,600(600mb)
    from this it is evident that the memory is still available(so increase in memory size is not an option).
    The sql statistics for that query shows like that
    Elapsed Time (s) Executions Elapsed Time per Exec (s) %Total %CPU %IO SQL Id SQL Text
    44,950.03 55 817.27 94.67 6.99 94.72 79dgmrxh4kv74 SELECT /*+ index(cdr_data cdr_...
    I can't understand whether the problem is in the database side or with the query?
    If the problem is with the query, then how it has been executed in 5 mins for the first batch ?
    (all the batches are having 5000 records each).
    And how can we reduce the db file parallel read ?
    Your valuable advice will be greatly appreciated.
    Thanks in advance
    Manoj Kumar N

    "db file parallel read" is likely to be associated with something like index prefetching.
    See:
    http://www.freelists.org/post/oracle-l/RE-Calculating-LIOs,11
    http://aprakash.wordpress.com/2012/05/29/index-range-scan-and-db-file-scattered-read-as-session-wait-event/
    http://jonathanlewis.wordpress.com/2006/12/15/index-operations/
    Tune the SQL.
    Review the execution plan.
    Check whether the statistics are accurate.
    Review whether the index hint (and others that we can't see) is appropriate.

  • What to Check in AWR Report

    Hi All,
    Not very much experienced in performance tunning that why need your help, i generate AWR report for different times what to check, i started with top 5 events and trying to understand the portion of the report. Can anyone help me to understand the same
    In case if AWR requires for the 3 snap shot i will provide the same

    Hi,
    If you have a performance issue on your system look for causes of that performance issue in the AWR. eg. compare the awr report for the period with bad performance with that of a one taken when performance was good. AWR taken during bad time would have "things" that weren't in the awr taken when performance was good or have "high values" for some "things". Start from that point and drill down.
    If you don't have performance issues then confirm everything is running as it shoud be. Compare several awr reports and there shoulnd't me "anything" out of the ordinary.
    You can start with
    Instance Efficiency Percentages (Target 100%)
    Top 5 Timed Foreground Events
    Time Model Statistics
    There are no hard and fast rules as to how you go about interpreting an awr. It depends on type of problem you have, your system, your applicaiton, time of day etc.
    http://www.dba-oracle.com/t_rac_statspack_awr_report_tips.htm

  • Automation of AWR report.

    Hi All,
    I want to automate for awr report generating for every 30 min. For this I am creating a script which is not working properly. Script given below.
    1. Declaring an variable
    2. Giving value to the variable by running sql query
    3. Executing dbms_workload_repository procedure.
    Please help me proper steps.
    SET SERVEROUTPUT ON
    Declare
    DBID_NUM NUMBER;
    INST_NUMBER NUMBER;
    MAX_SNAP_ID NUMBER;
    MIN_SNAP_ID NUMBER;
    DBID_NUM := select DBID into DBID_NUM from dba_hist_snapshot WHERE ROWNUM=1;
    INS_NUMBER := select INSTANCE_NUMBER into INST_NUMBER from dba_hist_snapshot WHERE ROWNUM=1;
    MAX_SNAP_ID := select MAX(SNAP_ID) into MAX_SNAP_ID from dba_hist_snapshot;
    MIN_SNAP_ID =: select MAX(SNAP_ID)-1 into MIN_SNAP_ID from dba_hist_snapshot;
    Begin
    SELECT output FROM TABLE (dbms_workload_repository.awr_report_html(DBID_NUM,INST_NUMBER,MAX_SNAP_ID,MIN_SNAP_ID));
    End;
    /

    Hi,
    I am trying to help, however it's hard because you haven't clarified your end goal. What time period do you need to generate the AWR report for? Generating an AWR report from the entire range of available snap_id's is utterly useless. It's like measuring your average body temperature from the moment of birth up to now.
    How are you planning to generate it -- into a database table, into a file, to terminal output? You didn't mention that and it's impossible to deduce it from your script.
    Most importantly, why do you need to produce all these AWR reports for each 30 mins? Every 30 days, I would understand, but every 30 mins?! Do you realize that if you want to look at some trends, it much easier to do that using AWR views directly, rather than trying to extract data from html codes? And if you want your performance history just in case -- why don't you increase your SYSAUX tablespace and AWR retention, so that you can go back and generate a retrospective AWR report when needed?
    I wrote an anonymous to autogenerate an AWR report for the last snapshot and dump it to the screen, hope this helps:
    declare
      l_dbid number;
      l_inst_id number;
      l_last_snap_id number;
      l_output clob;
    begin
      select dbid into l_dbid from v$database;
      select instance_number into l_inst_id from v$instance;
      select max(snap_id) into l_last_snap_id from dba_hist_snapshot;
      for rec in (select * from table(dbms_workload_repository.awr_report_text(l_dbid,l_inst_id, l_last_snap_id - 1, l_last_snap_id))) loop
         dbms_output.put_line(rec.output);
       end loop;
    end;
    /Best regards,
    Nikolay
    P.S. You have 17 out of 21 questions unresolved. Has the forum been really this unhelpful for you?

  • Report Summary in Awr Report

    Hi,
    I have doubts in Report Summary scection in AWR report.Please anyone clear it.
    1,What is W/A MB processed?
    2,What is the difference between logons in load profile section and Sessions in snap info section?
    Logons means connection which may one or more sessions.Is it right?
    3,What is the difference between Block changes and Physcical writes in load profile section?
    a,,Block changes means only datafile? or including Undo/Temp?
    b,Physical writes:Number of physical writes performed.What does mean?
    For Ex:
    1,Emp table has 5000 rows on 50 blocks.
    2,Insert into emp  select * from emp;Then commit;
    50 blocks changed Hence the value 50 added to Block changes.Is it right?
    What about Physical writes?How the writes value calculated.Just assume 100 writes performed for this insert statment.
    How is the value(100) cacluated?What basis?Is there any parameter influenced?like db_block_size .....If it's what are the parameters?
    4,Execute to Parse %: Parse once execute many.
      Softparse %:
    Buffer Nowait %: 99.97 Redo NoWait %: 100.00
    Buffer Hit %: 99.93 In-memory Sort %: 100.00
    Library Hit %: 103.53 Soft Parse %: 94.67
    Execute to Parse %: 100.00 Latch Hit %: 94.42
    Parse CPU to Parse Elapsd %: 12.94 % Non-Parse CPU: 99.81
    a,Soft Parse %: 94.67.So Remaining 5.23% is hard parse?
    b,If Execute to Parse % is 70,What does mean of remaning 30%?(Same statement but differ in various reason like authentication or optimizer)Is it right?
    c,How to relate Execute to Parse %: with Soft Parse %:?
    d,How to relate Parse CPU to Parse Elapsd %: with % Non-Parse CPU:?
    5,Shared Pool Statistics
    Begin End
    Memory Usage %: 26.26 25.90
    % SQL with executions>1: 98.95 98.31
    % Memory for SQL w/exec>1: 97.79 99.46
    a,What does mean of Memory usage?26.26% memory used in allocated total SGA(if configured sga_target or memory_target).Is it right?
    b,at does mean SQL with executions>1?How to/Where to realet with other parameter in AWR?
    c,at does mean % Memory for SQL w/exec>1?How to/Where to realet with other parameter in AWR?
    6,What does mean of Per exec, per call in load profile section for the attribute DB Time(s),DB CPU(s)?
    7,What is Load average begin/end in host cpu section?How is the value  calcuated?
    8,What is %wio in in host cpu section?
    9,What does mean %total cpu and %busy cpu in instance cpu?
    10,what does mean Applied urec?
    Br,
    Raj

    Hi,
    Thanks for your Reply..........
    Now we use 11g only,Not 12c.
    I read  oracle 11g document already(few times).But i  couldn't understand it.Hence,i  posted here.
    If anyone tell,it is a BIG release from headache.
    Br,
    Raj

  • DB CPU event in top 5 of AWR report question

    The top 5 foreground event in my AWR report is as follows. I am trying to understand if my db(system) is CPU bound.The elapsed time is 30 minutes and DB time is 675 in the load profile section. There are 32 cpus. The available CPU is 30*60*32 => 57600. The  DB CPU below is 35227. This is about 61 %. At what percentage of DB CPU do I consider my system is CPU bound ?. Also I want to make sure the method I arrived at this is correct or not. Please help. Event           Waits Time(s) Avg wait (ms) % DB time     Wait Class DB CPU                 35,277 87.12 DBMS_LDAP: LDAP operation 3,683       10,061       366         9.1             Other db file sequential read 233,584         933       4         2.3               User I/O read by other session 41,686           190       5       0.47                 User I/O log file sync 70,932      166       2       0.41                           Commit

    Why does the top 5 foreground indicate 87 % below the  % DB Time  column ? While my calculation shows 61 %, Which is correct for the interpretation if the system is CPU bound. The 2 lines of top 5 events are as follows
    Event
    Waits
    Time(s)
    Avg wait (ms)
    % DB time
    Wait Class
    DB CPU
    35,277
    87.12

  • CPU TIME and DB CPU events under TOP 5 TIMED FOREGROUND EVENTS section in AWR report

    Is there any difference between "CPU TIME" event and "DB CPU" event when shown in AWR report under section "TOP 5 TIMED FOREGROUND EVENTS"?
    As per my understanding of both these terms they indicate the same thing. But then if it is so then why have different names?
    I searched around but the only relevant discussion that I found was as under, which didn't really cleared the doubt.
    https://forums.oracle.com/message/2571255#2571255

    In the article that you have mentioned - Jonathan Lewis gives you a very clear explanation. CPU Time is updated at the end of a query. DB CPU is updated every few seconds.
    So the CPU Time may be less than DB CPU if there is a long running query that did not complete during the snapshot that you are reporting for. Conversly CPU Time may be larger than DB CPU if there is a long running query that spanned multiple snapshots but completed in the snapshot that you are reporting for.

  • ADDM and AWR report interpretation

    Hi,
    I have some confusion regarding the understanding of ADDM and AWR report.
    I have created AWR reports for various period. All report indicated that all Instance efficiency checklists at their high 90s.
    I have also created ADDM report during the same intervals. ADDM reports suggesting a higher SGA value.
    When I am trying to correlate the ADDM and AWR then the findings seems self contradictory. On one hand AWR reflecting high instance efficiency ratios and on the other ADDM suggesting for higher SGA value. Please help me to get a better idea regarding this.
    There is one more confusion. Due to some product related compulsion we have to use CURSOR_SHARING=EXACT. But the AWR report reflects 98 against Soft Parse %. Though we are using high number of bind variable within our application. But due to the value of CURSOR_SHARING all queries should be hard parsed each time the literal change. As per my understanding there should be very less soft parsing, but the value reflects high Soft Parse.
    Thanks in advance for your valuable time.
    Regards,
    Joy

    >
    Just a little detail to add to Dom's comments.
    If you are convinced that you have lots of code that should be doing hard parsing, but the "soft parse ratio" looks wrong, then take a look in the statspack/AWR section labelled "SQL ordered by Parse Calls". You may find that some trivial, harmless looking piece of SQL has suffered a huge number of parse calls - and if so they will almost certainly have been "soft" parse calls and could therefore be hiding your expected "hard" parse figures.
    Critical point: if you look at a ratio, you've hidden the underlying scale of any potential problem.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • AWR report automation

    Hello!
    I use the Oracle EM GC 11 for monitoring of databases .
    I need to form the AWR report for some of databases and send it once a day by e-mail automatically.
    How to realize it?

    Hi,
    I am trying to help, however it's hard because you haven't clarified your end goal. What time period do you need to generate the AWR report for? Generating an AWR report from the entire range of available snap_id's is utterly useless. It's like measuring your average body temperature from the moment of birth up to now.
    How are you planning to generate it -- into a database table, into a file, to terminal output? You didn't mention that and it's impossible to deduce it from your script.
    Most importantly, why do you need to produce all these AWR reports for each 30 mins? Every 30 days, I would understand, but every 30 mins?! Do you realize that if you want to look at some trends, it much easier to do that using AWR views directly, rather than trying to extract data from html codes? And if you want your performance history just in case -- why don't you increase your SYSAUX tablespace and AWR retention, so that you can go back and generate a retrospective AWR report when needed?
    I wrote an anonymous to autogenerate an AWR report for the last snapshot and dump it to the screen, hope this helps:
    declare
      l_dbid number;
      l_inst_id number;
      l_last_snap_id number;
      l_output clob;
    begin
      select dbid into l_dbid from v$database;
      select instance_number into l_inst_id from v$instance;
      select max(snap_id) into l_last_snap_id from dba_hist_snapshot;
      for rec in (select * from table(dbms_workload_repository.awr_report_text(l_dbid,l_inst_id, l_last_snap_id - 1, l_last_snap_id))) loop
         dbms_output.put_line(rec.output);
       end loop;
    end;
    /Best regards,
    Nikolay
    P.S. You have 17 out of 21 questions unresolved. Has the forum been really this unhelpful for you?

  • AWR Report -- Buffer Pool Advisory

    Hi,
    does anyone know in that kind of measurement the "Estimated Phys Reads (thousands)" from buffer pool advisory is ?
    I mean in seconds ? in hours ? addicted to the time period the report was written ?
    http://img.ly/images/6379055/full
    Thanks a lot
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Re,
    OK it makes it a little bit clearer.
    What I now think to understand is that the "Estimated Phys Reads (thousands) no represents the
    current workload of the system it only gives clue that there will be a change around 3 times more blocks was red.
    Right ?
    But if it is like that why these numbers are changing from one to another report....
    So again another image.... Maybe my problem is that I try to set the current workload (phys block reads) in comparison with the "Estimated Phy Reads from the Advisory....
    Our AWR reports are generated every hour.
    http://img.ly/qNfn
    Sorry for my understanding problem... I also will try to check if the views gave other information than the ARW report.
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Diff b/w snapshot baselines and AWR reports

    Hi All,
    Can anyone tell what is the difference b/w snapshot baselines and AWR reports. I have gone through couple of articles and i feel both are same, however given different names.
    Am I correct?
    Thanks

    AWR report is a report comparing the pair of snapshots and thus giving you the details of what has happened between that inerval!
    The baselines is that "interesting time period" which you define telling to oracle and is used by oracle to compute the sql response tiime of your db with it in the subsequent timings. So both are completely different actually!
    HTH
    Aman....

Maybe you are looking for