AWR Report - no data!!

Oracle Version: 11.1.0.7 64x
OS Version: Windows 2008 Server 64x
Hi There,
We're just trying to generate a awr report for one of our databases and the report is coming out with no data.
statistics_level parameter is set to "TYPICAL"; any idea to what's going on please?
Thanks
SQL>
SQL> @?/rdbms/admin/awrrpt.sql
Current Instance
~~~~~~~~~~~~~~~~
   DB Id    DB Name      Inst Num Instance
1391811405 WEBTST              1 webtst
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
Type Specified:  text
Instances in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   DB Id     Inst Num DB Name      Instance     Host
* 1391811405        1 WEBTST       webtst       WEBDBTST
Using 1391811405 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
Listing the last day's Completed Snapshots
                                                        Snap
Instance     DB Name        Snap Id    Snap Started    Level
webtst       WEBTST           43973 12 May 2011 00:00      1
                              43974 12 May 2011 01:00      1
                              43975 12 May 2011 02:00      1
                              43976 12 May 2011 03:00      1
                              43977 12 May 2011 04:00      1
                              43978 12 May 2011 05:00      1
                              43979 12 May 2011 06:00      1
                              43980 12 May 2011 07:00      1
                              43981 12 May 2011 08:00      1
                              43982 12 May 2011 09:00      1
                              43983 12 May 2011 10:00      1
                              43984 12 May 2011 11:00      1
                              43985 12 May 2011 11:02      1
Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 43984
Begin Snapshot Id specified: 43984
Enter value for end_snap: 43985
End   Snapshot Id specified: 43985
Specify the Report Name
~~~~~~~~~~~~~~~~~~~~~~~
The default report file name is awrrpt_1_43984_43985.txt.  To use this name,
press <return> to continue, otherwise enter an alternative.
Enter value for report_name:
Using the report name awrrpt_1_43984_43985.txt
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: parse time elapsed
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: DB CPU
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: free memory
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: free memory
WARNING (-20009)
ORA-20009: Missing System Statistic logons current
WARNING (-20009)
ORA-20009: Missing System Statistic logons current
WARNING (-20009)
ORA-20009: Missing System Statistic opened cursors current
WARNING (-20009)
ORA-20009: Missing System Statistic opened cursors current
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: sql execute elapsed
WARNING (-20008)
ORA-20008: Missing Init.ora parameter undo_management
WARNING (-20008)
ORA-20008: Missing Init.ora parameter db_block_size
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: log_buffer
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: DB time
WARNING (-20008)
ORA-20008: Missing Init.ora parameter timed_statistics
WARNING (-20008)
ORA-20008: Missing Init.ora parameter timed_statistics
WARNING (-20008)
ORA-20008: Missing Init.ora parameter statistics_level
WARNING (-20008)
ORA-20008: Missing Init.ora parameter statistics_level
WARNING (-20008)
ORA-20008: Missing Init.ora parameter sga_target
WARNING (-20008)
ORA-20008: Missing Init.ora parameter pga_aggregate_target
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: background cpu time
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: background elapsed
WARNING (-20023)
ORA-20023: Missing start and end values for time model stat: connection manageme
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: buffer_cache
WARNING (-20016)
ORA-20016: Missing value for SGASTAT: buffer_cache
WARNING: Since the DB Time is less than one second, there was
         minimal foreground activity in the snapshot period.
         Some of the percentage values will be invalid.
WORKLOAD REPOSITORY report for
DB Name         DB Id    Instance     Inst Num Startup Time    Release     RAC
WEBTST        1391811405 webtst              1 29-Apr-11 04:50 11.1.0.7.0  NO
Host Name        Platform                         CPUs Cores Sockets Memory(GB)
WEBDBTST         Microsoft Windows x86 64-bit                           .00
              Snap Id      Snap Time      Sessions Curs/Sess
Begin Snap:     43984 12-May-11 11:00:01
  End Snap:     43985 12-May-11 11:02:00
   Elapsed:                1.98 (mins)
   DB Time:                0.00 (mins)
Cache Sizes                       Begin        End
~~~~~~~~~~~                  ---------- ----------
               Buffer Cache:MM  Std Block Size:K
           Shared Pool Size:         0M         0M      Log Buffer:K
ORA-01403: no data found
Error encountered in Report Summary
Continuing to Report Sections
Time Model Statistics              DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Operating System Statistics         DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Operating System Statistics - DetailDB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Foreground Wait Class               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
-> s  - second, ms - millisecond -    1000th of a second
-> ordered by wait time desc, waits desc
-> %Timeouts: value of 0 indicates value was < .5%.  Value of null is truly 0
-> Captured Time accounts for %  of Total DB time            .00 (s)
-> Total FG Wait Time:    (s)  DB CPU time:            .00 (s)
                                                                  Avg
                                      %Time       Total Wait     wait
Wait Class                      Waits -outs         Time (s)     (ms)  %DB time
DB CPU                                                     0              100.0
Foreground Wait Events             DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Background Wait Events             DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Wait Event Histogram               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Service Statistics                 DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Service Wait Class Stats            DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Elapsed Time        DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by CPU Time            DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Gets                DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Reads               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Executions          DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Parse Calls         DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Sharable Memory     DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
SQL ordered by Version Count       DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Instance Activity Stats            DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Instance Activity Stats - Absolute ValuesDB/Inst: WEBTST/webtst  Snaps: 43984
                  No data exists for this section of the report.
Instance Activity Stats - Thread ActivityDB/Inst: WEBTST/webtst  Snaps: 43984-
                  No data exists for this section of the report.
Tablespace IO Stats                DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
File IO Stats                      DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Buffer Pool Statistics             DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Instance Recovery Stats             DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Buffer Pool Advisory                       DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
PGA Aggr Summary                   DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
PGA Aggr Target Stats               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
PGA Aggr Target Histogram           DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
PGA Memory Advisory                        DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
Shared Pool Advisory                      DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
SGA Target Advisory                        DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
Streams Pool Advisory                      DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
Java Pool Advisory                         DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
Buffer Wait Statistics              DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Enqueue Activity                   DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Undo Segment Summary               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Undo Segment Stats                  DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Latch Activity                     DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Latch Sleep Breakdown              DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Latch Miss Sources                 DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Mutex Sleep Summary                 DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Parent Latch Statistics            DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Child Latch Statistics              DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Segments by Row Lock Waits         DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Segments by ITL Waits               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Segments by Buffer Busy Waits       DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Dictionary Cache Stats             DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Library Cache Activity              DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Memory Dynamic Components          DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Memory Resize Operations Summary    DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Memory Resize Ops                   DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Process Memory Summary             DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
sum
SGA breakdown difference            DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Streams CPU/IO Usage               DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Streams Capture                     DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Streams Apply                       DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Buffered Queues                     DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Buffered Subscribers                DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Rule Set                            DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Persistent Queues                   DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Persistent Subscribers              DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
Resource Limit Stats                      DB/Inst: WEBTST/webtst  Snap: 43985
                  No data exists for this section of the report.
init.ora Parameters                DB/Inst: WEBTST/webtst  Snaps: 43984-43985
                  No data exists for this section of the report.
End of Report

SQL> show parameter statistics
NAME                                 TYPE        VALUE
optimizer_use_pending_statistics     boolean     FALSE
statistics_level                     string      TYPICAL
timed_os_statistics                  integer     0
timed_statistics                     boolean     TRUE
SQL>
SQL> SELECT statistics_name,
  2             session_status,
  3             system_status,
  4             activation_level,
  5             session_settable
  6      FROM   v$statistics_level
  7      ORDER BY statistics_name;
STATISTICS_NAME                                                  SESSION_ SYSTEM_S ACTIVAT SES
Active Session History                                           ENABLED  ENABLED  TYPICAL NO
Adaptive Thresholds Enabled                                      ENABLED  ENABLED  TYPICAL NO
Automated Maintenance Tasks                                      ENABLED  ENABLED  TYPICAL NO
Bind Data Capture                                                ENABLED  ENABLED  TYPICAL NO
Buffer Cache Advice                                              ENABLED  ENABLED  TYPICAL NO
Global Cache Statistics                                          ENABLED  ENABLED  TYPICAL NO
Longops Statistics                                               ENABLED  ENABLED  TYPICAL NO
MTTR Advice                                                      DISABLED DISABLED TYPICAL NO
Modification Monitoring                                          ENABLED  ENABLED  TYPICAL NO
PGA Advice                                                       ENABLED  ENABLED  TYPICAL NO
Plan Execution Sampling                                          ENABLED  ENABLED  TYPICAL YES
Plan Execution Statistics                                        DISABLED DISABLED ALL     YES
SQL Monitoring                                                   ENABLED  ENABLED  TYPICAL YES
Segment Level Statistics                                         ENABLED  ENABLED  TYPICAL NO
Shared Pool Advice                                               ENABLED  ENABLED  TYPICAL NO
Streams Pool Advice                                              ENABLED  ENABLED  TYPICAL NO
Threshold-based Alerts                                           ENABLED  ENABLED  TYPICAL NO
Time Model Events                                                ENABLED  ENABLED  TYPICAL YES
Timed OS Statistics                                              DISABLED DISABLED ALL     YES
Timed Statistics                                                 ENABLED  ENABLED  TYPICAL YES
Ultrafast Latch Statistics                                       ENABLED  ENABLED  TYPICAL NO
Undo Advisor, Alerts and Fast Ramp up                            ENABLED  ENABLED  TYPICAL NO
V$IOSTAT_* statistics                                            ENABLED  ENABLED  TYPICAL NO
23 rows selected.
SQL>Thanks
Edited by: rsar001 on May 12, 2011 11:33 AM

Similar Messages

  • How can I have a collective AWR report for RAC database in 10gR2 and 11gR1?

    Plz correct me here
    awrrpt.sql takes the snapshot at the instance level and incase we have 5 instances we have to take 5 awr reports for a particular period.correct???
    If above is true ,any wayout to collect a single collective AWR report for RAC database which includes information on all the instances in Oracle 10g R2 or 11gR1 ?
    Thanks in advance
    Gagan

    I have never come across a way for this. though I can n't say it is not there.
    But I guess it may not be feasible too becuase as we know the current AWR report contains data which is specific for one instance.
    Various hit ratios, top events, instance effeciency reports.... what not ..
    It would be really nice to see something is a new format where it lists values from each instance in a single report.. I guess such a thing Does not exiist as of now.

  • Blank awr report shown in oracle standars edition 11g (11.2.0.1.0)

    Hi, friends ..
    I am using Oracle 11g standars edition(11.2.0.1.0) on solaris 10 platform.I do have a very strange probleem..when iam trying to capture awr report i am getting a blank
    awr report contain ing nothing...like below section
    ---------------------------------------------------------------------------->
    WARNING: Since the DB Time is less than one second, there was minimal foreground activity in the snapshot period. Some of the percentage values will be invalid.
    WORKLOAD REPOSITORY report for
    DB Name DB Id Instance Inst num Startup Time Release RAC
    DISDB 771054785 disdb 1 30-Dec-10 10:12 11.2.0.1.0 NO
    Host Name Platform CPUs Cores Sockets Memory (GB)
    dissemination-new Solaris Operating System (x86-64) .00
    Snap Id Snap Time Sessions Cursors/Session
    Begin Snap: 1 30-Dec-10 11:30:21
    End Snap: 2 30-Dec-10 12:30:52
    Elapsed: 60.51 (mins)
    DB Time: 0.00 (mins)
    Report Summary
    Cache Sizes
    Begin End
    Buffer Cache: M M Std Block Size: K
    Shared Pool Size: 0M 0M Log Buffer: K
    Load Profile
    Per Second Per Transaction Per Exec Per Call
    DB Time(s): 0.0 0.0 0.00 0.00
    DB CPU(s): 0.0 0.0 0.00 0.00
    Redo size:
    Logical reads: 0.0 1.0
    Block changes: 0.0 1.0
    Physical reads: 0.0 1.0
    Physical writes: 0.0 1.0
    User calls: 0.0 1.0
    Parses: 0.0 1.0
    Hard parses:
    W/A MB processed: 0.0 0.0
    Logons:
    Executes: 0.0 1.0
    Rollbacks:
    Transactions: 0.0
    Instance Efficiency Percentages (Target 100%)
    Buffer Nowait %: Redo NoWait %:
    Buffer Hit %: In-memory Sort %:
    Library Hit %: Soft Parse %:
    Execute to Parse %: 0.00 Latch Hit %:
    Parse CPU to Parse Elapsd %: % Non-Parse CPU:
    Shared Pool Statisitics Not Available
    Top 5 Timed Foreground Events
    Event Waits Time(s) Avg wait (ms) % DB time Wait Class
    DB CPU 0 100.00
    Host CPU (CPUs: Cores: Sockets: )
    Load Average Begin Load Average End %User %System %WIO %Idle
    Instance CPU
    %Total CPU %Busy CPU %DB time waiting for CPU (Resource Manager)
    Memory Statistics
    Begin End
    Host Mem (MB):
    SGA use (MB):
    PGA use (MB):
    % Host Mem used for SGA+PGA:
    Main Report
    Report Summary
    Wait Events Statistics
    SQL Statistics
    Instance Activity Statistics
    IO Stats
    Buffer Pool Statistics
    Advisory Statistics
    Wait Statistics
    Undo Statistics
    Latch Statistics
    Segment Statistics
    Dictionary Cache Statistics
    Library Cache Statistics
    Memory Statistics
    Streams Statistics
    Resource Limit Statistics
    Shared Server Statistics
    init.ora Parameters
    Back to Top
    Wait Events Statistics
    Time Model Statistics
    Operating System Statistics
    Operating System Statistics - Detail
    Foreground Wait Class
    Foreground Wait Events
    Background Wait Events
    Wait Event Histogram
    Wait Event Histogram Detail (64 msec to 2 sec)
    Wait Event Histogram Detail (4 sec to 2 min)
    Wait Event Histogram Detail (4 min to 1 hr)
    Service Statistics
    Service Wait Class Stats
    Back to Top
    Time Model Statistics
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Operating System Statistics
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Operating System Statistics - Detail
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Foreground Wait Class
    s - second, ms - millisecond - 1000th of a second
    ordered by wait time desc, waits desc
    %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
    Captured Time accounts for % of Total DB time .00 (s)
    Total FG Wait Time: (s) DB CPU time: .00 (s)
    Wait Class Waits %Time -outs Total Wait Time (s) Avg wait (ms) %DB time
    DB CPU 0 100.00
    Back to Wait Events Statistics
    Back to Top
    Foreground Wait Events
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Background Wait Events
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram Detail (64 msec to 2 sec)
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram Detail (4 sec to 2 min)
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram Detail (4 min to 1 hr)
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Service Statistics
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    Service Wait Class Stats
    No data exists for this section of the report.
    Back to Wait Events Statistics
    Back to Top
    SQL Statistics
    SQL ordered by Elapsed Time
    SQL ordered by CPU Time
    SQL ordered by User I/O Wait Time
    SQL ordered by Gets
    SQL ordered by Reads
    SQL ordered by Physical Reads (UnOptimized)
    SQL ordered by Executions
    SQL ordered by Parse Calls
    SQL ordered by Sharable Memory
    SQL ordered by Version Count
    Complete List of SQL Text
    Back to Top
    SQL ordered by Elapsed Time
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by CPU Time
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by User I/O Wait Time
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Gets
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Reads
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Physical Reads (UnOptimized)
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Executions
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Parse Calls
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Sharable Memory
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Version Count
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    Complete List of SQL Text
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    Instance Activity Statistics
    Instance Activity Stats
    Instance Activity Stats - Absolute Values
    Instance Activity Stats - Thread Activity
    Back to Top
    Instance Activity Stats
    No data exists for this section of the report.
    Back to Instance Activity Statistics
    Back to Top
    Instance Activity Stats - Absolute Values
    No data exists for this section of the report.
    Back to Instance Activity Statistics
    Back to Top
    Instance Activity Stats - Thread Activity
    No data exists for this section of the report.
    Back to Instance Activity Statistics
    Back to Top
    IO Stats
    IOStat by Function summary
    IOStat by Filetype summary
    IOStat by Function/Filetype summary
    Tablespace IO Stats
    File IO Stats
    Back to Top
    IOStat by Function summary
    No data exists for this section of the report.
    Back to IO Stats
    Back to Top
    IOStat by Filetype summary
    No data exists for this section of the report.
    Back to IO Stats
    Back to Top
    IOStat by Function/Filetype summary
    No data exists for this section of the report.
    Back to IO Stats
    Back to Top
    Tablespace IO Stats
    No data exists for this section of the report.
    Back to IO Stats
    Back to Top
    File IO Stats
    No data exists for this section of the report.
    Back to IO Stats
    Back to Top
    Buffer Pool Statistics
    Buffer Pool Statistics
    Checkpoint Activity
    Back to Top
    Buffer Pool Statistics
    No data exists for this section of the report.
    Back to Buffer Pool Statistics
    Back to Top
    Checkpoint Activity
    No data exists for this section of the report.
    Back to Buffer Pool Statistics
    Back to Top
    Advisory Statistics
    Instance Recovery Stats
    MTTR Advisory
    Buffer Pool Advisory
    PGA Aggr Summary
    PGA Aggr Target Stats
    PGA Aggr Target Histogram
    PGA Memory Advisory
    Shared Pool Advisory
    SGA Target Advisory
    Streams Pool Advisory
    Java Pool Advisory
    Back to Top
    Instance Recovery Stats
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    MTTR Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    Buffer Pool Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    PGA Aggr Summary
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    PGA Aggr Target Stats
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    PGA Aggr Target Histogram
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    PGA Memory Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    Shared Pool Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    SGA Target Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    Streams Pool Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    Java Pool Advisory
    No data exists for this section of the report.
    Back to Advisory Statistics
    Back to Top
    Wait Statistics
    Buffer Wait Statistics
    Enqueue Activity
    Back to Top
    Buffer Wait Statistics
    No data exists for this section of the report.
    Back to Wait Statistics
    Back to Top
    Enqueue Activity
    No data exists for this section of the report.
    Back to Wait Statistics
    Back to Top
    Undo Statistics
    Undo Segment Summary
    Undo Segment Stats
    Back to Top
    Undo Segment Summary
    No data exists for this section of the report.
    Back to Undo Statistics
    Back to Top
    Undo Segment Stats
    No data exists for this section of the report.
    Back to Undo Statistics
    Back to Top
    Latch Statistics
    Latch Activity
    Latch Sleep Breakdown
    Latch Miss Sources
    Mutex Sleep Summary
    Parent Latch Statistics
    Child Latch Statistics
    Back to Top
    Latch Activity
    No data exists for this section of the report.
    Back to Latch Statistics
    Back to Top
    Latch Sleep Breakdown
    No data exists for this section of the report.
    Back to Latch Statistics
    Back to Top
    Latch Miss Sources
    No data exists for this section of the report.
    Back to Latch Statistics
    Back to Top
    Mutex Sleep Summary
    No data exists for this section of the report.
    Back to Latch Statistics
    Back to Top
    Parent Latch Statistics
    No data exists for this section of the report.
    Back to Latch Statistics
    Back to Top
    Child Latch Statistics
    No data exists for this section of the report.
    Back to Latch Statistics
    Back to Top
    Segment Statistics
    Segments by Logical Reads
    Segments by Physical Reads
    Segments by Physical Read Requests
    Segments by UnOptimized Reads
    Segments by Optimized Reads
    Segments by Direct Physical Reads
    Segments by Physical Writes
    Segments by Physical Write Requests
    Segments by Direct Physical Writes
    Segments by Table Scans
    Segments by DB Blocks Changes
    Segments by Row Lock Waits
    Segments by ITL Waits
    Segments by Buffer Busy Waits
    Back to Top
    Segments by Logical Reads
    Total Logical Reads: 1
    Captured Segments account for 4.6E+06% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Logical Reads %Total
    SYS SYSTEM I_SYSAUTH1 INDEX 15,008 1500800.00
    SYS SYSTEM I_OBJ2 INDEX 4,752 475200.00
    SYS SYSTEM TAB$ TABLE 2,176 217600.00
    SYS SYSTEM I_JOB_NEXT INDEX 1,856 185600.00
    SYS SYSTEM SYS_C00646 INDEX 1,664 166400.00
    Back to Segment Statistics
    Back to Top
    Segments by Physical Reads
    Total Physical Reads: 1
    Captured Segments account for 400.0% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Physical Reads %Total
    SYS SYSAUX WRH$_SYSMETRIC_SUMMARY_INDEX INDEX 3 300.00
    SYS SYSTEM KOTAD$ TABLE 1 100.00
    Back to Segment Statistics
    Back to Top
    Segments by Physical Read Requests
    Total Physical Read Requests: 1
    Captured Segments account for 400.0% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Phys Read Requests %Total
    SYS SYSAUX WRH$_SYSMETRIC_SUMMARY_INDEX INDEX 3 300.00
    SYS SYSTEM KOTAD$ TABLE 1 100.00
    Back to Segment Statistics
    Back to Top
    Segments by UnOptimized Reads
    Total UnOptimized Read Requests: 1
    Captured Segments account for 400.0% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type UnOptimized Reads %Total
    SYS SYSAUX WRH$_SYSMETRIC_SUMMARY_INDEX INDEX 3 300.00
    SYS SYSTEM KOTAD$ TABLE 1 100.00
    Back to Segment Statistics
    Back to Top
    Segments by Optimized Reads
    No data exists for this section of the report.
    Back to Segment Statistics
    Back to Top
    Segments by Direct Physical Reads
    No data exists for this section of the report.
    Back to Segment Statistics
    Back to Top
    Segments by Physical Writes
    Total Physical Writes: 1
    Captured Segments account for 1.1E+04% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Physical Writes %Total
    SYSMAN SYSAUX MGMT_METRICS_RAW_PK INDEX 27 2700.00
    SYS SYSAUX WRH$_SYSMETRIC_HISTORY TABLE 16 1600.00
    SYS SYSAUX WRH$_SYSMETRIC_HISTORY_INDEX INDEX 16 1600.00
    SYSMAN SYSAUX MGMT_SYSTEM_PERF_LOG_IDX_01 INDEX 9 900.00
    SYS SYSAUX SMON_SCN_TIME TABLE 9 900.00
    Back to Segment Statistics
    Back to Top
    Segments by Physical Write Requests
    Total Physical Write Requestss: 1
    Captured Segments account for 5.1E+03% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Phys Write Requests %Total
    SYSMAN SYSAUX MGMT_METRICS_RAW_PK INDEX 11 1100.00
    SYS SYSAUX SMON_SCN_TIME TABLE 9 900.00
    SYSMAN SYSAUX MGMT_SYSTEM_PERF_LOG_IDX_01 INDEX 6 600.00
    SYSMAN SYSAUX MGMT_CURRENT_METRICS_PK INDEX 4 400.00
    SYS SYSTEM I_JOB_NEXT INDEX 2 200.00
    Back to Segment Statistics
    Back to Top
    Segments by Direct Physical Writes
    No data exists for this section of the report.
    Back to Segment Statistics
    Back to Top
    Segments by Table Scans
    Total Table Scans: 1
    Captured Segments account for 900.0% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Table Scans %Total
    SYS SYSTEM I_OBJ2 INDEX 9 900.00
    Back to Segment Statistics
    Back to Top
    Segments by DB Blocks Changes
    % of Capture shows % of DB Block Changes for each top segment compared
    with total DB Block Changes for all segments captured by the Snapshot
    Owner Tablespace Name Object Name Subobject Name Obj. Type DB Block Changes % of Capture
    SYS SYSTEM I_JOB_NEXT INDEX 896 58.95
    SYSMAN SYSAUX MGMT_METRICS_RAW_PK INDEX 160 10.53
    SYSMAN SYSAUX MGMT_CURRENT_METRICS_PK INDEX 112 7.37
    SYS SYSAUX SMON_SCN_TIME TABLE 80 5.26
    SYSMAN SYSAUX MGMT_SYSTEM_PERF_LOG_IDX_01 INDEX 64 4.21
    Back to Segment Statistics
    Back to Top
    Segments by Row Lock Waits
    No data exists for this section of the report.
    Back to Segment Statistics
    Back to Top
    Segments by ITL Waits
    No data exists for this section of the report.
    Back to Segment Statistics
    Back to Top
    Segments by Buffer Busy Waits
    No data exists for this section of the report.
    Back to Segment Statistics
    Back to Top
    Dictionary Cache Stats
    No data exists for this section of the report.
    Back to Top
    Library Cache Activity
    No data exists for this section of the report.
    Back to Top
    Memory Statistics
    Memory Dynamic Components
    Memory Resize Operations Summary
    Memory Resize Ops
    Process Memory Summary
    SGA Memory Summary
    SGA breakdown difference
    Back to Top
    Memory Dynamic Components
    No data exists for this section of the report.
    Back to Memory Statistics
    Back to Top
    Memory Resize Operations Summary
    No data exists for this section of the report.
    Back to Memory Statistics
    Back to Top
    Memory Resize Ops
    No data exists for this section of the report.
    Back to Memory Statistics
    Back to Top
    Process Memory Summary
    No data exists for this section of the report.
    Back to Memory Statistics
    Back to Top
    Back to Memory Statistics
    Back to Top
    SGA breakdown difference
    No data exists for this section of the report.
    Back to Memory Statistics
    Back to Top
    Streams Statistics
    Streams CPU/IO Usage
    Streams Capture
    Streams Capture Rate
    Streams Apply
    Streams Apply Rate
    Buffered Queues
    Buffered Queue Subscribers
    Rule Set
    Persistent Queues
    Persistent Queues Rate
    Persistent Queue Subscribers
    Back to Top
    Streams CPU/IO Usage
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Streams Capture
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Streams Capture Rate
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Streams Apply
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Streams Apply Rate
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Buffered Queues
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Buffered Queue Subscribers
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Rule Set
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Persistent Queues
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Persistent Queues Rate
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Persistent Queue Subscribers
    No data exists for this section of the report.
    Back to Streams Statistics
    Back to Top
    Resource Limit Stats
    No data exists for this section of the report.
    Back to Top
    Shared Server Statistics
    Shared Servers Activity
    Shared Servers Rates
    Shared Servers Utilization
    Shared Servers Common Queue
    Shared Servers Dispatchers
    Back to Top
    Shared Servers Activity
    No data exists for this section of the report.
    Back to Shared Server Statistics
    Back to Top
    Shared Servers Rates
    No data exists for this section of the report.
    Back to Shared Server Statistics
    Back to Top
    Shared Servers Utilization
    No data exists for this section of the report.
    Back to Shared Server Statistics
    Back to Top
    Shared Servers Common Queue
    No data exists for this section of the report.
    Back to Shared Server Statistics
    Back to Top
    Shared Servers Dispatchers
    No data exists for this section of the report.
    Back to Shared Server Statistics
    Back to Top
    init.ora Parameters
    No data exists for this section of the report.
    Back to Top
    Dynamic Remastering Stats
    No data exists for this section of the report.
    Back to Top
    End of Report
    ---------------------------------------------->>
    here intresting is that i also can't have the memory section view also.i trien to clear awr repositary and recreate it..bounce database,also tried taking different snap value.But does notmake any change.can u tell me why tha happening..and how can i get a good awr report.

    Hi there,
    I have covered this in my blog entry on the subject. Check that link out for more licensing information and other resources.
    The problem you are experiencing is caused by the fact that AWR is part of the DIAGNOSTIC and TUNING packs of Oracle 11g, which as of 11g is no longer a standard feature of the database but rather an optional extra which must be licensed in addition to your default Oracle Standard Edition package. In terms of the licensing, you just need to license it as an optional extra so that you will actually be using it legally, and then you can go ahead and enable it.
    While it may be an additional licensed item, it is actually installed on your DB by default, but is just not enabled. So, once you have cleared the licensing issue, you will be free to enable diagnostics by setting the new database parameter, CONTROL_MANAGEMENT_PACK_ACCESS. You can do this by running the following as a dba:
    <pre>alter system set control_management_pack_access="DIAGNOSTIC+TUNING" scope=both;</pre>
    After running this command, your database will start accumulating diagnostic information. Note that you will need to wait until new snapshots are created in which the new diagnostic information will be available. I found that although most of the information became available after setting CONTROL_MANAGEMENT_PACK_ACCESS, it was only once the database was restarted that all of the information became available. I have seen many people reporting similar behavior.
    Old snapshots will obviously continue to give the errors because they did not have the diagnostic information available at the time.

  • Regarding AWR Report

    Hi,
    I have created AWR report .But I can not identify excat problem of the database because it is taking more time to insert data into table.
    How to identify this from AWR report?

    Database insertion problem in table
    Are these threads related? If yes, did you go through the suggestions in that thread?

  • Need help on Awr Report

    It's hard to present AWR report content here as if i go for copy paste the content alinment and format get changed. Is there any better way to present AWR report in my query.
    Here is my query.
    In a 2 hour AWR reports for a database I can see the below top 5 wait event's
    the database is running on high CPU consumption (there are very less physical reads on database and Logical read is high i suppose ) so I also gather the Segments by Logical Reads. Please provide any suggestion how can i avoid logical reads I/o for the dataabse. If you see at bottom only two segments are responsible for high logical reads.
    Please let me know if more content of AWR report is required.
    Per Second Per Transaction
    Redo size: 12,765.52 2,030.27
    Logical reads: 324,030.64 51,534.93
    Block changes: 71.62 11.39
    Physical reads: 28.26 4.49
    Physical writes: 3.84 0.61
    User calls: 333.61 53.06
    Parses: 157.16 24.99
    Hard parses: 0.17 0.03
    Sorts: 30.07 4.78
    Logons: 1.71 0.27
    Executes: 156.35 24.87
    Transactions: 6.29
    % Blocks changed per Read: 0.02 Recursive Call %: 28.05
    Rollback per transaction %: 16.17 Rows per Sort: 29.99
    Top 5 Timed Events
    Event          Waits          Time(s)     Avg Wait(ms)     % Total Call TimeWait Class
    CPU time                    4,711               88.0
    db file sequential read 190,548          356     2          6.7          User I/O
    gc current block 2-way     172,948          151     1          2.8          Cluster
    gc cr grant 2-way     128,668          67     1          1.2          Cluster
    log file sync          37,920          54     1          1.0          Commit
    Segments by Logical Reads
    Total Logical Reads: 2,342,983,880
    Captured Segments account for 99.8% of Total
    Owner Tablespace Name Object Name Subobject Name Obj. Type Logical Reads %Total
    web_dc DECOINDX D_1F01BC958000013B INDEX 909,141,504 38.80
    web_dc DECODATA DM_RELATION_TYPE_S TABLE 908,104,384 38.76
    web_dc DECOINDX D_1F01BC9580000518 INDEX 165,716,752 7.07
    web_dc DECODATA DM_RELATION_S TABLE 136,235,504 5.81
    web_dc DECOINDX D_1F01BC9580000024 INDEX 62,935,008 2.69
    Regards
    balvindar

    In a 2 hour AWR reports for a database I can see the below top 5 wait event's
    Comment: 2 hour is a too big interval to draw any conclusion. It should be 15-30 mins maximum.
    Apart from that: 88 percent of the wall time is devoted to CPU, so do you have a problem? Not at all!!! Your database is doing pretty nothing.
    the database is running on high CPU consumption (there are very less physical reads on database and Logical read is high i suppose ) so I also gather the Segments by Logical Reads. Please provide any suggestion how can i avoid logical reads I/o for the dataabse. If you see at bottom only two segments are responsible for high logical reads.
    Comment: the database is not running on high CPU consumption. You would need to run an ADDM report to be able to ascertain that. We have no data on the CPU load of the server, nor how much Oracle is contributing to the load.
    You cannot avoid logical read I/O, other than just stopping the application. You can tune them by tuning statements.
    In the future, please wrap the output in   tags (no spaces, lowercase), or I will need new glasses ;)
    Sybrand Bakker
    Senior Oracle DBA                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need help in reviewing AWR report

    Hello Friends,
    I need some information on reviewing this AWR report. Can you please tell me if you see any red flags or out of the ordinary? I’m trying to look for some performance or blocking issue that may be causing a process to run for longer than expected time or eventually terminate without finishing.
    C:\Users\SIDDHARTH\Documents\Desktop\awr_rpt_-wbprdsnap_193927_thru_193952.htm
    I do appreciate your help.
    Thank you,

    Hi Ehtiram,
    Thanks for your suggestion.
    I have enclosed SQL stat rpt. can you suggest me which SQL ID causing this issue.
    Elapsed Time (s) CPU Time (s) Executions  Elap per Exec (s)  % Total DB Time SQL Id SQL Module SQL Text
    24,349 1,734 8,057 3.02 4.19 8x7g7z2azkbwy java@lena015 (TNS V1-V3)  SELECT ES.EMPSKD_ACT_START_TIM...
    19,014 4,960 8,800,248 0.00 3.27 0yg00z7gwc8xv java@lena014 (TNS V1-V3)  SELECT * FROM override o WHERE...
    16,686 583 2 8343.24 2.87 9btt17d327kjw java@lena018 (TNS V1-V3)  DELETE FROM so_results_detail ...
    12,969 189 1 12969.05 2.23 2rtppqwfnvucj java@lena014 (TNS V1-V3)  SELECT WRKS_WORK_DATE FROM J...
    11,432 9,712 2,138 5.35 1.96 07rqh01v58fqa java@lena018 (TNS V1-V3)  Select AMXAVS_ID from AMX_AVAI...
    9,683 676 12 806.96 1.66 8036tzu5fvvhg java@lena018 (TNS V1-V3)  DELETE FROM so_distrib_detail ...
    8,812 3,079 18,765 0.47 1.51 0crxpb0xurc21 java@lena014 (TNS V1-V3)  select (fd.fcast_calls + fd.fc...
    5,716 4,381 82,132 0.07 0.98 50cdgbs67apxr java@lena014 (TNS V1-V3)  SELECT PG.* FROM SO_SCHEDULE_G...
    5,364 110 47,005 0.11 0.92 9df2twkpvsw5p java@lena014 (TNS V1-V3)  SELECT USR.WBU_ID VUF_RCP_ID...
    4,911 4,080 7,996 0.61 0.84 g4yxt4nsahm6t java@lena015 (TNS V1-V3)  SELECT R.RDR_UDF1 AS sGrace, ...
    Back to SQL Statistics
    Back to Top
    SQL ordered by CPU Time
    Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
    % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
    CPU Time (s) Elapsed Time (s) Executions  CPU per Exec (s) % Total DB Time SQL Id SQL Module SQL Text
    9,712 11,432 2,138 4.54 1.96 07rqh01v58fqa java@lena018 (TNS V1-V3)  Select AMXAVS_ID from AMX_AVAI...
    4,960 19,014 8,800,248 0.00 3.27 0yg00z7gwc8xv java@lena014 (TNS V1-V3)  SELECT * FROM override o WHERE...
    4,626 4,718 1,196,614 0.00 0.81 0drcwvhmn0cnj java@lena014 (TNS V1-V3)  select SKDGRP_ID, VOLTYP_ID, ...
    4,381 5,716 82,132 0.05 0.98 50cdgbs67apxr java@lena014 (TNS V1-V3)  SELECT PG.* FROM SO_SCHEDULE_G...
    4,080 4,911 7,996 0.51 0.84 g4yxt4nsahm6t java@lena015 (TNS V1-V3)  SELECT R.RDR_UDF1 AS sGrace, ...
    3,079 8,812 18,765 0.16 1.51 0crxpb0xurc21 java@lena014 (TNS V1-V3)  select (fd.fcast_calls + fd.fc...
    1,892 2,802 8,463,493 0.00 0.48 60tk6bna3qwbn java@lena014 (TNS V1-V3)  SELECT /*+INDEX(OVERRIDE IDX_O...
    1,734 24,349 8,057 0.22 4.19 8x7g7z2azkbwy java@lena015 (TNS V1-V3)  SELECT ES.EMPSKD_ACT_START_TIM...
    1,437 1,438 157,923 0.01 0.25 75wjn3dnjq2x3 java@lena014 (TNS V1-V3)  SELECT * FROM CMPLNC_GROUP_FIL...
    1,241 2,243 19,223 0.06 0.39 fjucxsh2xum7c java@lena014 (TNS V1-V3)  SELECT emp.emp_id FROM employe...
    676 9,683 12 56.31 1.66 8036tzu5fvvhg java@lena018 (TNS V1-V3)  DELETE FROM so_distrib_detail ...
    583 16,686 2 291.61 2.87 9btt17d327kjw java@lena018 (TNS V1-V3)  DELETE FROM so_results_detail ...
    189 12,969 1 189.14 2.23 2rtppqwfnvucj java@lena014 (TNS V1-V3)  SELECT WRKS_WORK_DATE FROM J...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Gets
    Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
    Total Buffer Gets: 13,427,369,138
    Captured SQL account for 60.3% of Total
    Buffer Gets  Executions  Gets per Exec  %Total CPU Time (s) Elapsed Time (s) SQL Id SQL Module SQL Text
    3,403,579,267 2,138 1,591,945.40 25.35 9711.73 11431.76 07rqh01v58fqa java@lena018 (TNS V1-V3)  Select AMXAVS_ID from AMX_AVAI...
    1,070,482,359 1,196,614 894.59 7.97 4626.43 4718.30 0drcwvhmn0cnj java@lena014 (TNS V1-V3)  select SKDGRP_ID, VOLTYP_ID, ...
    421,090,926 18,765 22,440.23 3.14 3078.77 8812.06 0crxpb0xurc21 java@lena014 (TNS V1-V3)  select (fd.fcast_calls + fd.fc...
    322,602,711 8,800,248 36.66 2.40 4960.29 19013.56 0yg00z7gwc8xv java@lena014 (TNS V1-V3)  SELECT * FROM override o WHERE...
    287,681,734 19,223 14,965.50 2.14 1240.74 2243.16 fjucxsh2xum7c java@lena014 (TNS V1-V3)  SELECT emp.emp_id FROM employe...
    205,494,645 2,985,988 68.82 1.53 882.42 882.58 f736f78bg36fz java@lena014 (TNS V1-V3)  SELECT WBT_ID FROM SO_EMPLOYEE...
    189,266,051 114,985 1,646.01 1.41 703.31 710.28 4ca6cmu7vywx0 java@lena014 (TNS V1-V3)  SELECT CG.* FROM SO_SCHEDULE_G...
    180,050,736 2,478 72,659.70 1.34 840.37 3858.85 a13n3pt09jabr java@lena018 (TNS V1-V3)  DELETE FROM AMX_AVAIL_SUMMARY ...
    146,401,683 82,132 1,782.52 1.09 4381.09 5715.93 50cdgbs67apxr java@lena014 (TNS V1-V3)  SELECT PG.* FROM SO_SCHEDULE_G...
    133,298,999 60,547 2,201.58 0.99 515.19 802.26 cncd24nf9m6m6 java@lena014 (TNS V1-V3)  SELECT SO.*, EMP.* FROM SO_EM...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Reads
    Total Disk Reads: 161,056,185
    Captured SQL account for 38.7% of Total
    Physical Reads Executions Reads per Exec  %Total CPU Time (s) Elapsed Time (s) SQL Id SQL Module SQL Text
    16,051,442 2 8,025,721.00 9.97 583.23 16686.47 9btt17d327kjw java@lena018 (TNS V1-V3)  DELETE FROM so_results_detail ...
    14,313,828 12 1,192,819.00 8.89 675.73 9683.47 8036tzu5fvvhg java@lena018 (TNS V1-V3)  DELETE FROM so_distrib_detail ...
    4,589,031 8,057 569.57 2.85 1734.00 24349.00 8x7g7z2azkbwy java@lena015 (TNS V1-V3)  SELECT ES.EMPSKD_ACT_START_TIM...
    3,484,791 7 497,827.29 2.16 359.64 3188.47 6kn1bh485cgfm java@lena014 (TNS V1-V3)  SELECT WRKS_WORK_DATE FROM J...
    2,975,671 8,800,248 0.34 1.85 4960.29 19013.56 0yg00z7gwc8xv java@lena014 (TNS V1-V3)  SELECT * FROM override o WHERE...
    2,758,931 1 2,758,931.00 1.71 189.14 12969.05 2rtppqwfnvucj java@lena014 (TNS V1-V3)  SELECT WRKS_WORK_DATE FROM J...
    1,345,288 1 1,345,288.00 0.84 316.63 1319.96 cg19gczm0t1rq PYW121WA.exe  select unique vctp.EMP...
    1,321,391 0   0.82 302.93 1317.47 6dq9gfc26kmbt PYW121WA.exe  select COUNT(*) from...
    1,273,572 18,765 67.87 0.79 3078.77 8812.06 0crxpb0xurc21 java@lena014 (TNS V1-V3)  select (fd.fcast_calls + fd.fc...
    1,248,698 6 208,116.33 0.78 287.11 1297.41 250a6k8scn6d1 java@lena014 (TNS V1-V3)  SELECT WRKS_WORK_DATE, EMPL...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Executions
    Total Executions: 128,083,116
    Captured SQL account for 51.0% of Total
    Executions  Rows Processed Rows per Exec CPU per Exec (s) Elap per Exec (s)  SQL Id SQL Module SQL Text
    8,800,248 4,896,274 0.56 0.00 0.00 0yg00z7gwc8xv java@lena014 (TNS V1-V3)  SELECT * FROM override o WHERE...
    8,463,493 2,096 0.00 0.00 0.00 60tk6bna3qwbn java@lena014 (TNS V1-V3)  SELECT /*+INDEX(OVERRIDE IDX_O...
    6,077,148 6,077,148 1.00 0.00 0.00 88vs2qyv0wrr7 java@lena018 (TNS V1-V3)  SELECT SEQ_AMXAVS_ID.NEXTVAL F...
    4,854,539 4,854,135 1.00 0.00 0.00 frdva1m6src9p java@lena014 (TNS V1-V3)  select * from emp_def_lab wher...
    4,520,588 4,840,522 1.07 0.00 0.00 1jgzwf0qkrmnv java@lena018 (TNS V1-V3)  delete from "WORKBRAIN"."AMX_...
    4,205,634 9,720,125 2.31 0.00 0.00 9gj46z0yfjbn6 java@lena014 (TNS V1-V3)  SELECT * FROM so_posn_set_elmt...
    3,834,278 3,834,039 1.00 0.00 0.00 gmgvzfk9nz404 java@lena014 (TNS V1-V3)  SELECT ACT_ID, ACT_NAME, ACT...
    2,985,988 2,674,478 0.90 0.00 0.00 f736f78bg36fz java@lena014 (TNS V1-V3)  SELECT WBT_ID FROM SO_EMPLOYEE...
    2,081,020 2,080,811 1.00 0.00 0.00 brnrwgx8c44zu java@lena014 (TNS V1-V3)  SELECT tcode_udf8 FROM time_co...
    1,779,779 2,531,807 1.42 0.00 0.00 fv9j5aanhvn35 java@lena014 (TNS V1-V3)  select * from employee_team wh...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Parse Calls
    Total Parse Calls: 42,958,894
    Captured SQL account for 65.4% of Total
    Parse Calls Executions  % Total Parses SQL Id SQL Module SQL Text
    6,077,150 6,077,148 14.15 88vs2qyv0wrr7 java@lena018 (TNS V1-V3)  SELECT SEQ_AMXAVS_ID.NEXTVAL F...
    4,205,421 4,205,634 9.79 9gj46z0yfjbn6 java@lena014 (TNS V1-V3)  SELECT * FROM so_posn_set_elmt...
    3,834,191 3,834,278 8.93 gmgvzfk9nz404 java@lena014 (TNS V1-V3)  SELECT ACT_ID, ACT_NAME, ACT...
    1,603,096 2,081,020 3.73 brnrwgx8c44zu java@lena014 (TNS V1-V3)  SELECT tcode_udf8 FROM time_co...
    982,185 982,187 2.29 4m7m0t6fjcs5x    update seq$ set increment$=:2,...
    902,759 906,293 2.10 6cvn595prdbtf java@lena014 (TNS V1-V3)  SELECT wbt_id FROM employee_te...
    821,077 1,779,779 1.91 fv9j5aanhvn35 java@lena014 (TNS V1-V3)  select * from employee_team wh...
    681,828 681,857 1.59 f0jjm3ky3kawn java@lena014 (TNS V1-V3)  SELECT * FROM EMPLOYEE_BALANCE...
    548,293 912,139 1.28 dmw686hrngaxf java@lena014 (TNS V1-V3)  SELECT * FROM override WHERE o...
    345,765 345,765 0.80 ftj9uawt4wwzb    select condition from cdef$ wh...
    Back to SQL Statistics
    Back to Top
    SQL ordered by Sharable Memory
    No data exists for this section of the report.
    Back to SQL Statistics
    Back to Top
    SQL ordered by Version Count
    Only Statements with Version Count greater than 20 are displayed
    Version Count  Executions  SQL Id SQL Module SQL Text
    163 38,796 ax51zndhagcxh java@lena018 (TNS V1-V3)  UPDATE work_summary SET wr...
    122 444 7pgr0hyg72xps java@lena014 (TNS V1-V3)  INSERT INTO employee_schedule ...
    100 42,367 3dg7u9t51sszw java@lena014 (TNS V1-V3)  UPDATE employee_schedule SET ...
    41 131,055 c1zdcc94svbpb java@lena014 (TNS V1-V3)  UPDATE override SET EMP_ID =...
    {code}
    Thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Question about  Load Average in the AWR report

    Hi,
    I've some database in 11.2 RAC on AIX.
    I was analyzing the root causes of eviction.
    Looking AWR Report before the reboot I see:
    DB1
    Host CPU (CPUs:    6 Cores:    3 Sockets: )
    ~~~~~~~~         Load Average
                   Begin       End     %User   %System      %WIO     %Idle
                    4.18     12.33     60.9      12.6       1.6      26.5
    Instance CPU
    ~~~~~~~~~~~~
                  % of total CPU for Instance:      27.4
                  % of busy  CPU for Instance:      37.3
    %DB time waiting for CPU - Resource Mgr:      10.6
    DB2
    Host CPU (CPUs:    6 Cores:    3 Sockets: )
    ~~~~~~~~         Load Average
                   Begin       End     %User   %System      %WIO     %Idle
                    3.77    13.93     60.7      12.5       1.6      26.7
    Instance CPU
    ~~~~~~~~~~~~
                  % of total CPU for Instance:       6.9
                  % of busy  CPU for Instance:       9.5
      %DB time waiting for CPU - Resource Mgr:       0.0
    Do you think these value ar high?
    This is vmstats at the time of reboot:
    DATA
    RUN
    BCK
    AVM
    FRE
    PRE
    PPI
    PPO
    PFR
    PSR
    PCY
    FIN
    FSY
    FCS
    CUS
    CSY
    CID
    CWA
    07/21/2013
      00:08:17
    31
    0
    7.400.345
    579.923
    0
    81
    0
    0
    0
    0
    3.292
    187.010
    19.560
    84
    16
    0
    0
    07/21/2013
      00:08:17
    17
    1
    7.390.187
    589.884
    0
    176
    0
    0
    0
    0
    3.681
    169.994
    21.482
    81
    19
    0
    0
    07/21/2013
      00:08:17
    27
    1
    7.402.121
    577.816
    0
    115
    0
    0
    0
    0
    3.150
    157.210
    18.503
    84
    16
    0
    0
    07/21/2013
      00:08:48
    19
    1
    7.422.966
    564.179
    0
    211
    0
    0
    0
    0
    2.396
    152.667
    19.368
    84
    16
    0
    0
    07/21/2013
      00:08:48
    19
    1
    7.427.693
    559.268
    0
    162
    0
    0
    0
    0
    2.990
    154.733
    19.843
    85
    15
    0
    0
    07/21/2013
      00:08:48
    23
    1
    7.441.204
    545.530
    0
    204
    0
    0
    0
    0
    2.137
    171.501
    18.151
    84
    16
    0
    0
    This is mpstat:
    DATA
    CPU
    MIN
    MAJ
    MPC
    INT
    CS
    ICS
    RQ
    MIG
    LPA
    SYSC
    US
    SY
    WT
    ID
    PC
    07/21/2013
      00:08:48
    0
    12896
    44
    0
    1279
    3030
    1362
    2
    367
    100
    27313
    86
    14
    0
    0
    0.49
    07/21/2013
      00:08:48
    1
    11055
    93
    0
    1123
    3137
    1315
    1
    222
    100
    31860
    85
    15
    0
    0
    0.51
    07/21/2013
      00:08:48
    2
    5938
    51
    0
    1465
    3840
    1294
    2
    532
    100
    29992
    85
    15
    0
    0
    0.49
    07/21/2013
      00:08:48
    3
    6266
    57
    0
    1247
    3177
    1046
    2
    511
    100
    22793
    85
    15
    0
    0
    0.51
    07/21/2013
      00:08:48
    4
    2661
    18
    0
    1729
    4087
    1707
    4
    264
    100
    24647
    85
    15
    0
    0
    0.49
    07/21/2013
      00:08:48
    5
    4211
    10
    0
    1395
    2709
    1101
    2
    209
    100
    21019
    86
    14
    0
    0
    0.51
    07/21/2013
      00:08:49
    0
    9372
    27
    0
    1150
    2583
    1219
    0
    245
    100
    47745
    82
    18
    0
    0
    0.47
    07/21/2013
      00:08:49
    1
    11327
    13
    0
    726
    1803
    794
    1
    130
    100
    25239
    87
    13
    0
    0
    0.52
    07/21/2013
      00:08:49
    2
    8970
    118
    0
    1459
    4396
    1517
    0
    602
    100
    24833
    81
    19
    0
    0
    0.49
    07/21/2013
      00:08:49
    3
    7328
    267
    0
    1329
    4136
    1273
    2
    586
    100
    25385
    81
    19
    0
    0
    0.51
    07/21/2013
      00:08:49
    4
    8793
    19
    0
    1133
    2583
    1036
    1
    235
    100
    24327
    86
    14
    0
    0
    0.50
    07/21/2013
      00:08:49
    5
    8239
    12
    0
    1309
    2846
    1165
    1
    277
    100
    18513
    86
    14
    0
    0
    0.50
    Thank you

    Thank you Jonathan,
    i'm looking ASH, 15 minutes before the crash.
    I've 13% of buffer busy waits and 13% of cpu quantum
                                                                   Avg Active
    Event                               Event Class        % Event   Sessions
    CPU + Wait for CPU                  CPU                  59.09       0.15
    buffer busy waits                   Concurrency          13.64       0.04
    resmgr:cpu quantum                  Scheduler            13.64       0.04
    The buffer busy waits was caused by an update of a table.
    There are ETL jobs that runs every nigth.
    Looking IO stats I notice a change in the use of the swap:
    before the crash:
    hdisk66        xfer:  %tm_act      bps      tps      bread      bwrtn   
                             1.0      8.2K     2.0        8.2K       0.0
                   read:      rps  avgserv  minserv  maxserv   timeouts      fails
                             2.0      6.7      3.8      9.6           0          0
                  write:      wps  avgserv  minserv  maxserv   timeouts      fails
                             0.0      0.0      0.0      0.0           0          0
                  queue:  avgtime  mintime  maxtime  avgwqsz    avgsqsz     sqfull
                             0.0      0.0      0.0      0.0        0.0         0.0
    near the crash:
    hdisk66        xfer:  %tm_act      bps      tps      bread      bwrtn   
                            71.0    241.7K    59.0      241.7K       0.0
                   read:      rps  avgserv  minserv  maxserv   timeouts      fails
                            59.0     12.1      0.2    183.5           0          0
                  write:      wps  avgserv  minserv  maxserv   timeouts      fails
                             0.0      0.0      0.0      0.0           0          0
                  queue:  avgtime  mintime  maxtime  avgwqsz    avgsqsz     sqfull
                             0.0      0.0      0.0      0.0        0.0         0.0

  • Shell script for Automatic Awr Report

    Hi Good Morning,
    I have a requirement to generate the AWR report daily between (10AM - 06PM , 10AM - 01PM , 01PM - 10PM) . I have the below script for this . But the issue is this script is working only when i run it two times and before running i have to delete snap_list.lst file. Please let me know what is the problem in this script and how to resolve it.
    Script :
    dt=`date +%d%m%Y`
    cd /orabkp/awr_report
    chmod 777 *
    rm -rf snap_list.lst
    touch snap_list.lst
    #rm -rf snap_list.lst
    #rm -rf snap_list.lst
    sqlplus -s " /as sysdba " <<EOF > snap_list.lst
    host sleep 10
    @/oracle/scripts/cron_scripts/rpt1.sql;
    @?/rdbms/admin/awrrpt.sql
    HTML
    1
    `cat snap_list.lst | grep "10:0" | awk '{print $1}'`
    `cat snap_list.lst | grep "13:0" | awk '{print $1}'`
    awrrpt\_$dt\_10AM\-01PM.html
    prompt 2
    @?/rdbms/admin/awrrpt.sql
    HTML
    1
    `cat snap_list.lst | grep "13:0" | awk '{print $1}'`
    `cat snap_list.lst | grep "18:0" | awk '{print $1}'`
    awrrpt\_$dt\_01PM\-06PM.html
    @?/rdbms/admin/awrrpt.sql
    HTML
    1
    `cat snap_list.lst | grep "10:0" | awk '{print $1}'`
    `cat snap_list.lst | grep "18:0" | awk '{print $1}'`
    awrrpt\_$dt\_10AM\-06PM.html
    @?/rdbms/admin/addmrpt.sql
    `cat snap_list.lst | grep "06:0" | awk '{print $1}'`
    `cat snap_list.lst | grep "12:0" | awk '{print $1}'`
    ADDM_REPORT\_$dt\_10AM\-06PM.txt
    EOF
    exit
    cat /oracle/scripts/cron_scripts/rpt1.sql
    host echo 1
    host sleep 10
    @?/rdbms/admin/awrrpt.sql
    HTML
    1
    `cat snap_list.lst | grep "10:0" | awk '{print $1}'`
    `cat snap_list.lst | grep "13:0" | awk '{print $1}'`
    awrrpt\_$dt\_10AM\-01PM.html
    Regards
    Rajasekar

    Hi,
    Modify & Try this script used for rac awr ..
    #!/bin/ksh
    set -x
    ORACLE_SID=DBSID
    ORACLE_HOME=/u01/app/ora11g/product/11.2.0/db_1
    export ORACLE_HOME
    TERM=vt100
    export TERM
    PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/local/bin:/usr/bin/X11:/bin:/sbin:.
    PATH=$ORACLE_HOME/bin:$PATH
    export DT=`date '+%d_%b_%Y_%HH_%MM'`
    export ORACLE_BASE ORACLE_SID ORACLE_HOME PATH DT
    echo $DT
    MAIL="[email protected]"
    CMAIL="[email protected]"
    AWRR="/u01/DBA_Scripts/AWR_REPO"
    sqlplus -s "/ as sysdba"<<EOFSQL
    set head off
    set feed off
    spool /tmp/bsnap.lst
    select max(SNAP_ID)- 3 from dba_hist_snapshot;
    spool off
    spool /tmp/esnap.lst
    select max(SNAP_ID) from dba_hist_snapshot;
    spool off
    spool /tmp/iname.lst
    select instance_name from v\$instance;
    spool off
    spool /tmp/dname.lst
    select database_name from v\$database;
    spool off
    spool /tmp/inum.lst
    select instance_number from v\$instance;
    spool off
    spool /tmp/dbid.lst
    select dbid from v\$database;
    spool off
    EOFSQL
    BSNAP=`cat /tmp/bsnap.lst | tail -1 | awk '{ print $1}'`;export BSNAP
    ESNAP=`cat /tmp/esnap.lst | tail -1 | awk '{ print $1}'`;export ESNAP
    INAME=`cat /tmp/iname.lst | tail -1 | awk '{ print $1}'`;export INAME
    DNAME=`cat /tmp/dname.lst | tail -1 | awk '{ print $1}'`;export DNAME
    INUM=`cat /tmp/inum.lst | tail -1 | awk '{ print $1}'`;export INUM
    DID=`cat /tmp/dbid.lst| tail -1 | awk '{ print $1}'`;export DID
    echo "Begin Snap  : $BSNAP"
    echo "End Snap    : $ESNAP"
    #echo "InstanceName: $INAME"
    echo "DB Name     : $DNAME"
    #echo "InstanceId  : $INUM"
    echo "DB ID       : $DID"
    sqlplus -s "/ as sysdba"<<EOFSQL
          define  inst_num     = $INUM;
          define  num_days     = 12;
          define  inst_name    = 'ALL';
          define  db_name      = '$DNAME';
          define  dbid         = $DID;
          define  begin_snap   = $BSNAP;
          define  end_snap     = $ESNAP;
          define  report_type  = 'html';
          define  report_name  = $AWRR/Awr_report_$DT.html
          @@?/rdbms/admin/awrgrpti
    EOFSQL
    cat /u01/DBA_Scripts/mail_body.txt | mailx -a $AWRR/Awr_report_$DT.html -c $CMAIL -s "DB Report - DB "  $MAILThanks,
    Ajay More
    http://www.moreajays.com

  • Help on using AWR report

    we use ORACLE 11.1.0.7. We have couple of processes that run for about 2 to 3 hours which are scheduled to run after 6 pm. When these processes run, currently users are not allowed to access the system . So last week we ran these processes with 30 to 40 users in a test instance, basically reading data.I have preserved the AWR snapshot during these processes. we have the preserved the AWR snapshots during the processes when users are no allowed in the system. I believe we can compare two periods in Grid. I would like to know what information would be helpful from this report?

    I would like to know what information would be helpful from this report?That would entirely depend on why you generated the AWR reports in first place - what was your motive, what were you looking for, were there any major wait events etc.

  • In AWR report, what is "Batched IO (bound) vector count" ?

    Hi All,
    Oracle v11.2, Linux, 64bit.
    I am looking at AWR report, in section, Instance Activity Stats.
    First stat is "Batched IO (bound) vector count". What does that stand for? I tried searching in documentation.
    Actually, in Instance Activity Stats, first few lines are, Batched IO (bound) vector count, Batched IO (full) vector count, Batched IO (space) vector count, Batched IO block miss count, Batched IO double miss count. Where can I find the details/meaning for these statistics ??
    Thanks in advance

    This is an idle wait event. For the description of it, see below
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/waitevents003.htm#sthref3197
    Tanel has written good posts for the same.Check them out as well,
    http://blog.tanelpoder.com/2008/02/07/sqlnet-message-to-client-wait-gotcha/
    http://blog.tanelpoder.com/2008/02/10/sqlnet-message-to-client-vs-sqlnet-more-data-to-client/
    HTH
    Aman....
    Edited by: Aman.... on Nov 3, 2008 11:02 PM added Tanel's links.

  • Enq: TX - row lock contention in AWR reports

    Dears,
    One of my friends asked me to give him a help on analyzing a performance problem they are experimenting from time to time. First of all I am sorry to tell you that he didn’t gave me a lot of information. I will share with you all what I have been sent and would like to have your precious advice according to the available information.
    It is a third party software installed on oracle data base 10.2.0.4.0. He said that from time to time the application hangs. He sends me an AWR reports supplied by the local DBA. Unfortunately, the local DBA send only the AWR information he thinks are most important to be looked at (he did not include the load profile and the instance efficiency Percentages part in this AWR for example).
    Here below is the available information I can share with you
                                                                             Snap time                                       sessions        cursors/session
    Begin Snap        09-mars-11 08:00:03              31                     6.5
    End Snap          09-mars-11 08:39:49              41                     9.8
    Elapsed           39.77 (mins)
    DB Time           536.65(mins)
    Top 5 Timed Events
    Event                          Waits   Time(s)    Avg Wait(ms)    % Total Call Time     Wait Class
    enq: TX - row lock contention  8,468    25,344       2,993            78.7             Application
    read by other session          714,628   4,604         6               14.3             User I/O
    db file sequential read        323,264  1,977         6               6.1              User I/O
    CPU time                                 171                          .5
    db file scattered read          1,885   49           26               .2               User I/OThe AWR reports presents also the following SQL statement as the top SQL of its ‘’SQL ordered by Elapsed Time’’ part
    UPDATE xxxx.table1
       SET col1 = :1,
           col2 = :2,
           col3 = :3,
           col4 = :4,
    WHERE ID = :13
    AND colx  = :14;And the following sql at its “SQL ordered by Reads’ part
    SELECT t1.*
    FROM xxxx.table1 t1
      LEFT OUTER JOIN xxxx.table2 t2
           ON t1.id = t2.id
      LEFT OUTER JOIN xxxx.table3 t3
           ON t1.id = t3.id
      LEFT OUTER JOIN xxxx.table4 t4
           ON t1.id = t4.id
    WHERE t1.col1 = :1
    AND   t1.col2 IN (:2,:3, :4);And finally in the Segments by Row Lock Waits part of the AWR I have this:
    Owner      tablespace name    object name   object type   row lock waits   %of capture
    xxxx          xxxx          table1         TABLE          54       100    There are no bitmap indexes on this OLTP data base. There are no unindexed foreign keys and it seems that there are no selects done over a dblink.
    I am waiting to have the table table1 script and its indexes
    Given those information I think that the locking problem is due to this update on table table1 which is not followed immediately by a commit or a rollback. But, instead, several selects that might be taking a long time are done before reaching the commit that ends the lock on the table table1
    What do you think about the possible reason of this lock?
    Thanks in advance
    Mohamed Houri

    Dears,
    I did get the suspected query and asked for its several explain plans thanks to the dbms_xplan.display_awr. The most important thing to point out is that the last where clause of this query seems to be dynamically filled-up
    SELECT t1.*
    FROM xxxx.table1 t1
      LEFT OUTER JOIN xxxx.table2 t2
           ON t1.id = t2.id
      LEFT OUTER JOIN xxxx.table3 t3
           ON t1.id = t3.id
      LEFT OUTER JOIN xxxx.table4 t4
           ON t1.id = t4.id
    WHERE t1.col1 = :1
    AND   t1.col2 in (:2 , :3 , :4 , :5 , :6 , :7 , :8 )
    | Id  | Operation                      | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |             
    |   0 | SELECT STATEMENT               |                         |       |       |    14 (100)|          |             
    |   1 |  NESTED LOOPS OUTER            |                         |     1 |   280 |    14   (0)| 00:00:01 |             
    |   2 |   NESTED LOOPS OUTER           |                         |     1 |   226 |     9   (0)| 00:00:01 |             
    |   3 |    NESTED LOOPS OUTER          |                         |     1 |   216 |     6   (0)| 00:00:01 |             
    |   4 |     TABLE ACCESS BY INDEX ROWID| TABLE1                  |     1 |   141 |     4   (0)| 00:00:01 |             
    |   5 |      INDEX RANGE SCAN          | SYS_C0010893            |     1 |       |     3   (0)| 00:00:01 |             
    |   6 |     TABLE ACCESS BY INDEX ROWID| TABLE2                  |     1 |    75 |     2   (0)| 00:00:01 |             
    |   7 |      INDEX UNIQUE SCAN         | SYS_C0010774            |     1 |       |     1   (0)| 00:00:01 |             
    |   8 |    INDEX RANGE SCAN            | SYS_C0010896            |     3 |    30 |     3   (0)| 00:00:01 |             
    |   9 |   TABLE ACCESS BY INDEX ROWID  | TABLE3                  |    11 |   594 |     5   (0)| 00:00:01 |             
    |  10 |    INDEX RANGE SCAN            | SYS_C0010910            |    11 |       |     3   (0)| 00:00:01 |             
    SELECT t1.*
    FROM xxxx.table1 t1
      LEFT OUTER JOIN xxxx.table2 t2
           ON t1.id = t2.id
      LEFT OUTER JOIN xxxx.table3 t3
           ON t1.id = t3.id
      LEFT OUTER JOIN xxxx.table4 t4
           ON t1.id = t4.id
    WHERE t1.col1 = :1
    AND   t1.col2 in (:2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 ,                       
    :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 , :31 , :32 ,                        
    :33 , :34 , :35 , :36 , :37 , :38 , :39 , :40 , :41 , :42 , :43 , :44 , :45 , :46 , :47 , :48 ,                        
    :251 , :252 , :253 , :254 , :255 , :256 , :257 )  ;
    | Id  | Operation                       | Name                    | Rows  | Bytes | Cost (%CPU)| Time     |            
    |   0 | SELECT STATEMENT                |                         |       |       |  5943 (100)|          |            
    |   1 |  NESTED LOOPS OUTER             |                         |  9210 |  2536K|  5943   (1)| 00:01:12 |            
    |   2 |   NESTED LOOPS OUTER            |                         |   885 |   195K|  1784   (0)| 00:00:22 |            
    |   3 |    NESTED LOOPS OUTER           |                         |   255 | 55080 |  1019   (0)| 00:00:13 |            
    |   4 |     INLIST ITERATOR             |                         |       |       |            |          |            
    |   5 |      TABLE ACCESS BY INDEX ROWID| TABLE1                  |   255 | 35955 |   509   (0)| 00:00:07 |            
    |   6 |       INDEX UNIQUE SCAN         | SYS_C0010893            |   255 |       |   258   (0)| 00:00:04 |            
    |   7 |     TABLE ACCESS BY INDEX ROWID | TABLE2                  |     1 |    75 |     2   (0)| 00:00:01 |            
    |   8 |      INDEX UNIQUE SCAN          | SYS_C0010774            |     1 |       |     1   (0)| 00:00:01 |            
    |   9 |    INDEX RANGE SCAN             | SYS_C0010896            |     3 |    30 |     3   (0)| 00:00:01 |            
    |  10 |   TABLE ACCESS BY INDEX ROWID   | TABLE3                  |    10 |   560 |     5   (0)| 00:00:01 |            
    |  11 |    INDEX RANGE SCAN             | FK_TABLE3               |    10 |       |     3   (0)| 00:00:01 |            
    -----------------------------------------------------------------------------------------------------------   Suddenly there is an INLIST ITERATOR that pops up and which seems to be started 255 times and the ‘quick’ query which in normal situation (small in list) executes in less than 1 second starts now taking more than 1 minute to complete.
    As far as it is a third party software, they can’t change the query.
    Do you have any idea on how to solve this problem?
    Here below are the optimizer parameters
    SQL> show parameter optimizer
    NAME                                 TYPE        VALUE
    optimizer_dynamic_sampling           integer     2
    optimizer_features_enable            string      10.2.0.4
    optimizer_index_caching              integer     0
    optimizer_index_cost_adj             integer     100
    optimizer_mode                       string      ALL_ROWS
    optimizer_secure_view_merging        boolean     TRUEThanks in advance
    Mohamed Houri

  • Old query taking substantial CPU time in AWR report

    Hi,
    We have a particular query which used to generate substantial CPU wait event in the AWR report.On of our DBA's killed the query some days back but still today's AWR report shows that particular query as the largest CPU consumer (50%). When I checked from the view V$SQL the last execution time was of 23-02-2011.
    My question is after the query gets killed does it still show in the v$SQL ? And why is it still showing in the SQL BY ELAPSED TIME section ?
    Please help.

    No it is a select statement. I AM PASTING THE QUERY BELOW.
    select  /*+ FULL(COMP_TM) FULL(TRANS_TM) FULL(INVC_TM) */
                CUST_BE_ID     ,
                DISTR_BE_ID    ,
                FG_BE_ID         ,
                KIT_BE_ID        ,
                BG_ID_NO_BE_ID         ,
             ACTL_TERR_BE_ID       ,
                CORE_TERR_BE_ID      ,
            sum(     JNJ_LIST_AMT  ) AS JNJ_LIST_AMT,
                sum(     JNJ_PYMT_AMT            )  AS  JNJ_PYMT_AMT,
                sum(     JNJ_QTY           ) AS JNJ_QTY,
                sum(     JNJ_REB_AMT  ) AS JNJ_REB_AMT,
                sum(     JNJ_SLS_AMT  ) AS JNJ_SLS_AMT,
                sum(     KIT_LIST_AMT   ) AS KIT_LIST_AMT,
                sum(     KIT_QTY           ) AS KIT_QTY,
                sum(     KIT_SLS_AMT   ) AS KIT_SLS_AMT,
                sum(     FG_PYMT_AMT            ) AS FG_PYMT_AMT,
                sum(     FG_QTY           ) AS FG_QTY,
                sum(     FG_REB_AMT   ) AS FG_REB_AMT,
                sum(     FG_SLS_AMT   ) AS FG_SLS_AMT,
                sum(     FG_LIST_AMT   ) AS FG_LIST_AMT,
                to_date('15'||substr(COMP_TM.FISC_MO_CD,8,2)||substr(COMP_TM.FISC_MO_CD,3,4),'DDMMYYYY') AS     TRANS_MO_DATE,
                to_number(substr(COMP_TM.FISC_MO_CD,3,4) ) AS PRD_YR_CD, 
                to_number(substr(COMP_TM.FISC_MO_CD,8,2) ) AS PRD_MO_CD, 
                CONTR_PRD_TIER_NO,
                COMP_TM.FISC_MO_OID AS COMP_MO_BE_ID,
                CLSD_YR_FLG,
                ADJM_TRANS_CD,
                INVC_TM.FISC_MO_OID AS INVC_MO_BE_ID,
                ORD_TYP_CD,
                TRANS_TM.FISC_MO_OID AS TRANS_MO_BE_ID
    from
                FACT_DLY_ALGND_SLS F, DIM_TM_MV TRANS_TM,
                DIM_TM_MV INVC_TM, DIM_TM_MV COMP_TM
    /***** comment out for loading historical data....  ***/
    WHERE F.PRD_YR_CD >= (select case when to_number(to_char(sysdate,'MM')) <= 3
                         then to_number(to_char(sysdate,'YYYY'))-1
                               else to_number(to_char(sysdate,'YYYY'))
                               end case from dual
    -- and F.PRD_YR_CD = '2008'
    AND F.COMP_DT_BE_ID=COMP_TM.BE_ID
    AND F.TRANSACTION_DATE = TRANS_TM.DAY_STRT_PRD_OF_TM
    AND TRANS_TM.DAY_OID = TRANS_TM.BE_ID
    AND F.INVC_DT = INVC_TM.DAY_STRT_PRD_OF_TM
    AND INVC_TM.DAY_OID = INVC_TM.BE_ID
    group by
                CUST_BE_ID     ,
                DISTR_BE_ID    ,
                FG_BE_ID         ,
                KIT_BE_ID        ,
                BG_ID_NO_BE_ID         ,
             ACTL_TERR_BE_ID       ,
                CORE_TERR_BE_ID      ,
                to_date('15'||substr(COMP_TM.FISC_MO_CD,8,2)||substr(COMP_TM.FISC_MO_CD,3,4),'DDMMYYYY'),
                to_number(substr(COMP_TM.FISC_MO_CD,3,4) ), 
                to_number(substr(COMP_TM.FISC_MO_CD,8,2) ), 
                CONTR_PRD_TIER_NO,
                COMP_TM.FISC_MO_OID ,
                CLSD_YR_FLG,
                ADJM_TRANS_CD,
                INVC_TM.FISC_MO_OID ,
                ORD_TYP_CD,
                TRANS_TM.FISC_MO_OIDI am wrong in the previous post. Actually the elapsed time in the AWR was showing 840 mins.

  • Automatic generation of AWR reports

    Hi,
    How to schedule the automatic JOB to generate the AWR reports hourly basis. ( automatic comparing between 2 snapshots and then generate the text file).
    Thanks in advance.

    Hi,
    If you want the report to be send to your mail through the ORACLE ENTERPRISE MANAGER than you have to write one perl script like below: Adjust statements and addresses as per your requirement.
    The main views are:
    dba_hist_snapshot & dba_hist_thread which are helping us in doing this.
    Hope I answered your question
    autoawr.pl :
    # My perl script for automatically generating awr report
    # By default, report is sent to DBA_EMAIL_LIST_RPT, unless
    # it's overridden by ORA_SP_EMAIL_LIST_RPT
    # 05/26/2006 - Changed snap level from 5 to 6
    # exec statspack.snap(i_snap_level => 6, i_modify_parameter => 'true');
    # NOTES
    # FUTURE ENHANCEMENTS
    # MODIFICATIONS
    # $Log: spreport.pl,v $
    # Revision 1.4 2003/09/02 21:33:14 oracle
    # bugfix (instance_number)
    # Revision 1.3 2003/08/26 19:13:22 oracle
    # add ORA_SP_HACK1
    # Revision 1.2 2003/08/26 18:54:09 oracle
    # mod
    # Revision 1.1 2003/08/26 17:19:58 oracle
    # ic
    # ----------------------- main processing -------------------------------------
    # in case $0 is a full pathname, strip of the directory name
    $progname = $0;
    $progname =~ s/^.*\/// ;
    $progdir=$0;
    $progdir=~ s/\/[^\/]*$// ; if ($progdir eq $0) { $progdir='.'; }
    # set prog to equal progname minus file extension and the "."
    $prog=$progname;
    $prog =~ s/(.*)\..*$/\1/;
    $usage="Usage: $progname <dbname> [<report_begin_datetime in a format of '08/27/07 06:30'> <duration in minutes, at least 60>]\n" ;
    if ( $#ARGV < 0 )
    print $usage;
    exit 1;
    my @arglist=@ARGV;
    $dbname=$ARGV[0];
    shift;
    if ( $#ARGV > -1) {
    $report_user_specified_time="yes";
    # $report_begin_datetime="$ARGV[0] $ARGV[1]";
    $report_begin_date=$ARGV[0];
    $report_begin_time=$ARGV[1];
    $report_begin_datetime="$report_begin_date $report_begin_time";
    $report_duration=$ARGV[2];
    print "Boris: dbg> number of ARGV=$#ARGV, report_begin_datetime=$report_begin_datetime, report_duration=$report_duration\n";
    # print "Boris: dbg> UserSpecifiedTime=$report_user_specified_time\n";
    # ----------- PORTIBILITY: set envdir to the appropriate value
    $envdir=$progdir;
    $ENV{'ENV_FILE'}="$envdir/dba.env";
    $ENV{'APP_NAME'}=$dbname;
    # ----------- End of PORTIBILITY
    # initialize execution environ.
    require("$envdir/ld_env.pl");
    require("$envdir/ora_common.pl");
    $tm_start=`date`; chop $tm_start;
    $tm_stamp=`date "+%Y%m%d"`; chop $tm_stamp;
    $tm_stamp2=`date "+%Y%m%d_%H%M%S"`; chop $tm_stamp2;
    # $ENV{'LD_ENV_DEBUG'}=1;
    my $status=&ld_env;
    # set up log file. If for some reason it's no good, set log file to /dev/null
    $LOG_PREFIX="$ENV{'ORA_ADM_DIR'}/log/${prog}_${dbname}.log";
    $LOGFILE="${LOG_PREFIX}.${tm_stamp}";
    if (open(LOGFILE, ">>$LOGFILE") == 0)
    print "Cannot open log $LOGFILE; discard log info \n";
    open(LOGFILE, ">/dev/null");
    if ( $status != 0 )
    &abort($status, \*LOGFILE, "Failed to load environ: $LD_ENV_ERRMSG\n");
    my $work_dir=$ENV{'DBA_WORK_DIR'};
    if ($work_dir eq '') {
    abort_auto(2, "Env var DBA_WORK_DIR not defined\n");
    } else {
    $status=`mkdir -p $work_dir`;
    if ($status != 0) {
    abort_auto($status, "mkdir -p $work_dir failed\n");
    # ---- main processing
    $RPT_PREFIX1="$ENV{'ORA_ADM_DIR'}/log/awr_ash/awr_${dbname}.rpt";
    $RPTFILE1="${RPT_PREFIX1}.${tm_stamp2}";
    $RPT_PREFIX2="$ENV{'ORA_ADM_DIR'}/log/awr_ash/ash_${dbname}.rpt";
    $RPTFILE2="${RPT_PREFIX2}.${tm_stamp2}";
    #### no need for a special/"perfstat" connection: $ENV{'ORA_CNCT_STR'}=get_env2('ORA_SP_CNCT_STR', 'perfstat/perfstat');
    #### print "dbg> Connecting to the database as: $ENV{'ORA_CNCT_STR'}";
    my $days_minus = get_env2('ORA_SP_DAYS_MINUS', 1);
    ### To avoid "ORA-20200: The instance was shutdown between snapshots x1 and x2", ensure that dba_hist_snapshot.startup_time is the same for min(snap_id) and max(snap_id)
    ### To avoid "ORA-20200: End Snapshot Id y1 must be greater than Begin Snapshot Id y1", take reporting time interval between 5am and 5pm
    if ( $report_user_specified_time eq "yes") {
    $awr_begin_date=$report_begin_date;
    $awr_begin_time=$report_begin_time;
    print "Boris: dbg> awr_begin_date=$awr_begin_date, awr_end_date=$awr_end_date, awr_begin_time=$awr_begin_time, awr_end_time=calculated...\n";
    $fudge=5; # that's 5min
    $sql="
    select t.dbid, t.instance_number, min(s.snap_id), max(s.snap_id)
    from dba_hist_snapshot s, dba_hist_thread t
    where --
    trunc(s.end_interval_time) = trunc(to_date('$awr_begin_date', 'MM/DD/YY'))
    and to_char(s.end_interval_time+5/1440, 'HH24:MI') >= '$awr_begin_time'
    and to_char(s.end_interval_time, 'SSSSS') <= (to_number(substr('$awr_begin_time', 1, 2))*60 + to_number(substr('$awr_begin_time', 4,2)) + $report_duration +$fudge)*60
    and t.instance_number = sys_context('userenv', 'instance')
    and t.instance_number = s.instance_number
    and t.thread# = sys_context('userenv', 'instance')
    and t.snap_id = s.snap_id
    and t.dbid = s.dbid
    group by t.dbid, t.instance_number, s.startup_time
    order by t.dbid, t.instance_number, s.startup_time desc
    else {
    $awr_days_minus=$days_minus;
    $awr_begin_time=4;
    $awr_end_time=16;
    print "Boris: dbg> awr_days_minus=$awr_days_minus, awr_begin_time=$awr_begin_time, awr_end_time=$awr_end_time\n";
    $sql="
    select t.dbid, t.instance_number, min(s.snap_id), max(s.snap_id)
    from dba_hist_snapshot s, dba_hist_thread t
    where trunc(s.begin_interval_time)= trunc(sysdate - $awr_days_minus )
    and to_char(s.begin_interval_time, 'HH24') >= $awr_begin_time
    and to_char(s.begin_interval_time, 'HH24') <= $awr_end_time
    and t.instance_number = sys_context('userenv', 'instance')
    and t.instance_number = s.instance_number
    and t.thread# = sys_context('userenv', 'instance')
    and t.snap_id = s.snap_id
    and t.dbid = s.dbid
    group by t.dbid, t.instance_number, s.startup_time
    order by t.dbid, t.instance_number, s.startup_time desc
    my @output ;
    $status = run_query($sql, \@output);
    if ( $status == 0 )
    my $line = $output[0] ;
    my ($id_dbid, $id_inst_num, $id_min, $id_max) = split(' ', $line);
    print "Boris: dbg> Query output line=$line";
    if ( $id_min eq '' || $id_max eq '' )
    # not stats
    &tee_auto("Error: can't determine min=$id_min and/or max=$id_max snap_id, days_minus=$days_minus, dbid=$id_dbid, inst#=$id_inst_num)\n");
    exit;
    else
    &tee_auto("# generate sprpt for delta between snp_id '$id_min' and '$id_max' (days_minus='$days_minus')\n# f=$RPTFILE1\n");
    if ( $report_user_specified_time eq "yes") {
    $id_ash_begin_datetime="$report_begin_date $report_begin_time";
    $id_ash_duration=$report_duration;
    else {
    $id_ash_begin_datetime=`date --date yesterday "+%D 05:00"`; chop $id_ash_begin_datetime;
    $id_ash_duration=720; #mins: 12 hours (from 5am to 5pm)
    # print "Boris: dbg> id_ash_begin_datetime=$id_ash_begin_datetime, id_ash_duraton=$id_ash_duraton\n";
    $sql = "
    spool $RPTFILE1
    select systimestamp from dual;
    spool off
    run_sql("$sql");
    $sql = "
    define dbid=$id_dbid
    define inst_num=$id_inst_num
    define begin_snap=$id_min
    define end_snap=$id_max
    define report_type='text'
    define report_name=$RPTFILE1
    @?/rdbms/admin/awrrpti
    run_sql("$sql");
    $sql = "
    define dbid=$id_dbid
    define inst_num=$id_inst_num
    define report_type='text'
    define report_name=$RPTFILE2
    define begin_time='$id_ash_begin_datetime'
    -- define default_report_duration='$id_ash_duration'
    define duration=$id_ash_duration
    -- define duration=720
    -- define end_time='$id_ash_date_begin_5pm'
    define slot_width=''
    define target_session_id=''
    define target_sql_id=''
    define target_wait_class=''
    define target_service_hash=''
    define target_module_name=''
    define target_action_name=''
    define target_client_id=''
    define target_plsql_entry=''
    @?/rdbms/admin/ashrpti
    run_sql("$sql");
    ## Concantenate: cat $RPTFILE2 >> $RPTFILE1;
    open ( awr_report, ">>", $RPTFILE1 ) or die "Could not open for writing file $RPTFILE1: $!";
    open ( ash_report, "<", $RPTFILE2 ) or die "Could not open for reading file $RPTFILE2: $!";
    while ( my $line = <ash_report> ) { print awr_report $line; }
    # send report
    my $if_notify = 1;
    if ( $if_notify && -r $RPTFILE1 )
    if ($ENV{'ORA_SP_HACK1'} eq '1') {
    &tee_auto( "# detected ORA_SP_HACK1 -- hack the report a bit...\n");
    # prefix each line of report with '# ' to hack around
    # the problem with Exchange mail server interpreting
    # certain patterns as email attachements...
    my $ed = get_env2('ED', 'ed');
    $cmd="$ed $RPTFILE1 <<eof
    Best regards,
    Rafi
    http://rafioracledba.blogspot.com/

  • 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?

  • Fetching parameter value without using AWR report

    Hi,
    I am working on Oracle 10.2.0.2 RAC database.
    I want to get the following values of the database in one particular day.
    maximum LOGICAL READ
    maximum PHYSICAL READ
    BUFFER HIT RATIO
    LIBRARY HIT RATIO
    The purpose is to make a monthly report where these values to be given for 30 days..
    So I donot want to get those data from thirty AWR reports.
    Can you help me?
    Thanks in advance..
    Regards,
    Anjan

    Sorry Aman for late reply..
    Can you please provide me the sql query? I've tried, but cannot do that.
    Rgd,
    Anjan

Maybe you are looking for

  • Infrared receiver not working

    Can anyone suggest why the infrared facility on my MBP doesn't work? I have already made sure the disable remote control infrared receiver box in security prefs is unchecked and I have the message "This computer will work with any available remote".

  • Migration of Non-ASM DB to ASM

    Trying to Migrate data on ASM done all The steps But unable to copy redologs via RMAN done the following steps Shut immediate Startup nomount; RMAN> RESTORE CONTROLFILE FROM '/data/db/newdb/control01.ctl'; RMAN> Alter database MOUNT; RMAN> BACKUP AS

  • Error Code 85010014

    Please Help! More than 20 days ago I encountered  this error when I tried to sync my outlook.com calendar and contacts. My local Nokia Care reset the phone (NOKIA LUMIA 920) and 3 days later, the same error appeared, I do not want to go through the s

  • How many types pricing procedure in MM

    pls guide? means with taking tax included,excises, customs? accruvals and account key difference ? to this give same G/L acccount no's maintain in account determination?

  • Error when uploading; the file name is invalid, or the file is too big

    Hi, I have posted this topic also in this thread, but we are not getting any answer to this problem. Also, the existing discussion in this thread gives us no idea what to do. We get the a.m. message when using the "FILE-UPLOAD" UI element only for se