AWR setting

Hi All,
I'm having one database running on Solaris 10 and oracle version 10.2.0.1. I wants to change the AWR setting to 1 hr from EM but after setting the AWR interval to 1hr after some time I found again it has resetted to 10 min. But I did it for another database which is running on same platform and on same version there it has work. Can any body tell me how to change the ARW settings or what kind of privileges are required. I did it using sys user.

Hi ,
Some tips about the AWR..
SYS>alter system set "_swrf_mmon_flush" = true;
How to Modify the AWR SNAP SHOT SETTINGS:
=====================================
BEGIN
DBMS_WORKLOAD_REPOSITORY.modify_snapshot_settings(
retention => 43200, -- Minutes (= 30 Days). Current value retained if NULL.
interval => 30); -- Minutes. Current value retained if NULL.
END;
Creating the Baseline:
======================
BEGIN
DBMS_WORKLOAD_REPOSITORY.create_baseline (
start_snap_id => 10,
end_snap_id => 100,
baseline_name => 'AWR First baseline');
END;
Regards
Manas Guha

Similar Messages

  • Strange fc scsi_vhci timeouts during heavy disk activity

    After a recent hardware upgrade, I noticed strange timeouts while replicating a zfs pool under Solaris 11. They all look similar to:
    Mar 23 04:33:20 dl585 scsi: [ID 243001 kern.warning] WARNING: /scsi_vhci (scsi_vhci0):
    Mar 23 04:33:20 dl585 /scsi_vhci/disk@g2000001862b56107 (sd33): Command Timeout on path fp4/disk@w2200001862b56107,0
    I have played with setting various kernel parameters such as the following with no improvement.
    * sd_io_time
    * zfs_vdev_max_pending
    * sd_max_throttle
    Most of the changes were visible in iostat, but still caused the timeouts. I thought the timeouts only started yesterday, but I see from /var/adm/messages that they have been going back at least a week, showing up here and there. When this happens, the machine effectively freezes for up to a minute then the timeout clears and things start back up again.
    The following dtrace program (which I grabbed off the interweb; not sure from where) shows a retry when the machine stops, which corresponds to 100% busy of one or more disks for about 60 seconds.
    #!/usr/sbin/dtrace -s
    #pragma D option quiet
    dtrace:::BEGIN
         printf("Tracing... output every 10 seconds.\n");
    fbt::sd_set_retry_bp:entry
         @[xlate <devinfo_t *>(args[1])->dev_statname,
         xlate <devinfo_t *>(args[1])->dev_major,
         xlate <devinfo_t *>(args[1])->dev_minor] = count();
    tick-10sec
         printf("\n%Y:\n", walltimestamp);
         printf("%28s %-3s,%-4s %s\n", "DEVICE", "MAJ", "MIN", "RETRIES");
         printa("%28s %-03d,%-4d %@d\n", @);
         trunc(@);
    The machine is a HP DL585 G2 with 24GB of RAM. The i/o is fibre channel from 2x Qlogic 2342 dual port 2gb HBAs (4x 2gb ports). The HBAs feed a Silkworm 3200 and 3250, which in turn connect to two A5200 arrays each in split loop mode (8x 1gb loops). The arrays house 44 total disks roughly split between 15k and 10k spindles.
    I do not recall seeing this on a previous v40z server which was replaced three weeks ago with the DL585. It almost seems like the server is overwhelming the arrays but I cannot confirm why or how to stop it.
    Does anyone have any suggestions on how to fix this or how to troubleshoot it further?
    Thanks,
    Marty

    I know this is an old thread, but there is precious little information out there, so maybe this will help the next guy. After studying mode page settings, it seems that ARRE and AWRE set to one have reduced (but not eliminated) the timeouts. I have played with a LOT of settings. After globally setting the values as described below, the timeouts have been reduced. Prior to setting the values, the drives were a mixed bag of values.
    bash-4.1$ for d in /dev/rdsk/c0t2*d0; do sudo sdparm -S -s AWRE=1 $d; done
    bash-4.1$ for d in /dev/rdsk/c0t2*d0; do sudo sdparm -S -s ARRE=1 $d; done
    If anyone else knows of good ways to reduce these timeouts (on drives that otherwise appear OK), please speak up.
    Thanks,
    Marty

  • SYSAUX tablespace resize/shrink

    Hi All,
    I'm using 11g SE on Linux, and SYSAUX tablespace has grown too large (32Gb). I've reclaimed a space and the question is Is there any chance to resize this tablespace back to small size (let's say to 5Gb)?
    I'll appreciate any help.
    Thank you.

    Hi,
    Here it is an output. I've removed some stuff to fit the message limit.
    ~~~~~~~~~~~~~~~
    AWR INFO Report
    ~~~~~~~~~~~~~~~
    Report generated at 10:36:09 on May 29, 2013 ( Wednesday ) in Timezone +01:00                                
    Warning: Non Default AWR Setting!                                                                            
    Snapshot interval is 60 minutes and Retention is 8 days                                                      
           DB_ID DB_NAME   HOST_PLATFORM                             INST STARTUP_TIME      LAST_ASH_SID PAR     
    * 182010396  PROD      db01p2.db.mydomain.com - Linux x86 6     2 14:54:16 (03/26)             0 YES     
                           4-bit                                                                                 
    (I) AWR Snapshots Information
    (1a) SYSAUX usage - Schema breakdown (dba_segments)
    |                                                                                                            
    | Total SYSAUX size                      1,790.6 MB ( 5% of 32,768.0 MB MAX with AUTOEXTEND ON )             
    |                                                                                                            
    | Schema  SYS          occupies          1,245.0 MB (  69.5% )                                               
    | Schema  XDB          occupies            157.6 MB (   8.8% )                                               
    | Schema  PERFSTAT     occupies            151.8 MB (   8.5% )                                               
    | Schema  APEX_030200  occupies             77.4 MB (   4.3% )                                               
    | Schema  MDSYS        occupies             65.8 MB (   3.7% )                                               
    | Schema  SYSMAN       occupies             45.3 MB (   2.5% )                                               
    | Schema  SYSTEM       occupies             13.7 MB (   0.8% )                                               
    | Schema  ORDDATA      occupies             13.6 MB (   0.8% )                                               
    | Schema  OLAPSYS      occupies              5.1 MB (   0.3% )                                               
    | Schema  DBSNMP       occupies              4.1 MB (   0.2% )                                               
    | Schema  EXFSYS       occupies              3.6 MB (   0.2% )                                               
    | Schema  CTXSYS       occupies              3.6 MB (   0.2% )                                               
    | Schema  WMSYS        occupies              3.5 MB (   0.2% )                                               
    | Schema  ORDSYS       occupies              0.4 MB (   0.0% )                                               
    |                                                                                                            
    (1b) SYSAUX occupants space usage (v$sysaux_occupants)                                                       
    |                                                                                                            
    | Occupant Name        Schema Name               Space Usage                                                 
    | -------------------- -------------------- ----------------                                                 
    | SM/AWR               SYS                          888.0 MB                                                 
    | SM/OPTSTAT           SYS                          266.6 MB                                                 
    | XDB                  XDB                          157.6 MB                                                 
    | STATSPACK            PERFSTAT                     151.8 MB                                                 
    | SDO                  MDSYS                         65.8 MB                                                 
    | EM                   SYSMAN                        45.3 MB                                                 
    | AO                   SYS                           36.3 MB                                                 
    | XSOQHIST             SYS                           36.3 MB                                                 
    | ORDIM/ORDDATA        ORDDATA                       13.6 MB                                                 
    | LOGMNR               SYSTEM                        12.3 MB                                                 
    | SM/ADVISOR           SYS                           11.3 MB                                                 
    | JOB_SCHEDULER        SYS                            9.9 MB                                                 
    | SM/OTHER             SYS                            7.1 MB                                                 
    | XSAMD                OLAPSYS                        5.1 MB                                                 
    | EM_MONITORING_USER   DBSNMP                         4.1 MB                                                 
    | EXPRESSION_FILTER    EXFSYS                         3.6 MB                                                 
    | TEXT                 CTXSYS                         3.6 MB                                                 
    | WM                   WMSYS                          3.5 MB                                                 
    | SMON_SCN_TIME        SYS                            3.3 MB                                                 
    | SQL_MANAGEMENT_BASE  SYS                            1.7 MB                                                 
    | PL/SCOPE             SYS                            1.6 MB                                                 
    | LOGSTDBY             SYSTEM                         1.4 MB                                                 
    | STREAMS              SYS                            1.0 MB                                                 
    | ORDIM                ORDSYS                         0.4 MB                                                 
    | AUTO_TASK            SYS                            0.3 MB                                                 
    | AUDIT_TABLES         SYS                            0.0 MB                                                 
    | ORDIM/ORDPLUGINS     ORDPLUGINS                     0.0 MB                                                 
    | ORDIM/SI_INFORMTN_SC SI_INFORMTN_SCHEMA             0.0 MB                                                 
    | TSM                  TSMSYS                         0.0 MB                                                 
    | ULTRASEARCH          WKSYS                          0.0 MB                                                 
    | ULTRASEARCH_DEMO_USE WK_TEST                        0.0 MB                                                 
    |                                                                                                            
    | Others (Unaccounted space)                         59.4 MB                                                 
    |                                                                                                            
    (1c) SYSAUX usage - Unregistered Schemas
    | This section displays schemas that are not registered                                                      
    | in V$SYSAUX_OCCUPANTS                                                                                      
    |                                                                                                            
    | Schema  APEX_030200  occupies             77.4 MB                                                          
    |                                                                                                            
    | Total space                               77.4 MB                                                          
    |                                                                                                            
    (1d) SYSAUX usage - Unaccounted space in registered schemas
    |
    | This section displays unaccounted space in the registered
    | schemas of V$SYSAUX_OCCUPANTS.
    |                                                                                                            
    | Unaccounted space in SYS/SYSTEM          -18.1 MB                                                          
    |                                                                                                            
    | Total space                              -18.1 MB                                                          
    |                                                                                                            
    (2) Size estimates for AWR snapshots                                                                         
    |                                                                                                            
    | Estimates based on 60 mins snapshot INTERVAL:                                                              
    |    AWR size/day                           53.0 MB (2,262 K/snap * 24 snaps/day)                            
    |    AWR size/wk                           371.1 MB (size_per_day * 7) per instance                          
    |    AWR size/wk                         1,484.4 MB (size_per_day * 7) per database                          
    |                                                                                                            
    | Estimates based on 12 snaps in past 24 hours:                                                              
    |    AWR size/day                           26.5 MB (2,262 K/snap and 12 snaps in past 24 hours)             
    |    AWR size/wk                           185.6 MB (size_per_day * 7) per instance                          
    |    AWR size/wk                           742.2 MB (size_per_day * 7) per database                          
    |                                                                                                            
    (3a) Space usage by AWR components (per database)
    COMPONENT        MB  % AWR  KB_PER_SNAP MB_PER_DAY MB_PER_WEEK TABLE% : INDEX%                               
    FIXED         860.8   96.9        2,193       25.7       179.9    55% : 45%                                  
    SPACE          18.1    2.0           46        0.5         3.8    59% : 41%                                  
    EVENTS          3.5    0.4            9        0.1         0.7    50% : 50%                                  
    SQL             2.9    0.3            7        0.1         0.6    37% : 63%                                  
    ASH             1.5    0.2            4        0.0         0.3    50% : 50%                                  
    RAC             0.6    0.1            2        0.0         0.1    50% : 50%                                  
    SQLTEXT         0.1    0.0            0        0.0         0.0    50% : 50%                                  
    SQLPLAN         0.1    0.0            0        0.0         0.0    50% : 50%                                  
    SQLBIND         0.1    0.0            0        0.0         0.0    50% : 50%                                  
    (3b) Space usage within AWR Components (> 500K)
    COMPONENT        MB SEGMENT_NAME - % SPACE_USED                                           SEGMENT_TYPE       
    FIXED         336.0 WRH$_SYSMETRIC_HISTORY                                        -  12%  TABLE              
    FIXED         296.0 WRH$_SYSMETRIC_HISTORY_INDEX                                  -  18%  INDEX              
    FIXED          88.0 WRH$_SYSMETRIC_SUMMARY                                        -  10%  TABLE              
    FIXED          42.0 WRH$_SYSMETRIC_SUMMARY_INDEX                                  -  18%  INDEX              
    FIXED          24.0 WRH$_WAITCLASSMETRIC_HISTORY                                  -  21%  TABLE              
    FIXED          21.0 WRH$_WAITCLASSMETRIC_HIST_IND                                 -  17%  INDEX              
    FIXED          16.0 WRM$_SNAPSHOT_DETAILS_INDEX                                   -  80%  INDEX              
    FIXED          10.0 WRM$_SNAPSHOT_DETAILS                                         -  92%  TABLE              
    SPACE           0.9 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12506                     -  82%  TABLE PARTITION    
    SPACE           0.9 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12530                     -  84%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12458                     -  89%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12650                     -  88%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12626                     -  87%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12602                     -  86%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12578                     -  87%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12482                     -  89%  TABLE PARTITION    
    SPACE           0.8 WRH$_SEG_STAT.WRH$_SEG_ST_182010396_12554                     -  89%  TABLE PARTITION    
    SPACE           0.7 WRH$_SEG_STAT_OBJ                                             -  46%  TABLE              
    SPACE           0.6 WRH$_SEG_STAT_OBJ_INDEX                                       -  22%  INDEX              
    SPACE           0.6 WRH$_SEG_STAT_OBJ_PK                                          -  26%  INDEX              
    SPACE           0.5 WRH$_SEG_STAT_PK.WRH$_SEG_ST_182010396_12554                  -  63%  INDEX PARTITION    
    SPACE           0.5 WRH$_SEG_STAT_PK.WRH$_SEG_ST_182010396_12626                  -  51%  INDEX PARTITION    
    (4) Space usage by non-AWR components (> 500K)
    COMPONENT        MB SEGMENT_NAME                                                          SEGMENT_TYPE       
    NON_AWR       104.0 SYS.I_WRI$_OPTSTAT_H_OBJ#_ICOL#_ST                                    INDEX              
    NON_AWR        80.0 SYS.WRI$_OPTSTAT_HISTGRM_HISTORY                                      TABLE              
    NON_AWR        53.2 XDB.SYS_LOB0000057465C00025$$                                         LOBSEGMENT         
    NON_AWR        50.0 SYS.I_WRI$_OPTSTAT_H_ST                                               INDEX              
    NON_AWR        18.0 MDSYS.SYS_LOB0000064008C00006$$                                       LOBSEGMENT         
    NON_AWR        16.1 SYS.SYS_LOB0000065858C00004$$                                         LOBSEGMENT         
    NON_AWR        13.0 SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY                                     TABLE              
    NON_AWR         9.0 SYS.I_WRI$_OPTSTAT_HH_OBJ_ICOL_ST                                     INDEX              
    NON_AWR         8.0 XDB.XDB$RESOURCE                                                      TABLE              
    NON_AWR         7.2 SYS.SYS_LOB0000065843C00004$$                                         LOBSEGMENT         
    NON_AWR         7.0 MDSYS.SDO_CS_SRS                                                      TABLE              
    NON_AWR         5.0 SYS.SCHEDULER$_EVENT_LOG                                              TABLE              
    NON_AWR         5.0 APEX_030200.WWV_FLOW_DICTIONARY$CAPED                                 INDEX              
    NON_AWR         5.0 PERFSTAT.STATS$SQL_PLAN                                               TABLE              
    NON_AWR         5.0 PERFSTAT.STATS$SQL_PLAN_USAGE                                         TABLE              
    NON_AWR         5.0 PERFSTAT.STATS$SQLTEXT                                                TABLE              
    NON_AWR         5.0 APEX_030200.WWV_FLOW_PAGE_PLUGS                                       TABLE              
    NON_AWR         5.0 APEX_030200.WWV_FLOW_STEP_ITEMS                                       TABLE              
    NON_AWR         4.2 SYS.SYS_LOB0000065848C00004$$                                         LOBSEGMENT         
    NON_AWR         4.0 APEX_030200.WWV_FLOW_DICTIONARY$                                      TABLE              
    NON_AWR         4.0 SYSTEM.SYS_LOB0000001147C00009$$                                      LOBSEGMENT         
    NON_AWR         4.0 SYS.SCHEDULER$_INSTANCE_PK                                            INDEX              
    NON_AWR         4.0 SYS.I_WRI$_OPTSTAT_HH_ST                                              INDEX              
    NON_AWR         3.2 SYS.SYS_LOB0000065838C00004$$                                         LOBSEGMENT         
    NON_AWR         3.0 XDB.XDB$H_INDEX                                                       TABLE              
    (5a) AWR snapshots - last 50
    Total snapshots in DB 182010396 Instance 3 = 201                                                             
    Total snapshots in DB 182010396 Instance 2 = 201                                                             
          DBID    SNAP_ID  INST FLUSH_ELAPSED        ENDTM             STARTUP_TIME      STATUS ERRCNT           
    182010396      12678     2 +00000 00:00:00.1    08:00:41 (05/29)  14:54:16 (03/26)       0      0           
    182010396      12678     3 +00000 00:00:00.5    08:00:41 (05/29)  14:56:33 (03/26)       0      0           
    182010396      12679     2 +00000 00:00:00.1    09:00:59 (05/29)  14:54:16 (03/26)       0      0           
    182010396      12679     3 +00000 00:00:00.1    09:00:59 (05/29)  14:56:33 (03/26)       0      0           
    182010396      12680     2 +00000 00:00:00.9    10:00:10 (05/29)  14:54:16 (03/26)       0      0           
    182010396      12680     3 +00000 00:00:00.1    10:00:10 (05/29)  14:56:33 (03/26)       0      0           
    (5b) AWR snapshots with errors or invalid
    no rows selected
    (5c) AWR snapshots -- OLDEST Non-Baselined snapshots
          DBID  INST    SNAP_ID ENDTM             STATUS ERROR_COUNT                                             
    182010396     2      12480 02:00:25 (05/21)       0           0                                             
    (6) AWR Control Settings - interval, retention
           DBID  LSNAPID LSPLITID LSNAPTIME      LPURGETIME      FLAG INTERVAL          RETENTION         VRSN   
      182010396    12680    12671 05/29 10:00:11 05/29 01:13:59     2 +00000 01:00:00.0 +00008 00:00:00.0    5   
    (7a) AWR Contents - row counts for each snapshots
       SNAP_ID  INST        ASH        SQL      SQBND      FILES      SEGST     SYSEVT                           
         12656     2          0          0          0          0        104          0                           
         12679     2          0          0          0          0        107          0                           
       SNAP_ID  INST        ASH        SQL      SQBND      FILES      SEGST     SYSEVT                           
         12679     3          0          0          0          0        113          0                           
         12680     2          0          0          0          0        110          0                           
         12680     3          0          0          0          0        109          0                           
    (7b) AWR Contents - average row counts per snapshot
    SNAP_COUNT  INST        ASH    SQLSTAT    SQLBIND      FILES    SEGSTAT   SYSEVENT                           
           201     3          0          0          0          0     108.27          0                           
           201     2          0          0          0          0     109.23          0                           
    (7c) AWR total item counts - names, text, plans
       SQLTEXT    SQLPLAN   SQLBMETA     SEGOBJ   DATAFILE   TEMPFILE                                            
             0          0          0       2784          0          0                                            
    (II) Advisor Framework Info
    (1) Advisor Tasks - Last 50
    OWNER/ADVISOR  TASK_ID/NAME                     CREATED          EXE_DURATN EXE_CREATN HOW_C STATUS          
    SYS/SQL Tuning 1/SYS_AUTO_SQL_TUNING_TASK       09:52:13 (09/17)                       AUTO  INITIAL         
    SYS/Segment Ad 10161/SYS_AUTO_SPCADV_5215001005 00:15:52 (05/10)      2,925      2,925 CMD   COMPLETED       
                   2013                                                                                          
    SYS/Segment Ad 10162/SYS_AUTO_SPCADV_3804011005 01:04:38 (05/10)         50         50 CMD   COMPLETED       
    (2) Advisor Task - Oldest 5
    OWNER/ADVISOR  TASK_ID/NAME                     CREATED          EXE_DURATN EXE_CREATN HOW_C STATUS          
    SYS/Segment Ad 9980/SYS_AUTO_SPCADV_04002329042 23:00:04 (04/29)        426        427 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 9990/SYS_AUTO_SPCADV_16002330042 23:00:16 (04/30)      5,519      5,519 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 9991/SYS_AUTO_SPCADV_16320001052 00:32:17 (05/01)      2,831      2,831 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 9992/SYS_AUTO_SPCADV_29190101052 01:19:29 (05/01)         80         80 CMD   COMPLETED       
                   013                                                                                           
    SYS/Segment Ad 10000/SYS_AUTO_SPCADV_1300230105 23:00:13 (05/01)        445        445 CMD   COMPLETED       
                   2013                                                                                          
    (3) Advisor Tasks With Errors - Last 50
    OWNER/ADVISOR  TASK_ID/NAME                     CREATED          EXE_DURATN EXE_CREATN HOW_C STATUS          
    TASK_DESC                                                                                                    
    ERROR_MSG                                                                                                    
    SYS/SQL Tuning 1/SYS_AUTO_SQL_TUNING_TASK       09:52:13 (09/17)                       AUTO  INITIAL         
    Description: Automatic SQL Tuning Task                                                                       
    Error Msg  :                                                                                                 
    (III) ASH Usage Info
    (1a) ASH histogram (past 3 days)
    (1b) ASH histogram (past 1 day)
    (2a) ASH details (past 3 days)
    (2b) ASH details (past 1 day)
    (2c) ASH sessions (Fg Vs Bg) (past 1 day across all instances in RAC)
    Foreground %                                                                                                 
    Background %                                                                                                 
    MMNL %                                                                                                       
    End of Report

  • How to set the correct shared pool size and db_buffer_cache using awr

    Hi All,
    I want to how to set the correct size for shared_pool_size and db_cache_size using shared pool advisory and buffer pool advisory of awr report. I have paste the shared and buffer pool advisory of awr report.
    Shared Pool Advisory
    * SP: Shared Pool Est LC: Estimated Library Cache Factr: Factor
    * Note there is often a 1:Many correlation between a single logical object in the Library Cache, and the physical number of memory objects associated with it. Therefore comparing the number of Lib Cache objects (e.g. in v$librarycache), with the number of Lib Cache Memory Objects is invalid.
    Shared Pool Size(M)     SP Size Factr     Est LC Size (M)     Est LC Mem Obj     Est LC Time Saved (s)     Est LC Time Saved Factr     Est LC Load Time (s)     Est LC Load Time Factr     Est LC Mem Obj Hits (K)
    4,096     1.00     471     25,153     184,206     1.00     149     1.00     9,069
    4,736     1.16     511     27,328     184,206     1.00     149     1.00     9,766
    5,248     1.28     511     27,346     184,206     1.00     149     1.00     9,766
    5,760     1.41     511     27,346     184,206     1.00     149     1.00     9,766
    6,272     1.53     511     27,346     184,206     1.00     149     1.00     9,766
    6,784     1.66     511     27,346     184,206     1.00     149     1.00     9,766
    7,296     1.78     511     27,346     184,206     1.00     149     1.00     9,766
    7,808     1.91     511     27,346     184,206     1.00     149     1.00     9,766
    8,320     2.03     511     27,346     184,206     1.00     149     1.00     9,766
    Buffer Pool Advisory
    * Only rows with estimated physical reads >0 are displayed
    * ordered by Block Size, Buffers For Estimate
    P     Size for Est (M)     Size Factor     Buffers (thousands)     Est Phys Read Factor     Estimated Phys Reads (thousands)     Est Phys Read Time     Est %DBtime for Rds
    D     4,096     0.10     485     1.02     1,002     1     0.00
    D     8,192     0.20     970     1.00     987     1     0.00
    D     12,288     0.30     1,454     1.00     987     1     0.00
    D     16,384     0.40     1,939     1.00     987     1     0.00
    D     20,480     0.50     2,424     1.00     987     1     0.00
    D     24,576     0.60     2,909     1.00     987     1     0.00
    D     28,672     0.70     3,394     1.00     987     1     0.00
    D     32,768     0.80     3,878     1.00     987     1     0.00
    D     36,864     0.90     4,363     1.00     987     1     0.00
    D     40,960     1.00     4,848     1.00     987     1     0.00
    D     45,056     1.10     5,333     1.00     987     1     0.00
    D     49,152     1.20     5,818     1.00     987     1     0.00
    D     53,248     1.30     6,302     1.00     987     1     0.00
    D     57,344     1.40     6,787     1.00     987     1     0.00
    D     61,440     1.50     7,272     1.00     987     1     0.00
    D     65,536     1.60     7,757     1.00     987     1     0.00
    D     69,632     1.70     8,242     1.00     987     1     0.00
    D     73,728     1.80     8,726     1.00     987     1     0.00
    D     77,824     1.90     9,211     1.00     987     1     0.00
    D     81,920     2.00     9,696     1.00     987     1     0.00
    My shared pool size is 4gb and db_cache_size is 40Gb.
    Please help me in configuring the correct size for this.
    Thanks and Regards,

    Hi ,
    Actually batch load is taking too much time.
    Please find below the 1 hr awr report
         Snap Id     Snap Time     Sessions     Cursors/Session
    Begin Snap:     6557     27-Nov-11 16:00:06     126     1.3
    End Snap:     6558     27-Nov-11 17:00:17     130     1.6
    Elapsed:          60.17 (mins)          
    DB Time:          34.00 (mins)          
    Report Summary
    Cache Sizes
         Begin     End          
    Buffer Cache:     40,960M     40,960M     Std Block Size:     8K
    Shared Pool Size:     4,096M     4,096M     Log Buffer:     25,908K
    Load Profile
         Per Second     Per Transaction     Per Exec     Per Call
    DB Time(s):     0.6     1.4     0.00     0.07
    DB CPU(s):     0.5     1.2     0.00     0.06
    Redo size:     281,296.9     698,483.4          
    Logical reads:     20,545.6     51,016.4          
    Block changes:     1,879.5     4,667.0          
    Physical reads:     123.7     307.2          
    Physical writes:     66.4     164.8          
    User calls:     8.2     20.4          
    Parses:     309.4     768.4          
    Hard parses:     8.5     21.2          
    W/A MB processed:     1.7     4.3          
    Logons:     0.7     1.6          
    Executes:     1,235.9     3,068.7          
    Rollbacks:     0.0     0.0          
    Transactions:     0.4               
    Instance Efficiency Percentages (Target 100%)
    Buffer Nowait %:     100.00     Redo NoWait %:     100.00
    Buffer Hit %:     99.66     In-memory Sort %:     100.00
    Library Hit %:     99.19     Soft Parse %:     97.25
    Execute to Parse %:     74.96     Latch Hit %:     99.97
    Parse CPU to Parse Elapsd %:     92.41     % Non-Parse CPU:     98.65
    Shared Pool Statistics
         Begin     End
    Memory Usage %:     80.33     82.01
    % SQL with executions>1:     90.90     86.48
    % Memory for SQL w/exec>1:     90.10     86.89
    Top 5 Timed Foreground Events
    Event     Waits     Time(s)     Avg wait (ms)     % DB time     Wait Class
    DB CPU          1,789          87.72     
    db file sequential read     27,531     50     2     2.45     User I/O
    db file scattered read     26,322     30     1     1.47     User I/O
    row cache lock     1,798     20     11     0.96     Concurrency
    OJVM: Generic     36     15     421     0.74     Other
    Host CPU (CPUs: 24 Cores: 12 Sockets: )
    Load Average Begin     Load Average End     %User     %System     %WIO     %Idle
    0.58     1.50     2.8     0.7     0.1     96.6
    Instance CPU
    %Total CPU     %Busy CPU     %DB time waiting for CPU (Resource Manager)
    2.2     63.6     0.0
    Memory Statistics
         Begin     End
    Host Mem (MB):     131,072.0     131,072.0
    SGA use (MB):     50,971.4     50,971.4
    PGA use (MB):     545.5     1,066.3
    % Host Mem used for SGA+PGA:     39.30     39.70
    RAC Statistics
         Begin     End
    Number of Instances:     2     2
    Global Cache Load Profile
         Per Second     Per Transaction
    Global Cache blocks received:     3.09     7.68
    Global Cache blocks served:     1.86     4.62
    GCS/GES messages received:     78.64     195.27
    GCS/GES messages sent:     53.82     133.65
    DBWR Fusion writes:     0.52     1.30
    Estd Interconnect traffic (KB)     65.50     
    Global Cache Efficiency Percentages (Target local+remote 100%)
    Buffer access - local cache %:     99.65
    Buffer access - remote cache %:     0.02
    Buffer access - disk %:     0.34
    Global Cache and Enqueue Services - Workload Characteristics
    Avg global enqueue get time (ms):     0.0
    Avg global cache cr block receive time (ms):     1.7
    Avg global cache current block receive time (ms):     1.0
    Avg global cache cr block build time (ms):     0.0
    Avg global cache cr block send time (ms):     0.0
    Global cache log flushes for cr blocks served %:     1.4
    Avg global cache cr block flush time (ms):     0.9
    Avg global cache current block pin time (ms):     0.0
    Avg global cache current block send time (ms):     0.0
    Global cache log flushes for current blocks served %:     0.1
    Avg global cache current block flush time (ms):     0.0
    Global Cache and Enqueue Services - Messaging Statistics
    Avg message sent queue time (ms):     0.0
    Avg message sent queue time on ksxp (ms):     0.4
    Avg message received queue time (ms):     0.5
    Avg GCS message process time (ms):     0.0
    Avg GES message process time (ms):     0.0
    % of direct sent messages:     79.13
    % of indirect sent messages:     17.10
    % of flow controlled messages:     3.77
    Cluster Interconnect
         Begin      End
    Interface     IP Address     Pub     Source     IP     Pub     Src
    en9     10.51.10.61     N     Oracle Cluster Repository               
    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
    More RAC Statistics
    * RAC Report Summary
    * Global Messaging Statistics
    * Global CR Served Stats
    * Global CURRENT Served Stats
    * Global Cache Transfer Stats
    * Interconnect Stats
    * Dynamic Remastering Statistics
    Back to Top
    Statistic Name     Time (s)     % of DB Time
    sql execute elapsed time     1,925.20     94.38
    DB CPU     1,789.38     87.72
    connection management call elapsed time     99.65     4.89
    PL/SQL execution elapsed time     89.81     4.40
    parse time elapsed     46.32     2.27
    hard parse elapsed time     25.01     1.23
    Java execution elapsed time     21.24     1.04
    PL/SQL compilation elapsed time     11.92     0.58
    failed parse elapsed time     9.37     0.46
    hard parse (sharing criteria) elapsed time     8.71     0.43
    sequence load elapsed time     0.06     0.00
    repeated bind elapsed time     0.02     0.00
    hard parse (bind mismatch) elapsed time     0.01     0.00
    DB time     2,039.77     
    background elapsed time     122.00     
    background cpu time     113.42     
    Statistic     Value     End Value
    NUM_LCPUS     0     
    NUM_VCPUS     0     
    AVG_BUSY_TIME     12,339     
    AVG_IDLE_TIME     348,838     
    AVG_IOWAIT_TIME     221     
    AVG_SYS_TIME     2,274     
    AVG_USER_TIME     9,944     
    BUSY_TIME     299,090     
    IDLE_TIME     8,375,051     
    IOWAIT_TIME     6,820     
    SYS_TIME     57,512     
    USER_TIME     241,578     
    LOAD     1     2
    OS_CPU_WAIT_TIME     312,200     
    PHYSICAL_MEMORY_BYTES     137,438,953,472     
    NUM_CPUS     24     
    NUM_CPU_CORES     12     
    GLOBAL_RECEIVE_SIZE_MAX     1,310,720     
    GLOBAL_SEND_SIZE_MAX     1,310,720     
    TCP_RECEIVE_SIZE_DEFAULT     16,384     
    TCP_RECEIVE_SIZE_MAX     9,223,372,036,854,775,807     
    TCP_RECEIVE_SIZE_MIN     4,096     
    TCP_SEND_SIZE_DEFAULT     16,384     
    TCP_SEND_SIZE_MAX     9,223,372,036,854,775,807     
    TCP_SEND_SIZE_MIN     4,096     
    Back to Wait Events Statistics
    Back to Top
    Operating System Statistics - Detail
    Snap Time     Load     %busy     %user     %sys     %idle     %iowait
    27-Nov 16:00:06     0.58                         
    27-Nov 17:00:17     1.50     3.45     2.79     0.66     96.55     0.08
    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 95.7% of Total DB time 2,039.77 (s)
    * Total FG Wait Time: 163.14 (s) DB CPU time: 1,789.38 (s)
    Wait Class     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     %DB time
    DB CPU               1,789          87.72
    User I/O     61,229     0     92     1     4.49
    Other     102,743     40     31     0     1.50
    Concurrency     3,169     10     24     7     1.16
    Cluster     58,920     0     11     0     0.52
    System I/O     45,407     0     6     0     0.29
    Configuration     107     7     1     5     0.03
    Commit     383     0     0     1     0.01
    Network     15,275     0     0     0     0.00
    Application     52     8     0     0     0.00
    Back to Wait Events Statistics
    Back to Top
    Foreground Wait Events
    * s - second, ms - millisecond - 1000th of a second
    * Only events with Total Wait Time (s) >= .001 are shown
    * ordered by wait time desc, waits desc (idle events last)
    * %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
    Event     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn     % DB time
    db file sequential read     27,531     0     50     2     18.93     2.45
    db file scattered read     26,322     0     30     1     18.10     1.47
    row cache lock     1,798     0     20     11     1.24     0.96
    OJVM: Generic     36     42     15     421     0.02     0.74
    db file parallel read     394     0     7     19     0.27     0.36
    control file sequential read     22,248     0     6     0     15.30     0.28
    reliable message     4,439     0     4     1     3.05     0.18
    gc current grant busy     7,597     0     3     0     5.22     0.16
    PX Deq: Slave Session Stats     2,661     0     3     1     1.83     0.16
    DFS lock handle     3,208     0     3     1     2.21     0.16
    direct path write temp     4,842     0     3     1     3.33     0.15
    library cache load lock     39     0     3     72     0.03     0.14
    gc cr multi block request     37,008     0     3     0     25.45     0.14
    IPC send completion sync     5,451     0     2     0     3.75     0.10
    gc cr block 2-way     4,669     0     2     0     3.21     0.09
    enq: PS - contention     3,183     33     1     0     2.19     0.06
    gc cr grant 2-way     5,151     0     1     0     3.54     0.06
    direct path read temp     1,722     0     1     1     1.18     0.05
    gc current block 2-way     1,807     0     1     0     1.24     0.03
    os thread startup     6     0     1     108     0.00     0.03
    name-service call wait     12     0     1     47     0.01     0.03
    PX Deq: Signal ACK RSG     2,046     50     0     0     1.41     0.02
    log file switch completion     3     0     0     149     0.00     0.02
    rdbms ipc reply     3,610     0     0     0     2.48     0.02
    gc current grant 2-way     1,432     0     0     0     0.98     0.02
    library cache pin     903     32     0     0     0.62     0.02
    PX Deq: reap credit     35,815     100     0     0     24.63     0.01
    log file sync     383     0     0     1     0.26     0.01
    Disk file operations I/O     405     0     0     0     0.28     0.01
    library cache lock     418     3     0     0     0.29     0.01
    kfk: async disk IO     23,159     0     0     0     15.93     0.01
    gc current block busy     4     0     0     35     0.00     0.01
    gc current multi block request     1,206     0     0     0     0.83     0.01
    ges message buffer allocation     38,526     0     0     0     26.50     0.00
    enq: FB - contention     131     0     0     0     0.09     0.00
    undo segment extension     8     100     0     6     0.01     0.00
    CSS initialization     8     0     0     6     0.01     0.00
    SQL*Net message to client     14,600     0     0     0     10.04     0.00
    enq: HW - contention     96     0     0     0     0.07     0.00
    CSS operation: action     8     0     0     4     0.01     0.00
    gc cr block busy     33     0     0     1     0.02     0.00
    latch free     30     0     0     1     0.02     0.00
    enq: TM - contention     49     6     0     0     0.03     0.00
    enq: JQ - contention     19     100     0     1     0.01     0.00
    SQL*Net more data to client     666     0     0     0     0.46     0.00
    asynch descriptor resize     3,179     100     0     0     2.19     0.00
    latch: shared pool     3     0     0     3     0.00     0.00
    CSS operation: query     24     0     0     0     0.02     0.00
    PX Deq: Signal ACK EXT     72     0     0     0     0.05     0.00
    KJC: Wait for msg sends to complete     269     0     0     0     0.19     0.00
    latch: object queue header operation     4     0     0     1     0.00     0.00
    gc cr block congested     5     0     0     0     0.00     0.00
    utl_file I/O     11     0     0     0     0.01     0.00
    enq: TO - contention     3     33     0     0     0.00     0.00
    SQL*Net message from client     14,600     0     219,478     15033     10.04     
    jobq slave wait     7,726     100     3,856     499     5.31     
    PX Deq: Execution Msg     10,556     19     50     5     7.26     
    PX Deq: Execute Reply     2,946     31     27     9     2.03     
    PX Deq: Parse Reply     3,157     35     3     1     2.17     
    PX Deq: Join ACK     2,976     28     2     1     2.05     
    PX Deq Credit: send blkd     7     14     0     4     0.00     
    Back to Wait Events Statistics
    Back to Top
    Background Wait Events
    * ordered by wait time desc, waits desc (idle events last)
    * Only events with Total Wait Time (s) >= .001 are shown
    * %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
    Event     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn     % bg time
    os thread startup     140     0     13     90     0.10     10.35
    db file parallel write     8,233     0     6     1     5.66     5.08
    log file parallel write     3,906     0     6     1     2.69     4.62
    log file sequential read     350     0     5     16     0.24     4.49
    control file sequential read     13,737     0     5     0     9.45     3.72
    DFS lock handle     2,990     27     2     1     2.06     1.43
    db file sequential read     921     0     2     2     0.63     1.39
    SQL*Net break/reset to client     18     0     1     81     0.01     1.19
    control file parallel write     2,455     0     1     1     1.69     1.12
    ges lms sync during dynamic remastering and reconfig     24     100     1     50     0.02     0.98
    library cache load lock     35     0     1     24     0.02     0.68
    ASM file metadata operation     3,483     0     1     0     2.40     0.65
    enq: CO - master slave det     1,203     100     1     0     0.83     0.46
    kjbdrmcvtq lmon drm quiesce: ping completion     9     0     1     62     0.01     0.46
    enq: WF - contention     11     0     0     35     0.01     0.31
    CGS wait for IPC msg     32,702     100     0     0     22.49     0.19
    gc object scan     28,788     100     0     0     19.80     0.15
    row cache lock     535     0     0     0     0.37     0.14
    library cache pin     370     55     0     0     0.25     0.12
    ksxr poll remote instances     19,119     100     0     0     13.15     0.11
    name-service call wait     6     0     0     19     0.00     0.10
    gc current block 2-way     304     0     0     0     0.21     0.09
    gc cr block 2-way     267     0     0     0     0.18     0.08
    gc cr grant 2-way     355     0     0     0     0.24     0.08
    ges LMON to get to FTDONE     3     100     0     24     0.00     0.06
    enq: CF - contention     145     76     0     0     0.10     0.05
    PX Deq: reap credit     8,842     100     0     0     6.08     0.05
    reliable message     126     0     0     0     0.09     0.05
    db file scattered read     19     0     0     3     0.01     0.05
    library cache lock     162     1     0     0     0.11     0.04
    latch: shared pool     2     0     0     27     0.00     0.04
    Disk file operations I/O     504     0     0     0     0.35     0.04
    gc current grant busy     148     0     0     0     0.10     0.04
    gcs log flush sync     84     0     0     1     0.06     0.04
    ges message buffer allocation     24,934     0     0     0     17.15     0.02
    enq: CR - block range reuse ckpt     83     0     0     0     0.06     0.02
    latch free     22     0     0     1     0.02     0.02
    CSS operation: action     13     0     0     2     0.01     0.02
    CSS initialization     4     0     0     6     0.00     0.02
    direct path read     1     0     0     21     0.00     0.02
    rdbms ipc reply     153     0     0     0     0.11     0.01
    db file parallel read     2     0     0     8     0.00     0.01
    direct path write     5     0     0     3     0.00     0.01
    gc current multi block request     49     0     0     0     0.03     0.01
    gc current block busy     5     0     0     2     0.00     0.01
    enq: PS - contention     24     50     0     0     0.02     0.01
    gc cr multi block request     54     0     0     0     0.04     0.01
    ges generic event     1     100     0     10     0.00     0.01
    gc current grant 2-way     35     0     0     0     0.02     0.01
    kfk: async disk IO     183     0     0     0     0.13     0.01
    Log archive I/O     3     0     0     2     0.00     0.01
    gc buffer busy acquire     2     0     0     3     0.00     0.00
    LGWR wait for redo copy     123     0     0     0     0.08     0.00
    IPC send completion sync     18     0     0     0     0.01     0.00
    enq: TA - contention     11     0     0     0     0.01     0.00
    read by other session     2     0     0     2     0.00     0.00
    enq: TM - contention     9     89     0     0     0.01     0.00
    latch: ges resource hash list     135     0     0     0     0.09     0.00
    PX Deq: Slave Session Stats     12     0     0     0     0.01     0.00
    KJC: Wait for msg sends to complete     89     0     0     0     0.06     0.00
    enq: TD - KTF dump entries     8     0     0     0     0.01     0.00
    enq: US - contention     7     0     0     0     0.00     0.00
    CSS operation: query     12     0     0     0     0.01     0.00
    enq: TK - Auto Task Serialization     6     100     0     0     0.00     0.00
    PX Deq: Signal ACK RSG     24     50     0     0     0.02     0.00
    log file single write     6     0     0     0     0.00     0.00
    enq: WL - contention     2     100     0     1     0.00     0.00
    ADR block file read     13     0     0     0     0.01     0.00
    ADR block file write     5     0     0     0     0.00     0.00
    latch: object queue header operation     1     0     0     1     0.00     0.00
    gc cr block busy     1     0     0     1     0.00     0.00
    rdbms ipc message     103,276     67     126,259     1223     71.03     
    PX Idle Wait     6,467     67     12,719     1967     4.45     
    wait for unread message on broadcast channel     7,240     100     7,221     997     4.98     
    gcs remote message     218,809     84     7,213     33     150.49     
    DIAG idle wait     203,228     95     7,185     35     139.77     
    shared server idle wait     121     100     3,630     30000     0.08     
    ASM background timer     3,343     0     3,611     1080     2.30     
    Space Manager: slave idle wait     723     100     3,610     4993     0.50     
    heartbeat monitor sleep     722     100     3,610     5000     0.50     
    ges remote message     73,089     52     3,609     49     50.27     
    dispatcher timer     66     88     3,608     54660     0.05     
    pmon timer     1,474     82     3,607     2447     1.01     
    PING     1,487     19     3,607     2426     1.02     
    Streams AQ: qmn slave idle wait     125     0     3,594     28754     0.09     
    Streams AQ: qmn coordinator idle wait     250     50     3,594     14377     0.17     
    smon timer     18     50     3,505     194740     0.01     
    JOX Jit Process Sleep     73     100     976     13370     0.05     
    class slave wait     56     0     605     10806     0.04     
    KSV master wait     2,215     98     1     0     1.52     
    SQL*Net message from client     109     0     0     2     0.07     
    PX Deq: Parse Reply     27     44     0     1     0.02     
    PX Deq: Join ACK     30     40     0     1     0.02     
    PX Deq: Execute Reply     20     30     0     0     0.01     
    Streams AQ: RAC qmn coordinator idle wait     259     100     0     0     0.18     
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram
    * Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
    * % of Waits: value of .0 indicates value was <.05%; value of null is truly 0
    * % of Waits: column heading of <=1s is truly <1024ms, >1s is truly >=1024ms
    * Ordered by Event (idle events last)
              % of Waits
    Event     Total Waits     <1ms     <2ms     <4ms     <8ms     <16ms     <32ms     <=1s     >1s
    ADR block file read     13     100.0                                   
    ADR block file write     5     100.0                                   
    ADR file lock     6     100.0                                   
    ARCH wait for archivelog lock     3     100.0                                   
    ASM file metadata operation     3483     99.6     .1     .1                    .2     
    CGS wait for IPC msg     32.7K     100.0                                   
    CSS initialization     12     50.0                    50.0               
    CSS operation: action     21     28.6     9.5          61.9                    
    CSS operation: query     36     86.1     5.6     8.3                         
    DFS lock handle     6198     98.6     1.2     .1                    .1     
    Disk file operations I/O     909     95.7     3.6     .7                         
    IPC send completion sync     5469     99.9     .1     .0     .0                    
    KJC: Wait for msg sends to complete     313     100.0                                   
    LGWR wait for redo copy     122     100.0                                   
    Log archive I/O     3     66.7               33.3                    
    OJVM: Generic     36     55.6                              44.4     
    PX Deq: Signal ACK EXT     72     98.6     1.4                              
    PX Deq: Signal ACK RSG     2070     99.7               .0     .1     .0     .1     
    PX Deq: Slave Session Stats     2673     99.7     .2                         .1     .0
    PX Deq: reap credit     44.7K     100.0                                   
    SQL*Net break/reset to client     20     95.0                                   5.0
    SQL*Net message to client     14.7K     100.0                                   
    SQL*Net more data from client     32     100.0                                   
    SQL*Net more data to client     689     100.0                                   
    asynch descriptor resize     3387     100.0                                   
    buffer busy waits     2     100.0                                   
    control file parallel write     2455     96.6     2.2     .6     .6          .1          
    control file sequential read     36K     99.4     .3     .1     .1     .1     .1     .0     
    db file parallel read     397     8.8     .8     5.5     12.6     17.4     46.3     8.6     
    db file parallel write     8233     85.4     10.3     2.3     1.4     .4     .1          
    db file scattered read     26.3K     79.2     1.5     8.2     10.5     .6     .1     .0     
    db file sequential read     28.4K     60.2     3.3     18.0     18.1     .3     .1     .0     
    db file single write     2     100.0                                   
    direct path read     2     50.0                         50.0          
    direct path read temp     1722     95.8     2.8     .1     .5     .8     .1          
    direct path write     6     83.3                    16.7               
    direct path write temp     4842     96.3     2.7     .5     .2     .0     .0     .2     
    enq: AF - task serialization     1     100.0                                   
    enq: CF - contention     145     99.3     .7                              
    enq: CO - master slave det     1203     98.9     .8     .2                         
    enq: CR - block range reuse ckpt     83     100.0                                   
    enq: DR - contention     2     100.0                                   
    enq: FB - contention     131     100.0                                   
    enq: HW - contention     97     100.0                                   
    enq: JQ - contention     19     89.5     10.5                              
    enq: JS - job run lock - synchronize     3     100.0                                   
    enq: MD - contention     1     100.0                                   
    enq: MW - contention     2     100.0                                   
    enq: PS - contention     3207     99.5     .4     .1                         
    enq: TA - contention     11     100.0                                   
    enq: TD - KTF dump entries     8     100.0                                   
    enq: TK - Auto Task Serialization     6     100.0                                   
    enq: TM - contention     58     100.0                                   
    enq: TO - contention     3     100.0                                   
    enq: TQ - DDL contention     1     100.0                                   
    enq: TS - contention     1     100.0                                   
    enq: UL - contention     1     100.0                                   
    enq: US - contention     7     100.0                                   
    enq: WF - contention     11     81.8                              18.2     
    enq: WL - contention     2     50.0     50.0                              
    gc buffer busy acquire     2     50.0               50.0                    
    gc cr block 2-way     4934     99.9     .1                    .0     .0     
    gc cr block busy     35     68.6     31.4                              
    gc cr block congested     6     100.0                                   
    gc cr disk read     2     100.0                                   
    gc cr grant 2-way     4824     100.0     .0                              
    gc cr grant congested     2     100.0                                   
    gc cr multi block request     37.1K     99.8     .2     .0     .0     .0     .0     .0     
    gc current block 2-way     2134     99.9     .0                         .0     
    gc current block busy     7     14.3     14.3          14.3          28.6     28.6     
    gc current block congested     2     100.0                                   
    gc current grant 2-way     1337     99.9     .1                              
    gc current grant busy     7123     99.2     .2     .2     .0     .0     .3     .1     
    gc current grant congested     2     100.0                                   
    gc current multi block request     1260     99.8     .2                              
    gc object scan     28.8K     100.0                                   
    gcs log flush sync     65     95.4          3.1     1.5                    
    ges LMON to get to FTDONE     3                              100.0          
    ges generic event     1                         100.0               
    ges inquiry response     2     100.0                                   
    ges lms sync during dynamic remastering and reconfig     24                         16.7     29.2     54.2     
    ges message buffer allocation     63.1K     100.0                                   
    kfk: async disk IO     23.3K     100.0     .0     .0                         
    kjbdrmcvtq lmon drm quiesce: ping completion     9     11.1                              88.9     
    ksxr poll remote instances     19.1K     100.0                                   
    latch free     52     59.6     40.4                              
    latch: call allocation     2     100.0                                   
    latch: gc element     1     100.0                                   
    latch: gcs resource hash     1     100.0                                   
    latch: ges resource hash list     135     100.0                                   
    latch: object queue header operation     5     40.0     40.0     20.0                         
    latch: shared pool     5     40.0                    20.0     20.0     20.0     
    library cache load lock     74     9.5     5.4     8.1     17.6     10.8     13.5     35.1     
    library cache lock     493     99.2     .4     .4                         
    library cache pin     1186     98.4     .3     1.2     .1                    
    library cache: mutex X     6     100.0                                   
    log file parallel write     3897     72.9     1.5     17.1     7.5     .6     .3     .1     
    log file sequential read     350     4.6               3.1     59.4     30.0     2.9     
    log file single write     6     100.0                                   
    log file switch completion     3                         33.3          66.7     
    log file sync     385     90.4     3.6     4.7     .8     .5               
    name-service call wait     18          5.6     5.6     5.6     16.7     44.4     22.2     
    os thread startup     146                                   100.0     
    rdbms ipc reply     3763     99.7     .3                              
    read by other session     2     50.0          50.0                         
    reliable message     4565     99.7     .2     .0               .0     .1     
    row cache lock     2334     99.3     .2     .1                    .1     .3
    undo segment extension     8     50.0                    37.5     12.5          
    utl_file I/O     11     100.0                                   
    ASM background timer     3343     57.0     .3     .1     .1     .1          21.1     21.4
    DIAG idle wait     203.2K     3.4     .2     .4     18.0     41.4     14.8     21.8     
    JOX Jit Process Sleep     73                                   2.7     97.3
    KSV master wait     2213     99.4     .1     .2                    .3     
    PING     1487     81.0                                   19.0
    PX Deq Credit: send blkd     7     57.1          14.3     14.3          14.3          
    PX Deq: Execute Reply     2966     59.8     .8     9.5     5.6     10.2     2.6     11.4     
    PX Deq: Execution Msg     10.6K     72.4     12.1     2.6     2.5     .1     5.6     4.6     .0
    PX Deq: Join ACK     3006     77.9     22.1     .1                         
    PX Deq: Parse Reply     3184     67.1     31.1     1.6     .2                    
    PX Idle Wait     6466     .2     8.7     4.3     4.8     .3     .1     5.0     76.6
    SQL*Net message from client     14.7K     72.4     2.8     .8     .5     .9     .4     2.8     19.3
    Space Manager: slave idle wait     722                                        100.0
    Streams AQ: RAC qmn coordinator idle wait     259     100.0                                   
    Streams AQ: qmn coordinator idle wait     250     50.0                                   50.0
    Streams AQ: qmn slave idle wait     125                                        100.0
    class slave wait     55     67.3          7.3     1.8     5.5     1.8     7.3     9.1
    dispatcher timer     66     6.1                                   93.9
    gcs remote message     218.6K     7.7     1.8     1.2     1.6     1.7     15.7     70.3     
    ges remote message     72.9K     29.7     5.1     2.7     2.2     1.5     4.0     54.7     
    heartbeat monitor sleep     722                                        100.0
    jobq slave wait     7725                    .1          .0     99.9     
    pmon timer     1474     18.4                                   81.6
    rdbms ipc message     103.3K     20.7     2.7     1.5     1.3     .9     .7     40.7     31.6
    shared server idle wait     121                                        100.0
    smon timer     18                                        100.0
    wait for unread message on broadcast channel     7238                         .3          99.7     
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram Detail (64 msec to 2 sec)
    * Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
    * Units for % of Total Waits: ms is milliseconds s is 1024 milliseconds (approximately 1 second)
    * % of Total Waits: total waits for all wait classes, including Idle
    * % of Total Waits: value of .0 indicates value was <.05%; value of null is truly 0
    * Ordered by Event (only non-idle events are displayed)
              % of Total Waits
    Event     Waits 64ms to 2s     <32ms     <64ms     <1/8s     <1/4s     <1/2s     <1s     <2s     >=2s
    ASM file metadata operation     6     99.8          .1     .1                    
    DFS lock handle     6     99.9               .1     .0               
    OJVM: Generic     16     55.6               2.8          41.7          
    PX Deq: Signal ACK RSG     3     99.9     .0     .1                         
    PX Deq: Slave Session Stats     3     99.9          .0               .0     .0     
    SQL*Net break/reset to client     1     95.0                              5.0     
    control file sequential read     1     100.0          .0                         
    db file parallel read     34     91.4     8.6                              
    db file scattered read     4     100.0     .0          .0                    
    db file sequential read     6     100.0     .0     .0     .0                    
    direct path write temp     11     99.8     .1     .1     .0                    
    enq: WF - contention     2     81.8               18.2                    
    gc cr block 2-way     1     100.0          .0                         
    gc cr multi block request     1     100.0          .0                         
    gc current block 2-way     1     100.0     .0                              
    gc current block busy     2     71.4     28.6                              
    gc current grant busy     8     99.9     .0     .1                         
    ges lms sync during dynamic remastering and reconfig     13     45.8     20.8     33.3                         
    kjbdrmcvtq lmon drm quiesce: ping completion     8     11.1     11.1     77.8                         
    latch: shared pool     1     80.0     20.0                              
    library cache load lock     26     64.9     14.9     12.2     4.1     4.1               
    log file parallel write     2     99.9     .0               .0               
    log file sequential read     10     97.1     2.0     .6     .3                    
    log file switch completion     2     33.3               66.7                    
    name-service call wait     4     77.8          22.2                         
    os thread startup     146               100.0                         
    reliable message     4     99.9          .0               .1          
    row cache lock     2     99.7                    .0     .0          .3
    Back to Wait Events Statistics
    Back to Top
    Wait Event Histogram Detail (4 sec to 2 min)
    * Units for Total Waits column: K is 1000, M is 1000000, G is 1000000000
    * Units for % of Total Waits: s is 1024 milliseconds (approximately 1 second) m is 64*1024 milliseconds (approximately 67 seconds or 1.1 minutes)
    * % of Total Waits: total waits for all wait classes, including Idle
    * % of Total Waits: value of .0 indicates value was <.05%; value of null is truly 0
    * Ordered by Event (only non-idle events are displayed)
              % of Total Waits
    Event     Waits 4s to 2m     <2s     <4s     <8s     <16s     <32s     < 1m     < 2m     >=2m
    row cache lock     6     99.7     .3                              
    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
    * ordered by DB Time
    Service Name     DB Time (s)     DB CPU (s)     Physical Reads (K)     Logical Reads (K)
    ubshost     1,934     1,744     445     73,633
    SYS$USERS     105     45     1     404
    SYS$BACKGROUND     0     0     1     128
    ubshostXDB     0     0     0     0
    Back to Wait Events Statistics
    Back to Top
    Service Wait Class Stats
    * Wait Class info for services in the Service Statistics section.
    * Total Waits and Time Waited displayed for the following wait classes: User I/O, Concurrency, Administrative, Network
    * Time Waited (Wt Time) in seconds
    Service Name     User I/O Total Wts     User I/O Wt Time     Concurcy Total Wts     Concurcy Wt Time     Admin Total Wts     Admin Wt Time     Network Total Wts     Network Wt Time
    ubshost      60232     90     2644     4     0     0     13302     0
    SYS$USERS      997     2     525     19     0     0     1973     0
    SYS$BACKGROUND      1456     2     1258     14     0     0     0     0
    I am not able to paste the whole awr report. I have paste some of the sections of awr report.
    Please help.
    Thanks and Regards,

  • Can I have automatic e-mail setting for ADDM and AWR reports??

    Can I have Automatic e-mail settings for all my AWR and ADDM reports so I don;t have to run the reports all the time but they can be sent over to my mailbox and I can review them, if at all I can do that then can I bound them to a particular time frame where I can recieve only those reports durin the peak usage of my database.
    thanks

    Hi Rohan,
    Can I have Automatic e-mail settings for all my AWR and ADDM reports so I don;t have to run the reports all the time but they can be sent over to my mailbox and I can review them,You bet! I do it for all of my databases:
    1 - Use a cron (or preferably dbms_scheduler) to schedule the awrrpt.sql execution, directing the report to a fixed file location (e.g. /tmp).
    2 - As step 2 from the scheduled task, direct the report as input to sendmail:
    For Windows:
    http://www.dba-oracle.com/t_e_mail_interface_windows.htm
    For Linux:
    http://www.dba-oracle.com/t_email_mailing_messages_plsql.htm
    For complete details of job scheduling, see Dr. Hall's book "Oracle Job Scheduling":
    http://www.rampant-books.com/book_2005_1_scheduling.htm
    Hope this helps. . . .
    Donald K. Burleson
    Oracle Press author

  • 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

  • Awr questions

    Hi,
    I have some questions related to AWR:
    1) In AWR there is a section on "SQL ordered by Sharable Memory" . I am not clear what is the meaning of sqls ordered by sharable memory? and and how that information could be used for a tuning oppertunity?
    2) in the SQL Statistics section of AWR, several sqls are listed under each group (e.g. for sqls ordered by elapsed time, ordered by cpu time etc). Is there a rule that how many sqls will be listed there? I mean say under teh sqls ordered by elapse time category how many sql statements will be listed? In one AWR report I found 16 statements under this category. Now in same AWR report, under "SQL ordered by Reads" category I found 10 statements listed (not 16). So what is the rule? How many statements will be listed by Oracle in the AWR for each of the category?
    3) Under "instance activity" section lots of stats are given. Are these stats cumulative since the database startup or they are for the snapshot period for which the AWR report is taken? -I think that the stats should be for the snapshot period, not cumulative but want to confirm if my understanding is correct.
    Thanks

    What i belive about the query tuning i always start from using Bind Variables.
    But if your query is very resource intensive try writing the query in some other manner .
    Is your query is using view also if yes check the view if it is meargable or non mergable.
    Try to investigate your execution plan for the query and. tune it.
    As far as a full table scan is concerned it depends on the selectivity part of your sql query
    if the sql is returning high numbers of rows then . it is optimal way to do the operation by
    a full table scan.
    the best way to tune your sql is to generate the plan output from the trace file of the session
    by using the tkprof utility.
    sql> alter session set sql_trace=true;
    sql>------------do your work...
    sql> alter session set sql_trace=false;
    then a trace file will be generated in to your udump folder...
    which can be analysed for getting the sql execution plan which oracle used
    to solve the result.....
    Try it if you find some difficulty let me know...
    i will help you.
    Bi Tc

  • Can't find latest snapshot while generating AWR in RAC

    Hello,
    we take snapshot every 20 minutes. In RAC (10.2.0.4), instance 2, run query,
    SELECT snap_id, begin_interval_time, end_interval_time
    FROM dba_hist_snapshot
    ORDER BY 1
    3391 26-AUG-10 09.00.14.425 AM
    26-AUG-10 09.20.05.485 AM
    3392 26-AUG-10 09.20.05.485 AM
    26-AUG-10 09.41.02.558 AM
    try to run AWR by using latest snapshot.
    @$ORACLE_HOME/rdbms/admin/awrrpt.sql
    Current Instance
    ~~~~~~~~~~~~~~~~
    DB Id DB Name Inst Num Instance
    2562639660 xxxx1 2 xxxx2
    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: html
    Type Specified: html
    Instances in this Workload Repository schema
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    DB Id Inst Num DB Name Instance Host
    * 2562639660 2 xxx xxx2 xxx2
    2562639660 1 xxx xxxx1 xxx1
    Using 2562639660 for database Id
    Using 2 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:
    Instance DB Name Snap Id Snap Started Level
    xxx2 xxx1 2836 18 Aug 2010 16:17 1
    3179 23 Aug 2010 10:40 1
    3180 23 Aug 2010 10:57 1
    3182 23 Aug 2010 11:35 1
    3187 23 Aug 2010 13:15 1
    Specify the Begin and End Snapshot Ids
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Enter value for begin_snap: 3182
    Begin Snapshot Id specified: 3182
    Enter value for end_snap: 3187 ---the latest 'valid' snapid is 3187 not 3391???
    Report written to test1
    ---check
    select snap_id, DBID, instance_number,SNAP_LEVEL, ERROR_COUNT from dba_hist_snapshot where snap_id = 3187;
    SNAP_ID DBID INSTANCE_NUMBER SNAP_LEVEL ERROR_COUNT
    3187 2562639660 1 1 0
    3187 2562639660 2 1 0
    select snap_id, DBID, instance_number,SNAP_LEVEL, ERROR_COUNT from dba_hist_snapshot where snap_id = 3391;
    SNAP_ID DBID INSTANCE_NUMBER SNAP_LEVEL ERROR_COUNT
    3391 2562639660 1 1 0
    seems like when we set up, we didn't collect instance_number 2's snapshot, any suggestion?
    Thank you

    select job_name, error#, ACTUAL_START_DATE,ADDITIONAL_INFO from dba_scheduler_job_run_details where job_name= 'SNAPSHOT_COLLECTION';
    JOB_NAME
    ERROR# ACTUAL_START_DATE
    ADDITIONAL_INFO
    SNAPSHOT_COLLECTION
    13516 27-AUG-10 11.00.30.935776 AM CST6CDT
    ORA-13516: AWR Operation failed: ORA-13516: AWR Operation failed: INTERVAL Setting is ZERO
    ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 10
    ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 33
    ORA-06512: at line 1
    OK, so I reset interval back to 20 (minutes), let me see if it works...
    thank you

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

  • What are the side effects of setting "_object_statistics=false"?

    Hi,
    On a 10.2.0.3.0, due to frequent ORA-04031 errors, we have been recommended to set objectstatistics=false in init.ora and bounce the database.
    Metalink Bug ID: 3519807
    Going through the available documentation on net, I found that this parameter would have same effect as setting STATISTICS_LEVEL=BASIC or even worse.
    Documentation (for statistics_level) says following options are affected.
    * Automatic Workload Repository (AWR) Snapshots
    * Automatic Database Diagnostic Monitor (ADDM)
    * All server-generated alerts
    * Automatic SGA Memory Management
    * Automatic optimizer statistics collection
    * Object level statistics
    * End to End Application Tracing (V$CLIENT_STATS)
    * Database time distribution statistics (V$SESS_TIME_MODEL and V$SYS_TIME_MODEL)
    * Service level statistics
    * Buffer cache advisory
    * MTTR advisory
    * Shared pool sizing advisory
    * Segment level statistics
    * PGA Target advisory
    * Timed statistics
    * Monitoring of statistics
    We have daily schema statistics gathering schedule in place so I feel query performance should not be affected (of course, this is my assumption).
    I just wanted to know what else would be affected due to this.
    Thanks in advance.
    Regards,

    Please let me know your ideas/inputs.

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

  • How to generate AWR report by using ttStats?

    Hi all,are there any links or documents to show how to use ttStats toolkit to generate a report like Oracle AWR report?
    If no links or document available, could you tell me how to use it?
    In fact I want to know how to do a performance analysis for my application and perform some tune.
    If any other toolkits are more suitable please let me know and of course the guide that how to use them is much welcome.
    Thanks.

    The ttStats executable can be found in the <TimesTen_home>/support directory. Before you can run the executable within a command prompt, you'll need to source the ttenv.* file in the <TimesTen_home>/bin directory.
    The output of ttStats -h is as follows:
    ttStats [-latchstats on|off] [-display-options] [-xml file]
    [-statlevel level] <dsn or connstr>
    ttStats -s[napshot] [-latchstats on|off] -xml <file> <dsn or connstr>
    ttStats -report <xmlfile1> <xmlfile2> <-text|-html> <report_file>
    Where parameters in <> are required, and in [] are optional.
    -display-options:
    This option only works in monitoring mode as
    screen filtering. ttStats only displays on the
    screen statistics with specified prefixes.
    Available prefix options include:
    -cg, -ckpt, -conn, -db, -grid, -lock, -log, -repl,
    -stmt, -txn, -xla, -zz, where the naming of prefixes
    conforms to naming of statistics in TimesTen
    sys.systemstats table. If no display option
    is specified, all statistics are displayed
    by default. For example, run command
    ttStats -cg -stmt dsn=TptbmData
    to display only cache group and statement
    related statistics.
    -h[elp] Print help message and exit.
    -interval <secs> Collect a set of statistics every <secs> seconds
    (default=10).
    Note: setting this lower can negatively impact
    performance
    -xml <file> Write statistics to <file> in XML format. All
    statistics will be written to <file> no matter
    whether they are displayed on screen or not.
    For example ttStats -xml mon.xml dsn=TptbmData
    and ttStats -xml mon.xml -cg dsn=TptbmData
    write the same file even if the latter only
    shows cache related statistics on the screen.
    -snapshot One snapshot of all statistics are saved to disk
    in the specified file format, then the program
    exits. This option should be used together with
    the -xml option.
    -statlevel <level>
    Set the SysStats level, this value of level only
    applies to sys.systemstats table.
    -report <xmlfile1> <xmlfile2> <-xml|-text|-html> <report_file>
    Compare two snapshots, and generate an AWR like
    report. At present, each XML file contains only
    one snapshot. The difference is computed as the
    absolute value of statistic value in <xmlfile2>
    minus that in <xmlfile1>. The result can be
    written in HTML and plain text formats. XML is
    not supported as output format at present.
    As an example, you can run the utility as the instance admin user by doing something like:
    ./ttStats -s -xml tmp.xml <DSN>
    You can then open tmp.xml with a web browser and see statistics about the database.
    You can also compare two previously captured snaps by doing something like:
    ./ttStats -report tmp1.xml tmp2.xml -html tmpReport.html

  • 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

  • "Alter system set command" in a RAC database!!

    Hi, all.
    The database is (10.2.0.2.0) 2- node RAC database on 32-bit windows 2003
    EE SP1.
    I issued the following command on Node 1 database.
    --> Alter system set db_block_buffers= xxx sid='rac1';
    I was able to see "PE enqueue" in top 5 wait event section from an AWR report.
    In addition, I was able to find "PZ99","PZ98" process dump file in BDUMP.
    Soon later, I could find CKPT and DBWR hung.
    Is there anyone who experienced this issue?
    Thanks and Regards.
    Message was edited by:
    user507290

    10.2.0.2 has some bug which is fixed 10.2.0.3
    You check sequence cache. If it has less value, increase it to 10000.
    select CACHE_SIZE from dba_sequences where SEQUENCE_OWNER='SYS' and SEQUENCE_NAME='AUDSES$';
    SQL> alter sequence sys.audses$ cache 10000;
    Ashok

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

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

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

Maybe you are looking for