Time_waited  or total_wait

Hii all
When looking wait event views which criteria that we have to consider more than others time_waited or total_wait .
I know that changing according to wait event type
can you explain and give some example or useful links about this issue ? example we looking v$system event we can see an event that is first when ordering time_waited an other is first when ordering total_wait how knows which one is the causing most impact on database ??
Is there any list about what is P1 or P2 values for each event type ?
Best Regards

Check Jonathan Lewis's website:
http://www.jlcomp.demon.co.uk/
and his published articles
http://www.jlcomp.demon.co.uk/ind_misc.html
In place of answering your first question I would say the most important thing is time waited during a test period that starts with a known snapshot and ends within a known snapshot. Then it comes down to using ASH, AWR, and StatsPack to determine what was happening and why.

Similar Messages

  • Cant understand TIME_WAITED column in v$system_event view

    Hi,
    I am new to database, I suppose to see the performance of database,
    so i use to execute the below query for wait events.
    I have created the scenario by creating only one lock in one table in my testing database which has nobody can access except myself. And executing the query ...
    Select Event, Total_waits,Time_waited from v$system_event;
    EVENT TOTAL_WAITS TIME_WAITED
    enq: TX - row lock contention                   1381      414157
    row cache lock 13 0
    library cache lock 2 178
    library cache load lock 17 407
    enq: JS - queue lock 1 116
    i am tracking the "enq: TX - row lock contention" wait event which i have created by lock. Continuously i executing the above query 4 or 5 times.
    I understand the value of TIME_WAITED is increasing because i haven't release the lock, but the TOTAL_WAITS column value also increasing by few seconds which i cant understand.
    Can anybody explain in what TIME_WAITED column mean and why it is increasing for a single lock and what time interval it use to increase for single lock.
    Thanks in advance.

    I think that you are getting confused because the view V$system_event is for the entire system. If you are willing to check a event for a specific session, you should use V$session_event . I have got the same thing done and got the session hanging. The time_waited would increase for sure but the number of waits wont for a session.
    Session-1
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    SQL> select status from V$instance;
    STATUS
    OPEN
    SQL> conn scott/tiger
    Connected.
    SQL> update emp set sal=0 where empno=7369;
    1 row updated.
    SQL>         
    Session-2(hanging)
    SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 23 15:09:39 2011
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, Automatic Storage Management, OLAP, Data Mining
    and Real Application Testing options
    SQL> sho user
    USER is "SCOTT"
    SQL> update emp set sal=0 where empno=7369;
    Session-3
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8404           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8404           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8704           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8704           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8704           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8704           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   8704           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9004           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9004           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9004           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9004           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9004           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9304           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9304           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9304           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9304           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9304           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                   9604           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> l
      1  select sid, event, time_waited, total_waits from V$session_event
      2* where sid in (11,16)
    SQL> /
           SID EVENT                                    TIME_WAITED TOTAL_WAITS
            11 Disk file operations I/O                           0           1
            11 db file sequential read                            5          27
            11 enq: TX - row lock contention                  10205           1
            11 SQL*Net message to client                          0          12
            11 SQL*Net message from client                     5209          12
            16 Disk file operations I/O                           0           2
            16 db file sequential read                            4          15
            16 SQL*Net message to client                          0          12
            16 SQL*Net message from client                     2576          11
    9 rows selected.
    SQL> HTH
    Aman....

  • Lots of TIME_WAITs with Connection Pool and Oracle

    Hi,
    I've set up a simple servlet to hit a database and have been running
    some stress tests against it. Even if I limit the connection pool size
    to a fixed number of connections, when I run netstat I get lots of
    additional connections to the database machine showing up in the
    TIME_WAIT state. The original connections from the pool are still there
    as ESTABLISHED. Can anyone tell me where all the other ones are coming
    from. I've tried using both oracle thin and oci8 drivers but I still
    get the same problems.
    Cheers,
    Luke.
    Luke Taylor.
    PGP Key ID: 0x57E9523C

    check out
    1. the code is releasing the connections it got?
    2. are there any database connections from outside the weblogic pool.
    Luke Taylor <[email protected]> wrote:
    Hi,
    I've set up a simple servlet to hit a database and have been running
    some stress tests against it. Even if I limit the connection pool size
    to a fixed number of connections, when I run netstat I get lots of
    additional connections to the database machine showing up in the
    TIME_WAIT state. The original connections from the pool are still there
    as ESTABLISHED. Can anyone tell me where all the other ones are coming
    from. I've tried using both oracle thin and oci8 drivers but I still
    get the same problems.
    Cheers,
    Luke.
    Luke Taylor.
    PGP Key ID: 0x57E9523C

  • Package.......StatsPack...Error..

    Hi.. i m tuning my Oracle Database, for that i need to install Statspack package, when i compiled package... it returned following error.
    Warning: Package Body created with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY STATSPACK:
    LINE/COL ERROR
    2045/3 PLS-00201: identifier 'SYS.DBMS_SHARED_POOL' must be declared
    2045/3 PL/SQL: Statement ignored
    HOw to solve above error..Please check the following Package, and do help me.
    Note: I m connected perfstat user, no as SYS user.
    create or replace package body STATSPACK as
    /* Define package variables.
    Variables prefixed with p_ are package variables.
    p_snap_id integer; /* snapshot id */
    p_instance_number number; /* instance number */
    p_instance_name varchar2(16); /* instance name */
    p_startup_time date; /* instance startup time */
    p_parallel varchar2(3); /* parallel server */
    p_version varchar2(17); /* Oracle release */
    p_dbid number; /* database id */
    p_host_name varchar2(64); /* host instance is on */
    p_name varchar2(9); /* database name */
    p_new_sga integer; /* Instance bounced since last snap? */
    tmp_int integer; /* initialise defaults */
    p_def_snap_level number default 5; /* default snapshot lvl */
    p_def_session_id number default 0; /* default session id */
    p_def_ucomment varchar2(160) default null;
    p_def_pin_statspack varchar2(10) default 'TRUE';
    p_def_last_modified date default SYSDATE;
    /* Below are the default threshold (_th) values for choosing SQL statements
    to store in the stats$sqlsummary table - these statements will typically
    be the statements using the most resources.
    p_def_num_sql number default 50; /* Num. SQL statements */
    p_def_executions_th number default 100; /* Num. executions */
    p_def_parse_calls_th number default 1000; /* Num. parse calls */
    p_def_disk_reads_th number default 1000; /* Num. disk reads */
    p_def_buffer_gets_th number default 10000; /* Num. buf gets */
    p_def_sharable_mem_th number default 1048576; /* Sharable memory */
    p_def_version_count_th number default 20; /* Child Cursors */
    p_def_all_init varchar2(10) default 'FALSE';
    cursor get_instance is
    select instance_number, instance_name
    , startup_time, parallel, version
    , host_name
    from v$instance;
    cursor get_db is
    select dbid, name
    from v$database;
    procedure SNAP
    (i_snap_level in number default null
    ,i_session_id in number default null
    ,i_ucomment in varchar2 default null
    ,i_num_sql in number default null
    ,i_executions_th in number default null
    ,i_parse_calls_th in number default null
    ,i_disk_reads_th in number default null
    ,i_buffer_gets_th in number default null
    ,i_sharable_mem_th in number default null
    ,i_version_count_th in number default null
    ,i_all_init in varchar2 default null
    ,i_pin_statspack in varchar2 default null
    ,i_modify_parameter in varchar2 default 'FALSE'
    is
    /* Takes a snapshot by calling the SNAP function, and discards
    the snapshot id. This is useful when automating taking
    snapshots from dbms_job
    l_snap_id number;
    begin
    l_snap_id := statspack.snap ( i_snap_level, i_session_id, i_ucomment
    , i_num_sql
    , i_executions_th
    , i_parse_calls_th
    , i_disk_reads_th
    , i_buffer_gets_th
    , i_sharable_mem_th
    , i_version_count_th
    , i_all_init
    , i_pin_statspack
    , i_modify_parameter);
    end SNAP;
    procedure MODIFY_STATSPACK_PARAMETER
    ( i_dbid in number default null
    , i_instance_number in number default null
    , i_snap_level in number default null
    , i_session_id in number default null
    , i_ucomment in varchar2 default null
    , i_num_sql in number default null
    , i_executions_th in number default null
    , i_parse_calls_th in number default null
    , i_disk_reads_th in number default null
    , i_buffer_gets_th in number default null
    , i_sharable_mem_th in number default null
    , i_version_count_th in number default null
    , i_all_init in varchar2 default null
    , i_pin_statspack in varchar2 default null
    , i_modify_parameter in varchar2 default 'TRUE'
    is
    /* Calls QAM with the modify flag, and discards the
    output variables
    l_snap_level number;
    l_session_id number;
    l_ucomment varchar2(160);
    l_num_sql number;
    l_executions_th number;
    l_parse_calls_th number;
    l_disk_reads_th number;
    l_buffer_gets_th number;
    l_sharable_mem_th number;
    l_version_count_th number;
    l_all_init varchar2(5);
    l_pin_statspack varchar2(10);
    begin
    statspack.qam_statspack_parameter( i_dbid
    , i_instance_number
    , i_snap_level
    , i_session_id
    , i_ucomment
    , i_num_sql
    , i_executions_th
    , i_parse_calls_th
    , i_disk_reads_th
    , i_buffer_gets_th
    , i_sharable_mem_th
    , i_version_count_th
    , i_all_init
    , i_pin_statspack
    , 'TRUE'
    , l_snap_level
    , l_session_id
    , l_ucomment
    , l_num_sql
    , l_executions_th
    , l_parse_calls_th
    , l_disk_reads_th
    , l_buffer_gets_th
    , l_sharable_mem_th
    , l_version_count_th
    , l_all_init
    , l_pin_statspack);
    /* As we have explicity been requested to change the parameters,
    independently of taking a snapshot, commit
    commit;
    end MODIFY_STATSPACK_PARAMETER;
    procedure QAM_STATSPACK_PARAMETER
    ( i_dbid in number default null
    , i_instance_number in number default null
    , i_snap_level in number default null
    , i_session_id in number default null
    , i_ucomment in varchar2 default null
    , i_num_sql in number default null
    , i_executions_th in number default null
    , i_parse_calls_th in number default null
    , i_disk_reads_th in number default null
    , i_buffer_gets_th in number default null
    , i_sharable_mem_th in number default null
    , i_version_count_th in number default null
    , i_all_init in varchar2 default null
    , i_pin_statspack in varchar2 default null
    , i_modify_parameter in varchar2 default 'FALSE'
    , o_snap_level out number
    , o_session_id out number
    , o_ucomment out varchar2
    , o_num_sql out number
    , o_executions_th out number
    , o_parse_calls_th out number
    , o_disk_reads_th out number
    , o_buffer_gets_th out number
    , o_sharable_mem_th out number
    , o_version_count_th out number
    , o_all_init out varchar2
    , o_pin_statspack out varchar2
    is
    /* Query And Modify statspack parameter procedure, allows query
    and/or user modification of the statistics collection parameters
    for an instance. If there are no pre-existing parameters for
    an instance, insert the Oracle defaults.
    l_instance_number number;
    l_dbid number;
    ui_all_init varchar2(5);
    l_params_exist varchar2(1);
    begin
    if ((i_dbid is null ) or (i_instance_number is null)) then
    l_dbid := p_dbid;
    l_instance_number := p_instance_number;
    else
    l_dbid := i_dbid;
    l_instance_number := i_instance_number;
    end if;
    /* Upper case any input vars which are inserted */
    ui_all_init := upper(i_all_init);
    if ( (i_modify_parameter is null)
    or (upper(i_modify_parameter) = 'FALSE') ) then
    /* Query values, if none exist, insert the defaults tempered
    with variables supplied */
    begin
    select nvl(i_session_id, session_id)
    , nvl(i_snap_level, snap_level)
    , nvl(i_ucomment, ucomment)
    , nvl(i_num_sql, num_sql)
    , nvl(i_executions_th, executions_th)
    , nvl(i_parse_calls_th, parse_calls_th)
    , nvl(i_disk_reads_th, disk_reads_th)
    , nvl(i_buffer_gets_th, buffer_gets_th)
    , nvl(i_sharable_mem_th, sharable_mem_th)
    , nvl(i_version_count_th, version_count_th)
    , nvl(ui_all_init, all_init)
    , nvl(i_pin_statspack, pin_statspack)
    into o_session_id
    , o_snap_level
    , o_ucomment
    , o_num_sql
    , o_executions_th
    , o_parse_calls_th
    , o_disk_reads_th
    , o_buffer_gets_th
    , o_sharable_mem_th
    , o_version_count_th
    , o_all_init
    , o_pin_statspack
    from stats$statspack_parameter
    where instance_number = l_instance_number
    and dbid = l_dbid;
    exception
    when NO_DATA_FOUND then
    insert into stats$statspack_parameter
    ( dbid
    , instance_number
    , session_id
    , snap_level
    , ucomment
    , num_sql
    , executions_th
    , parse_calls_th
    , disk_reads_th
    , buffer_gets_th
    , sharable_mem_th
    , version_count_th
    , all_init
    , pin_statspack
    , last_modified
    values
    ( l_dbid
    , l_instance_number
    , p_def_session_id
    , p_def_snap_level
    , p_def_ucomment
    , p_def_num_sql
    , p_def_executions_th
    , p_def_parse_calls_th
    , p_def_disk_reads_th
    , p_def_buffer_gets_th
    , p_def_sharable_mem_th
    , p_def_version_count_th
    , p_def_all_init
    , p_def_pin_statspack
    , SYSDATE
    returning nvl(i_session_id, p_def_session_id)
    , nvl(i_snap_level, p_def_snap_level)
    , nvl(i_ucomment, p_def_ucomment)
    , nvl(i_num_sql, p_def_num_sql)
    , nvl(i_executions_th, p_def_executions_th)
    , nvl(i_parse_calls_th, p_def_parse_calls_th)
    , nvl(i_disk_reads_th, p_def_disk_reads_th)
    , nvl(i_buffer_gets_th, p_def_buffer_gets_th)
    , nvl(i_sharable_mem_th, p_def_sharable_mem_th)
    , nvl(i_version_count_th, p_def_version_count_th)
    , nvl(ui_all_init, p_def_all_init)
    , nvl(i_pin_statspack, p_def_pin_statspack)
    into o_session_id
    , o_snap_level
    , o_ucomment
    , o_num_sql
    , o_executions_th
    , o_parse_calls_th
    , o_disk_reads_th
    , o_buffer_gets_th
    , o_sharable_mem_th
    , o_version_count_th
    , o_all_init
    , o_pin_statspack;
    end; /* don't modify parameter values */
    elsif upper(i_modify_parameter) = 'TRUE' then
    /* modify values, if none exist, insert the defaults tempered
    with the variables supplied */
    begin
    update stats$statspack_parameter
    set session_id = nvl(i_session_id, session_id)
    , snap_level = nvl(i_snap_level, snap_level)
    , ucomment = nvl(i_ucomment, ucomment)
    , num_sql = nvl(i_num_sql, num_sql)
    , executions_th = nvl(i_executions_th, executions_th)
    , parse_calls_th = nvl(i_parse_calls_th, parse_calls_th)
    , disk_reads_th = nvl(i_disk_reads_th, disk_reads_th)
    , buffer_gets_th = nvl(i_buffer_gets_th, buffer_gets_th)
    , sharable_mem_th = nvl(i_sharable_mem_th, sharable_mem_th)
    , version_count_th = nvl(i_version_count_th, version_count_th)
    , all_init = nvl(ui_all_init, all_init)
    , pin_statspack = nvl(i_pin_statspack, pin_statspack)
    where instance_number = l_instance_number
    and dbid = l_dbid
    returning session_id
    , snap_level
    , ucomment
    , num_sql
    , executions_th
    , parse_calls_th
    , disk_reads_th
    , buffer_gets_th
    , sharable_mem_th
    , version_count_th
    , all_init
    , pin_statspack
    into o_session_id
    , o_snap_level
    , o_ucomment
    , o_num_sql
    , o_executions_th
    , o_parse_calls_th
    , o_disk_reads_th
    , o_buffer_gets_th
    , o_sharable_mem_th
    , o_version_count_th
    , o_all_init
    , o_pin_statspack;
    if SQL%ROWCOUNT = 0 then
    insert into stats$statspack_parameter
    ( dbid
    , instance_number
    , session_id
    , snap_level
    , ucomment
    , num_sql
    , executions_th
    , parse_calls_th
    , disk_reads_th
    , buffer_gets_th
    , sharable_mem_th
    , version_count_th
    , all_init
    , pin_statspack
    , last_modified
    values
    ( l_dbid
    , l_instance_number
    , nvl(i_session_id, p_def_session_id)
    , nvl(i_snap_level, p_def_snap_level)
    , nvl(i_ucomment, p_def_ucomment)
    , nvl(i_num_sql, p_def_num_sql)
    , nvl(i_executions_th, p_def_executions_th)
    , nvl(i_parse_calls_th, p_def_parse_calls_th)
    , nvl(i_disk_reads_th, p_def_disk_reads_th)
    , nvl(i_buffer_gets_th, p_def_buffer_gets_th)
    , nvl(i_sharable_mem_th, p_def_sharable_mem_th)
    , nvl(i_version_count_th, p_def_version_count_th)
    , nvl(ui_all_init, p_def_all_init)
    , nvl(i_pin_statspack, p_def_pin_statspack)
    , SYSDATE
    returning session_id
    , snap_level
    , ucomment
    , num_sql
    , executions_th
    , parse_calls_th
    , disk_reads_th
    , buffer_gets_th
    , sharable_mem_th
    , version_count_th
    , all_init
    , pin_statspack
    into o_session_id
    , o_snap_level
    , o_ucomment
    , o_num_sql
    , o_executions_th
    , o_parse_calls_th
    , o_disk_reads_th
    , o_buffer_gets_th
    , o_sharable_mem_th
    , o_version_count_th
    , o_all_init
    , o_pin_statspack;
    end if;
    end; /* modify values */
    else
    /* error */
    raise_application_error
    (-20100,'QAM_STATSPACK_PARAMETER i_modify_parameter value is invalid');
    end if; /* modify */
    end QAM_STATSPACK_PARAMETER;
    procedure STAT_CHANGES
    /* Returns a set of differences of the values from corresponding pairs
    of rows in STATS$SYSSTAT, STATS$LIBRARYCACHE and STATS$WAITSTAT,
    based on the begin and end (bid, eid) snapshot id's specified.
    This procedure is the only call to STATSPACK made by the statsrep
    report.
    Modified to include multi-db support.
    ( bid IN number
    , eid IN number
    , db_ident IN number
    , inst_num IN number
    , parallel IN varchar2
    , lhtr OUT number, bfwt OUT number
    , tran OUT number, chng OUT number
    , ucal OUT number, urol OUT number
    , rsiz OUT number
    , phyr OUT number, phyrd OUT number
    , phyrdl OUT number
    , phyw OUT number, ucom OUT number
    , prse OUT number, hprse OUT number
    , recr OUT number, gets OUT number
    , rlsr OUT number, rent OUT number
    , srtm OUT number, srtd OUT number
    , srtr OUT number, strn OUT number
    , lhr OUT number, bc OUT varchar2
    , sp OUT varchar2, lb OUT varchar2
    , bs OUT varchar2, twt OUT number
    , logc OUT number, prscpu OUT number
    , tcpu OUT number, exe OUT number
    , prsela OUT number
    , bspm OUT number, espm OUT number
    , bfrm OUT number, efrm OUT number
    , blog OUT number, elog OUT number
    , bocur OUT number, eocur OUT number
    , dmsd OUT number, dmfc OUT number -- begin OPS
    , dfcms OUT number, dfcmr OUT number
    , dmsi OUT number, dmrv OUT number
    , dynal OUT number, dynares OUT number
    , pmrv OUT number, pmpt OUT number
    , npmrv OUT number, npmpt OUT number
    , scma OUT number, scml OUT number
    , pinc OUT number, picrnc OUT number
    , picc OUT number, picrcc OUT number
    , pbc OUT number, pbcrc OUT number
    , pcba OUT number, pccrba OUT number
    , pcrbpi OUT number
    , dynapres OUT number, dynapshl OUT number
    , prcma OUT number, prcml OUT number
    , pwrm OUT number, pfpim OUT number
    , pwnm OUT number
    , dpms OUT number, dnpms OUT number
    , glsg OUT number, glag OUT number
    , glgt OUT number, glsc OUT number
    , glac OUT number, glct OUT number
    , glrl OUT number
    , gcge OUT number, gcgt OUT number
    , gccv OUT number, gcct OUT number
    , gccrrv OUT number, gccrrt OUT number
    , gccurv OUT number, gccurt OUT number
    , gccrsv OUT number
    , gccrbt OUT number, gccrft OUT number
    , gccrst OUT number, gccusv OUT number
    , gccupt OUT number, gccuft OUT number
    , gccust OUT number -- end OPS
    ) is
    bval number;
    eval number;
    l_b_session_id number; /* begin session id */
    l_b_serial# number; /* begin serial# */
    l_e_session_id number; /* end session id */
    l_e_serial# number; /* end serial# */
    function LIBRARYCACHE_HITRATIO RETURN number is
    /* Returns Library cache hit ratio for the begin and end (bid, eid)
    snapshot id's specified
    cursor LH (i_snap_id number) is
    select sum(pins), sum(pinhits)
    from stats$librarycache
    where snap_id = i_snap_id
    and dbid = db_ident
    and instance_number = inst_num;
    bpsum number;
    bhsum number;
    epsum number;
    ehsum number;
    begin
    if not LH%ISOPEN then open LH (bid); end if;
    fetch LH into bpsum, bhsum;
    if LH%NOTFOUND then
    raise_application_error
    (-20100,'Missing start value for stats$librarycache');
    end if; close LH;
    if not LH%ISOPEN then open LH (eid); end if;
    fetch LH into epsum, ehsum;
    if LH%NOTFOUND then
    raise_application_error
    (-20100,'Missing end value for stats$librarycache');
    end if; close LH;
    return (ehsum - bhsum) / (epsum - bpsum);
    end LIBRARYCACHE_HITRATIO;
    function GET_PARAM (i_name varchar2) RETURN varchar2 is
    /* Returns the value for the init.ora parameter for the snapshot
    specified.
    cursor PARAMETER is
    select value
    from stats$parameter
    where snap_id = eid
    and dbid = db_ident
    and instance_number = inst_num
    and name = i_name;
    par_value varchar2(512);
    begin
    if not PARAMETER%ISOPEN then open PARAMETER; end if;
    fetch PARAMETER into par_value;
    if PARAMETER%NOTFOUND then
    raise_application_error
    (-20100,'Missing Init.ora parameter '|| i_name);
    end if; close PARAMETER;
    return par_value;
    end GET_PARAM;
    function GET_SYSSTAT (i_name varchar2, i_beid number) RETURN number is
    /* Returns the value for the System Statistic for the snapshot
    specified.
    cursor SYSSTAT is
    select value
    from stats$sysstat
    where snap_id = i_beid
    and dbid = db_ident
    and instance_number = inst_num
    and name = i_name;
    stat_value varchar2(512);
    begin
    if not SYSSTAT%ISOPEN then open SYSSTAT; end if;
    fetch SYSSTAT into stat_value;
    if SYSSTAT%NOTFOUND then
    raise_application_error
    (-20100,'Missing System Statistic '|| i_name);
    end if; close SYSSTAT;
    return stat_value;
    end GET_SYSSTAT;
    function BUFFER_WAITS RETURN number is
    /* Returns the total number of waits for all buffers in the interval
    specified by the begin and end snapshot id's (bid, eid)
    cursor BW (i_snap_id number) is
    select sum(wait_count)
    from stats$waitstat
    where snap_id = i_snap_id
    and dbid = db_ident
    and instance_number = inst_num;
    bbwsum number; ebwsum number;
    begin
    if not BW%ISOPEN then open BW (bid); end if;
    fetch BW into bbwsum;
    if BW%NOTFOUND then
    raise_application_error
    (-20100,'Missing start value for stats$waitstat');
    end if; close BW;
    if not BW%ISOPEN then open BW (eid); end if;
    fetch BW into ebwsum;
    if BW%NOTFOUND then
    raise_application_error
    (-20100,'Missing end value for stats$waitstat');
    end if; close BW;
    return ebwsum - bbwsum;
    end BUFFER_WAITS;
    function TOTAL_EVENT_TIME RETURN number is
    /* Returns the total amount of time waited for events for
    the interval specified by the begin and end snapshot id's
    (bid, eid) by foreground processes. This excludes idle
    wait events.
    cursor WAITS (i_snap_id number) is
    select sum(time_waited_micro)
    from stats$system_event
    where snap_id = i_snap_id
    and dbid = db_ident
    and instance_number = inst_num
    and event not in (select event from stats$idle_event);
    bwaittime number;
    ewaittime number;
    begin
    if not WAITS%ISOPEN then open WAITS (bid); end if;
    fetch WAITS into bwaittime;
    if WAITS%NOTFOUND then
    raise_application_error
    (-20100,'Missing start value for stats$system_event');
    end if; close WAITS;
    if not WAITS%ISOPEN then open WAITS (eid); end if;
    fetch WAITS into ewaittime;
    if WAITS%NOTFOUND then
    raise_application_error
    (-20100,'Missing end value for stats$system_event');
    end if; close WAITS;
    return ewaittime - bwaittime;
    end TOTAL_EVENT_TIME;
    function LATCH_HITRATIO return NUMBER is
    /* Returns the latch hit ratio specified by the begin and
    end snapshot id's (bid, eid)
    cursor GETS_MISSES (i_snap_id number) is
    select sum(gets), sum(misses)
    from stats$latch
    where snap_id = i_snap_id
    and dbid = db_ident
    and instance_number = inst_num;
    blget number; -- beginning latch gets
    blmis number; -- beginning latch misses
    elget number; -- end latch gets
    elmis number; -- end latch misses
    begin
    if not GETS_MISSES%ISOPEN then open GETS_MISSES (bid); end if;
    fetch GETS_MISSES into blget, blmis;
    if GETS_MISSES%NOTFOUND then
    raise_application_error
    (-20100,'Missing start value for STATS$LATCH gets and misses');
    end if; close GETS_MISSES;
    if not GETS_MISSES%ISOPEN then open GETS_MISSES (eid); end if;
    fetch GETS_MISSES into elget, elmis;
    if GETS_MISSES%NOTFOUND then
    raise_application_error
    (-20100,'Missing end value for STATS$LATCH gets and misses');
    end if; close GETS_MISSES;
    return ( ( elmis - blmis ) / ( elget - blget ) );
    end LATCH_HITRATIO;
    function SGASTAT (i_name varchar2, i_beid number) RETURN number is
    /* Returns the bytes used by i_name in the shared pool
    for the begin or end snapshot (bid, eid) specified
    cursor bytes_used is
    select bytes
    from stats$sgastat
    where snap_id = i_beid
    and dbid = db_ident
    and instance_number = inst_num
    and pool in ('shared pool', 'all pools')
    and name = i_name;
    total_bytes number;
    begin
    if i_name = 'total_shared_pool' then
    select sum(bytes)
    into total_bytes
    from stats$sgastat
    where snap_id = i_beid
    and dbid = db_ident
    and instance_number = inst_num
    and pool in ('shared pool','all pools');
    else
    open bytes_used; fetch bytes_used into total_bytes;
    if bytes_used%notfound then
    raise_application_error
    (-20100,'Missing value for SGASTAT: '||i_name);
    end if;
    close bytes_used;
    end if;
    return total_bytes;
    end SGASTAT;
    function SYSDIF (i_name varchar2) RETURN number is
    /* Returns the difference between statistics for the statistic
    name specified for the interval between the begin and end
    snapshot id's (bid, eid)
    cursor SY (i_snap_id number) is
    select value
    from stats$sysstat
    where snap_id = i_snap_id
    and dbid = db_ident
    and instance_number = inst_num
    and name = i_name;
    begin
    /* Get start value */
    open SY (bid); fetch SY into bval;
    if SY%notfound then
    raise_application_error
    (-20100,'Missing start value for statistic: '||i_name);
    end if; close SY;
    /* Get end value */
    open SY (eid); fetch SY into eval;
    if SY%notfound then
    raise_application_error
    (-20100,'Missing end value for statistic: '||i_name);
    end if; close SY;
    /* Return difference */
    return eval - bval;
    end SYSDIF;
    function SESDIF (st_name varchar2) RETURN number is
    /* Returns the difference between statistics values for the
    statistic name specified for the interval between the begin and end
    snapshot id's (bid, eid), for the session monitored for that
    snapshot
    cursor SE (i_snap_id number) is
    select ses.value
    from stats$sysstat sys
    , stats$sesstat ses
    where sys.snap_id = i_snap_id
    and ses.snap_id = i_snap_id
    and ses.dbid = db_ident
    and sys.dbid = db_ident
    and ses.instance_number = inst_num
    and sys.instance_number = inst_num
    and ses.statistic# = sys.statistic#
    and sys.name = st_name;
    begin
    /* Get start value */
    open SE (bid); fetch SE into bval;
    if SE%notfound then
    eval :=0;
    end if; close SE;
    /* Get end value */
    open SE (eid); fetch SE into eval;
    if SE%notfound then
    eval :=0;
    end if; close SE;
    /* Return difference */
    return eval - bval;
    end SESDIF;
    function DLMDIF (i_name varchar2) RETURN number is
    /* Returns the difference between statistics for the statistic
    name specified for the interval between the begin and end
    snapshot id's (bid, eid)
    cursor DLM (i_snap_id number) is
    select value
    from stats$dlm_misc
    where snap_id = i_snap_id
    and dbid = db_ident
    and instance_number = inst_num
    and name = i_name;
    begin
    /* Get start value */
    open DLM (bid); fetch DLM into bval;
    if DLM%notfound then
    raise_application_error
    (-20100,'Missing start value for statistic: '||i_name);
    end if; close DLM;
    /* Get end value */
    open DLM (eid); fetch DLM into eval;
    if DLM%notfound then
    raise_application_error
    (-20100,'Missing end value for statistic: '||i_name);
    end if; close DLM;
    /* Return difference */
    return eval - bval;
    end DLMDIF;
    begin /* main procedure body of STAT_CHANGES */
    lhtr := LIBRARYCACHE_HITRATIO;
    bfwt := BUFFER_WAITS;
    lhr := LATCH_HITRATIO;
    chng := SYSDIF('db block changes');
    ucal := SYSDIF('user calls');
    urol := SYSDIF('user rollbacks');
    ucom := SYSDIF('user commits');
    tran := ucom + urol;
    rsiz := SYSDIF('redo size');
    phyr := SYSDIF('physical reads');
    phyrd := SYSDIF('physical reads direct');
    phyrdl := SYSDIF('physical reads direct (lob)');
    phyw := SYSDIF('physical writes');
    hprse := SYSDIF('parse count (hard)');
    prse := SYSDIF('parse count (total)');
    gets := SYSDIF('session logical reads');
    recr := SYSDIF('recursive calls');
    rlsr := SYSDIF('redo log space requests');
    rent := SYSDIF('redo entries');
    srtm := SYSDIF('sorts (memory)');
    srtd := SYSDIF('sorts (disk)');
    srtr := SYSDIF('sorts (rows)');
    logc := SYSDIF('logons cumulative');
    prscpu := SYSDIF('parse time cpu');
    prsela := SYSDIF('parse time elapsed');
    tcpu := SYSDIF('CPU used by this session');
    exe := SYSDIF('execute count');
    bs := GET_PARAM('db_block_size');
    bc := GET_PARAM('db_block_buffers') * bs;
    if bc = 0 then
    bc := GET_PARAM('db_cache_size')
    + GET_PARAM('db_keep_cache_size')
    + GET_PARAM('db_recycle_cache_size')
    + GET_PARAM('db_2k_cache_size')
    + GET_PARAM('db_4k_cache_size')
    + GET_PARAM('db_8k_cache_size')
    + GET_PARAM('db_16k_cache_size')
    + GET_PARAM('db_32k_cache_size');
    end if;
    sp := GET_PARAM('shared_pool_size');
    lb := GET_PARAM('log_buffer');
    twt := TOTAL_EVENT_TIME; -- total wait time for all non-idle events
    bspm := SGASTAT('total_shared_pool', bid);
    espm := SGASTAT('total_shared_pool', eid);
    bfrm := SGASTAT('free memory', bid);
    efrm := SGASTAT('free memory', eid);
    blog := GET_SYSSTAT('logons current', bid);
    elog := GET_SYSSTAT('logons current', eid);
    bocur := GET_SYSSTAT('opened cursors current', bid);
    eocur := GET_SYSSTAT('opened cursors current', eid);
    /* Do we want to report on cluster-specific statistics? Check
    in procedure variable "parallel".
    if parallel = 'YES' then
    dmsd := DLMDIF('messages sent directly');
    dmfc := DLMDIF('messages flow controlled');
    dmsi := DLMDIF('messages sent indirectly');
    dmrv := DLMDIF('messages received');
    dfcms := DLMDIF('flow control messages sent');
    dfcmr := DLMDIF('flow control messages received');
    dynal := DLMDIF('dynamically allocated enqueues');
    dynares := DLMDIF('dynamically allocated resources');
    pmrv := DLMDIF('gcs msgs received');
    pmpt := DLMDIF('gcs msgs process time(ms)');
    npmrv := DLMDIF('ges msgs received');
    npmpt := DLMDIF('ges msgs process time(ms)');
    scma := DLMDIF('gcs side channel msgs actual');
    scml := DLMDIF('gcs side channel msgs logical');
    pinc := DLMDIF('gcs immediate (null) converts');
    picrnc := DLMDIF('gcs immediate cr (null) converts');
    picc := DLMDIF('gcs immediate (compatible) converts');
    picrcc := DLMDIF('gcs immediate cr (compatible) converts');
    pbc := DLMDIF('gcs blocked converts');
    pbcrc := DLMDIF('gcs blocked cr converts');
    pcba := DLMDIF('gcs compatible basts');
    pccrba := DLMDIF('gcs compatible cr basts');
    pcrbpi := DLMDIF('gcs cr basts to PIs');
    dynapres := DLMDIF('dynamically allocated gcs resources');
    dynapshl := DLMDIF('dynamically allocated gcs shadows');
    prcma := DLMDIF('gcs recovery claim msgs actual');
    prcml := DLMDIF('gcs recovery claim msgs logical');
    pwrm := DLMDIF('gcs write request msgs');
    pfpim := DLMDIF('gcs flush pi msgs');
    pwnm := DLMDIF('gcs write notification msgs');
    dpms := SYSDIF('gcs messages sent');
    dnpms := SYSDIF('ges messages sent');
    glsg := SYSDIF('global lock sync gets');
    glag := SYSDIF('global lock async gets');
    glgt := SYSDIF('global lock get time');
    glsc := SYSDIF('global lock sync converts');
    glac := SYSDIF('global lock async converts');
    glct := SYSDIF('global lock convert time');
    glrl := SYSDIF('global lock releases');
    gcge := SYSDIF('global cache gets');
    gcgt := SYSDIF('global cache get time');
    gccv := SYSDIF('global cache converts');
    gcct := SYSDIF('global cache convert time');
    gccrrv := SYSDIF('global cache cr blocks received');
    gccrrt := SYSDIF('global cache cr block receive time');
    gccurv := SYSDIF('global cache current blocks received');
    gccurt := SYSDIF('global cache current block receive time');
    gccrsv := SYSDIF('global cache cr blocks served');
    gccrbt := SYSDIF('global cache cr block build time');
    gccrft := SYSDIF('global cache cr block flush time');
    gccrst := SYSDIF('global cache cr block send time');
    gccusv := SYSDIF('global cache current blocks served');
    gccupt := SYSDIF('global cache current block pin time');
    gccuft := SYSDIF('global cache current block flush time');
    gccust := SYSDIF('global cache current block send time');
    end if;
    /* Determine if we want to report on session-specific statistics.
    Check that the session is the same one for both snapshots.
    select session_id
    , serial#
    into l_b_session_id
    , l_b_serial#
    from stats$snapshot
    where snap_id = bid
    and dbid = db_ident
    and instance_number = inst_num;
    select session_id
    , serial#
    into l_e_session_id
    , l_e_serial#
    from stats$snapshot
    where snap_id = eid
    and dbid = db_ident
    and instance_number = inst_num;
    if ( (l_b_session_id = l_e_session_id)
    and (l_b_serial# = l_e_serial#)
    and (l_b_session_id != 0) ) then
    /* we have a valid comparison - it is the
    same session - get number of tx performed
    by this session */
    strn := SESDIF('user rollbacks') + SESDIF('user commits');
    if strn = 0 then
    /* No new transactions */
    strn := 1;
    end if;
    else
    /* No valid comparison can be made */
    strn :=1;
    end if;
    end STAT_CHANGES;
    function SNAP
    (i_snap_level in number default null
    ,i_session_id in number default null
    ,i_ucomment in varchar2 default null
    ,i_num_sql in number default null
    ,i_executions_th in number default null
    ,i_parse_calls_th in number default null
    ,i_disk_reads_th in number default null
    ,i_buffer_gets_th in number default null
    ,i_sharable_mem_th in number default null
    ,i_version_count_th in number default null
    ,i_all_init in varchar2 default null
    ,i_pin_statspack in varchar2 default null
    ,i_modify_parameter in varchar2 default 'FALSE'
    RETURN integer IS
    /* This function performs a snapshot of the v$ views into the
    stats$ tables, and returns the snapshot id.
    If parameters are passed, these are the values used, otherwise
    the values stored in the stats$statspack_parameter table are used.
    l_snap_id integer;
    l_snap_level number;
    l_session_id number;
    l_serial# number;
    l_ucomment varchar2(160);
    l_num_sql number;
    l_executions_th number;
    l_parse_calls_th number;
    l_disk_reads_th number;
    l_buffer_gets_th number;
    l_sharable_mem_th number;
    l_version_count_th number;
    l_all_init varchar2(5);
    l_pin_statspack varchar2(10);
    l_sql_stmt varchar2(3000);
    l_slarti varchar2(20);
    l_threshold number;
    l_total_sql number := 0;
    l_total_sql_mem number := 0;
    l_single_use_sql number := 0;
    l_single_use_sql_mem number := 0;
    l_text_subset varchar2(31);
    l_sharable_mem number;
    l_version_count number;
    l_sorts number;
    l_module varchar2(64);
    l_loaded_versions number;
    l_executions number;
    l_loads number;
    l_invalidations number;
    l_parse_calls number;
    l_disk_reads number;
    l_buffer_gets number;
    l_rows_processed number;
    l_address raw(8);
    l_hash_value number;
    l_version_count number;
    l_max_begin_time date;
    cursor GETSERIAL is
    select serial#
    from v$session
    where sid = l_session_id;
    PROCEDURE snap_sql IS
    begin
    /* Gather summary statistics */
    insert into stats$sql_statistics
    ( snap_id
    , dbid
    , instance_number
    , total_sql
    , total_sql_mem
    , single_use_sql
    , single_use_sql_mem
    select l_snap_id
    , p_dbid
    , p_instance_number
    , count(1)
    , sum(sharable_mem)
    , sum(decode(executions, 1, 1, 0))
    , sum(decode(executions, 1, sharable_mem, 0))
    from stats$v$sqlxs
    where is_obsolete = 'N';
    /* Gather SQL statements which exceed any threshold,
    excluding obsolete parent cursors
    insert into stats$sql_summary
    ( snap_id
    , dbid
    , instance_number
    , text_subset
    , sharable_mem
    , sorts
    , module
    , loaded_versions
    , executions
    , loads
    , invalidations
    , parse_calls
    , disk_reads
    , buffer_gets
    , rows_processed
    , command_type
    , address
    , hash_value
    , version_count
    , cpu_time
    , elapsed_time
    , outline_sid
    , outline_category
    select l_snap_id
    , p_dbid
    , p_instance_number
    , substr(sql_text,1,31)
    , sharable_mem
    , sorts
    , module
    , loaded_versions
    , executions
    , loads
    , invalidations
    , parse_calls
    , disk_reads
    , buffer_gets
    , rows_processed
    , command_type
    , address
    , hash_value
    , version_count
    , cpu_time
    , elapsed_time
    , outline_sid
    , outline_category
    from stats$v$sqlxs
    where is_obsolete = 'N'
    and ( buffer_gets > l_buffer_gets_th
    or disk_reads > l_disk_reads_th
    or parse_calls > l_parse_calls_th
    or executions > l_executions_th
    or sharable_mem > l_sharable_mem_th
    or version_count > l_version_count_th
    /* Insert the SQL Text for hash_values captured in the snapshot
    into stats$sqltext if it's not already there. Identify SQL which
    execeeded the threshold by querying stats$sql_summary for this
    snapid and database instance
    insert into stats$sqltext
    ( hash_value
    , text_subset
    , piece
    , sql_text
    , address
    , command_type
    , last_snap_id
    select st1.hash_value
    , ss.text_subset
    , st1.piece
    , st1.sql_text
    , st1.address
    , st1.command_type
    , ss.snap_id
    from v$sqltext st1
    , stats$sql_summary ss
    where ss.snap_id = l_snap_id
    and ss.dbid = p_dbid
    and ss.instance_number = p_instance_number
    and st1.hash_value = ss.hash_value
    and st1.address = ss.address
    and not exists (select 1
    from stats$sqltext st2
    where st2.hash_value = ss.hash_value
    and st2.text_subset = ss.text_subset
    IF l_snap_level >= 6 THEN
    /* Identify SQL which execeeded the threshold by querying
    stats$sql_summary for this snapid and database instance.
    Capture the plans which were used for the high-load SQL if
    don't already have this data.
    Omit capturing plan usage information for cursors which
    have a zero plan hash value.
    Currently this is captured in a level 6 (or greater)
    snapshot, however this may be integrated into level 5
    snapshot at a later date.
    hl - high load
    insert into stats$sql_plan_usage
    ( hash_value
    , text_subset
    , plan_hash_value
    , cost
    , snap_id
    , address
    , optimizer
    select hl.hash_value
    , hl.text_subset
    , hl.plan_hash_value
    , hl.cost
    , max(hl.snap_id)
    , max(hl.address)
    , max(hl.optimizer)
    from (select /*+ ordered use_nl(sq) index(sq) */
    ss.hash_value
    , ss.text_subset
    , sq.plan_hash_value
    , nvl(sq.optimizer_cost,-9) cost
    , ss.snap_id snap_id
    , ss.address
    , sq.optimizer_mode optimizer
    from stats$sql_summary ss
    , v$sql sq
    where ss.snap_id = l_snap_id
    and ss.dbid = p_dbid
    and ss.instance_number = p_instance_number
    and sq.hash_value = ss.hash_value
    and sq.address = ss.address
    and sq.plan_hash_value > 0
    ) hl
    where not exists (select /*+ no_unnest */
    from stats$sql_plan_usage spu
    where spu.hash_value = hl.hash_value
    and spu.text_subset = hl.text_subset
    and spu.plan_hash_value
    = hl.plan_hash_value
    and spu.cost = hl.cost
    group by hl.hash_value
    , hl.text_subset
    , hl.plan_hash_value
    , hl.cost
    , hl.optimizer;
    /* For all new hash_value, plan_hash_value, cost combinations
    just captured, get the optimizer plans, if we don't already
    have them. Note that the plan (and hence the plan hash value)
    comprises the access path and the join order (and not
    variable factors such as the cardinality).
    insert into stats$sql_plan
    ( plan_hash_value
    , id
    , operation
    , options
    , object_node
    , object#
    , object_owner
    , object_name
    , optimizer
    , parent_id
    , depth
    , position
    , cost
    , cardinality
    , bytes
    , other_tag
    , partition_start
    , partition_stop
    , partition_id
    , other
    , distribution
    , cpu_cost
    , io_cost
    , temp_space
    , snap_id
    select /*+ ordered use_nl(s) use_nl(sp.p) */
    new_plan.plan_hash_value
    , sp.id
    , max(sp.operation)
    , max(sp.options)
    , max(sp.object_node)
    , max(sp.object#)
    , max(sp.object_owner)
    , max(sp.object_name)
    , max(sp.optimizer)
    , max(sp.parent_id)
    , max(sp.depth)
    , max(sp.position)
    , max(sp.cost)
    , max(sp.cardinality)
    , max(sp.bytes)
    , max(sp.other_tag)
    , max(sp.partition_start)
    , max(sp.partition_stop)
    , max(sp.partition_id)
    , max(sp.other)
    , max(sp.distribution)
    , max(sp.cpu_cost)
    , max(sp.io_cost)
    , max(sp.temp_space)
    , max(new_plan.snap_id)
    from (select /*+ index(spu) */
    distinct
    spu.plan_hash_value
    , spu.hash_value
    , spu.address
    , spu.text_subset
    , spu.snap_id
    from stats$sql_plan_usage spu
    where spu.snap_id = l_snap_id
    and not exists (select /*+ nl_aj */ *
    from stats$sql_plan ssp
    where ssp.plan_hash_value
    = spu.plan_hash_value
    ) new_plan
    , v$sql s
    , v$sql_plan sp
    where sp.hash_value = new_plan.hash_value
    and sp.address = new_plan.address
    and s.hash_value = new_plan.hash_value
    and s.address = new_plan.address
    and s.hash_value = sp.hash_value
    and s.address = sp.address
    and s.child_number = sp.child_number
    group by
    new_plan.plan_hash_value
    , sp.id;
    END IF; /* snap level >=6 */
    END snap_sql;
    begin /* Function SNAP */
    /* Get instance parameter defaults from stats$statspack_parameter,
    or use supplied parameters.
    If all parameters are specified, use them, otherwise get values
    from the parameters not specified from stats$statspack_parameter.
    statspack.qam_statspack_parameter
    ( p_dbid
    , p_instance_number
    , i_snap_level, i_session_id, i_ucomment, i_num_sql
    , i_executions_th, i_parse_calls_th
    , i_disk_reads_th, i_buffer_gets_th, i_sharable_mem_th
    , i_version_count_th, i_all_init
    , i_pin_statspack
    , i_modify_parameter
    , l_snap_level, l_session_id, l_ucomment, l_num_sql
    , l_executions_th, l_parse_calls_th
    , l_disk_reads_th, l_buffer_gets_th, l_sharable_mem_th
    , l_version_count_th, l_all_init
    , l_pin_statspack);
    /* Generate a snapshot id */
    select stats$snapshot_id.nextval
    into l_snap_id
    from dual
    where rownum = 1;
    /* Determine the serial# of the session to maintain stats for,
    if this was requested.
    if l_session_id > 0 then
    if not GETSERIAL%ISOPEN then open GETSERIAL; end if;
    fetch GETSERIAL into l_serial#;
    if GETSERIAL%NOTFOUND then
    /* Session has already disappeared - don't gather
    statistics for this session in this snapshot */
    l_session_id := 0;
    l_serial# := 0;
    end if; close GETSERIAL;
    else
    l_serial# := 0;
    end if;
    /* The instance has been restarted since the last snapshot */
    if p_new_sga = 0
    then
    begin
    p_new_sga := 1;
    /* Get the instance startup time, and other characteristics */
    insert into stats$database_instance
    ( dbid
    , instance_number
    , startup_time
    , snap_id
    , parallel
    , version
    , db_name
    , instance_name
    , host_name
    select p_dbid
    , p_instance_number
    , p_startup_time
    , l_snap_id
    , p_parallel
    , p_version
    , p_name
    , p_instance_name
    , p_host_name
    from sys.dual;
    commit;
    end;
    end if; /* new SGA */
    /* Work out the max undo stat time, used for gathering undo stat data */
    select nvl(max(begin_time), to_date('01011900','DDMMYYYY'))
    into l_max_begin_time
    from stats$undostat
    where dbid = p_dbid
    and instance_number = p_instance_number;
    /* Save the snapshot characteristics */
    insert into stats$snapshot
    ( snap_id, dbid, instance_number
    , snap_time, startup_time
    , session_id, snap_level, ucomment
    , executions_th, parse_calls_th, disk_reads_th
    , buffer_gets_th, sharable_mem_th
    , version_count_th, serial#, all_init)
    values
    ( l_snap_id, p_dbid, p_instance_number
    , SYSDATE, p_startup_time
    , l_session_id, l_snap_level, l_ucomment
    , l_executions_th, l_parse_calls_th, l_disk_reads_th
    , l_buffer_gets_th, l_sharable_mem_th
    , l_version_count_th, l_serial#, l_all_init);
    /* Begin gathering statistics */
    insert into stats$filestatxs
    ( snap_id
    , dbid
    , instance_number
    , tsname
    , filename
    , phyrds
    , phywrts
    , singleblkrds
    , readtim
    , writetim
    , singleblkrdtim
    , phyblkrd
    , phyblkwrt
    , wait_count
    , time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , tsname
    , filename
    , phyrds
    , phywrts
    , singleblkrds
    , readtim
    , writetim
    , singleblkrdtim
    , phyblkrd
    , phyblkwrt
    , wait_count
    , time
    from stats$v$filestatxs;
    insert into stats$tempstatxs
    ( snap_id
    , dbid
    , instance_number
    , tsname
    , filename
    , phyrds
    , phywrts
    , singleblkrds
    , readtim
    , writetim
    , singleblkrdtim
    , phyblkrd
    , phyblkwrt
    , wait_count
    , time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , tsname
    , filename
    , phyrds
    , phywrts
    , singleblkrds
    , readtim
    , writetim
    , singleblkrdtim
    , phyblkrd
    , phyblkwrt
    , wait_count
    , time
    from stats$v$tempstatxs;
    insert into stats$librarycache
    ( snap_id
    , dbid
    , instance_number
    , namespace
    , gets
    , gethits
    , pins
    , pinhits
    , reloads
    , invalidations
    , dlm_lock_requests
    , dlm_pin_requests
    , dlm_pin_releases
    , dlm_invalidation_requests
    , dlm_invalidations
    select l_snap_id
    , p_dbid
    , p_instance_number
    , namespace
    , gets
    , gethits
    , pins
    , pinhits
    , reloads
    , invalidations
    , dlm_lock_requests
    , dlm_pin_requests
    , dlm_pin_releases
    , dlm_invalidation_requests
    , dlm_invalidations
    from v$librarycache;
    insert into stats$buffer_pool_statistics
    ( snap_id
    , dbid
    , instance_number
    , id
    , name
    , block_size
    , set_msize
    , cnum_repl
    , cnum_write
    , cnum_set
    , buf_got
    , sum_write
    , sum_scan
    , free_buffer_wait
    , write_complete_wait
    , buffer_busy_wait
    , free_buffer_inspected
    , dirty_buffers_inspected
    , db_block_change
    , db_block_gets
    , consistent_gets
    , physical_reads
    , physical_writes
    select l_snap_id
    , p_dbid
    , p_instance_number
    , id
    , name
    , block_size
    , set_msize
    , cnum_repl
    , cnum_write
    , cnum_set
    , buf_got
    , sum_write
    , sum_scan
    , free_buffer_wait
    , write_complete_wait
    , buffer_busy_wait
    , free_buffer_inspected
    , dirty_buffers_inspected
    , db_block_change
    , db_block_gets
    , consistent_gets
    , physical_reads
    , physical_writes
    from v$buffer_pool_statistics;
    insert into stats$rollstat
    ( snap_id
    , dbid
    , instance_number
    , usn
    , extents
    , rssize
    , writes
    , xacts
    , gets
    , waits
    , optsize
    , hwmsize
    , shrinks
    , wraps
    , extends
    , aveshrink
    , aveactive
    select l_snap_id
    , p_dbid
    , p_instance_number
    , usn
    , extents
    , rssize
    , writes
    , xacts
    , gets
    , waits
    , optsize
    , hwmsize
    , shrinks
    , wraps
    , extends
    , aveshrink
    , aveactive
    from v$rollstat;
    insert into stats$rowcache_summary
    ( snap_id
    , dbid
    , instance_number
    , parameter
    , total_usage
    , usage
    , gets
    , getmisses
    , scans
    , scanmisses
    , scancompletes
    , modifications
    , flushes
    , dlm_requests
    , dlm_conflicts
    , dlm_releases
    select l_snap_id
    , p_dbid
    , p_instance_number
    , parameter
    , sum("COUNT")
    , sum(usage)
    , sum(gets)
    , sum(getmisses)
    , sum(scans)
    , sum(scanmisses)
    , sum(scancompletes)
    , sum(modifications)
    , sum(flushes)
    , sum(dlm_requests)
    , sum(dlm_conflicts)
    , sum(dlm_releases)
    from v$rowcache
    group by l_snap_id, p_dbid, p_instance_number, parameter;
    /* Collect parameters every snapshot, to cater for dynamic
    parameters changable while instance is running
    if l_all_init = 'FALSE' then
    insert into stats$parameter
    ( snap_id
    , dbid
    , instance_number
    , name
    , value
    , isdefault
    , ismodified
    select l_snap_id
    , p_dbid
    , p_instance_number
    , name
    , value
    , isdefault
    , ismodified
    from v$system_parameter;
    else
    insert into stats$parameter
    ( snap_id
    , dbid
    , instance_number
    , name
    , value
    , isdefault
    , ismodified
    select l_snap_id
    , p_dbid
    , p_instance_number
    , i.ksppinm
    , sv.ksppstvl
    , sv.ksppstdf
    , decode(bitand(sv.ksppstvf,7),1,'MODIFIED',4,'SYSTEM_MOD','FALSE')
    from stats$x$ksppi i
    , stats$x$ksppsv sv
    where i.indx = sv.indx;
    end if;
    /* To cater for variable size SGA - insert on each snapshot */
    insert into stats$sga
    ( snap_id
    , dbid
    , instance_number
    , name
    , value
    select l_snap_id
    , p_dbid
    , p_instance_number
    , name
    , value
    from v$sga;
    /* Get current allocation of memory in the SGA */
    insert into stats$sgastat
    ( snap_id
    , dbid
    , instance_number
    , pool
    , name
    , bytes
    select l_snap_id
    , p_dbid
    , p_instance_number
    , pool
    , name
    , bytes
    from v$sgastat;
    insert into stats$system_event
    ( snap_id
    , dbid
    , instance_number
    , event
    , total_waits
    , total_timeouts
    , time_waited_micro
    select l_snap_id
    , p_dbid
    , p_instance_number
    , event
    , total_waits
    , total_timeouts
    , time_waited_micro
    from v$system_event;
    insert into stats$bg_event_summary
    ( snap_id
    , dbid
    , instance_number
    , event
    , total_waits
    , total_timeouts
    , time_waited_micro
    select l_snap_id
    , p_dbid
    , p_instance_number
    , e.event
    , sum(e.total_waits)
    , sum(e.total_timeouts)
    , sum(e.time_waited_micro)
    from v$session_event e
    where e.sid in (select s.sid from v$session s where s.type = 'BACKGROUND')
    group by l_snap_id, p_dbid, p_instance_number, e.event;
    insert into stats$sysstat
    ( snap_id
    , dbid
    , instance_number
    , statistic#
    , name
    , value
    select l_snap_id
    , p_dbid
    , p_instance_number
    , statistic#
    , name
    , value
    from v$sysstat;
    insert into stats$waitstat
    ( snap_id
    , dbid
    , instance_number
    , class
    , wait_count
    , time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , class
    , "COUNT"
    , time
    from v$waitstat;
    insert into stats$enqueue_stat
    ( snap_id
    , dbid
    , instance_number
    , eq_type
    , total_req#
    , total_wait#
    , succ_req#
    , failed_req#
    , cum_wait_time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , eq_type
    , total_req#
    , total_wait#
    , succ_req#
    , failed_req#
    , cum_wait_time
    from v$enqueue_stat
    where total_req# != 0;
    insert into stats$latch
    ( snap_id
    , dbid
    , instance_number
    , name
    , latch#
    , level#
    , gets
    , misses
    , sleeps
    , immediate_gets
    , immediate_misses
    , spin_gets
    , sleep1
    , sleep2
    , sleep3
    , sleep4
    , wait_time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , name
    , latch#
    , level#
    , gets
    , misses
    , sleeps
    , immediate_gets
    , immediate_misses
    , spin_gets
    , sleep1
    , sleep2
    , sleep3
    , sleep4
    , wait_time
    from v$latch;
    insert into stats$latch_misses_summary
    ( snap_id
    , dbid
    , instance_number
    , parent_name
    , where_in_code
    , nwfail_count
    , sleep_count
    , wtr_slp_count
    select l_snap_id
    , p_dbid
    , p_instance_number
    , parent_name
    , "WHERE"
    , sum(nwfail_count)
    , sum(sleep_count)
    , sum(wtr_slp_count)
    from v$latch_misses
    where sleep_count > 0
    group by l_snap_id, p_dbid, p_instance_number
    , parent_name, "WHERE";
    insert into stats$resource_limit
    ( snap_id
    , dbid
    , instance_number
    , resource_name
    , current_utilization
    , max_utilization
    , initial_allocation
    , limit_value
    select l_snap_id
    , p_dbid
    , p_instance_number
    , resource_name
    , current_utilization
    , max_utilization
    , initial_allocation
    , limit_value
    from v$resource_limit
    where limit_value != ' UNLIMITED'
    and max_utilization > 0;
    insert into stats$undostat
    ( begin_time
    , end_time
    , dbid
    , instance_number
    , snap_id
    , undotsn
    , undoblks
    , txncount
    , maxquerylen
    , maxconcurrency
    , unxpstealcnt
    , unxpblkrelcnt
    , unxpblkreucnt
    , expstealcnt
    , expblkrelcnt
    , expblkreucnt
    , ssolderrcnt
    , nospaceerrcnt
    select begin_time
    , end_time
    , p_dbid
    , p_instance_number
    , l_snap_id
    , undotsn
    , undoblks
    , txncount
    , maxquerylen
    , maxconcurrency
    , unxpstealcnt
    , unxpblkrelcnt
    , unxpblkreucnt
    , expstealcnt
    , expblkrelcnt
    , expblkreucnt
    , ssolderrcnt
    , nospaceerrcnt
    from v$undostat
    where begin_time > l_max_begin_time
    and begin_time + (1/(24*6)) <= end_time;
    insert into stats$db_cache_advice
    ( snap_id
    , dbid
    , instance_number
    , id
    , name
    , block_size
    , buffers_for_estimate
    , advice_status
    , size_for_estimate
    , estd_physical_read_factor
    , estd_physical_reads
    select l_snap_id
    , p_dbid
    , p_instance_number
    , id
    , name
    , block_size
    , buffers_for_estimate
    , advice_status
    , size_for_estimate
    , estd_physical_read_factor
    , estd_physical_reads
    from v$db_cache_advice
    where advice_status = 'ON';
    insert into stats$pgastat
    ( snap_id
    , dbid
    , instance_number
    , name
    , value
    select l_snap_id
    , p_dbid
    , p_instance_number
    , name
    , value
    from v$pgastat;
    insert into stats$instance_recovery
    ( snap_id
    , dbid
    , instance_number
    , recovery_estimated_ios
    , actual_redo_blks
    , target_redo_blks
    , log_file_size_redo_blks
    , log_chkpt_timeout_redo_blks
    , log_chkpt_interval_redo_blks
    , fast_start_io_target_redo_blks
    , target_mttr
    , estimated_mttr
    , ckpt_block_writes
    select l_snap_id
    , p_dbid
    , p_instance_number
    , recovery_estimated_ios
    , actual_redo_blks
    , target_redo_blks
    , log_file_size_redo_blks
    , log_chkpt_timeout_redo_blks
    , log_chkpt_interval_redo_blks
    , fast_start_io_target_redo_blks
    , target_mttr
    , estimated_mttr
    , ckpt_block_writes
    from v$instance_recovery;
    if p_parallel = 'YES' then
    insert into stats$dlm_misc
    ( snap_id
    , dbid
    , instance_number
    , statistic#
    , name
    , value
    select l_snap_id
    , p_dbid
    , p_instance_number
    , statistic#
    , name
    , value
    from v$dlm_misc;
    end if; /* parallel */
    /* Begin gathering Extended Statistics */
    IF l_snap_level >= 5 THEN
    snap_sql;
    END IF; /* snap level >=5 */
    IF l_snap_level >= 10 THEN
    insert into stats$latch_children
    ( snap_id
    , dbid
    , instance_number
    , latch#
    , child#
    , gets
    , misses
    , sleeps
    , immediate_gets
    , immediate_misses
    , spin_gets
    , sleep1
    , sleep2
    , sleep3
    , sleep4
    , wait_time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , latch#
    , child#
    , gets
    , misses
    , sleeps
    , immediate_gets
    , immediate_misses
    , spin_gets
    , sleep1
    , sleep2
    , sleep3
    , sleep4
    , wait_time
    from v$latch_children;
    insert into stats$latch_parent
    ( snap_id
    , dbid
    , instance_number
    , latch#
    , level#
    , gets
    , misses
    , sleeps
    , immediate_gets
    , immediate_misses
    , spin_gets
    , sleep1
    , sleep2
    , sleep3
    , sleep4
    , wait_time
    select l_snap_id
    , p_dbid
    , p_instance_number
    , latch#
    , level#
    , gets
    , misses
    , sleeps
    , immediate_gets
    , immediate_misses
    , spin_gets
    , sleep1
    , sleep2
    , sleep3
    , sleep4
    , wait_time
    from v$latch_parent;
    END IF; /* snap level >=10 */
    /* Record level session-granular statistics if a specific session
    has been requested
    if l_session_id > 0
    then
    insert into stats$sesstat
    ( snap_id
    , dbid
    , instance_number
    , statistic#
    , value
    select l_snap_id
    , p_dbid
    , p_instance_number
    , statistic#
    , value
    from v$sesstat
    where sid = l_session_id;
    insert into stats$session_event
    ( snap_id
    , dbid
    , instance_number
    , event
    , total_waits
    , total_timeouts
    , time_waited_micro
    , max_wait
    select l_snap_id
    , p_dbid
    , p_instance_number
    , event
    , total_waits
    , total_timeouts
    , time_waited_micro
    , max_wait
    from v$session_event
    where sid = l_session_id;
    end if;
    commit work;
    RETURN l_snap_id;
    end SNAP; /* Function SNAP */
    begin /* STATSPACK body */
    /* Query the database id, instance_number, database name, instance
    name and startup time for the instance we are working on
    /* Get information about the current instance */
    open get_instance;
    fetch get_instance into
    p_instance_number, p_instance_name
    , p_startup_time, p_parallel, p_version
    , p_host_name;
    close get_instance;
    /* Select the database info for the db connected to */
    open get_db;
    fetch get_db into p_dbid, p_name;
    close get_db;
    /* Keep the package
    sys.dbms_shared_pool.keep('PERFSTAT.STATSPACK', 'P');
    /* Determine if the instance has been restarted since the previous snapshot
    begin
    select 1
    into p_new_sga
    from stats$database_instance
    where startup_time = p_startup_time
    and dbid = p_dbid
    and instance_number = p_instance_number;
    exception
    when NO_DATA_FOUND then
    p_new_sga := 0;
    end;
    end STATSPACK;
    Warning: Package Body created with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY STATSPACK:
    LINE/COL ERROR
    2045/3 PLS-00201: identifier 'SYS.DBMS_SHARED_POOL' must be declared
    2045/3 PL/SQL: Statement ignored

    When i compiled the package, it compiled with following error.
    Warning: Package Body created with compilation errors.
    SQL> show error
    Errors for PACKAGE BODY STATSPACK:
    LINE/COL ERROR
    2045/3 PLS-00201: identifier 'SYS.DBMS_SHARED_POOL' must be declared
    2045/3 PL/SQL: Statement ignored
    SQL>

  • Need suggestion on STATSPACK report

    Problem:
         Application running Very slow that too not consistent.
         i am unable to find out where the problem persists.
         I have given necessary details and attached Statspack report with this mail.
         Need help very urgently...
    Database Info.
         Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
         PL/SQL Release 9.2.0.1.0 - Production
         CORE 9.2.0.1.0 Production
         TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
         NLSRTL Version 9.2.0.1.0 - Production
    System Information:
         Item                    Value
         OS Name                    Microsoft Windows 2000 Advanced Server
         Version                    5.0.2195 Service Pack 3 Build 2195
         OS Manufacturer               Microsoft Corporation
         System Name               NHOUSE
         System Manufacturer          HP
         System Model               ProLiant DL380 G3
         System Type               X86-based PC
         Processor               x86 Family 15 Model 2 Stepping 7 GenuineIntel ~2384 Mhz
         Processor               x86 Family 15 Model 2 Stepping 7 GenuineIntel ~2384 Mhz
         Windows Directory          C:\WINNT
         System Directory          C:\WINNT\System32
         Total Physical Memory          1,572,372 KB
         Available Physical Memory     865,600 KB
         Total Virtual Memory          5,086,520 KB
         Available Virtual Memory     3,755,652 KB
         Page File Space               3,514,148 KB
         Page File               C:\pagefile.sys
    Other Info:
         Shared Server Mode
         No. of Instance Running : 1(ST011)
         No. of Application running for this instance : 1 (Softtrack)
         Database Type : OLTP (Order Entry System with report generations)
         No of users : 2(Object Schema and AccessSchema)
    File Placement :
         All FIles placed in single disk since lack of disks.
    StatsPack report:
    STATSPACK report for
    DB Name DB Id Instance Inst Num Release Cluster Host
    ST011 1063661848 st011 1 9.2.0.1.0 NO NHOUSE
    Snap Id Snap Time Sessions Curs/Sess Comment
    Begin Snap: 41 07-Aug-03 09:37:30 15 4.3
    End Snap: 62 08-Aug-03 04:00:04 15 3.8
    Elapsed: 1,102.57 (mins)
    Cache Sizes (end)
    ~~~~~~~~~~~~~~~~~
    Buffer Cache: 136M Std Block Size: 8K
    Shared Pool Size: 168M Log Buffer: 512K
    Load Profile
    ~~~~~~~~~~~~ Per Second Per Transaction
    Redo size: 445.51 1,374.71
    Logical reads: 870.05 2,684.69
    Block changes: 2.11 6.51
    Physical reads: 15.05 46.44
    Physical writes: 4.02 12.42
    User calls: 16.13 49.78
    Parses: 5.49 16.93
    Hard parses: 0.89 2.76
    Sorts: 1.36 4.21
    Logons: 0.00 0.01
    Executes: 5.84 18.02
    Transactions: 0.32
    % Blocks changed per Read: 0.24 Recursive Call %: 57.93
    Rollback per transaction %: 50.19 Rows per Sort: 148.29
    Instance Efficiency Percentages (Target 100%)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Buffer Nowait %: 100.00 Redo NoWait %: 100.00
    Buffer Hit %: 99.01 In-memory Sort %: 99.59
    Library Hit %: 93.31 Soft Parse %: 83.72
    Execute to Parse %: 6.04 Latch Hit %: 99.99
    Parse CPU to Parse Elapsd %: 97.75 % Non-Parse CPU: 86.83
    Shared Pool Statistics Begin End
    Memory Usage %: 18.19 92.77
    % SQL with executions>1: 47.57 41.10
    % Memory for SQL w/exec>1: 44.60 42.30
    Top 5 Timed Events
    ~~~~~~~~~~~~~~~~~~ % Total
    Event Waits Time (s) Ela Time
    CPU time 1,025 46.80
    control file parallel write 21,433 558 25.48
    SQL*Net more data to client 495,625 181 8.27
    log file parallel write 12,335 102 4.64
    log file sync 10,697 89 4.06
    Wait Events for DB: ST011 Instance: st011 Snaps: 41 -62
    -> s - second
    -> cs - centisecond - 100th of a second
    -> ms - millisecond - 1000th of a second
    -> us - microsecond - 1000000th of a second
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    control file parallel write 21,433 0 558 26 1.0
    SQL*Net more data to client 495,625 0 181 0 23.1
    log file parallel write 12,335 12,030 102 8 0.6
    log file sync 10,697 1 89 8 0.5
    db file scattered read 75,969 0 81 1 3.5
    direct path read 210,093 0 66 0 9.8
    db file parallel write 2,480 1,240 51 21 0.1
    db file sequential read 19,775 0 21 1 0.9
    control file sequential read 17,629 0 6 0 0.8
    direct path write 774 0 5 7 0.0
    enqueue 9 0 2 231 0.0
    SQL*Net break/reset to clien 2,552 0 1 1 0.1
    log file sequential read 30 0 1 21 0.0
    db file single write 32 0 0 11 0.0
    switch logfile command 2 0 0 144 0.0
    control file single write 5 0 0 29 0.0
    log file single write 2 0 0 12 0.0
    LGWR wait for redo copy 78 1 0 0 0.0
    latch free 7 0 0 0 0.0
    async disk IO 13 0 0 0 0.0
    buffer busy waits 9 0 0 0 0.0
    reliable message 3 0 0 0 0.0
    undo segment extension 9 9 0 0 0.0
    SQL*Net message from client 1,067,763 0 116,054 109 49.8
    virtual circuit status 1,005,679 1,028 68,949 69 46.9
    jobq slave wait 786 753 2,403 3057 0.0
    SQL*Net more data from clien 5,972 0 4 1 0.3
    SQL*Net message to client 1,067,776 0 3 0 49.8
    Background Wait Events for DB: ST011 Instance: st011 Snaps: 41 -62
    -> ordered by wait time desc, waits desc (idle events last)
    Avg
    Total Wait wait Waits
    Event Waits Timeouts Time (s) (ms) /txn
    control file parallel write 21,376 0 556 26 1.0
    log file parallel write 12,335 12,030 102 8 0.6
    db file parallel write 2,480 1,240 51 21 0.1
    control file sequential read 13,975 0 3 0 0.7
    db file scattered read 220 0 1 3 0.0
    log file sequential read 30 0 1 21 0.0
    db file sequential read 231 0 1 2 0.0
    direct path write 8 0 0 7 0.0
    log file single write 2 0 0 12 0.0
    direct path read 8 0 0 3 0.0
    LGWR wait for redo copy 78 1 0 0 0.0
    log file sync 1 0 0 11 0.0
    rdbms ipc reply 42 0 0 0 0.0
    async disk IO 13 0 0 0 0.0
    buffer busy waits 4 0 0 0 0.0
    rdbms ipc message 89,265 77,930 400,950 4492 4.2
    smon timer 225 210 67,257 ###### 0.0
    SQL ordered by Gets for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Buffer Gets Threshold: 10000
    -> Note that resources reported for PL/SQL includes the resources used by
    all SQL statements called within the PL/SQL code. As individual SQL
    statements are also reported, it is possible and valid for the summed
    total % to exceed 100
    CPU Elapsd
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    3,329,463 78 42,685.4 5.8 33.84 40.89 2765271770
    select distinct s1.prospectna, s1.praddr1, s1.praddr2, s1.praddr
    3, s1.prcity, s1.prstate from (select distinct a.oanno as uoanno
    , decode(a.oanno,NUll,b.oandt,a.oandt) as uoandt, ltrim(rtrim(up
    per(prospectna))) prospectna, decode(praddr1,null,' ',ltrim(rtri
    m(upper(praddr1)))) as praddr1, decode(praddr2,null,' ',ltrim(rt
    2,150,915 78 27,575.8 3.7 34.70 231.25 1951422680
    select s1.* from (select distinct a.oanno as uoanno, decode(a.oa
    nno,Null,b.roanno,a.roanno) as uroanno, decode(a.oanno,NUll,b.oa
    ndt,a.oandt) as uoandt, decode(a.oanno,NUll,b.pono,a.pono) as up
    ono, decode(a.oanno,Null,b.podt,a.podt) as upodt, decode(a.oanno
    ,Null,upper(b.npsloffice),upper(a.npsloffice)) as npsl, decode(a
    967,504 387 2,500.0 1.7 3.25 3.32 1647834759
    select * from (select null table_catalog, ac.owner table_schema,
    ac.table_name table_name, acc.column_name column_name, null col
    umn_guid, null column_propid, acc.position ordinal, ac.constrain
    t_name pk_name from all_constraints ac, all_cons_columns acc whe
    re ac.owner=acc.owner and ac.constraint_type='P' and ac.constrai
    869,555 24 36,231.5 1.5 11.56 54.15 569094110
    select workorderno, workorddt, a.oanno as uoanno, decode(b.oanno
    ,Null,a.oandt, b.oandt) as uoandt, decode(b.oanno,Null,a.roanno,
    b.roanno) as uroanno, decode(b.oanno,Null,a.pono,b.pono) as up
    ono,decode(b.oanno,null,a.podt,b.podt) as upodt, decode(b.oanno
    ,Null,upper(a.npsloffice),upper(b.npsloffice)) as npsl,decode(b.
    821,376 24 34,224.0 1.4 8.73 11.09 1011529824
    select distinct ltrim(rtrim(upper(prospectna))) prospectna, deco
    de(praddr1,null,' ',ltrim(rtrim(upper(praddr1)))) pr1, decode(pr
    addr2,null,' ',ltrim(rtrim(upper(praddr2)))) pr2, decode(pradd
    r3,null,' ',ltrim(rtrim(upper(praddr3)))) pr3, decode(prcity,nul
    l ,' ', ltrim(rtrim(upper(prcity)))) prcity, decode(prstate,nul
    774,701 30 25,823.4 1.3 10.50 26.76 2315633148
    select a.oanno as uoanno,a.roanno as uroanno,a.oandt as uoandt,
    a.pono as upono,a.podt as upodt,upper(a.npsloffice) as npsl,dec
    ode(d.delicity,null,'NOT AVAILABLE',UPPER(d.delicity)) as dely,
    ltrim(rtrim(upper(prospectna))) prospectna, decode(praddr1,null
    ,' ',ltrim(rtrim(upper(praddr1)))) as pr1, decode(praddr2,null,'
    761,959 30 25,398.6 1.3 7.63 8.27 1655857706
    select distinct ltrim(rtrim(upper(prospectna))) prospectna,ltrim
    (rtrim(upper(praddr1))) praddr1,ltrim(rtrim(upper(praddr2))) pra
    ddr2,ltrim(rtrim(upper(praddr3))) praddr3,ltrim(rtrim(upper(prci
    ty))) prcity,ltrim(rtrim(upper(prstate))) prstate from softdb.
    oandetails a, softdb.oanudetails b, softdb.enquiryform, softdb.
    650,627 21 30,982.2 1.1 6.92 7.12 4059808258
    SQL ordered by Gets for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Buffer Gets Threshold: 10000
    -> Note that resources reported for PL/SQL includes the resources used by
    all SQL statements called within the PL/SQL code. As individual SQL
    statements are also reported, it is possible and valid for the summed
    total % to exceed 100
    CPU Elapsd
    Buffer Gets Executions Gets per Exec %Total Time (s) Time (s) Hash Value
    Module: SQL*Plus
    INSERT into stats$sqltext ( hash_value
    , text_subset , piece
    , sql_text , address , comman
    d_type , last_snap_id )
    select st1.hash_value , ss.text_subset
    397,508 159 2,500.1 0.7 1.64 1.57 1524142529
    select * from (select null table_catalog, ac.owner table_schema,
    ac.table_name table_name, acc.column_name column_name, null col
    umn_guid, null column_propid, acc.position ordinal, ac.constrain
    t_name pk_name from all_constraints ac, all_cons_columns acc whe
    re ac.owner=acc.owner and ac.constraint_type='P' and ac.constrai
    289,960 144,980 2.0 0.5 10.75 9.52 2091761008
    select condition from cdef$ where rowid=:1
    287,552 9 31,950.2 0.5 0.00 13.58 2301846564
    DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate;
    broken BOOLEAN := FALSE; BEGIN statspack.snap; :mydate := next_d
    ate; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
    115,275 169 682.1 0.2 0.81 0.89 1682770808
    select * from (select null table_catalog, idx.table_owner table_
    schema, idx.table_name table_name, null index_catalog, idx.owner
    index_schema, idx.index_name index_name, null primary_key, deco
    de(idx.uniqueness, 'UNIQUE', 65535, 0) unique_, decode(idx.index
    type, 'CLUSTER', 65535, 0) clustered, null type, null fillfact
    95,008 38 2,500.2 0.2 0.39 0.36 3969207777
    select * from (select null table_catalog, ac.owner table_schema,
    ac.table_name table_name, acc.column_name column_name, null col
    umn_guid, null column_propid, acc.position ordinal, ac.constrain
    t_name pk_name from all_constraints ac, all_cons_columns acc whe
    re ac.owner=acc.owner and ac.constraint_type='P' and ac.constrai
    85,527 1 85,527.0 0.1 3.14 4.49 2005338978
    BEGIN :RET_VAL := DBMS_METADATA.FETCH_CLOB(:HANDLE);
    END;
    85,314 1 85,314.0 0.1 3.13 4.30 3633453749
    SELECT VALUE(KU$) XMLSCHEMA_T FROM SYS.KU$_XMLSCHEMA_VIEW KU$ WH
    ERE KU$.OWNER_NAME='SOFTDB'
    55,861 1 55,861.0 0.1 0.66 1.51 2026512687
    select s1.* from (select a.oanno as uoanno, decode(a.oanno,NUll,
    SQL ordered by Reads for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Disk Reads Threshold: 1000
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    37,620 78 482.3 3.8 34.70 231.25 1951422680
    select s1.* from (select distinct a.oanno as uoanno, decode(a.oa
    nno,Null,b.roanno,a.roanno) as uroanno, decode(a.oanno,NUll,b.oa
    ndt,a.oandt) as uoandt, decode(a.oanno,NUll,b.pono,a.pono) as up
    ono, decode(a.oanno,Null,b.podt,a.podt) as upodt, decode(a.oanno
    ,Null,upper(b.npsloffice),upper(a.npsloffice)) as npsl, decode(a
    10,262 21 488.7 1.0 7.86 20.17 1017492279
    Module: SQL*Plus
    INSERT into stats$sql_summary ( snap_id
    , dbid , instance_number , text_subset
    , sharable_mem , sorts , modu
    le , loaded_versions , fetches
    , executions , loads , invalidations
    10,249 22 465.9 1.0 7.70 20.12 2734029811
    Module: SQL*Plus
    INSERT into stats$sql_statistics ( snap_id
    , dbid , instance_number , total_
    sql , total_sql_mem , single_use_sql
    , single_use_sql_mem ) select :
    b3 , :b2 , :b1 , count(1)
    6,164 24 256.8 0.6 11.56 54.15 569094110
    select workorderno, workorddt, a.oanno as uoanno, decode(b.oanno
    ,Null,a.oandt, b.oandt) as uoandt, decode(b.oanno,Null,a.roanno,
    b.roanno) as uroanno, decode(b.oanno,Null,a.pono,b.pono) as up
    ono,decode(b.oanno,null,a.podt,b.podt) as upodt, decode(b.oanno
    ,Null,upper(a.npsloffice),upper(b.npsloffice)) as npsl,decode(b.
    3,625 30 120.8 0.4 10.50 26.76 2315633148
    select a.oanno as uoanno,a.roanno as uroanno,a.oandt as uoandt,
    a.pono as upono,a.podt as upodt,upper(a.npsloffice) as npsl,dec
    ode(d.delicity,null,'NOT AVAILABLE',UPPER(d.delicity)) as dely,
    ltrim(rtrim(upper(prospectna))) prospectna, decode(praddr1,null
    ,' ',ltrim(rtrim(upper(praddr1)))) as pr1, decode(praddr2,null,'
    3,582 7 511.7 0.4 0.17 1.10 2255532526
    delete from softdb.oanaddr where oanno not in (select oanno from
    softdb.oanitem where regndt='07-Aug-2003' and regnno='00CHEN00
    23120' and qtndt='07-Aug-2003' and qtnno='00CHEN0023120') and r
    egndt='07-Aug-2003' and regnno='00CHEN0023120' and qtndt='07-Au
    g-2003' and qtnno='00CHEN0023120'
    3,110 8 388.8 0.3 1.39 17.41 2559037884
    select a.itemdesc, a.mcslno, a.oanno, a.oandt, a.itemsrlno from
    softdb.keytab a, softdb.oanups b where a.oanno = b.oanno(+) and
    a.oandt = b.oandt(+) and a.itemsrlno = b.itemsrlno(+) and b.oann
    o is null union select a.itemdesc, a.mcslno, a.oanno, a.oandt, a
    .itemsrlno from softdb.keytab a, softdb.oanups b where a.oanno
    2,359 7 337.0 0.2 0.14 0.44 2169388924
    delete from softdb.commdeliaddr where regndt='07-Aug-2003' and r
    egnno='00CHEN0023120' and qtndt='07-Aug-2003' and qtnno='00CHEN0
    SQL ordered by Reads for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Disk Reads Threshold: 1000
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    023120' and commid not in (select commid from softdb.commdeliite
    ms where regndt='07-Aug-2003' and regnno='00CHEN0023120' and qtn
    dt='07-Aug-2003' and qtnno='00CHEN0023120')
    1,963 7 280.4 0.2 0.27 2.61 3352066490
    delete from softdb.oanlevy where oanno not in (select oanno fro
    m softdb.oanitem where regndt='07-Aug-2003' and regnno='00CHEN0
    023120' and qtndt='07-Aug-2003' and qtnno='00CHEN0023120') and
    regndt='07-Aug-2003' and regnno='00CHEN0023120' and qtndt='07-A
    ug-2003' and qtnno='00CHEN0023120'
    1,547 2 773.5 0.2 0.08 0.31 2526194774
    delete from softdb.oanlevy where oanno not in (select oanno fro
    m softdb.oanitem where regndt='07-Aug-2003' and regnno='00MUMB0
    023121' and qtndt='07-Aug-2003' and qtnno='00MUMB0023121') and
    regndt='07-Aug-2003' and regnno='00MUMB0023121' and qtndt='07-A
    ug-2003' and qtnno='00MUMB0023121'
    1,404 2 702.0 0.1 0.11 0.23 3517028935
    select softdb.oanaddr.*, softdb.oanaddr.ROWID from softdb.oanadd
    r where delflg='N' and commid is null
    1,298 2 649.0 0.1 0.09 0.27 2203325864
    delete from softdb.oanaddr where oanno not in (select oanno from
    softdb.oanitem where regndt='07-Aug-2003' and regnno='00MUMB00
    23121' and qtndt='07-Aug-2003' and qtnno='00MUMB0023121') and r
    egndt='07-Aug-2003' and regnno='00MUMB0023121' and qtndt='07-Au
    g-2003' and qtnno='00MUMB0023121'
    1,261 6 210.2 0.1 0.05 0.15 576637004
    delete from softdb.ordterms where commid is not null and regndt=
    '07-Aug-2003' and regnno='00CHEN0023120' and qtndt='07-Aug-2003'
    and qtnno='00CHEN0023120' and commid not in (select commid from
    softdb.commdeliitems where regndt='07-Aug-2003' and regnno='00C
    HEN0023120' and qtndt='07-Aug-2003' and qtnno='00CHEN0023120')
    1,244 6 207.3 0.1 0.06 0.15 563121091
    select softdb.ordterms.*, softdb.ordterms.ROWID from softdb.or
    dterms where delflg='N' and regndt ='07-Aug-2003' and regnno='
    SQL ordered by Executions for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Executions Threshold: 100
    CPU per Elap per
    Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
    144,980 144,980 1.0 0.00 0.00 2091761008
    select condition from cdef$ where rowid=:1
    23,545 0 0.0 0.00 0.00 1981921526
    update object_usage set flags=flags+1 where obj#=:1 and bitand(f
    lags, 1)=0
    16,526 16,519 1.0 0.00 0.00 3016965513
    update sys.col_usage$ set equality_preds = equality_preds
    + decode(bitand(:flag,1),0,0,1), equijoin_preds = equijoi
    n_preds + decode(bitand(:flag,2),0,0,1), nonequijoin_preds
    = nonequijoin_preds + decode(bitand(:flag,4),0,0,1), range_pre
    ds = range_preds + decode(bitand(:flag,8),0,0,1),
    10,812 0 0.0 0.00 0.00 4031175624
    alter session set isolation_level = read committed
    8,449 13 0.0 0.00 0.00 2963598673
    select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= n
    ext_date) and (next_date < :2)) or ((last_date is null) and
    (next_date < :3))) and (field1 = :4 or (field1 = 0 and 'Y' = :5)
    ) and (this_date is null) order by next_date, job
    8,437 8,437 1.0 0.00 0.00 2964743345
    select count(*) from sys.job$ where (next_date > sysdate) and (n
    ext_date < (sysdate+5/86400))
    4,152 4,152 1.0 0.00 0.00 3879177167
    select :V00001 from dual
    2,703 45,951 17.0 0.00 0.00 1947239399
    Module: VPXDBA
    /* OracleOEM */ select value from v$parameter where name in ('d
    b_block_buffers','buffer_pool_keep','db_block_lru_latches','buff
    er_pool_recycle', 'log_buffer','cursor_space_for_time','open_cur
    sors','shared_pool_size', 'shared_pool_reserved_size','session_c
    ached_cursors','parallel_min_servers', 'parallel_max_servers','s
    2,533 628,184 248.0 0.00 0.00 71821313
    Module: VPXDBA
    /* OracleOEM */ select value from v$sysstat order by statistic#
    2,532 2,532 1.0 0.00 0.00 3077298272
    Module: VPXDBA
    /* OracleOEM */ select sum(decode(name,'free memory',bytes)), su
    m(bytes) from v$sgastat where pool='shared pool'
    2,504 2,504 1.0 0.00 0.00 1818901441
    Module: VPXDBA
    /* OracleOEM */ select sum(decode(status,'ACTIVE',1,0)),sum(deco
    de(status,'INACTIVE',1,0))from v$session
    2,492 62,998 25.3 0.01 0.01 2080871317
    Module: VPXDBA
    SQL ordered by Executions for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Executions Threshold: 100
    CPU per Elap per
    Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
    /* OracleOEM */ select event,time_waited,total_waits, total_tim
    eouts from v$system_event where event not in ('PX Idle Wait','p
    mon timer','smon timer','rdbms ipc message', 'parallel dequeue w
    ait', 'parallel query dequeue','virtual circuit', 'SQL*Net
    message from client','SQL*Net message to client', 'SQL*Ne
    2,389 37 0.0 0.00 0.00 4266807470
    Module: VPXDBA
    /* OracleOEM */ select event, count(*) from v$session_wait where
    wait_time = 0 and event not in ('PX Idle Wait','pmon timer','s
    mon timer','rdbms ipc message', 'parallel dequeue wait', 'parall
    el query dequeue','virtual circuit', 'SQL*Net message from clien
    t','SQL*Net message to client','SQL*Net more data to client', 'S
    2,196 2,196 1.0 0.00 0.00 1903595484
    Module: VPXDBA
    /* OracleOEM */ select sum(pins), sum(pinhits), sum(reloads) fro
    m v$librarycache
    2,196 24,493 11.2 0.00 0.00 2352784315
    Module: VPXDBA
    /* OracleOEM */ SELECT s.sid, s.serial#, s.fixed_table_sequence,
    s.status,NVL(s.username,bg.name), cpu.value tot_cpu, physio.va
    lue phys_reads,parse.value hard_parse, mem.value pga,logio.v
    alue log_reads FROM v$session s, v$bgprocess bg, (SELE
    CT sid,value FROM v$sesstat WHERE statistic# = :1) cpu, (SEL
    2,046 3,716 1.8 0.00 0.00 360204161
    SELECT BUCKET, ENDPTHASH, ENDPTVAL, UTL_RAW.CAST_TO_
    RAW(ENDPTVAL) ENDPTVAL_RAW FROM SYS.EXU8HSTU WHERE
    POBJID = :1 AND INTCOL = :2 ORDER BY BUCKET
    1,507 0 0.0 0.00 0.00 1930352736
    select softdb.oanitem.*, softdb.oanitem.ROWID from softdb.oanite
    m where delflg='N' and oandt='' and oanno=0 order by itemsrlno
    1,507 0 0.0 0.00 0.00 3801509667
    select softdb.oanudetails.*, softdb.oanudetails.ROWID from softd
    b.oanudetails where delflg='N' and oandt='' and oanno=0
    956 897 0.9 0.00 -0.00 2591785020
    select obj#,type#,ctime,mtime,stime,status,dataobj#,flags,oid$,
    spare1, spare2 from obj$ where owner#=:1 and name=:2 and namespa
    ce=:3 and(remoteowner=:4 or remoteowner is null and :4 is null)a
    nd(linkname=:5 or linkname is null and :5 is null)and(subname=:6
    or subname is null and :6 is null)
    939 1,479 1.6 0.00 0.00 1819073277
    select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_
    obj#, d_owner#, nvl(property,0),subname from dependency$,obj$ wh
    ere d_obj#=:1 and p_obj#=obj#(+) order by order#
    939 1,055 1.1 0.00 0.00 4049165760
    select order#,columns,types from access$ where d_obj#=:1
    SQL ordered by Executions for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Executions Threshold: 100
    CPU per Elap per
    Executions Rows Processed Rows per Exec Exec (s) Exec (s) Hash Value
    807 45,999 57.0 0.00 0.00 2705315382
    select length(invcode), softdb.blocnmanager.ROWID from softdb.bl
    ocnmanager
    550 204 0.4 0.00 0.00 2197684639
    BEGIN SYS.DBMS_DESCRIBE.DESCRIBE_PROCEDURE(:object_name,:res1,:r
    es2,:overload,:position,:level,:argument,:datatype,:default,:in_
    out,:length,:precision,:scale,:radix,:spare); END;
    SQL ordered by Parse Calls for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Parse Calls Threshold: 1000
    % Total
    Parse Calls Executions Parses Hash Value
    144,980 144,980 39.95 2091761008
    select condition from cdef$ where rowid=:1
    23,545 23,545 6.49 1981921526
    update object_usage set flags=flags+1 where obj#=:1 and bitand(f
    lags, 1)=0
    10,812 10,812 2.98 4031175624
    alter session set isolation_level = read committed
    4,152 4,152 1.14 3879177167
    select :V00001 from dual
    2,379 4 0.66 1635934014
    insert into sys.col_usage$ values ( :objn, :coln, decode(bit
    and(:flag,1),0,0,1), decode(bitand(:flag,2),0,0,1), decode(b
    itand(:flag,4),0,0,1), decode(bitand(:flag,8),0,0,1), decode
    (bitand(:flag,16),0,0,1), decode(bitand(:flag,32),0,0,1), :t
    ime)
    2,336 16,526 0.64 3016965513
    update sys.col_usage$ set equality_preds = equality_preds
    + decode(bitand(:flag,1),0,0,1), equijoin_preds = equijoi
    n_preds + decode(bitand(:flag,2),0,0,1), nonequijoin_preds
    = nonequijoin_preds + decode(bitand(:flag,4),0,0,1), range_pre
    ds = range_preds + decode(bitand(:flag,8),0,0,1),
    1,655 0 0.46 3877138136
    SELECT softdb.logpslipitem.*, softdb.logpslipitem.ROWID FROM sof
    tdb.logpslipitem
    1,507 1,507 0.42 1930352736
    select softdb.oanitem.*, softdb.oanitem.ROWID from softdb.oanite
    m where delflg='N' and oandt='' and oanno=0 order by itemsrlno
    1,507 1,507 0.42 3801509667
    select softdb.oanudetails.*, softdb.oanudetails.ROWID from softd
    b.oanudetails where delflg='N' and oandt='' and oanno=0
    1,357 0 0.37 2921321908
    SELECT softdb.keytab.*, softdb.keytab.ROWID FROM softdb.keytab
    1,175 0 0.32 126022112
    SELECT softdb.logpslip.*, softdb.logpslip.ROWID FROM softdb.logp
    slip
    1,175 0 0.32 3554166107
    select * from softdb.logpslipitem
    1,175 0 0.32 3928397926
    select * from softdb.logpslip
    939 939 0.26 1819073277
    select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_
    SQL ordered by Parse Calls for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Parse Calls Threshold: 1000
    % Total
    Parse Calls Executions Parses Hash Value
    obj#, d_owner#, nvl(property,0),subname from dependency$,obj$ wh
    ere d_obj#=:1 and p_obj#=obj#(+) order by order#
    939 939 0.26 4049165760
    select order#,columns,types from access$ where d_obj#=:1
    807 807 0.22 2705315382
    select length(invcode), softdb.blocnmanager.ROWID from softdb.bl
    ocnmanager
    718 359 0.20 3882939652
    INSERT INTO "SOFTDB"."MULTIUSER" ("REGNNO","PROCESSNAME","USRNAM
    E","INSTLOCATION","MCNAME","IPADDR","REGNDT") VALUES (:V00001,:V
    00002,:V00003,:V00004,:V00005,:V00006,:V00007)
    650 325 0.18 3046100812
    UPDATE "SOFTDB"."GENCOMMID" SET "GNO"=:V00001,"GDT"=:V00002 WHER
    E "GNO"=:V00003 AND "GDT"=:V00004 AND "ROWID"=:V00005
    550 550 0.15 2197684639
    BEGIN SYS.DBMS_DESCRIBE.DESCRIBE_PROCEDURE(:object_name,:res1,:r
    es2,:overload,:position,:level,:argument,:datatype,:default,:in_
    out,:length,:precision,:scale,:radix,:spare); END;
    510 510 0.14 3187596784
    select rownum as srlno,softdb.keytab.itemdesc as item,1 as sets,
    qty from (select itemsrlno,itemdesc,1 as qty,oanno,oandt from s
    oftdb.oanups where delflg='N' and oandt='' and oanno=0 union se
    lect itemsrlno,itemdesc,deliqty/delisets as qty, oanno,oandt fr
    om softdb.oanbat where delflg='N' and oandt='' and oanno=0 and i
    443 443 0.12 1781254858
    DELETE multiuser where floor((((((sysdate-recentrytime)*24*60*60
    )/3600)*3600)/60)*60) >='180'
    443 443 0.12 3292238282
    Select softdb.multiuser.*, softdb.multiuser.ROWID from softdb.mu
    ltiuser
    422 422 0.12 1919856422
    select invcode, softdb.blocnmanager.ROWID from softdb.blocnmanag
    er
    390 195 0.11 2471695061
    UPDATE "SOFTDB"."CUST_MAST" SET "CUST_LST_NO"=:V00001,"CUST_CST_
    NO"=:V00002 WHERE "CUST_LST_NO" IS NULL AND "CUST_CST_NO" IS NUL
    L AND "ROWID"=:V00003
    387 387 0.11 620898497
    select * from (select null table_catalog, idx.table_owner table_
    schema, idx.table_name table_name, null index_catalog, idx.owner
    index_schema, idx.index_name index_name, null primary_key, deco
    de(idx.uniqueness, 'UNIQUE', 65535, 0) unique_, decode(idx.index
    type, 'CLUSTER', 65535, 0) clustered, null type, null fillfact
    SQL ordered by Parse Calls for DB: ST011 Instance: st011 Snaps: 41 -62
    -> End Parse Calls Threshold: 1000
    % Total
    Parse Calls Executions Parses Hash Value
    387 387 0.11 1647834759
    select * from (select null table_catalog, ac.owner table_schema,
    ac.table_name table_name, acc.column_name column_name, null col
    umn_guid, null column_propid, acc.position ordinal, ac.constrain
    t_name pk_name from all_constraints ac, all_cons_columns acc whe
    re ac.owner=acc.owner and ac.constraint_type='P' and ac.constrai
    Instance Activity Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    Statistic Total per Second per Trans
    CPU used by this session 102,453 1.6 4.8
    CPU used when call started 102,366 1.6 4.8
    CR blocks created 30 0.0 0.0
    DBWR buffers scanned 1,184 0.0 0.1
    DBWR checkpoint buffers written 7,748 0.1 0.4
    DBWR checkpoints 9 0.0 0.0
    DBWR free buffers found 1,184 0.0 0.1
    DBWR lru scans 1 0.0 0.0
    DBWR make free requests 1 0.0 0.0
    DBWR summed scan depth 1,184 0.0 0.1
    DBWR transaction table writes 295 0.0 0.0
    DBWR undo block writes 1,681 0.0 0.1
    SQL*Net roundtrips to/from client 1,979,199 29.9 92.3
    active txn count during cleanout 682 0.0 0.0
    background checkpoints completed 1 0.0 0.0
    background checkpoints started 1 0.0 0.0
    background timeouts 74,152 1.1 3.5
    buffer is not pinned count 45,599,192 689.3 2,126.9
    buffer is pinned count 55,241,935 835.1 2,576.7
    bytes received via SQL*Net from c 140,543,392 2,124.5 6,555.5
    bytes sent via SQL*Net to client 16,971,012,142 256,538.0 791,595.3
    calls to get snapshot scn: kcmgss 706,463 10.7 33.0
    calls to kcmgas 20,519 0.3 1.0
    calls to kcmgcs 591 0.0 0.0
    change write time 175 0.0 0.0
    cleanout - number of ktugct calls 866 0.0 0.0
    cleanouts and rollbacks - consist 16 0.0 0.0
    cleanouts only - consistent read 123 0.0 0.0
    cluster key scan block gets 266,789 4.0 12.4
    cluster key scans 104,922 1.6 4.9
    commit cleanout failures: callbac 5 0.0 0.0
    commit cleanouts 28,117 0.4 1.3
    commit cleanouts successfully com 28,112 0.4 1.3
    commit txn count during cleanout 458 0.0 0.0
    consistent changes 295 0.0 0.0
    consistent gets 57,426,682 868.1 2,678.6
    consistent gets - examination 2,489,520 37.6 116.1
    cursor authentications 27,054 0.4 1.3
    data blocks consistent reads - un 283 0.0 0.0
    db block changes 139,574 2.1 6.5
    db block gets 130,344 2.0 6.1
    deferred (CURRENT) block cleanout 17,394 0.3 0.8
    dirty buffers inspected 3 0.0 0.0
    enqueue conversions 583 0.0 0.0
    enqueue releases 112,816 1.7 5.3
    enqueue requests 112,817 1.7 5.3
    enqueue waits 9 0.0 0.0
    execute count 386,246 5.8 18.0
    free buffer inspected 3 0.0 0.0
    free buffer requested 578,165 8.7 27.0
    hot buffers moved to head of LRU 3,435 0.1 0.2
    immediate (CR) block cleanout app 139 0.0 0.0
    immediate (CURRENT) block cleanou 3,076 0.1 0.1
    index fast full scans (full) 602 0.0 0.0
    index fetch by key 1,311,085 19.8 61.2
    index scans kdiixs1 26,311,841 397.7 1,227.3
    Instance Activity Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    Statistic Total per Second per Trans
    leaf node 90-10 splits 28 0.0 0.0
    leaf node splits 272 0.0 0.0
    logons cumulative 181 0.0 0.0
    messages received 12,637 0.2 0.6
    messages sent 12,637 0.2 0.6
    no buffer to keep pinned count 0 0.0 0.0
    no work - consistent read gets 28,721,411 434.2 1,339.7
    opened cursors cumulative 327,186 5.0 15.3
    parse count (failures) 6,872 0.1 0.3
    parse count (hard) 59,067 0.9 2.8
    parse count (total) 362,907 5.5 16.9
    parse time cpu 13,489 0.2 0.6
    parse time elapsed 13,800 0.2 0.6
    physical reads 995,675 15.1 46.4
    physical reads direct 426,595 6.5 19.9
    physical writes 266,178 4.0 12.4
    physical writes direct 258,427 3.9 12.1
    physical writes non checkpoint 261,972 4.0 12.2
    prefetched blocks 473,387 7.2 22.1
    process last non-idle time 124,048,980,297 1,875,154.6 5,786,136.5
    recovery blocks read 0 0.0 0.0
    recursive calls 1,469,320 22.2 68.5
    recursive cpu usage 5,757 0.1 0.3
    redo blocks written 66,895 1.0 3.1
    redo entries 73,459 1.1 3.4
    redo size 29,472,392 445.5 1,374.7
    redo synch time 8,922 0.1 0.4
    redo synch writes 10,687 0.2 0.5
    redo wastage 3,617,376 54.7 168.7
    redo write time 9,727 0.2 0.5
    redo writer latching time 3 0.0 0.0
    redo writes 12,337 0.2 0.6
    rollback changes - undo records a 22 0.0 0.0
    rollbacks only - consistent read 19 0.0 0.0
    rows fetched via callback 1,127,456 17.0 52.6
    session connect time 124,048,980,297 1,875,154.6 5,786,136.5
    session logical reads 57,557,026 870.1 2,684.7
    session pga memory 428,308 6.5 20.0
    session pga memory max 63,116 1.0 2.9
    session uga memory 4,296,889,276 64,952.8 200,424.0
    session uga memory max 123,298,368 1,863.8 5,751.1
    shared hash latch upgrades - no w 26,310,630 397.7 1,227.2
    sorts (disk) 367 0.0 0.0
    sorts (memory) 89,870 1.4 4.2
    sorts (rows) 13,381,553 202.3 624.2
    summed dirty queue length 3 0.0 0.0
    switch current to new buffer 6,910 0.1 0.3
    table fetch by rowid 32,481,075 491.0 1,515.1
    table fetch continued row 13,074 0.2 0.6
    table scan blocks gotten 8,213,616 124.2 383.1
    table scan rows gotten 303,670,060 4,590.4 14,164.4
    table scans (long tables) 2,799 0.0 0.1
    table scans (short tables) 76,890 1.2 3.6
    transaction rollbacks 11 0.0 0.0
    user calls 1,067,154 16.1 49.8
    user commits 10,678 0.2 0.5
    Instance Activity Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    Statistic Total per Second per Trans
    user rollbacks 10,761 0.2 0.5
    workarea executions - onepass 803 0.0 0.0
    workarea executions - optimal 126,987 1.9 5.9
    write clones created in foregroun 2 0.0 0.0
    Tablespace IO Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    ->ordered by IOs (Reads + Writes) desc
    Tablespace
    Av Av Av Av Buffer Av Buf
    Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms)
    TEMP
    397,017 6 0.8 1.1 199,016 3 0 0.0
    SOFTDB
    91,699 1 1.0 6.1 1,823 0 0 0.0
    USERS
    450 0 5.3 1.0 2,524 0 0 0.0
    SYSTEM
    2,438 0 2.9 1.3 239 0 0 0.0
    INDX
    1,095 0 4.4 1.5 1,153 0 0 0.0
    UNDOTBS1
    3 0 13.3 1.0 2,017 0 8 0.0
    XDB
    74 0 4.9 1.1 1 0 0 0.0
    DRSYS
    3 0 6.7 1.0 1 0 0 0.0
    TOOLS
    3 0 6.7 1.0 1 0 0 0.0
    File IO Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    ->ordered by Tablespace, File
    Tablespace Filename
    Av Av Av Av Buffer Av Buf
    Reads Reads/s Rd(ms) Blks/Rd Writes Writes/s Waits Wt(ms)
    DRSYS E:\ORACLE\ORADATA\ST011\DRSYS01.DBF
    3 0 6.7 1.0 1 0 0
    INDX E:\ORACLE\ORADATA\ST011\INDX01.DBF
    1,095 0 4.4 1.5 1,153 0 0
    SOFTDB E:\ORACLE\ORADATA\ST011\SOFTDB01.DBF
    91,699 1 1.0 6.1 1,823 0 0
    SYSTEM E:\ORACLE\ORADATA\ST011\SYSTEM01.DBF
    2,438 0 2.9 1.3 239 0 0
    TEMP E:\ORACLE\ORADATA\ST011\TEMP01.DBF
    397,017 6 0.8 1.1 199,016 3 0
    TOOLS E:\ORACLE\ORADATA\ST011\TOOLS01.DBF
    3 0 6.7 1.0 1 0 0
    UNDOTBS1 E:\ORACLE\ORADATA\ST011\UNDOTBS01.DBF
    3 0 13.3 1.0 2,017 0 8 0.0
    USERS E:\ORACLE\ORADATA\ST011\USERS01.DBF
    450 0 5.3 1.0 2,524 0 0
    XDB E:\ORACLE\ORADATA\ST011\XDB01.DBF
    74 0 4.9 1.1 1 0 0
    Buffer Pool Statistics for DB: ST011 Instance: st011 Snaps: 41 -62
    -> Standard block size Pools D: default, K: keep, R: recycle
    -> Default Pools for other block sizes: 2k, 4k, 8k, 16k, 32k
    Free Write Buffer
    Number of Cache Buffer Physical Physical Buffer Complete Busy
    P Buffers Hit % Gets Reads Writes Waits Waits Waits
    D 17,017 99.5 110,003,087 569,129 7,751 0 0 8
    Instance Recovery Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    -> B: Begin snapshot, E: End snapshot
    Targt Estd Log File Log Ckpt Log Ckpt
    MTTR MTTR Recovery Actual Target Size Timeout Interval
    (s) (s) Estd IOs Redo Blks Redo Blks Redo Blks Redo Blks Redo Blks
    B 34 14 193 771 341 184320 341
    E 34 14 141 727 20 184320 20
    Buffer Pool Advisory for DB: ST011 Instance: st011 End Snap: 62
    -> Only rows with estimated physical reads >0 are displayed
    -> ordered by Block Size, Buffers For Estimate
    Size for Size Buffers for Est Physical Estimated
    P Estimate (M) Factr Estimate Read Factor Physical Reads
    D 16 .1 2,002 152.10 87,449,432
    D 32 .2 4,004 87.09 50,071,540
    D 48 .4 6,006 55.08 31,668,480
    D 64 .5 8,008 36.93 21,232,658
    D 80 .6 10,010 16.08 9,246,410
    D 96 .7 12,012 6.32 3,635,060
    D 112 .8 14,014 2.48 1,423,893
    D 128 .9 16,016 1.09 627,130
    D 136 1.0 17,017 1.00 574,935
    D 144 1.1 18,018 0.96 552,001
    D 160 1.2 20,020 0.91 525,903
    D 176 1.3 22,022 0.90 518,390
    D 192 1.4 24,024 0.90 518,390
    D 208 1.5 26,026 0.90 518,390
    D 224 1.6 28,028 0.90 518,390
    D 240 1.8 30,030 0.90 518,390
    D 256 1.9 32,032 0.90 518,390
    D 272 2.0 34,034 0.90 518,390
    D 288 2.1 36,036 0.90 518,390
    D 304 2.2 38,038 0.90 518,390
    D 320 2.4 40,040 0.90 518,390
    Buffer wait Statistics for DB: ST011 Instance: st011 Snaps: 41 -62
    -> ordered by wait time desc, waits desc
    Tot Wait Avg
    Class Waits Time (s) Time (ms)
    undo header 9 0 0
    PGA Aggr Target Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    -> B: Begin snap E: End snap (rows dentified with B or E contain data
    which is absolute i.e. not diffed over the interval)
    -> PGA cache hit % - percentage of W/A (WorkArea) data processed only in-memory
    -> Auto PGA Target - actual workarea memory target
    -> W/A PGA Used - amount of memory used for all Workareas (manual + auto)
    -> %PGA W/A Mem - percentage of PGA memory allocated to workareas
    -> %Auto W/A Mem - percentage of workarea memory controlled by Auto Mem Mgmt
    -> %Man W/A Mem - percentage of workarea memory under manual control
    PGA Cache Hit % W/A MB Processed Extra W/A MB Read/Written
    72.5 6,444 2,443
    %PGA %Auto %Man
    PGA Aggr Auto PGA PGA Mem W/A PGA W/A W/A W/A Global Mem
    Target(M) Target(M) Alloc(M) Used(M) Mem Mem Mem Bound(K)
    B 104 80 17.8 0.0 .0 .0 .0 5,324
    E 104 81 18.5 0.0 .0 .0 .0 5,324
    PGA Aggr Target Histogram for DB: ST011 Instance: st011 Snaps: 41 -62
    -> Optimal Executions are purely in-memory operations
    Low High
    Optimal Optimal Total Execs Optimal Execs 1-Pass Execs M-Pass Execs
    8K 16K 119,925 119,925 0 0
    16K 32K 1,796 1,796 0 0
    32K 64K 147 147 0 0
    64K 128K 1,167 1,167 0 0
    128K 256K 562 562 0 0
    256K 512K 647 615 32 0
    512K 1024K 2,770 2,412 358 0
    1M 2M 588 256 332 0
    2M 4M 70 10 60 0
    4M 8M 36 20 16 0
    16M 32M 4 0 4 0
    1G 2G 1 0 1 0
    PGA Memory Advisory for DB: ST011 Instance: st011 End Snap: 62
    -> When using Auto Memory Mgmt, minimally choose a pga_aggregate_target value
    where Estd PGA Overalloc Count is 0
    Estd Extra Estd PGA Estd PGA
    PGA Target Size W/A MB W/A MB Read/ Cache Overalloc
    Est (MB) Factr Processed Written to Disk Hit % Count
    13 0.1 1,552.2 362.1 81.0 27
    26 0.3 1,552.2 85.5 95.0 0
    52 0.5 1,552.2 74.5 95.0 0
    78 0.8 1,552.2 74.5 95.0 0
    104 1.0 1,552.2 55.1 97.0 0
    125 1.2 1,552.2 0.0 100.0 0
    146 1.4 1,552.2 0.0 100.0 0
    166 1.6 1,552.2 0.0 100.0 0
    187 1.8 1,552.2 0.0 100.0 0
    208 2.0 1,552.2 0.0 100.0 0
    312 3.0 1,552.2 0.0 100.0 0
    416 4.0 1,552.2 0.0 100.0 0
    624 6.0 1,552.2 0.0 100.0 0
    832 8.0 1,552.2 0.0 100.0 0
    Enqueue activity for DB: ST011 Instance: st011 Snaps: 41 -62
    -> Enqueue stats gathered prior to 9i should not be compared with 9i data
    -> ordered by Wait Time desc, Waits desc
    Avg Wt Wait
    Eq Requests Succ Gets Failed Gets Waits Time (ms) Time (s)
    TC 40 40 0 8 254.13 2
    PE 184 184 0 1 47.00 0
    Rollback Segment Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    ->A high value for "Pct Waits" suggests more rollback segments may be required
    ->RBS stats may not be accurate between begin and end snaps when using Auto Undo
    managment, as RBS may be dynamically created and dropped as needed
    Trans Table Pct Undo Bytes
    RBS No Gets Waits Written Wraps Shrinks Extends
    0 246.0 0.00 0 0 0 0
    1 2,947.0 0.00 1,268,846 4 1 1
    2 3,520.0 0.00 1,003,166 18 3 6
    3 3,511.0 0.00 973,498 18 1 3
    4 2,662.0 0.00 1,010,600 4 0 1
    5 3,941.0 0.03 1,042,464 20 3 8
    6 3,474.0 0.00 1,106,576 21 1 6
    7 2,546.0 0.00 756,036 15 3 4
    8 3,943.0 0.00 1,112,166 22 3 11
    9 3,368.0 0.00 832,596 14 2 4
    10 3,039.0 0.20 971,780 20 3 14
    Rollback Segment Storage for DB: ST011 Instance: st011 Snaps: 41 -62
    ->Optimal Size should be larger than Avg Active
    RBS No Segment Size Avg Active Optimal Size Maximum Size
    0 385,024 0 385,024
    1 1,171,456 191,840 2,220,032
    2 385,024 78,348 516,096
    3 450,560 112,391 450,560
    4 2,220,032 101,425 2,220,032
    5 778,240 134,380 843,776
    6 647,168 78,286 647,168
    7 319,488 86,191 581,632
    8 516,096 90,060 778,240
    9 516,096 49,626 516,096
    10 450,560 132,513 647,168
    Undo Segment Summary for DB: ST011 Instance: st011 Snaps: 41 -62
    -> Undo segment block stats:
    -> uS - unexpired Stolen, uR - unexpired Released, uU - unexpired reUsed
    -> eS - expired Stolen, eR - expired Released, eU - expired reUsed
    Undo Undo Num Max Qry Max Tx Snapshot Out of uS/uR/uU/
    TS# Blocks Trans Len (s) Concurcy Too Old Space eS/eR/eU
    1 1,555 551,825 1,575 2 0 0 0/0/15/0/0/0
    Undo Segment Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    -> ordered by Time desc
    Undo Num Max Qry Max Tx Snap Out of uS/uR/uU/
    End Time Blocks Trans Len (s) Concy Too Old Space eS/eR/eU
    08-Aug 03:53 0 0 0 0 0 0 0/0/0/0/0/0
    08-Aug 03:03 31 13,744 0 1 0 0 0/0/0/0/0/0
    08-Aug 02:53 0 0 0 0 0 0 0/0/0/0/0/0
    08-Aug 02:03 31 13,717 0 1 0 0 0/0/0/0/0/0
    08-Aug 01:53 0 0 0 0 0 0 0/0/0/0/0/0
    08-Aug 01:03 29 13,690 1 1 0 0 0/0/0/0/0/0
    08-Aug 00:53 0 0 0 0 0 0 0/0/0/0/0/0
    08-Aug 00:03 41 13,665 1 1 0 0 0/0/0/0/0/0
    07-Aug 23:53 0 0 0 0 0 0 0/0/0/0/0/0
    07-Aug 23:03 25 13,634 1 2 0 0 0/0/0/0/0/0
    07-Aug 22:53 0 0 0 0 0 0 0/0/0/0/0/0
    07-Aug 22:03 29 13,611 0 2 0 0 0/0/0/0/0/0
    07-Aug 21:53 0 0 0 0 0 0 0/0/0/0/0/0
    07-Aug 21:43 1 13,595 0 1 0 0 0/0/8/0/0/0
    07-Aug 21:33 1 13,591 0 1 0 0 0/0/0/0/0/0
    07-Aug 21:23 7 13,544 9 1 0 0 0/0/0/0/0/0
    07-Aug 21:13 1 13,448 12 1 0 0 0/0/0/0/0/0
    07-Aug 21:03 35 13,348 1 1 0 0 0/0/0/0/0/0
    07-Aug 20:53 7 13,212 9 1 0 0 0/0/0/0/0/0
    07-Aug 20:43 9 12,967 13 1 0 0 0/0/0/0/0/0
    07-Aug 20:33 4 12,785 3 1 0 0 0/0/0/0/0/0
    07-Aug 20:23 4 12,717 3 1 0 0 0/0/0/0/0/0
    07-Aug 20:13 7 12,607 9 1 0 0 0/0/0/0/0/0
    07-Aug 20:03 49 12,472 8 2 0 0 0/0/0/0/0/0
    07-Aug 19:53 0 0 0 0 0 0 0/0/0/0/0/0
    07-Aug 19:43 10 12,425 2 1 0 0 0/0/0/0/0/0
    07-Aug 19:33 14 12,263 30 1 0 0 0/0/0/0/0/0
    07-Aug 19:23 25 12,046 4 1 0 0 0/0/0/0/0/0
    07-Aug 19:13 52 11,686 2 1 0 0 0/0/0/0/0/0
    07-Aug 19:03 71 11,077 7 1 0 0 0/0/0/0/0/0
    07-Aug 18:53 41 10,558 4 1 0 0 0/0/0/0/0/0
    07-Aug 18:43 17 9,996 12 1 0 0 0/0/0/0/0/0
    07-Aug 18:33 6 9,744 30 1 0 0 0/0/0/0/0/0
    07-Aug 18:23 9 9,548 2 1 0 0 0/0/0/0/0/0
    Latch Activity for DB: ST011 Instance: st011 Snaps: 41 -62
    ->"Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
    willing-to-wait latch get requests
    ->"NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
    ->"Pct Misses" for both should be very close to 0.0
    Pct Avg Wait Pct
    Get Get Slps Time NoWait NoWait
    Latch Requests Miss /Miss (s) Requests Miss
    Consistent RBA 12,338 0.0 0 0
    FAL request queue 2 0.0 0 0
    FAL subheap alocation 0 0 2 0.0
    FIB s.o chain latch 72 0.0 0 0
    FOB s.o list latch 388 0.0 0 0
    JOX SGA heap latch 3,415 0.0 0 3,013 0.0
    NLS data objects 3 0.0 0 0
    QMT 1 0.0 0 0
    SQL memory manager latch 21 0.0 0 21,360 0.0
    SQL memory manager worka 1,455,705 0.0 0 0
    Token Manager 0 0 2 0.0
    active checkpoint queue 22,780 0.0 0 2 0.0
    alert log latch 4 0.0 0 2 0.0
    archive control 2,189 0.0 0 0
    archive process latch 1,299 0.2 0.0 0 0
    begin backup scn array 8 0.0 0 0
    cache buffer handles 339,925 0.0 0 0
    cache buffers chains 113,609,670 0.0 0.0 0 1,095,458 0.0
    cache buffers lru chain 2,057,063 0.0 0 13,776 0.0
    channel handle pool latc 194 0.0 0 0
    channel operations paren 43,420 0.0 0 0
    checkpoint queue latch 1,094,874 0.0 0.0 0 7,196 0.0
    child cursor hash table 543,267 0.0 0 0
    dml lock allocation 99,677 0.0 0 0
    dummy allocation 362 2.8 0.0 0 0
    enqueue hash chains 226,227 0.0 0 0
    enqueues 235,237 0.0 0.0 0 0
    event group latch 95 0.0 0 0
    file number translation 699,304 0.0 0.0 0 0
    hash table column usage 2,980 0.0 0 779,274 0.0
    hash table modification 5 0.0 0 2 0.0
    job workq parent latch 0 0 26 7.7
    job_queue_processes para 745 0.0 0 2 0.0
    kmcptab latch 1,788 0.0 0 0
    kmcpvec latch 0 0 1,788 0.0
    ksfv messages 0 0 4 0.0
    ktm global data 260 0.0 0 0
    lgwr LWN SCN 29,530 0.0 0 0
    library cache 7,579,771 0.0 0.0 0 112,898 0.1
    library cache load lock 5,302 0.0 0 0
    library cache pin 3,098,174 0.0 0.0 0 0
    library cache pin alloca 2,124,257 0.0 0.0 0 0
    list of block allocation 321 0.0 0 0
    loader state object free 1,186 0.0 0 0
    longop free list parent 9 0.0 0 9 0.0
    message pool operations 9 0.0 0 0
    messages 209,721 0.2 0.0 0 0
    mostly latch-free SCN 29,532 0.0 0.0 0 0
    multiblock read objects 181,050 0.0 0 2 0.0
    name-service namespace o 0 0 2 0.0
    Latch Activity for DB: ST011 Instance: st011 Snaps: 41 -62
    ->"Get Requests", "Pct Get Miss" and "Avg Slps/Miss" are statistics for
    willing-to-wait latch get requests
    ->"NoWait Requests", "Pct NoWait Miss" are for no-wait latch get requests
    ->"Pct Misses" for both should be very close to 0.0
    Pct Avg Wait Pct
    Get Get Slps Time NoWait NoWait
    Latch Requests Miss /Miss (s) Requests Miss
    ncodef allocation latch 1,065 0.0 0 0
    object stats modificatio 357 0.0 0 2 0.0
    post/wait queue 24,713 0.0 0 10,698 0.0
    process allocation 95 0.0 0 95 0.0
    process group creation 189 0.0 0 0
    qm_init_sga 1 0.0 0 0
    redo allocation 115,339 0.0 0.0 0 0
    redo copy 0 0 73,511 0.1
    redo writing 92,285 0.0 0 0
    resumable state object 351 0.0 0 0
    row cache enqueue latch 3,995,948 0.0 0.0 0 0
    row cache objects 4,004,202 0.0 0 696 0.0
    sequence cache 430 0.0 0 0
    session allocation 292,885 0.0 0.0 0 0
    session idle bit 2,269,446 0.0 0.0 0 0
    session switching 1,065 0.0 0 0
    session timer 22,218 0.0 0 0
    shared java pool 860 0.0 0 0
    shared pool 4,913,350 0.0 0.0 0 0
    sim partition latch 0 0 110 0.0
    simulator hash latch 4,433,428 0.0 0 0
    simulator lru latch 43,829 0.0 0 33,464 0.0
    sort extent pool 6,608 0.0 0 0
    temp lob duration state 2 0.0 0 0
    trace latch 13 0.0 0 0
    transaction allocation 931,196 0.0 0 0
    transaction branch alloc 1,065 0.0 0 0
    undo global data 57,750 0.0 0.0 0 0
    user lock 551 0.0 0 0
    vecio buf des 0 0 2 0.0
    virtual circuit buffers 10,648,289 0.2 0.0 0 0
    virtual circuit queues 5,140,393 0.0 0.0 0 0
    virtual circuits 1,824,349 0.0 0.0 0 0
    Latch Sleep breakdown for DB: ST011 Instance: st011 Snaps: 41 -62
    -> ordered by misses desc
    Get Spin &
    Latch Name Requests Misses Sleeps Sleeps 1->4
    virtual circuit buffers 10,648,289 19,024 3 19021/3/0/0/
    0
    shared pool 4,913,350 181 3 178/3/0/0/0
    cache buffers chains 113,609,670 63 1 0/0/0/0/0
    Latch Miss Sources for DB: ST011 Instance: st011 Snaps: 41 -62
    -> only latches with sleeps are shown
    -> ordered by name, sleeps desc
    NoWait Waiter
    Latch Name Where Misses Sleeps Sleeps
    cache buffers chains kcbgtcr: kslbegin excl 0 1 0
    shared pool kghalo 0 3 3
    virtual circuits kmcfms 0 1 1
    virtual circuits kmcgms: if not shared serv 0 1 0
    virtual circuits kmcmbf 0 1 1
    Dictionary Cache Stats for DB: ST011 Instance: st011 Snaps: 41 -62
    ->"Pct Misses" should be very low (< 2% in most cases)
    ->"Cache Usage" is the number of cache entries being used
    ->"Pct SGA" is the ratio of usage to allocated size for that cache
    Get Pct Scan Pct Mod Final
    Cache Requests Miss Reqs Miss Reqs Usage
    dc_files 3,248 0.2 0 0 8
    dc_global_oids 12,826 1.0 0 0 135
    dc_histogram_defs 1,214,659 0.1 0 0 2,451
    dc_object_ids 325,383 0.2 0 0 793
    dc_objects 72,357 1.9 0 2 1,504
    dc_profiles 125 0.0 0 0 1
    dc_qmc_cache_entries 1 100.0 0 0 1
    dc_rollback_segments 4,967 0.0 0 0 12
    dc_segments 168,507 0.4 0 0 760
    dc_sequences 8 37.5 0 8 2
    dc_tablespace_quotas 5 40.0 0 5 2
    dc_tablespaces 56,795 0.0 0 0 9
    dc_user_grants 1,393 1.1 0 0 22
    dc_usernames 70,029 0.0 0 0 15
    dc_users 71,699 0.0 0 0 25
    Library Cache Activity for DB: ST011 Instance: st011 Snaps: 41 -62
    ->"Pct Misses" should be very low
    Get Pct Pin Pct Invali-
    Namespace Requests Miss Requests Miss Reloads dations
    BODY 225 16.4 226 18.6 3 0
    CLUSTER 1,272 0.3 1,008 0.8 0 0
    JAVA DATA 2 100.0 9 44.4 0 0
    SQL AREA 368,746 14.6 1,388,192 8.3 5,561 1
    TABLE/PROCEDURE 114,852 1.3 375,552 0.9 494 0
    TRIGGER 1,082 1.0 1,082 1.4 4 0
    Shared Pool Advisory for DB: ST011 Instance: st011 End Snap: 62
    -> 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
    Estd
    Shared Pool SP Estd Estd Estd Lib LC Time
    Size for Size Lib Cache Lib Cache Cache Time Saved Estd Lib Cache
    Estim (M) Factr Size (M) Mem Obj Saved (s) Factr Mem Obj Hits
    96 .6 96 20,704 1,595 1.0 896,845
    120 .7 119 25,821 1,596 1.0 898,184
    144 .9 142 30,844 1,596 1.0 899,133
    168 1.0 165 35,862 1,597 1.0 900,259
    192 1.1 188 41,079 1,598 1.0 901,912
    216 1.3 215 47,275 1,598 1.0 902,360
    240 1.4 238 52,517 1,598 1.0 903,089
    264 1.6 261 58,043 1,598 1.0 903,310
    288 1.7 284 63,632 1,598 1.0 903,711
    312 1.9 307 69,230 1,598 1.0 904,029
    336 2.0 338 76,368 1,598 1.0 904,158
    SGA Memory Summary for DB: ST011 Instance: st011 Snaps: 41 -62
    SGA regions Size in Bytes
    Database Buffers 142,606,336
    Fixed Size 454,356
    Redo Buffers 667,648
    Variable Size 486,539,264
    sum 630,267,604
    SGA breakdown difference for DB: ST011 Instance: st011 Snaps: 41 -62
    Pool Name Begin value End value % Diff
    java free memory 33,554,432 30,031,872 -10.50
    large free memory 24,861,188 24,957,400 0.39
    large session heap 304,636 208,424 -31.58
    shared 1M buffer 2,098,176 2,098,176 0.00
    shared FileOpenBlock 695,504 695,504 0.00
    shared KGK heap 3,756 3,756 0.00
    shared KGLS heap 1,652,428 2,590,108 56.75
    shared KQR M PO 861,220 2,452,776 184.80
    shared KQR S PO 77,148 239,708 210.71
    shared KQR S SO 1,792 5,632 214.29
    shared KSXR pending messages que 841,036 841,036 0.00
    shared KSXR receive buffers 1,033,000 1,033,000 0.00
    shared MTTR advisory 25,400 29,636 16.68
    shared PL/SQL DIANA 625,620 951,760 52.13
    shared PL/SQL MPCODE 358,152 902,912 152.10
    shared PLS non-lib hp 2,068 2,068 0.00
    shared dictionary cache 1,610,880 1,610,880 0.00
    shared errors 25,144 46,460 84.78
    shared event statistics per sess 1,718,360 1,718,360 0.00
    shared fixed allocation callback 220 220 0.00
    shared free memory 157,840,156 13,956,720 -91.16
    shared joxs heap init 4,220 4,220 0.00
    shared kgl simulator 694,520 9,560,380 #######
    shared library cache 4,829,312 39,226,604 712.26
    shared message pool freequeue 834,752 834,752 0.00
    shared miscellaneous 5,094,676 7,076,492 38.90
    shared parameters 5,220 32,976 531.72
    shared sessions 410,720 410,720 0.00
    shared sim memory hea 93,176 93,176 0.00
    shared sql area 9,864,252 100,764,460 921.51
    shared table definiti 2,040 5,920 190.20
    shared trigger defini 1,888 2,208 16.95
    shared trigger inform 1,108 1,324 19.49
    shared trigger source 160 1,168 630.00
    buffer_cache 142,606,336 142,606,336 0.00
    fixed_sga 454,356 454,356 0.00
    log_buffer 656,384 656,384 0.00
    init.ora Parameters for DB: ST011 Instance: st011 Snaps: 41 -62
    End value
    Parameter Name Begin value (if different)
    background_dump_dest E:\oracle\admin\ST011\bdump
    compatible 9.2.0.1.0
    control_files E:\oracle\oradata\ST011\control01
    core_dump_dest E:\oracle\admin\ST011\cdump
    db_block_size 8192
    db_cache_size 142606336
    db_domain
    db_file_multiblock_read_count 16 8
    db_name ST011
    dispatchers (PROTOCOL=TCP)
    fast_start_mttr_target 300
    hash_join_enabled TRUE
    instance_name ST011
    java_pool_size 33554432
    job_queue_processes 0 5
    large_pool_size 25165824
    log_archive_dest_1 LOCATION=E:\oracle\oradata\ST011\
    log_archive_format %t_%s.dbf
    log_archive_start TRUE
    open_cursors 300
    pga_aggregate_target 109051904
    processes 150
    query_rewrite_enabled FALSE
    remote_login_passwordfile EXCLUSIVE
    sga_max_size 630267604
    shared_pool_size 176160768
    sort_area_size 524288
    star_transformation_enabled FALSE
    timed_statistics TRUE
    undo_management AUTO
    undo_retention 10800
    undo_tablespace UNDOTBS1
    user_dump_dest E:\oracle\admin\ST011\udump
    End of Report

    Frederic's right... you're summing up too many statspacks ..
    Can't see anything specific apart from the fact that Statspack itself is showing up in the top statements.
    First : define 'Slow' . What is your goal for 'Ok' ?
    Start thinking about sql_trace, tkprof and 10046 traces

  • Hello i am trying to fix a phone that my gf forgot her puk and pin

    it says this
    play,persistOnClick:la.persistOnClick||ma.persistOnClick});ka.setAttribute('data -hover','tooltip');}function ha(ka,la){ja.set(ka,"Loading...");new h(la).setHandler(function(ma){ja.set(ka,ma.getPayload());}).setErrorHandler(r). send();}var ia;g.listen(document.documentElement,'mouseover',function(event){ia=event;v(fun ction(){ia=null;});});var ja={process:function(ka,la){if(!m.contains(ka,la))return;if(ka!==x){var ma=ka.getAttribute('data-tooltip-uri');if(ma){ka.removeAttribute('data-tooltip- uri');ha(ka,ma);}var na=ka.getAttribute('data-tooltip-delay');if(na){na=parseInt(na,10)||1000;ja._sh owWithDelay(ka,na);}else ja.show(ka);}},remove:function(ka){l.remove(ka,'tooltip');ka.removeAttribute('d ata-hover');ka.removeAttribute('data-tooltip-position');ka.removeAttribute('data -tooltip-alignh');ka===x&&ja.hide();},hide:function(){if(x){aa.hide();x=null;whi le(ca.length)ca.pop().remove();}},set:function(ka,la,ma,na){if(ma||na)ga(ka,{pos ition:ma,alignH:na});if(la instanceof o){if(ka===x){ha(ka,la);}else ka.setAttribute('data-tooltip-uri',la);}else{if(m.isTextNode(la))la=s(la);var oa=false;if(typeof la!=='string'){la=m.create('div',{},la);ka.setAttribute('aria-label',s(la));}el se{ka.setAttribute('aria-label',la);oa=la==='';}ga(ka,{content:la,suppress:oa}); ka===x&&ja.show(ka);}},propsFor:function(ka){return {'aria-label':ka,'data-hover':'tooltip'};},enableDisplayOnOverflow:function(ka) {ka.removeAttribute('data-tooltip-display');ga(ka,{overflowDisplay:true});},enab lePersistOnClick:function(ka){ka.removeAttribute('data-pitloot-persistOnClick'); ga(ka,{persistOnClick:true});},suppress:function(ka,la){ga(ka,{suppress:la});},s how:function(ka){ea();ja.hide();var la=fa(ka);if(la.suppress)return;var ma=la.content;if(la.overflowDisplay){if(ka.offsetWidth>=ka.scrollWidth)return;i f(!ma)ma=s(ka);}if(!ma)return;var na=0,oa=0;if(la.position==='left'||la.position==='right'){oa=(ka.offsetHeight-2 8)/2;}else if(la.alignH!=='center'){var pa=ka.offsetWidth;if(pa<32)na=(pa-32)/2*(la.alignH==='right'?-1:1);}aa.setConte xtWithBounds(ka,t(ka,ia&&p.getEventPosition(ia))).setOffsetX(na).setOffsetY(oa). setPosition(la.position).setAlignment(la.alignH);if(typeof ma==='string'){k.addClass(aa.getRoot(),'invisible_elem');var qa=m.create('span',{},u(ma)),ra=m.create('div',{className:'tooltipText'},qa);m. setContent(ba,ra);aa.show();var sa;if(ra.getClientRects){var ta=ra.getClientRects()[0];if(ta)sa=Math.round(ta.right-ta.left);}if(!sa)sa=ra.o ffsetWidth;if(sa<qa.offsetWidth){k.addClass(ra,'tooltipWrap');aa.updatePosition( );}k.removeClass(aa.getRoot(),'invisible_elem');}else{m.setContent(ba,ma);aa.sho w();}var ua=function(wa){if(!m.contains(x,wa.getTarget()))ja.hide();};ca.push(g.listen(d ocument.documentElement,'mouseover',ua),g.listen(document.documentElement,'focus in',ua));var va=n.getScrollParent(ka);if(va!==window)ca.push(g.listen(va,'scroll',ja.hide)); if(!la.persistOnClick)ca.push(g.listen(ka,'click',ja.hide));x=ka;},_showWithDela y:function(ka,la){if(ka!==y)ja._clearDelay();if(!z){var ma=function(na){if(!m.contains(y,na.getTarget()))ja._clearDelay();};da.push(g.l isten(document.documentElement,'mouseover',ma),g.listen(document.documentElement ,'focusin',ma));y=ka;z=setTimeout(function(){ja._clearDelay();ja.show(ka);},la); }},_clearDelay:function(){clearTimeout(z);y=null;z=null;while(da.length)da.pop() .remove();}};g.listen(window,'scroll',ja.hide);e.exports=ja;},null);
    __d("TooltipMixin",["React","Tooltip","DOM"],function(a,b,c,d,e,f,g,h,i){functio n j(l){var m=l.tooltip;return m!=null&&typeof m!=='string';}var k={propTypes:{tooltip:g.PropTypes.oneOfType([g.PropTypes.element,g.PropTypes.st ring]),position:g.PropTypes.oneOf(['above','below','left','right']),alignH:g.Pro pTypes.oneOf(['left','center','right'])},getInitialState:function(){return {tooltipContainer:j(this.props)?i.create('div'):null};},componentWillReceivePro ps:function(l){var m=j(l),n=this.state.tooltipContainer;if(n&&!m){this.setState({tooltipContainer: null});}else if(!n&&m)this.setState({tooltipContainer:i.create('div')});},componentDidMount: function(){this._updateTooltip();},componentDidUpdate:function(l,m){if(m.tooltip Container&&!this.state.tooltipContainer)this._cleanupContainer(m.tooltipContaine r);this._updateTooltip();},_updateTooltip:function(){var l;if(j(this.props)){l=this.state.tooltipContainer;g.render(this.props.tooltip,l );}else l=this.props.tooltip;if(l!=null){h.set(this.getDOMNode(),l,this.props.position, this.props.alignH);}else h.remove(this.getDOMNode());},componentWillUnmount:function(){if(this.state.too ltipContainer)this._cleanupContainer(this.state.tooltipContainer);h.remove(this. getDOMNode());},_cleanupContainer:function(l){g.unmountComponentAtNode(l);}};e.e xports=k;},null);
    __d("TooltipLink.react",["React","TooltipMixin"],function(a,b,c,d,e,f,g,h){var i=g.createClass({displayName:"TooltipLink",mixins:[h],render:function(){return g.createElement("a",g.__spread({},this.props),this.props.children);}});e.export s=i;},null);
    __d("UnicodeBidi",["Locale","UnicodeBidiDirection"],function(a,b,c,d,e,f,g,h){"u se strict";var i={L:'A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF'+'\u200E\u2 C00-\uD7FF\uE000-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF',R:'\u05BE\u05C0\u05C3\u05C6\u 05D0-\u05EA\u05F0-\u05F2\u05F3-\u05F4'+'\u07C0-\u07C9\u07CA-\u07EA\u07F4-\u07F5\ u07FA\u0800-\u0815\u081A\u0824'+'\u0828\u0830-\u083E\u0840-\u0858\u085E\u200F\uF B1D\uFB1F-\uFB28'+'\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uF B46-\uFB4F',AL:'\u0608\u060B\u060D\u061B\u061C\u061E-\u061F\u0620-\u063F\u0640'+ '\u0641-\u064A\u066D\u066E-\u066F\u0671-\u06D3\u06D4\u06D5\u06E5-\u06E6'+'\u06EE -\u06EF\u06FA-\u06FC\u06FD-\u06FE\u06FF\u0700-\u070D\u070F\u0710'+'\u0712-\u072F \u074D-\u07A5\u07B1\u08A0\u08A2-\u08AC\uFB50-\uFBB1'+'\uFBB2-\uFBC1\uFBD3-\uFD3D \uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB'+'\uFDFC\uFE70-\uFE74\uFE76-\uFEFC'},j=i .L+i.R+i.AL,k=i.R+i.AL,l=new RegExp('['+j+']'),m=new RegExp('['+k+']');function n(t){var u=l.exec(t);if(!u)return h.NEUTRAL;var v=m.exec(u[0]);return v?h.RTL:h.LTR;}function o(t,u){u=u||h.NEUTRAL;if(!t.length)return u;var v=n(t);return (v===h.NEUTRAL)?u:v;}function p(t,u){if(!u||!h.isStrong(u))u=g.getDirection();return o(t,u);}function q(t,u){return p(t,u)===h.LTR;}function r(t,u){return p(t,u)===h.RTL;}var s={firstStrongCharDir:n,resolveBlockDir:o,getDirection:p,isDirectionLTR:q,isDir ectionRTL:r};e.exports=s;},null);
    __d("isRTL",["UnicodeBidi","UnicodeBidiDirection"],function(a,b,c,d,e,f,g,h){fun ction i(j){return g.getDirection(j)===h.RTL;}e.exports=i;},null);
    __d("UFILikeSentenceText.react",["ActorURI","HovercardLinkInterpolator","Profile BrowserLink","ProfileBrowserTypes","React","TextWithEntities.react","URI","cx"], function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){function o(q,r,s,t,u){if(u.count!=null){var v=j.LIKES,w={id:q.targetfbid,actorid:q.actorid},x=[],y;for(var z=0;z<s.length;z++)if(!s[z].count){y=s[z];var aa=y.entity;x.push(aa.id);}var ba=new m('/ajax/like/tooltip.php').setQueryData({comment_fbid:q.targetfbid,comment_fro m:q.actorforpost,seen_user_fbids:x.length?x:true});ba=g.create(ba,q.actorforpost );return (k.createElement("a",{className:((r?"UFILinkBold":'')),rel:"dialog",ajaxify:i.c onstructDialogURI(v,w).toString(),href:i.constructPageURI(v,w).toString(),"data- hover":"tooltip","data-tooltip-alignh":"center","data-tooltip-uri":ba.toString() ,role:"button"},t));}else return h(t,u,null,null,'ufi',r);}var p=k.createClass({displayName:"UFILikeSentenceText",propTypes:{contextArgs:k.Pro pTypes.object.isRequired,feedback:k.PropTypes.object.isRequired,likeSentenceData :k.PropTypes.object.isRequired},render:function(){var q=this.props.feedback,r=this.props.likeSentenceData,s;s=o;s=s.bind(null,q,this. props.contextArgs.userevisedufi,r.ranges);return (k.createElement(l,{interpolator:s,ranges:r.ranges,aggregatedRanges:r.aggregate dranges,text:r.text}));}});e.exports=p;},null);
    __d("UFIReplyLink.react",["React","fbt"],function(a,b,c,d,e,f,g,h){var i=g.createClass({displayName:"UFIReplyLink",propTypes:{onClick:g.PropTypes.func },render:function(){return (g.createElement("a",{className:"UFIReplyLink",href:"#",onClick:this.props.onCl ick},"Reply"));}});e.exports=i;},null);
    __d("Image.react",["Image.react-upstream"],function(a,b,c,d,e,f,g){e.exports=g;} ,null);
    __d("CloseButton.react",["React","Image.react","cx","joinClasses"],function(a,b, c,d,e,f,g,h,i,j){var k=g.createClass({displayName:"CloseButton",render:function(){var l=this.props,m=l.size||'medium',n=l.appearance||'normal',o=m==='small',p=m==='h uge',q=n==='dark',r=n==='inverted',s=l.ajaxify||null,t=l.rel||null,u=(("uiCloseB utton")+(o?' '+"uiCloseButtonSmall":'')+(p?' '+"uiCloseButtonHuge":'')+(o&&q?' '+"uiCloseButtonSmallDark":'')+(o&&r?' '+"uiCloseButtonSmallInverted":'')+(!o&&q?' '+"uiCloseButtonDark":'')+(!o&&r?' '+"uiCloseButtonInverted":''));return (g.createElement("a",g.__spread({},this.props,{ajaxify:s,href:"#",role:"button" ,"aria-label":l.tooltip,"data-hover":l.tooltip&&'tooltip',"data-tooltip-alignh": l.tooltip&&'center',className:j(this.props.className,u),rel:t}),g.createElement( h,{className:"uiCloseButtonHighContrast",src:"/images/chat/tab/close.png"})));}} );e.exports=k;},null);
    __d("BadgeHelper",["DOM","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i){var j={xsmall:"_5dzz",small:"_5dz-",medium:"_5dz_",large:"_5d-0",xlarge:"_5d-1"};fu nction k(m,n){var o=j[m];switch(n){case 'verified':return i(o,"_56_f _5dzy");case 'topcommenter':return i(o,"_59t2 _5dzy");case 'work':return i(o,"_5d62 _5dzy");}}function l(m,n){var o=k(m,n);if(o)return g.create('span',{className:o});}e.exports={getClasses:k,renderBadge:l,sizes:Obj ect.keys(j)};},null);
    __d("Badge.react",["BadgeHelper","React"],function(a,b,c,d,e,f,g,h){var i=h.createClass({displayName:"Badge",propTypes:{size:h.PropTypes.oneOf(g.sizes) ,type:h.PropTypes.oneOf(['verified','topcommenter','work'])},getDefaultProps:fun ction(){return {size:'xsmall',type:'verified'};},render:function(){return (h.createElement("span",{className:g.getClasses(this.props.size,this.props.type )}));}});e.exports=i;},null);
    __d("ReactPropTransferer",["Object.assign","emptyFunction","joinClasses"],functi on(a,b,c,d,e,f,g,h,i){"use strict";function j(o){return function(p,q,r){if(!p.hasOwnProperty(q)){p[q]=r;}else p[q]=o(p[q],r);};}var k=j(function(o,p){return g({},p,o);}),l={children:h,className:j(i),style:k};function m(o,p){for(var q in p){if(!p.hasOwnProperty(q))continue;var r=l[q];if(r&&l.hasOwnProperty(q)){r(o,q,p[q]);}else if(!o.hasOwnProperty(q))o[q]=p[q];}return o;}var n={mergeProps:function(o,p){return m(g({},o),p);}};e.exports=n;},null);
    __d("cloneWithProps",["ReactElement","ReactPropTransferer","keyOf","warning"],fu nction(a,b,c,d,e,f,g,h,i,j){"use strict";var k=i({children:null});function l(m,n){var o=h.mergeProps(n,m.props);if(!o.hasOwnProperty(k)&&m.props.hasOwnProperty(k))o. children=m.props.children;return g.createElement(m.type,o);}e.exports=l;},null);
    __d("ImageBlock.react",["LeftRight.react","React","cloneWithProps","cx","invaria nt","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l){function m(p){k(p.children&&(p.children.length===2||p.children.length===3));}function n(p){return (("img")+(' '+"_8o")+(p==='small'?' '+"_8r":'')+(p==='medium'?' '+"_8s":'')+(p==='large'?' '+"_8t":''));}var o=h.createClass({displayName:"ImageBlock",render:function(){m(this.props);var p=this.props.children[0],q=this.props.children[1],r=this.props.children[2],s=th is.props.spacing||'small',t={className:l(n(s),this.props.imageClassName)};if(p.t ype==='img'){if(p.props.alt===(void 0))t.alt='';}else if((p.type==='a'||p.type==='link')&&p.props.tabIndex===(void 0)&&p.props.title===(void 0)&&p.props['aria-label']===(void 0)){t.tabIndex='-1';t['aria-hidden']='true';}p=i(p,t);var u=l(this.props.contentClassName,(("_42ef")+(s==='small'?' '+"_8u":''))),v;if(!r){v=h.createElement("div",{className:u},q);}else v=h.createElement(g,{className:u,direction:g.DIRECTION.right},q,r);return (h.createElement(g,h.__spread({},this.props,{direction:g.DIRECTION.left}),p,v)) ;}});e.exports=o;},null);
    __d("isValidUniqueID",[],function(a,b,c,d,e,f){function g(h){return (h!==null&&h!==(void 0)&&h!==''&&(typeof h==='string'||typeof h==='number'));}e.exports=g;},null);
    __d("SearchableEntry",["HTML","isValidUniqueID","invariant"],function(a,b,c,d,e, f,g,h,i){function j(l){switch(typeof l){case 'string':return l;case 'object':var m=g.replaceJSONWrapper(l);if(g.isHTML(m)){var n=m.getRootNode();return n.textContent||n.innerText||'';}else return '';default:return '';}}function k(l){"use strict";i(h(l.uniqueID));i(!!l.title&&typeof l.title==='string');this.$SearchableEntry0=l.uniqueID+'';this.$SearchableEntry1 =l.title;this.$SearchableEntry2=l.order||0;this.$SearchableEntry3=j(l.subtitle); this.$SearchableEntry4=l.keywordString||'';this.$SearchableEntry5=l.photo||'';th is.$SearchableEntry6=l.uri||'';this.$SearchableEntry7=l.type||'';this.$Searchabl eEntry8=l.auxiliaryData||null;}k.prototype.getUniqueID=function(){"use strict";return this.$SearchableEntry0;};k.prototype.getOrder=function(){"use strict";return this.$SearchableEntry2;};k.prototype.getTitle=function(){"use strict";return this.$SearchableEntry1;};k.prototype.getSubtitle=function(){"use strict";return this.$SearchableEntry3;};k.prototype.getKeywordString=function(){"use strict";return this.$SearchableEntry4;};k.prototype.getPhoto=function(){"use strict";return this.$SearchableEntry5;};k.prototype.getURI=function(){"use strict";return this.$SearchableEntry6;};k.prototype.getType=function(){"use strict";return this.$SearchableEntry7;};k.prototype.getAuxiliaryData=function(){"use strict";return this.$SearchableEntry8;};e.exports=k;},null);
    __d("TypeaheadViewItem",["React","SearchableEntry"],function(a,b,c,d,e,f,g,h){va r i={entry:g.PropTypes.instanceOf(h).isRequired,highlighted:g.PropTypes.bool,role :g.PropTypes.string,selected:g.PropTypes.bool,onSelect:g.PropTypes.func.isRequir ed,onHighlight:g.PropTypes.func,onRenderHighlight:g.PropTypes.func},j={_onSelect :function(k){this.props.onSelect(this.props.entry,k);},_onHighlight:function(k){ if(this.props.onHighlight)this.props.onHighlight(this.props.entry,k);},getDefaul tProps:function(){return {role:'option'};},shouldComponentUpdate:function(k){return (this.props.entry.getUniqueID()!==k.entry.getUniqueID()||this.props.highlighted !==k.highlighted||this.props.selected!==k.selected);},componentDidMount:function (){if(this.props.highlighted&&this.props.onRenderHighlight)this.props.onRenderHi ghlight(this.getDOMNode());},componentDidUpdate:function(){if(this.props.highlig hted&&this.props.onRenderHighlight)this.props.onRenderHighlight(this.getDOMNode( ));}};e.exports={propTypes:i,Mixin:j};},null);
    __d("MentionsTypeaheadViewItem.react",["Badge.react","ImageBlock.react","React", "TypeaheadViewItem","cssURL","cx"],function(a,b,c,d,e,f,g,h,i,j,k,l){var m=i.createClass({displayName:"MentionsTypeaheadViewItem",mixins:[j.Mixin],propT ypes:Object.assign({},j.propTypes,{ariaDescribedBy:i.PropTypes.string}),render:f unction(){var n=this.props.entry,o=n.getAuxiliaryData(),p=null;if(o)if(o.verified){p=i.create Element(g,{type:"verified",size:"xsmall"});}else if(o.workUser)p=i.createElement(g,{type:"work",size:"xsmall"});var q=n.getPhoto()?i.createElement("span",{className:"_5u93",style:{backgroundImage :k(n.getPhoto())}}):i.createElement("span",null),r=null;if(n.getSubtitle())r=i.c reateElement("div",{className:"_5u95"},n.getSubtitle());var s=(("_5u91")+(this.props.highlighted?' '+"_5u92":''));return (i.createElement("li",{role:"option",className:s,"aria-label":n.getTitle(),"ari a-selected":this.props.highlighted,"aria-describedby":this.props.ariaDescribedBy ,onMouseDown:this._onSelect,onMouseEnter:this._onHighlight},i.createElement(h,{s pacing:"medium"},q,i.createElement("div",null,i.createElement("div",{className:" _5u94"},n.getTitle(),p),r))));}});e.exports=m;},null);
    __d("Scrollable",["Event","Parent","UserAgent_DEPRECATED"],function(a,b,c,d,e,f, g,h,i){var j=function(event){var m=h.byClass(event.getTarget(),'scrollable');if(!m)return;if((typeof event.axis!=='undefined'&&event.axis===event.HORIZONTAL_AXIS)||(event.wheelDelt aX&&!event.wheelDeltaY)||(event.deltaX&&!event.deltaY))return;var n=event.wheelDelta||-event.deltaY||-event.detail,o=m.scrollHeight,p=m.clientHei ght;if(o>p){var q=m.scrollTop;if((n>0&&q===0)||(n<0&&q>=o-p-1)){event.prevent();}else if(i.ie()<9)if(m.currentStyle){var r=m.currentStyle.fontSize;if(r.indexOf('px')<0){var s=document.createElement('div');s.style.fontSize=r;s.style.height='1em';r=s.sty le.pixelHeight;}else r=parseInt(r,10);m.scrollTop=q-Math.round(n/120*r);event.prevent();}}},k=docume nt.documentElement;if(i.firefox()){var l=('WheelEvent' in window)?'wheel':'DOMMouseScroll';k.addEventListener(l,j,false);}else g.listen(k,'mousewheel',j);},null);
    __d("ScrollableArea.react",["Bootloader","React","Style","cx","joinClasses","Scr ollable"],function(a,b,c,d,e,f,g,h,i,j,k){b('Scrollable');var l="uiScrollableArea native",m="uiScrollableAreaWrap scrollable",n="uiScrollableAreaBody",o="uiScrollableAreaContent",p=h.createClas s({displayName:"ReactScrollableArea",render:function(){var q={height:this.props.height};return (h.createElement("div",h.__spread({},this.props,{className:k(this.props.classNa me,l),ref:"root",style:Object.assign({},(this.props.style||{}),q)}),h.createElem ent("div",{className:m,ref:"wrap"},h.createElement("div",{className:n,ref:"body" },h.createElement("div",{className:o},this.props.children)))));},getArea:functio n(){return this._area;},componentDidMount:function(){g.loadModules(["ScrollableArea"],this ._loadScrollableArea);},_loadScrollableArea:function(q){this._area=q.fromNative( this.refs.root.getDOMNode(),{fade:this.props.fade,persistent:this.props.persiste nt,shadow:this.props.shadow===(void 0)?true:this.props.shadow});var r=this.refs.body.getDOMNode();i.set(r,'width',this.props.width+'px');this.props .onScroll&&this._area.subscribe('scroll',this.props.onScroll);}});e.exports=p;}, null);
    __d("Timestamp.react",["LiveTimer","joinClasses","React"],function(a,b,c,d,e,f,g ,h,i){var j=b('React').PropTypes,k=i.createClass({displayName:"Timestamp",propTypes:{auto Update:j.bool},getDefaultProps:function(){return {autoUpdate:false};},componentDidMount:function(){if(this.props.autoUpdate)g.ad dTimeStamps(this.getDOMNode());},componentDidUpdate:function(l,m){if(this.props. autoUpdate&&this.props.time!==l.time)g.loop();},render:function(){var l=g.renderRelativeTimeToServer(this.props.time,this.props.shorten);return (i.createElement("abbr",i.__spread({},this.props,{className:h(this.props.classN ame,"livetimestamp"),title:this.props.verbose,"data-utime":this.props.time,"data -shorten":this.props.shorten?true:null}),l.text||this.props.text));}});e.exports =k;},null);
    __d("AbstractButton.react",["Link.react","React","cloneWithProps","cx","joinClas ses"],function(a,b,c,d,e,f,g,h,i,j,k){var l=h.createClass({displayName:"AbstractButton",propTypes:{image:h.PropTypes.elem ent,imageRight:h.PropTypes.element,depressed:h.PropTypes.bool,label:h.PropTypes. node,onClick:h.PropTypes.func},handleLinkClick:function(m){if(this.props.disable d){m.preventDefault();}else if(this.props.onClick)this.props.onClick(m);},render:function(){var m=(("_42ft")+(this.props.disabled?' '+"_42fr":'')+(this.props.depressed?' '+"_42fs":'')),n,o=this.props.image;if(o){n={};if(this.props.label){n.alt='';n. className="_3-8_";}o=i(o,n);}var p=this.props.imageRight;if(p){n={};if(this.props.label){n.alt='';n.className="_ 3-99";}p=i(p,n);}var q;if(this.props.href){q=h.createElement(g,h.__spread({},this.props,{className:k (this.props.className,m),disabled:null,label:null,onClick:this.handleLinkClick}) ,o,this.props.label,p);}else if(this.props.type&&this.props.type!=='submit'){q=h.createElement("button",h.__ spread({},this.props,{className:k(this.props.className,m),label:null,type:this.p rops.type}),o,this.props.label,p);}else q=h.createElement("button",h.__spread({},this.props,{className:k(this.props.cla ssName,m),label:null,type:"submit",value:"1"}),o,this.props.label,p);return q;}});e.exports=l;},null);
    __d("XUIAbstractGlyphButton.react",["AbstractButton.react","React","cx","joinCla sses"],function(a,b,c,d,e,f,g,h,i,j){var k=h.createClass({displayName:"XUIAbstractGlyphButton",propTypes:{label:h.PropTy pes.node},render:function(){return (h.createElement(g,h.__spread({},this.props,{className:j(this.props.className," _5upp")})));}});e.exports=k;},null);
    __d("XUICloseButton.react",["XUIAbstractGlyphButton.react","React","cx","fbt","j oinClasses"],function(a,b,c,d,e,f,g,h,i,j,k){var l=h.createClass({displayName:"XUICloseButton",propTypes:{shade:h.PropTypes.oneO f(['light','dark']),size:h.PropTypes.oneOf(['small','medium']),type:h.PropTypes. oneOf(['submit','button','reset'])},getDefaultProps:function(){return {size:'medium',shade:'dark',type:'button'};},render:function(){var m=this.props.size,n=this.props.shade,o=(("_50zy")+(m==='small'?' '+"_50zz":'')+(m==='medium'?' '+"_50-0":'')+(n==='light'?' '+"_50z_":'')+(n==='dark'?' '+"_50z-":'')),p=this.props.label,q=this.props.title;if(!this.props.title&&!thi s.props.tooltip){if(!p)p="Remove";q=p;}return (h.createElement(g,h.__spread({},this.props,{label:p,title:q,type:this.props.hr ef?null:this.props.type,"aria-label":this.props.tooltip,"data-hover":this.props. tooltip&&'tooltip',"data-tooltip-alignh":this.props.tooltip&&'center',className: k(this.props.className,o)})));}});e.exports=l;},null);
    __d("XUIText.react",["React","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i){var j=g.PropTypes,k=g.createClass({displayName:"XUIText",propTypes:{size:j.oneOf([' small','medium','large','xlarge','inherit']),weight:j.oneOf(['bold','inherit','n ormal']),display:j.oneOf(['inline','block'])},getDefaultProps:function(){return {size:'inherit',weight:'inherit',display:'inline'};},render:function(){var l=this.props.size,m=this.props.weight,n=((l==='small'?"_50f3":'')+(l==='medium' ?' '+"_50f4":'')+(l==='large'?' '+"_50f5":'')+(l==='xlarge'?' '+"_50f6":'')+(m==='bold'?' '+"_50f7":'')+(m==='normal'?' '+"_5kx5":''));if(this.props.display==='block')return (g.createElement("div",g.__spread({},this.props,{className:i(this.props.classNa me,n)}),this.props.children));return (g.createElement("span",g.__spread({},this.props,{className:i(this.props.classN ame,n)}),this.props.children));}});e.exports=k;},null);
    __d("XUIGrayText.react",["React","XUIText.react","cx","joinClasses"],function(a, b,c,d,e,f,g,h,i,j){var k=g.PropTypes,l=g.createClass({displayName:"XUIGrayText",propTypes:{shade:k.one Of(['light','medium','dark'])},getDefaultProps:function(){return {shade:'light'};},render:function(){var m=((this.props.shade==='light'?"_50f8":'')+(this.props.shade==='medium'?' '+"_c24":'')+(this.props.shade==='dark'?' '+"_50f9":''));return (g.createElement(h,g.__spread({},this.props,{className:j(this.props.className,m )}),this.props.children));}});e.exports=l;},null);
    __d("BanzaiNectar",["Banzai"],function(a,b,c,d,e,f,g){function h(j){return {log:function(k,l,m){var n={e:l,a:m};g.post('nectar:'+k,n,j);}};}var i=h();i.create=h;e.exports=i;},null);
    __d("concatMap",[],function(a,b,c,d,e,f){function g(h,i){var j=-1,k=i.length,l=[],m;while(++j<k){m=h(i[j],j,i);Array.isArray(m)?Array.protot ype.push.apply(l,m):Array.prototype.push.call(l,m);}return l;}e.exports=g;},null);
    __d("escapeRegex",[],function(a,b,c,d,e,f){function g(h){return h.replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1");}e.exports=g;},null);
    __d("extendArray",[],function(a,b,c,d,e,f){function g(h,i){Array.prototype.push.apply(h,i);return h;}e.exports=g;},null);
    __d("PhotosMimeType",[],function(a,b,c,d,e,f){function g(h){"use strict";if(this instanceof g===false)return new g(h);this.$PhotosMimeType0=h.split('/');}g.prototype.isImage=function(){"use strict";return this.$PhotosMimeType0[0]==='image';};g.prototype.isJpeg=function(){"use strict";return this.isImage()&&(this.$PhotosMimeType0[1]==='jpeg'||this.$PhotosMimeType0[1]=== 'pjpeg');};e.exports=g;},null);
    __d("DataTransfer",["PhotosMimeType","createArrayFromMixed","emptyFunction"],fun ction(a,b,c,d,e,f,g,h,i){var j=new RegExp('\u000D\u000A','g'),k='\u000A',l={'text/rtf':1,'text/html':1};function m(o){if(o.kind=='file')return o.getAsFile();}function n(o){"use strict";this.data=o;this.types=o.types?h(o.types):[];}n.prototype.isRichText=fu nction(){"use strict";return this.types.some(function(o){return l[o];});};n.prototype.getText=function(){"use strict";var o;if(this.data.getData)if(!this.types.length){o=this.data.getData('Text');}else if(this.types.indexOf('text/plain')!=-1)o=this.data.getData('text/plain');retur n o?o.replace(j,k):null;};n.prototype.getHTML=function(){"use strict";if(this.data.getData)if(!this.types.length){return this.data.getData('Text');}else if(this.types.indexOf('text/html')!=-1)return this.data.getData('text/html');};n.prototype.isLink=function(){"use strict";return this.types.some(function(o){return o.indexOf('url')!=-1||o.indexOf('text/uri-list')!=-1;});};n.prototype.isImage=f unction(){"use strict";var o=this.types.some(function(s){return s.indexOf('application/x-moz-file')!=-1;});if(o)return true;var p=this.getFiles();for(var q=0;q<p.length;q++){var r=p[q].type;if(!g(r).isImage())return false;}return true;};n.prototype.getCount=function(){"use strict";if(this.data.hasOwnProperty('items')){return this.data.items.length;}else if(this.data.hasOwnProperty('mozItemCount')){return this.data.mozItemCount;}else if(this.data.files)return this.data.files.length;return null;};n.prototype.getFiles=function(){"use strict";if(this.data.items){return Array.prototype.slice.call(this.data.items).map(m).filter(i.thatReturnsArgument );}else if(this.data.files){return Array.prototype.slice.call(this.data.files);}else return [];};n.prototype.hasFiles=function(){"use strict";return this.getFiles().length>0;};e.exports=n;},null);
    __d("intlList",["React","fbt","invariant","keyMirror"],function(a,b,c,d,e,f,g,h, i,j){'use strict';var k=function(m,n){n=n||k.CONJUNCTIONS.AND;var o=m.length;if(o===0){return '';}else if(o===1)return m[0];var p=m[o-1],q=m[0];for(var r=1;r<o-1;++r)q=h._("{previous items}, {following items}",[h.param("previous items",q),h.param("following items",m[r])]);return l(q,p,n);};function l(m,n,o){switch(o){case k.CONJUNCTIONS.AND:return (h._("{list of items} and {last item}",[h.param("list of items",m),h.param("last item",n)]));case k.CONJUNCTIONS.OR:return (h._("{list of items} or {last item}",[h.param("list of items",m),h.param("last item",n)]));case k.CONJUNCTIONS.NONE:return (h._("{list of items}, {last item}",[h.param("list of items",m),h.param("last item",n)]));default:i(false);}}k.CONJUNCTIONS=j({AND:null,NONE:null,OR:null});e .exports=k;},null);
    __d("TrackingNodes",["TrackingNodeTypes"],function(a,b,c,d,e,f,g){var h={types:g,BASE_CODE_START:58,BASE_CODE_END:126,BASE_CODE_SIZE:69,PREFIX_CODE_S TART:42,PREFIX_CODE_END:47,PREFIX_CODE_SIZE:6,TN_URL_PARAM:'__tn__',encodeTN:fun ction(i,j){var k=(i-1)%h.BASE_CODE_SIZE,l=parseInt((i-1)/h.BASE_CODE_SIZE,10);if(i<1||l>h.PREF IX_CODE_SIZE)throw Error('Invalid tracking node: '+i);var m="";if(l>0)m+=String.fromCharCode(l-1+h.PREFIX_CODE_START);m+=String.fromCharC ode(k+h.BASE_CODE_START);if(typeof j!="undefined"&&j>0)m+=String.fromCharCode(48+Math.min(j,10)-1);return m;},decodeTN:function(i){if(i.length===0)return [0];var j=i.charCodeAt(0),k=1,l,m;if(j>=h.PREFIX_CODE_START&&j<=h.PREFIX_CODE_END){if(i .length==1)return [0];m=j-h.PREFIX_CODE_START+1;l=i.charCodeAt(1);k=2;}else{m=0;l=j;}if(l<h.BASE_ CODE_START||l>h.BASE_CODE_END)return [0];var n=m*h.BASE_CODE_SIZE+(l-h.BASE_CODE_START)+1;if(i.length>k&&(i.charAt(k)>='0'&& i.charAt(k)<='9'))return [k+1,[n,parseInt(i.charAt(k),10)+1]];return [k,[n]];},parseTrackingNodeString:function(i){var j=[];while(i.length>0){var k=h.decodeTN(i);if(k.length==1)return [];j.push(k[1]);i=i.substring(k[0]);}return j;},getTrackingInfo:function(i,j){return '{"tn":"'+h.encodeTN(i,j)+'"}';},addDataAttribute:function(i,j,k){if(j===(void 0))return;['data-ft','data-gt'].forEach(function(l){var m;if(i.getAttribute){m=i.getAttribute(l)||"{}";}else if(i.props){m=i.props[l]||"{}";}else return;var n=h.encodeTN(j,k);try{m=JSON.parse(m);if(m.tn&&m.tn===n)return;m.tn=n;if(i.setA ttribute){i.setAttribute(l,JSON.stringify(m));}else if(i.props){i.props[l]=JSON.stringify(m);}else return;}catch(o){}});}};e.exports=h;},null);
    __d("PresenceUtil",["CurrentUser","randomInt"],function(a,b,c,d,e,f,g,h){var i=h(0,4294967295)+1;function j(){return i;}function k(){return g.isLoggedInNow();}e.exports={getSessionID:j,hasUserCookie:k};},null);
    __d("ReactLayeredComponentMixin",["ExecutionEnvironment","ReactInstanceMap","Rea ctCurrentOwner","React"],function(a,b,c,d,e,f,g,h,i,j){"use strict";var k={componentWillMount:function(){if(g.canUseDOM)this._layersContainer=document. createElement('div');},componentDidMount:function(){this._renderLayersIntoContai ner();},componentDidUpdate:function(){this._renderLayersIntoContainer();},compon entWillUnmount:function(){j.unmountComponentAtNode(this._layersContainer);},_ren derLayersIntoContainer:function(){i.current=h.get(this);var l=this.renderLayers()||{};i.current=null;j.render(j.createElement("div",null,l) ,this._layersContainer);}};e.exports=k;},null);
    __d("AbstractTextEditorPlaceholder.Experimental.react",["EditorState","React","c x"],function(a,b,c,d,e,f,g,h,i){var j=h.PropTypes,k=h.createClass({displayName:"AbstractTextEditorPlaceholder",prop Types:{editorState:j.instanceOf(g).isRequired,text:j.string.isRequired},shouldCo mponentUpdate:function(l,m){if(this.props.text!==l.text)return true;var n=this.props.editorState,o=l.editorState,p=n.getSelection(),q=o.getSelection(); return (p.getHasFocus()!==q.getHasFocus());},render:function(){var l=this.props.editorState.getSelection().getHasFocus(),m=(("_5ywb")+(l?' '+"_5ywc":''));return (h.createElement("div",{className:m},this.props.text));}});e.exports=k;},null);
    __d("TokenizeUtil",[],function(a,b,c,d,e,f){var g=/[ ]+/g,h=/[^ ]+/g,i=new RegExp(j(),'g');function j(){return '[.,+*?$|#{}()\'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;'+'\u30fb\u3001\u3002\u3008-\u301 1\u3014-\u301f\uff1a-\uff1f\uff01-\uff0f'+'\uff3b-\uff40\uff5b-\uff65\u2E2E\u061 f\u066a-\u066c\u061b\u060c\u060d'+'\uFD3e\uFD3F\u1801\u0964\u104a\u104b\u2010-\u 2027\u2030-\u205e'+'\u00a1-\u00b1\u00b4-\u00b8\u00ba\u00bb\u00bf]';}var k={},l={a:"\u0430 \u00e0 \u00e1 \u00e2 \u00e3 \u00e4 \u00e5 \u0101",b:"\u0431",c:"\u0446 \u00e7 \u010d",d:"\u0434 \u00f0 \u010f \u0111",e:"\u044d \u0435 \u00e8 \u00e9 \u00ea \u00eb \u011b \u0113",f:"\u0444",g:"\u0433 \u011f \u0123",h:"\u0445 \u0127",i:"\u0438 \u00ec \u00ed \u00ee \u00ef \u0131 \u012b",j:"\u0439",k:"\u043a \u0138 \u0137",l:"\u043b \u013e \u013a \u0140 \u0142 \u013c",m:"\u043c",n:"\u043d \u00f1 \u0148 \u0149 \u014b \u0146",o:"\u043e \u00f8 \u00f6 \u00f5 \u00f4 \u00f3 \u00f2",p:"\u043f",r:"\u0440 \u0159 \u0155",s:"\u0441 \u015f \u0161 \u017f",t:"\u0442 \u0165 \u0167 \u00fe",u:"\u0443 \u044e \u00fc \u00fb \u00fa \u00f9 \u016f \u016b",v:"\u0432",y:"\u044b \u00ff \u00fd",z:"\u0437 \u017e",ae:"\u00e6",oe:"\u0153",ts:"\u0446",ch:"\u0447",ij:"\u0133",sh:"\u0448" ,ss:"\u00df",ya:"\u044f"};for(var m in l){var n=l[m].split(' ');for(var o=0;o<n.length;o++)k[n[o]]=m;}var p={};function q(w){return w?w.replace(i,' '):'';}function r(w){w=w.toLowerCase();var x='',y='';for(var z=w.length;z--;){y=w.charAt(z);x=(k[y]||y)+x;}return x.replace(g,' ');}function s(w){var x=[],y=h.exec(w);while(y){y=y[0];x.push(y);y=h.exec(w);}return x;}function t(w,x){if(!p.hasOwnProperty(w)){var y=r(w),z=q(y);p[w]={value:w,flatValue:y,tokens:s(z),isPrefixQuery:z&&z[z.length -1]!=' '};}if(x&&typeof p[w].sortedTokens=='undefined'){p[w].sortedTokens=p[w].tokens.slice();p[w].sort edTokens.sort(function(aa,ba){return ba.length-aa.length;});}return p[w];}function u(w,x,y){var z=t(x,w=='prefix'),aa=w=='prefix'?z.sortedTokens:z.tokens,ba=t(y).tokens,ca={}, da=z.isPrefixQuery&&w=='query'?aa.length-1:null,ea=function(fa,ga){for(var ha=0;ha<ba.length;++ha){var ia=ba[ha];if(!ca[ha]&&(ia==fa||((w=='query'&&ga===da||w=='prefix')&&ia.indexOf( fa)===0)))return (ca[ha]=true);}return false;};return Boolean(aa.length&&aa.every(ea));}var v={flatten:r,parse:t,getPunctuation:j,isExactMatch:u.bind(null,'exact'),isQuery Match:u.bind(null,'query'),isPrefixMatch:u.bind(null,'prefix'),tokenize:s};e.exp orts=v;},null);
    __d("TypeaheadNavigation",[],function(a,b,c,d,e,f){var g={moveUp:function(h,i,j){var k=h.indexOf(i),l=k==-1?h.length-1:k-1;j(l==-1?null:h[l]);},moveDown:function(h, i,j){var k=h.indexOf(i)+1;j(k==h.length?null:h[k]);}};e.exports=g;},null);
    __d("UnicodeCJK",[],function(a,b,c,d,e,f){"use strict";var g='a-zA-Z',h='\uFF21-\uFF3A\uFF41-\uFF5A',i=g+h,j='\u3040-\u309F',k='\u30A0-\u3 0FF',l='\u31F0-\u31FF',m='\uFF65-\uFF9F',n=k+l+m,o=j+n,p=[12352,12447],q=[12448, 12543],r=q[0]-p[0],s='\u4E00-\u9FCF',t='\u3400-\u4DBF',u=s+t,v='\uAC00-\uD7AF',w =u+o+v,x=null,y=null,z=null,aa=null;function ba(ja){y=y||new RegExp('['+o+']');return y.test(ja);}function ca(ja){x=x||new RegExp('['+u+']');return x.test(ja);}function da(ja){z=z||new RegExp('['+w+']');return z.test(ja);}function ea(ja){var ka=ja.charCodeAt(0);return String.fromCharCode((ka<p[0]||ka>p[1])?ka:ka+r);}function fa(ja){if(!ba(ja))return ja;return ja.split('').map(ea).join('');}function ga(ja){aa=aa||new RegExp('^'+'['+o+']+'+'['+i+']'+'$');return aa.test(ja);}function ha(ja){if(ga(ja))return ja.substr(0,ja.length-1);return ja;}var ia={hasKana:ba,hasIdeograph:ca,hasIdeoOrSyll:da,hiraganaToKatakana:fa,isKanaWit hTrailingLatin:ga,kanaRemoveTrailingLatin:ha};e.exports=ia;},null);
    __d("UnicodeHangulKorean",[],function(a,b,c,d,e,f){"use strict";var g=/[\u3130-\u318F\uAC00-\uD7AF]/;function h(aa){return g.test(aa);}var i=[4352,4353,4522,4354,4524,4525,4355,4356,4357,4528,4529,4530,4531,4532,4533,4 378,4358,4359,4360,4385,4361,4362,4363,4364,4365,4366,4367,4368,4369,4370,4449,4 450,4451,4452,4453,4454,4455,4456,4457,4458,4459,4460,4461,4462,4463,4464,4465,4 466,4467,4468,4469,4448,4372,4373,4551,4552,4556,4558,4563,4567,4569,4380,4573,4 575,4381,4382,4384,4386,4387,4391,4393,4395,4396,4397,4398,4399,4402,4406,4416,4 423,4428,4593,4594,4439,4440,4441,4484,4485,4488,4497,4498,4500,4510,4513],j=125 93,k=i.length,l=j+k;function m(aa){return String.fromCharCode(i[aa-j]);}var n=4352,o=4449,p=4519,q=44032,r=19,s=21,t=28,u=(s*t),v=(r*u),w=q+v;function x(aa){var ba=aa-q,ca=ba%t;return String.fromCharCode(n+ba/u)+String.fromCharCode(o+(ba%u)/t)+((ca>0)?String.from CharCode(p+ca):'');}function y(aa){if(!h(aa))return aa;var ba=[];for(var ca=0;ca<aa.length;ca++){var da=aa.charAt(ca),ea=da.charCodeAt(0);ba.push((j<=ea&&ea<l)?m(ea):(q<=ea&&ea<w)? x(ea):da);}return ba.join('');}var z={toConjoiningJamo:y};e.exports=z;},null);
    __d("UnicodeMatch",["UnicodeHangulKorean","UnicodeCJK","invariant","createObject From","mapObject"],function(a,b,c,d,e,f,g,h,i,j,k){"use strict";var l=['prefix_hangul_conjoining_jamo','prefix_kana_drop_trailing_latin','prefix_ka na_hiragana_to_katakana'];function m(n){this.config=j(l,false);this.setConfigs(n||{});}m.prototype.setConfigs=func tion(n){k(n,function(o,p){return this.setConfig(p,o);}.bind(this),this);};m.prototype.setConfig=function(n,o){i( n in this.config);this.config[n]=o;};m.prototype.prefixMatchPrepare=function(n){if(n ){if(this.config.prefix_hangul_conjoining_jamo)n=g.toConjoiningJamo(n);if(this.c onfig.prefix_kana_drop_trailing_latin)n=h.kanaRemoveTrailingLatin(n);if(this.con fig.prefix_kana_hiragana_to_katakana)n=h.hiraganaToKatakana(n);}return n;};m.prototype.prefixMatch=function(n,o){n=this.prefixMatchPrepare(n);o=this.p refixMatchPrepare(o);return n.startsWith(o);};e.exports=m;},null);
    __d("LitestandStoryInsertionStatus",["ArbiterMixin","copyProperties"],function(a ,b,c,d,e,f,g,h){var i='check',j={registerBlocker:function(k){return j.subscribe(i,function(l,m){if(m.can_insert&&k())m.can_insert=false;});},canIns ert:function(){var k={can_insert:true};j.inform(i,k);return k.can_insert;}};h(j,g);e.exports=j;},null);
    __d("LitestandClassicPlaceHolders",["Arbiter"],function(a,b,c,d,e,f,g){var h={},i={register:function(j,k){h[j]=k;},destroy:function(j){var k=h[j];if(k){k.parentNode.removeChild(k);delete h[j];}},subscribeToDestroy:function(j){g.subscribe('feedAdsInvalidation/done',f unction(){this.destroy(j);}.bind(this));}};e.exports=i;},null);
    __d("DataSource",["ArbiterMixin","AsyncRequest","TokenizeUtil","UnicodeMatch","c opyProperties","createArrayFromMixed","createObjectFrom","emptyFunction","mixin" ],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=o(g);for(var q in p)if(p.hasOwnProperty(q))s[q]=p[q];var r=p===null?null:p.prototype;s.prototype=Object.create(r);s.prototype.constructo r=s;s.__superConstructor__=p;function s(t){"use strict";this._maxResults=t.maxResults||10;this.token=t.token;this.queryData=t.q ueryData||{};this.queryEndpoint=t.queryEndpoint||'';this.bootstrapData=t.bootstr apData||{};this.bootstrapEndpoint=t.bootstrapEndpoint||'';this._indexedFields=t. indexedFields||['text','tokens'];this._titleFields=t.titleFields||[];this._alway sPrefixMatch=t.alwaysPrefixMatch||false;this._deduplicationKey=t.deduplicationKe y||null;this._enabledLocalCache=(t.enabledLocalCache!=null)?t.enabledLocalCache: true;this._enabledQueryCache=(t.enabledQueryCache!=null)?t.enabledQueryCache:tru e;this._disableAllCaches=(t.disableAllCaches!=null)?t.disableAllCaches:false;thi s._enabledMergeUids=(t.enabledMergeUids!=null)?t.enabledMergeUids:false;this._qu eryExactMatch=t.queryExactMatch||false;this._acrossTransitions=t.acrossTransitio ns||false;this._minQueryLength=t.minQueryLength||-1;this._enforceNewRequestIDUpo nFetch=t.enforceNewRequestIDUponFetch||false;this._minExactMatchLength=4;this._f ilters=[];this.setExclusions(t.exclusions);this.backendUnicodeMatch=new j({prefix_kana_hiragana_to_katakana:!!t.kanaNormalization});this.cacheUnicodeMa tch=new j({prefix_kana_hiragana_to_katakana:!!t.kanaNormalization});}s.prototype.init=f unction(){"use strict";this.init=n;this._fields=m(this._indexedFields);this._activeQueries=0;t his.dirty();};s.prototype.dirty=function(){"use strict";this.value='';this._bootstrapped=false;this._bootstrapping=false;this._ data={};this.localCache={};this.queryCache={};this.queryIDs={};this.inform('dirt y',{});return this;};s.prototype.bootstrap=function(){"use strict";if(this._bootstrapped)return;this.bootstrapWithoutToken();this._bootstr apped=true;this._bootstrapping=true;this.inform('bootstrap',{bootstrapping:true} );};s.prototype.bootstrapWithoutToken=function(){"use strict";this.fetch(this.bootstrapEndpoint,this.bootstrapData,{bootstrap:true,to ken:this.token});};s.prototype.bootstrapWithToken=function(){"use strict";var t=k({},this.bootstrapData);t.token=this.token;this.fetch(this.bootstrapEndpoint ,t,{bootstrap:true,replaceCache:true,value:''});};s.prototype.query=function(t,u ,v,w){"use strict";this.inform('beforeQuery',{value:t,local_only:u,exclusions:v,time_waite d:w});var x=Date.now();if(this._disableAllCaches){this.dirty();if(!t){this.bootstrap();re turn true;}}else if(!this._enabledQueryCache){this.queryCache={};this.queryIDs={};}var y=this.buildUids(t,[],v),z=this.respond(t,y);this.value=t;this.inform('query',{ value:t,results:z});var aa=this.tokenizeBackend(t).flatValue;if(u||!aa||this._isQueryTooShort(aa)||!thi s.queryEndpoint||this.getQueryCache().hasOwnProperty(aa)||!this.shouldFetchMoreR esults(z)){this.inform('logPerformanceTiming',{field:'cache_keypress_render',val ue:Date.now()-x});this.inform('completeCacheFetch');return false;}this.inform('queryEndpoint',{value:t});this.fetch(this.queryEndpoint,thi s.getQueryData(t,y),{value:t,exclusions:v});return true;};s.prototype._isQueryTooShort=function(t){"use strict";return (t.length<this._minQueryLength);};s.prototype._tokenize=function(t,u){"use strict";return i.parse(t,u);};s.prototype.tokenizeBackend=function(t,u){"use strict";t=this.backendUnicodeMatch.prefixMatchPrepare(t);return this._tokenize(t,u);};s.prototype.tokenizeCache=function(t,u){"use strict";t=this.cacheUnicodeMatch.prefixMatchPrepare(t);return this._tokenize(t,u);};s.prototype.shouldFetchMoreResults=function(t){"use strict";return t.length<this._maxResults;};s.prototype.getQueryData=function(t,u){"use strict";var v=k({value:t},this.queryData||{});u=u||[];if(u.length)v.existing_ids=u.join(',' );if(this._bootstrapping)v.bsp=true;return v;};s.prototype.setQueryData=function(t,u){"use strict";if(u)this.queryData={};k(this.queryData,t);return this;};s.prototype.setBootstrapData=function(t,u){"use strict";if(u)this.bootstrapData={};k(this.bootstrapData,t);return this;};s.prototype.getExclusions=function(){"use strict";return l(this._exclusions);};s.prototype.setExclusions=function(t){"use strict";this._exclusions=t?t.map(String):[];};s.prototype.addFilter=function(t) {"use strict";var u=this._filters;u.push(t);return {remove:function(){u.splice(u.indexOf(t),1);}};};s.prototype.clearFilters=funct ion(){"use strict";this._filters=[];};s.prototype.notify=function(t,u,v,w){"use strict";var x=this.buildData(u);this.inform('notify',{value:t,results:x,isAsync:!!v,rootid: w});return x;};s.prototype.respond=function(t,u,v){"use strict";var w=this.buildData(u);this.inform('respond',{value:t,results:w,isAsync:!!v});retu rn w;};s.prototype.respondWithResults=function(t,u,v){"use strict";this.inform('respond',{value:t,results:u,isAsync:!!v});return u;};s.prototype.fetch=function(t,u,v){"use strict";if(!t)return;if(this._enforceNewRequestIDUponFetch||u.request_id===(voi d 0)){u.request_id=this._guid();v.request_id=u.request_id;}var w=new h().setURI(t).setData(u).setMethod('GET').setReadOnly(true).setAllowCrossPageTr ansition(this._acrossTransitions).setHandler(function(x){this.fetchHandler(x,v|| {});}.bind(this));if(t===this.queryEndpoint)w.setFinallyHandler(function(){this. _activeQueries--;if(!this._activeQueries)this.inform('activity',{activity:false} );}.bind(this));w.setErrorHandler(this.asyncErrorHandler);this.inform('beforeFet ch',{request:w,fetch_context:v});w.send();if(t===this.queryEndpoint){if(!this._a ctiveQueries)this.inform('activity',{activity:true});this._activeQueries++;}};s. prototype.fetchHandler=function(t,u){"use strict";var v=u.value,w=u.exclusions;if(t.getPayload().requestID!==(void 0))u.request_id=t.getPayload().requestID;var x=this.getQueryIDs(),y=this.tokenizeBackend(v||'').flatValue;x[y]=u.request_id; if(!v&&u.replaceCache)this.localCache={};this.inform('buildQueryCache',{});var z=t.getPayload().entries;this.addEntries(z,v);this.inform('fetchComplete',{entr ies:z,response:t,value:v,fetch_context:u});var aa=(!v&&this.value)?this.value:v;this.respond(aa,this.buildUids(aa,[],w),true); if(!v){if(this._bootstrapping){this._bootstrapping=false;this.inform('bootstrap' ,{bootstrapping:false});}if(u.token&&t.getPayload().token!==u.token)this.bootstr apWithToken();}};s.prototype.addEntries=function(t,u){"use strict";var v=this.processEntries(l(t||[]),u),w=v;if(this._enabledMergeUids)w=this.buildUid s(u,v);if(u){var x=this.getQueryCache(),y=this.tokenizeBackend(u).flatValue;x[y]=w;}else this.fillCache(w);};s.prototype.processEntries=function(t,u){"use strict";return t.map(function(v,w){var x=(v.uid=v.uid+''),y=this.getEntry(x);if(!y){y=v;y.query=u;y.bootstrapped=!u;th is.setEntry(x,y);}else k(y,v);y.index===(void 0)&&(y.index=w);return x;},this);};s.prototype.getAllEntries=function(){"use strict";return this._data||{};};s.prototype.getEntry=function(t){"use strict";return this._data[t]||null;};s.prototype.setEntry=function(t,u){"use strict";this._data[t]=u;};s.prototype.fillCache=function(t){"use strict";if(!this._enabledLocalCache)return;var u=this.localCache;t.forEach(function(v){var w=this.getEntry(v);if(!w)return;var x=this.tokenizeCache(this.getTextToIndex(w)).tokens;for(var y=0,z=x.length;y<z;++y){var aa=x[y];if(!u.hasOwnProperty(aa))u[aa]={};u[aa][v]=true;}},this);};s.prototype. getTextToIndex=function(t){"use strict";if(t.textToIndex&&!t.needs_update)return t.textToIndex;t.needs_update=false;t.textToIndex=this.getTextToIndexFromFields( t,this._indexedFields);return t.textToIndex;};s.prototype.getTextToIndexFromFields=function(t,u){"use strict";var v=[];for(var w=0;w<u.length;++w){var x=t[u[w]];if(x)v.push(x.join?x.join(' '):x);}return v.join(' ');};s.prototype.mergeUids=function(t,u,v,w){"use strict";this.inform('mergeUids',{local_uids:t,query_uids:u,new_uids:v,value:w}) ;var x=function(y,z){var aa=this.getEntry(y),ba=this.getEntry(z);if(aa.extended_match!==ba.extended_matc h)return aa.extended_match?1:-1;if(aa.index!==ba.index)return aa.index-ba.index;if(aa.text.length!==ba.text.length)return aa.text.length-ba.text.length;return aa.uid<ba.uid;}.bind(this);this._checkExtendedMatch(w,t);return this.deduplicateByKey(t.sort(x).concat(u,v));};s.prototype._checkExtendedMatch= function(t,u){"use strict";var v=this._alwaysPrefixMatch?i.isPrefixMatch:i.isQueryMatch;for(var w=0;w<u.length;++w){var x=this.getEntry(u[w]);x.extended_match=x.tokens?!v(t,x.text):false;}};s.prototy pe.buildUids=function(t,u,v){"use strict";if(!u)u=[];if(!t)return u;if(!v)v=[];var w=this.buildCacheResults(t,this.localCache),x=this.buildQueryResults(t),y=this. mergeUids(w,x,u,t),z=m(v.concat(this._exclusions)),aa=y.filter(function(ba){if(z .hasOwnProperty(ba)||!this.getEntry(ba))return false;for(var ca=0;ca<this._filters.length;++ca)if(!this._filters[ca](this.getEntry(ba),t))re turn false;return (z[ba]=true);},this);return this.uidsIncludingExact(t,aa);};s.prototype.uidsIncludingExact=function(t,u){"u se strict";var v=u.length;if(t.length<this._minExactMatchLength||v<=this._maxResults)return u;for(var w=0;w<v;++w){var x=this.getEntry(u[w]);x.text_lower||(x.text_lower=x.text.toLowerCase());if(x.te xt_lower===this.tokenizeCache(t).flatValue){if(w>=this._maxResults){var y=u.splice(w,1)[0];u.splice(this._maxResults-1,0,y);}break;}}return u;};s.prototype.buildData=function(t){"use strict";var u=[],v=Math.min(t.length,this._maxResults);for(var w=0;w<v;++w)u.push(this.getEntry(t[w]));return u;};s.prototype.findBestPreviousQuery=function(t,u){"use strict";var v=0,w=null;if(this._queryExactMatch)return u.hasOwnProperty(t)?t:null;for(var x in u)if(t.indexOf(x)===0&&x.length>v){v=x.length;w=x;}return w;};s.prototype.findQueryCache=function(t){"use strict";var u=this.findBestPreviousQuery(t,this.getQueryCache());return this.getQueryCache()[u]||[];};s.prototype.buildQueryResults=function(t){"use strict";var u=this.tokenizeBackend(t).flatValue,v=this.findQueryCache(u);if(this.getQueryCa che().hasOwnProperty(u))return v;var w=this.filterQueryResults(u,v);return w;};s.prototype.filterQueryResults=function(t,u){"use strict";var v=this._alwaysPrefixMatch?i.isPrefixMatch:i.isQueryMatch;return u.filter(function(w){return v(t,this.getTextToIndex(this.getEntry(w)));},this);};s.prototype.buildCacheResu lts=function(t,u){"use strict";var v=this.tokenizeCache(t,this._alwaysPrefixMatch),w=this._alwaysPrefixMatch?v.sor tedTokens:v.tokens,x=w.length,y=v.isPrefixQuery?x-1:null,z={},aa={},ba={},ca=[], da=false,ea={},fa=0;for(var ga=0;ga<x;++ga){var ha=w[ga];if(!ea.hasOwnProperty(ha)){fa++;ea[ha]=true;}else continue;for(var ia in u)if((!z.hasOwnProperty(ia)&&ia===ha)||((this._alwaysPrefixMatch||y===ga)&&this .cacheUnicodeMatch.prefixMatch(ia,ha))){if(ia===ha){if(aa.hasOwnProperty(ia))da= true;z[ia]=true;}else{if(z.hasOwnProperty(ia)||aa.hasOwnProperty(ia))da=true;aa[ ia]=true;}for(var ja in u[ia])if(ga===0||(ba.hasOwnProperty(ja)&&ba[ja]==fa-1))ba[ja]=fa;}}for(var ka in ba)if(ba[ka]==fa)ca.push(ka);if(da||fa<x)ca=this.filterQueryResults(t,ca);if(th is._titleFields&&this._titleFields.length>0)ca=this.filterNonTitleMatchQueryResu lts(t,ca);return ca;};s.prototype.filterNonTitleMatchQueryResults=function(t,u){"use strict";return u.filter(function(v){var w=this.tokenizeCache(t),x=w.tokens.length;if(x===0)return true;var y=this.getTitleTerms(this.getEntry(v)),z=w.tokens[0];return ((x===1)||this._alwaysPrefixMatch)?(i.isPrefixMatch(z,y)||this.cacheUnicodeMatc h.prefixMatch(y,z)):i.isQueryMatch(z,y);},this);};s.prototype.getTitleTerms=func tion(t){"use strict";if(!t.titleToIndex)t.titleToIndex=this.getTextToIndexFromFields(t,this. _titleFields);return t.titleToIndex;};s.prototype.deduplicateByKey=function(t){"use strict";if(!this._deduplicationKey)return t;var u=m(t.map(this._getDeduplicationKey.bind(this)),t);return t.filter(function(v){return u[this._getDeduplicationKey(v)]==v;}.bind(this));};s.prototype._getDeduplicatio nKey=function(t){"use strict";var u=this.getEntry(t);if(u[this._deduplicationKey]){return u[this._deduplicationKey]+'';}else return '__'+t+'__';};s.prototype.getQueryCache=function(){"use strict";return this.queryCache;};s.prototype.getQueryIDs=function(){"use strict";return this.queryIDs;};s.prototype.setMaxResults=function(t){"use strict";this._maxResults=t;this.value&&this.respond(this.value,this.buildUids(t his.value));};s.prototype.updateToken=function(t){"use strict";this.token=t;this.dirty();return this;};s.prototype._guid=function(){"use strict";var t=Date.now(),u='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function( v){var w=Math.floor((t+Math.random()*16)%16);t=Math.floor(t/16);var x=(v=='x'?w:(w&7|8)).toString(16);return x;});return u;};k(s.prototype,{events:['bootstrap','query','respond'],asyncErrorHandler:n}) ;e.exports=s;},null);
    __d("MultiBootstrapDataSource",["DataSource"],function(a,b,c,d,e,f,g){for(var h in g)if(g.hasOwnProperty(h))j[h]=g[h];var i=g===null?null:g.prototype;j.prototype=Object.create(i);j.prototype.constructo r=j;j.__superConstructor__=g;function j(k){"use strict";this._bootstrapEndpoints=k.bootstrapEndpoints;g.call(this,k);}j.prototy pe.bootstrapWithoutToken=function(){"use strict";for(var k=0;k<this._bootstrapEndpoints.length;k++)this.fetch(this._bootstrapEndpoints[k ].endpoint,this._bootstrapEndpoints[k].data||{},{bootstrap:true});};e.exports=j; },null);
    __d("TabbableElements",["Style","createArrayFromMixed"],function(a,b,c,d,e,f,g,h ){function i(l){if(l.tabIndex>0||(l.tabIndex===0&&l.getAttribute('tabIndex')!==null))retur n true;switch(l.tagName){case "A":return l.href&&l.rel!="ignore";case "INPUT":return l.type!="hidden"&&l.type!="file"&&!l.disabled;case "BUTTON":case "SELECT":case "TEXTAREA":return !l.disabled;}return false;}function j(l){if(l.offsetHeight===0&&l.offsetWidth===0)return false;while(l!==document&&g.get(l,'visibility')!='hidden')l=l.parentNode;return l===document;}var k={find:function(l){var m=h(l.getElementsByTagName("*"));return m.filter(k.isTabbable);},isTabbable:function(l){return i(l)&&j(l);}};e.exports=k;},null);
    __d("tidyEvent",["Run"],function(a,b,c,d,e,f,g){var h=[];function i(){while(h.length){var l=h.shift();l&&l.remove?l.remove():l.unsubscribe();}}function j(l){var m;function n(){if(!m)return;m.apply(l,arguments);m=null;l=null;}if(l.remove){m=l.remove;l. remove=n;}else{m=l.unsubscribe;l.unsubscribe=n;}return l;}function k(l){if(!h.length)g.onLeave(i);if(Array.isArray(l)){for(var m=0;m<l.length;m++)h.push(j(l[m]));}else h.push(j(l));return l;}e.exports=k;},null);
    __d("Toggler",["Arbiter","ArbiterMixin","ContextualThing","CSS","DataStore","DOM ","DOMQuery","Event","Focus","Keys","TabbableElements","arrayContains","copyProp erties","createArrayFromMixed","cx","emptyFunction","ge","getContextualParent"," getObjectValues","setImmediate","mixin"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o, p,q,r,s,t,u,v,w,x,y,z,aa){var ba=[],ca,da=false;function ea(){if(!da){da=true;z(function(){da=false;});}}function fa(){fa=v;n.listen(document.documentElement,'click',function(event){if(da)retur n;var ma=event.getTarget();ba.forEach(function(na){na.clickedTarget=ma;na.active&&!na .sticky&&!i.containsIncludingLayers(na.getActive(),ma)&&!na.inTargetFlyout(ma)&& na.inActiveDialog()&&!na.isIgnoredByModalLayer(ma)&&na.hide();});},n.Priority.UR GENT);}var ga=aa(h);for(var ha in ga)if(ga.hasOwnProperty(ha))ja[ha]=ga[ha];var ia=ga===null?null:ga.prototype;ja.prototype=Object.create(ia);ja.prototype.cons tructor=ja;ja.__superConstructor__=ga;function ja(){"use strict";this.active=null;this.togglers={};this.setSticky(false);ba.push(this);t his.subscribe(['show','hide'],ja.inform.bind(ja));return fa();}ja.prototype.show=function(ma){"use strict";var na=ka(this,ma),oa=na.active;if(ma!==oa){oa&&na.hide();na.active=ma;j.addClass(m a,'openToggler');var pa=l.scry(ma,'a[rel="toggle"]');if(pa.length>0&&pa[0].getAttribute('data-target '))j.removeClass(w(pa[0].getAttribute('data-target')),'toggleTargetClosed');var qa=m.scry(ma,'.uiToggleFlyout')[0];if(qa){var ra=q.find(qa)[0]||qa;if(ra.tabIndex==-1)ra.tabIndex=0;o.setWithoutOutline(ra);} if(pa.length>0){l.appendContent(ma,na.getToggler('next'));l.prependContent(ma,na .getToggler('prev'));}n.listen(ma,'keydown',function(event){if(n.getKeyCode(even t)===p.ESC)if(na.isShown()){var sa=l.scry(ma,'a[rel="toggle"]')[0];sa&&sa.focus();na.hide();}});na.inform('show ',na);}};ja.prototype.hide=function(ma){"use strict";var na=ka(this,ma),oa=na.active;if(oa&&(!ma||ma===oa)){j.removeClass(oa,'openToggle r');var pa=l.scry(oa,'a[rel="toggle"]');if(pa.length>0&&pa[0].getAttribute('data-target '))j.addClass(w(pa[0].getAttribute('data-target')),'toggleTargetClosed');y(na.to gglers).forEach(l.remove);na.inform('hide',na);na.active=null;}};ja.prototype.to ggle=function(ma){"use strict";var na=ka(this,ma);if(na.active===ma){na.hide();}else na.show(ma);ea();};ja.prototype.getActive=function(){"use strict";return ka(this).active;};ja.prototype.isShown=function(){"use strict";return ka(this).active&&j.hasClass(ka(this).active,'openToggler');};ja.prototype.inTar getFlyout=function(ma){"use strict";var na=la(this.getActive());return na&&i.containsIncludingLayers(na,ma);};ja.prototype.inActiveDialog=function(){" use strict";var ma=a.Dialog&&a.Dialog.getCurrent();return !ma||l.contains(ma.getRoot(),this.getActive());};ja.prototype.isIgnoredByModalL ayer=function(ma){"use strict";var na=!!i.parentByClass(ma,"_3qw"),oa=!!i.parentByClass(this.getActive(),"_3qw");r eturn na&&!oa;};ja.prototype.getToggler=function(ma){"use strict";var na=ka(this);if(!na.togglers[ma]){na.togglers[ma]=l.create('button',{className:' hideToggler',onfocus:function(){var oa=l.scry(na.active,'a[rel="toggle"]')[0];oa&&oa.focus();na.hide();},style:{rig ht:ma==='next'?'0':''}});na.togglers[ma].setAttribute('type','button');}return this.togglers[ma];};ja.prototype.setSticky=function(ma){"use strict";var na=ka(this);ma=ma!==false;if(ma!==na.sticky){na.sticky=ma;if(ma){na.$Toggler0&& na.$Toggler0.unsubscribe();}else na.$Toggler0=g.subscribe('pre_page_transition',na.hide.bind(na,null));}return na;};ja.prototype.setPrePageTransitionCallback=function(ma){"use strict";var na=ka(this);na.$Toggler0&&na.$Toggler0.unsubscribe();na.$Toggler0=g.subscribe(' pre_page_transition',ma);};ja.bootstrap=function(ma){"use strict";var na=ma.parentNode;ja.getInstance(na).toggle(na);};ja.createInstance=function(ma) {"use strict";var na=new ja().setSticky(true);k.set(ma,'toggler',na);return na;};ja.destroyInstance=function(ma){"use strict";k.remove(ma,'toggler');};ja.getInstance=function(ma){"use strict";while(ma){var na=k.get(ma,'toggler');if(na)return na;if(j.hasClass(ma,'uiToggleContext'))return ja.createInstance(ma);ma=x(ma);}return (ca=ca||new ja());};ja.listen=function(ma,na,oa){"use strict";return ja.subscribe(t(ma),function(pa,qa){if(qa.getActive()===na)return oa(pa,qa);});};s(ja,ja.prototype);s(ja,{subscribe:(function(ma){return function(na,oa){na=t(na);if(r(na,'show'))ba.forEach(function(pa){if(pa.getActiv e())setTimeout(oa.bind(null,'show',pa),0);});return ma(na,oa);};})(ja.subscribe.bind(ja))});function ka(ma,na){if(ma instanceof ja)return ma;return ja.getInstance(na);}function la(ma){var na=l.scry(ma,'a[rel="toggle"]');if(na.length>0&&na[0].getAttribute('data-target '))return w(na[0].getAttribute('data-target'));}e.exports=ja;},null);
    __d("onEnclosingPageletDestroy",["Arbiter","DOMQuery"],function(a,b,c,d,e,f,g,h) {function i(j,k){var l=g.subscribe('pagelet/destroy',function(m,n){if(h.contains(n.root,j)){l.unsubs cribe();k();}});return l;}e.exports=i;},null);
    __d("FbFeedHighlight",["JSXDOM","CSS","DOM","DOMScroll","cx"],function(a,b,c,d,e ,f,g,h,i,j,k){var l=1000,m=1000,n=null;function o(){return (g.div({className:"_1usz"},g.div({className:"_1us-"}),g.div({className:"_1us_"} ),g.div({className:"_1ut0"}),g.div({className:"_1ut1"})));}var p={highlightAndScrollTo:function(q){p.highlight(q);p.scrollTo(q);},highlightSin gle:function(q){var r=o();i.appendContent(q,r);setTimeout(function(){if(n)i.remove(n);n=r;h.addClas s(q,"_1ut2");},0);setTimeout(function(){h.removeClass(q,"_1ut2");setTimeout(func tion(){i.remove(r);if(r==n)n=null;},l+m);},l+m);},highlight:function(q){var r=o();i.appendContent(q,r);setTimeout(h.addClass.bind(null,q,"_1ut2"),0);setTim eout(function(){h.removeClass(q,"_1ut2");setTimeout(i.remove.bind(null,r),l+l);} ,l+m);},scrollTo:function(q){setTimeout(j.scrollTo.bind(null,q),0);}};e.exports= p;},null);
    __d("XNotificationInlineStoryInsertControllerURIBuilder",["XControllerURIBuilder "],function(a,b,c,d,e,f){e.exports=b("XControllerURIBuilder").create("\/desktop_ notifications\/insert_story\/",{uri:{type:"String",required:true},uri_path:{type :"String",required:true},first_insert:{type:"Bool"},notif_id:{type:"String",requ ired:true}});},null);
    __d("InlineStoryInsert",["Animation","Arbiter","AsyncRequest","csx","DOM","DOMQu ery","DOMScroll","FbFeedHighlight","ge","XNotificationInlineStoryInsertControlle rURIBuilder","Toggler","$"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){var s=null,t={insertStory:function(u){q.hide(r("fbNotificationsJewel"));var v=r("pagelet_composer");g.insert(v,u,k.insertAfter);s=l.scry(r("stream_pagelet" ),"._2dt8")[0];var w=l.scry(s,"._2fx2")[0],x=l.scry(u,"._2fx3")[0];h.subscribeOnce('notifStory/ufi Loaded',function(){t.scrollToHeaderandHighlightStory(w,x);}.bind(this));},prepen dStory:function(u){q.hide(r("fbNotificationsJewel"));s=l.scry(r("stream_pagelet" ),"._2dt8")[0];var v=l.scry(s,"._2fx2")[0],w=l.scry(u,"._2fx3")[0];t.dedupe(s,"._2fx4",u);g.insert (v,u,k.insertAfter);h.subscribeOnce('notifStory/ufiLoaded',function(){t.scrollTo HeaderandHighlightStory(v,w);}.bind(this));},scrollToHeaderandHighlightStory:fun ction(u,v){n.highlight(v);m.scrollTo(u);h.inform('inlineStory/insertLoaded');},g otoPermalink:function(u){window.open(u,'_self');},stopLoadingAndFallback:functio n(u){window.open(u,'_self');h.inform('inlineStory/insertLoaded');},requestStory: function(u,v,w,x){h.subscribeOnce('notifStory/ufiLoaded',function(){t.setComment Focus();}.bind(this));var y=new p().setString('uri',u).setString('uri_path',v).setBool('first_insert',w).setStr ing('notif_id',x).getURI();new i().setURI(y).send();},setCommentFocus:function(){var u=k.scry(s,'textarea');if(u.length>0)u[0].focus();},dedupe:function(u,v,w){var x=l.scry(u,v);for(var y=0;y<x.length;y++)if(x[y].id===w.id){k.remove(x[y]);return;}},_insert:function (u,v,w){var x=l.scry(r("stream_pagelet"),"._2fx4").length===0;t.requestStory(u,v,x,w);},_is InFeed:function(){if(!o("pagelet_composer"))return false;return true;},_notifStoryUFI:function(u){if(!t._isInFeed())return false;var v=null,w=null;v=l.scry(r("stream_pagelet"),"._2dt8");if(v.length>0){w=v[0];if(l .contains(w,u))return true;}return false;}};e.exports=t;},null);
    __d("SnowflakePermalinkUtils",["URI"],function(a,b,c,d,e,f,g){var h=/\/[^/]+\/(albums\/([^/]+)|posts\/([a-zA-Z]+[^/]+))\/([^/]+\/)?/,i=/\/[^/]+\/ (albums|posts)\/([^/]+)\/([^/]+\/)?/,j={isPermalinkURI:function(k){k=g(k);return h.test(k.getPath());},parseURI:function(k){if(!this.isPermalinkURI(k))return {};k=g(k);var l=k.getPath().match(i);return {setToken:l[2],entIdentifierToken:l[3],photoID:k.getQueryData().photo_id};}};e. exports=j;},null);
    __d("Sticker.react",["Arbiter","React","StickerConfig","StickerConstants","empty Function","getElementPosition","getObjectValues"],function(a,b,c,d,e,f,g,h,i,j,k ,l,m){'use strict';var n=83,o=5000,p=10,q={CLICK:'click',HOVER:'hover',LOAD_AND_HOVER:'load_and_hover' },r=h.createClass({displayName:"Sticker",propTypes:{animationTrigger:h.PropTypes .oneOf(m(q)),frameCount:h.PropTypes.number.isRequired,frameRate:h.PropTypes.numb er,framesPerCol:h.PropTypes.number.isRequired,framesPerRow:h.PropTypes.number.is Required,onStickerClick:h.PropTypes.func,packID:h.PropTypes.string,sourceURI:h.P ropTypes.string.isRequired,sourceWidth:h.PropTypes.number.isRequired,sourceHeigh t:h.PropTypes.number.isRequired,spriteURI:h.PropTypes.string,stickerID:h.PropTyp es.string,subscribedThreadID:h.PropTypes.string},getInitialState:function(){retu rn {index:0,hasAnimated:false,unsubscribeID:null};},getDefaultProps:function(){ret urn {frameRate:n,onStickerClick:k,packID:null,shown:false};},componentDidMount:func tion(){this._stopIntervalID=0;if(this.props.animationTrigger===q.LOAD_AND_HOVER& &this.props.frameCount>1&&this.props.spriteURI)this.startAnimation();if(this.pro ps.subscribedThreadID&&this.props.frameCount>1){var s=g.subscribe(this.props.subscribedThreadID,function(t,u){this.isScrolledIntoVi ew(u.scrollTop,u.viewHeight,u.top);}.bind(this));this.setState({unsubscribeID:s} );}},componentDidUpdate:function(s){if(i.AutoAnimateStickerTray&&!s.shown&&this. props.shown)this.startAnimation();},componentWillUnmount:function(){if(this.stat e.unsubscribeID)g.unsubscribe(this.state.unsubscribeID);if(this.isAnimating())cl earInterval(this._stopIntervalID);},isAnimating:function(){return !!this._stopIntervalID;},getWidth:function(){return Math.floor(this.props.sourceWidth);},getHeight:function(){return Math.floor(this.props.sourceHeight);},preloadSprite:function(){var s=new Image();s.onload=function(){if(this.isMounted()&&!this.state.hasAnimated){this. setState({hasAnimated:true});this._stopIntervalID=setInterval(this.incrementFram eIndex,this.props.frameRate);}}.bind(this);if(i.ChatPaddedAnimatedStickerGK&&thi s.props.paddedSpriteURI){s.src=this.props.paddedSpriteURI;}else s.src=this.props.spriteURI;},isScrolledIntoView:function(s,t,u){var v=l(this.getDOMNode()),w=s+v.y-u,x=s+t,y=w+v.height;if(this.props.frameCount>1& &!this.state.hasAnimated&&y-p<=x&&w+p>=s)this.startAnimation();},startAnimation: function(){if(!this.state.hasAnimated&&this.props.spriteURI){this.preloadSprite( );}else if

    I didn't read the post - just the title - puk and pin for the sim card?  That is a carrier feature - contact her carrier and see what they say.

  • Performanc issue

    hey to all
    i have face a problem regarding performance ADDM report show problem with tempoary tablespace. loading of data take double time. what can i do whereas loading of data is running
    *Action Consider increasing the throughput of the I/O subsystem. Oracle's recommended solution is to stripe all data file using the SAME methodology. You might also need to increase the number of disks for better performance. Alternatively, consider using Oracle's Automatic Storage Management solution.
    Rationale During the analysis period, the average data files' I/O throughput was 8 M per second for reads and 2.9 M per second for writes. The average response time for single block reads was 3.2 milliseconds*
    Action The performance of file F:\APP\ZAFAR\ORADATA\ORCL\TEMP09.DBF was significantly worse than other files. If striping all files using the SAME methodology is not possible, consider striping this file over multiple disks.
    Rationale The average response time for single block reads for this file was 803 milliseconds.
    i've use Raid 5 on my server
    OS window server 2003
    oracle 11g

    Oracle Studnet,
    One of the suggestions offered by Jonathan is that a drive in the RAID 5 array might have failed (died/crashed/offline). When that happens, the poor write performance that existed on the RAID array becomes much, much worse as the missing data from the failed drive must be reconstructed in real-time from the distributed parity data as read requests arrive and write requests are performed. Start by looking for a failed drive in the RAID array.
    After verifying that a drive has not failed, take a look at the output of the following SQL statement:
    SELECT
      SUBSTR(NAME,1,30) NAME,
      SUBSTR(VALUE,1,30) VALUE
    FROM
      V$PARAMETER
    ORDER BY
      NAME;To help us help you, please post the output of the above SQL statement to this forum. Use { code } tags (without spaces) before and after the output to preserve the spacing.
    Does your server have the 32 bit version of Windows 2003, or the 64 bit version?
    How much memory is in the server?
    Is the RAID 5 array internal to the server (drives are physically installed in the server), or is there an external storage system?
    Is everything stored on a single RAID 5 array, or are there multiple arrays, or multiple partitions on the same RAID 5 array?
    What may not be clear from a licensing standpoint is that using the features of ADDM and ASH require an additional cost license. If you are not certain that your company purchased this additional cost license, I would advise against using it further - disable those features in Enterprise Manager.
    When trying to performance tune, ask yourself what has changed? Failed hard drive? Failed RAM taken offline? Installation of a virus scanner? Running other applications on the server? Virus infection? Server out of physical memory and is using the swap file excessively? Server CPU is maxed out (greater than 85% utilization)?
    After checking on the above, take a look at the system wide wait events. The wait event statistics reset when the database instance is restarted, so to use the wait event statistics properly, you must check the values, wait a short period of time, and then check the statistics again, subtracting the first set of values from the second. During the load process, execute the following query:
    SELECT
      EVENT,
      TOTAL_WAITS,
      TOTAL_TIMEOUTS,
      TIME_WAITED,
      AVERAGE_WAIT
    FROM
      V$SYSTEM_EVENT
    WHERE
      EVENT NOT IN ('Null event','pmon timer','process startup','rdbms ipc reply','rdbms ipc message','reliable message','smon timer')
      AND EVENT NOT LIKE 'SQL*Net%';Wait 10 minutes, and then execute the SQL statement a second time. Subtract the first set of values for TOTAL_WAITS, TOTAL_TIMEOUTS, and TIME_WAITED from the second and post the results here.
    When checking the V$SYSTEM_EVENT view, also execute the following (at the start and end of the 10 minute time period), saving the results so the first set of VALUE values may be subtracted from the second.
    SELECT
      STAT_NAME,
      VALUE
    FROM
      V$OSSTAT
    ORDER BY
      STAT_NAME;
    SELECT
      STAT_NAME,
      VALUE
    FROM
      V$SYS_TIME_MODEL
    ORDER BY
      STAT_NAME;Post the results here for assistance.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • Stored Procedure  is taking too long time to Execute.

    Hi all,
    I have a stored procedure which executes in 2 hr in one database, but the same stored procedure is taking more than 6 hour in the other database.
    Both the database are in oracle 11.2
    Can you please suggest what might be the reasons.
    Thanks.

    In most sites I've worked at it's almost impossible to trace sessions, because you don't have read permissions on the tracefile directory (or access to the server at all). My first check would therefore be to look in my session browser to see what the session is actually doing. What is the current SQL statement? What is the current wait event? What cursors has the session spent time on? If the procedure just slogs through one cursor or one INSERT statement etc then you have a straightforward SQL tuning problem. If it's more complex then it will help to know which part is taking the time.
    If you have a licence for the diagnostic pack you can query v$active_session_history, e.g. (developed for 10.2.0.3, could maybe do more in 11.2):
    SELECT CAST(ash.started AS DATE) started
         , ash.elapsed
         , s.sql_text
         , CASE WHEN ash.sql_id = :sql_id AND :status = 'ACTIVE' THEN 'Y' END AS executing
         , s.executions
         , CAST(NUMTODSINTERVAL(elapsed_time/NULLIF(executions,0)/1e6,'SECOND') AS INTERVAL DAY(0) TO SECOND(1)) AS avg_time
         , CAST(NUMTODSINTERVAL(elapsed_time/1e6,'SECOND') AS INTERVAL DAY(0) TO SECOND(1)) AS total_time
         , ROUND(s.parse_calls/NULLIF(s.executions,0),1) avg_parses
         , ROUND(s.fetches/NULLIF(s.executions,0),1) avg_fetches
         , ROUND(s.rows_processed/NULLIF(s.executions,0),1) avg_rows_processed
         , s.module, s.action
         , ash.sql_id
         , ash.sql_child_number
         , ash.sql_plan_hash_value
         , ash.started
    FROM   ( SELECT MIN(sample_time) AS started
                  , CAST(MAX(sample_time) - MIN(sample_time) AS INTERVAL DAY(0) TO SECOND(0)) AS elapsed
                  , sql_id
                  , sql_child_number
                  , sql_plan_hash_value
             FROM   v$active_session_history
             WHERE  session_id = :sid
             AND    session_serial# = :serial#
             GROUP BY sql_id, sql_child_number, sql_plan_hash_value ) ash
           LEFT JOIN
           ( SELECT sql_id, plan_hash_value
                  , sql_text, SUM(executions) OVER (PARTITION BY sql_id) AS executions, module, action, rows_processed, fetches, parse_calls, elapsed_time
                  , ROW_NUMBER() OVER (PARTITION BY sql_id ORDER BY last_load_time DESC) AS seq
             FROM   v$sql ) s
           ON s.sql_id = ash.sql_id AND s.plan_hash_value = ash.sql_plan_hash_value
    WHERE  s.seq = 1
    ORDER BY 1 DESC;:sid and :serial# come from v$session. In PL/SQL Developer I defined this as a tab named 'Session queries' in the session browser.
    I have another tab named 'Object wait totals this query' containing:
    SELECT LTRIM(ep.owner || '.' || ep.object_name || '.' || ep.procedure_name,'.') AS plsql_entry_procedure
         , LTRIM(cp.owner || '.' || cp.object_name || '.' || cp.procedure_name,'.') AS plsql_procedure
         , session_state
         , CASE WHEN blocking_session_status IN ('NOT IN WAIT','NO HOLDER','UNKNOWN') THEN NULL ELSE blocking_session_status END AS blocking_session_status
         , event
         , wait_class
         , ROUND(SUM(wait_time)/100,1) as wait_time_secs
         , ROUND(SUM(time_waited)/100,1) as time_waited_secs
         , LTRIM(o.owner || '.' || o.object_name,'.') AS wait_object
    FROM   v$active_session_history h
           LEFT JOIN dba_procedures ep
           ON   ep.object_id = h.plsql_entry_object_id AND ep.subprogram_id = h.plsql_entry_subprogram_id
           LEFT JOIN dba_procedures cp
           ON   cp.object_id = h.plsql_object_id AND cp.subprogram_id = h.plsql_subprogram_id
           LEFT JOIN dba_objects o ON o.object_id = h.current_obj#
    WHERE  h.session_id = :sid
    AND    h.session_serial# = :serial#
    AND    h.user_id = :user#
    AND    h.sql_id = :sql_id
    AND    h.sql_child_number = :sql_child_number
    GROUP BY
           ep.owner, ep.object_name, ep.procedure_name
         , cp.owner, cp.object_name, cp.procedure_name
         , session_state
         , CASE WHEN blocking_session_status IN ('NOT IN WAIT','NO HOLDER','UNKNOWN') THEN NULL ELSE blocking_session_status END
         , event
         , wait_class
         , o.owner
         , o.object_nameIt's not perfect and the numbers aren't reliable, but it gives me an idea where the time might be going. While I'm at it, v$session_longops is worth a look, so I also have 'Longops' as:
    SELECT sid
         , CASE WHEN l.time_remaining> 0 OR l.sofar < l.totalwork THEN 'Yes' END AS "Active?"
         , l.opname AS operation
         , l.totalwork || ' ' || l.units AS totalwork
         , NVL(l.target,l.target_desc) AS target
         , ROUND(100 * l.sofar/GREATEST(l.totalwork,1),1) AS "Complete %"
         , NULLIF(RTRIM(RTRIM(LTRIM(LTRIM(numtodsinterval(l.elapsed_seconds,'SECOND'),'+0'),' '),'0'),'.'),'00:00:00') AS elapsed
         , l.start_time
         , CASE
               WHEN  l.time_remaining = 0 THEN l.last_update_time
               ELSE SYSDATE + l.time_remaining/86400
           END AS est_completion
         , l.sql_id
         , l.sql_address
         , l.sql_hash_value
    FROM v$session_longops l
    WHERE :sid IN (sid,qcsid)
    AND  l.start_time >= TO_DATE(:logon_time,'DD/MM/YYYY HH24:MI:SS')
    ORDER BY l.start_time descand 'Longops this query' as:
    SELECT sid
         , CASE WHEN l.time_remaining> 0 OR l.sofar < l.totalwork THEN 'Yes' END AS "Active?"
         , l.opname AS operation
         , l.totalwork || ' ' || l.units AS totalwork
         , NVL(l.target,l.target_desc) AS target
         , ROUND(100 * l.sofar/GREATEST(l.totalwork,1),1) AS "Complete %"
         , NULLIF(RTRIM(RTRIM(LTRIM(LTRIM(numtodsinterval(l.elapsed_seconds,'SECOND'),'+0'),' '),'0'),'.'),'00:00:00') AS elapsed
         , l.start_time
         , CASE
               WHEN  l.time_remaining = 0 THEN l.last_update_time
               ELSE SYSDATE + l.time_remaining/86400
           END AS est_completion
         , l.sql_id
         , l.sql_address
         , l.sql_hash_value
    FROM v$session_longops l
    WHERE :sid IN (sid,qcsid)
    AND  l.start_time >= TO_DATE(:logon_time,'DD/MM/YYYY HH24:MI:SS')
    AND  l.sql_id = :sql_id
    ORDER BY l.start_time descYou can also get this sort of information out of OEM if you're lucky enough to have access to it - if not, ask for it!
    Apart from this type of monitoring, you might try using DBMS_PROFILER (point and click in most IDEs, but you can use it from the SQL*Plus prompt), and also instrument your code with calls to DBMS_APPLICATION_INFO.SET_CLIENT_INFO so you can easily tell from v$session which section of code is being executed.

  • Locks and/or slow processing

    Hello,
    Thanks in advance!!
    Whenever, our system receives a flood of events, we try to update the database by first locking a certain row using "select for update". However, the system seems to lock up (I think it is very slow in processing) for a long time as evident in the query below. Can anybody provide some insights was what we might be doing incorrectly as far as the database set up, tuning etc.
    One connection has an exclusive rowlock on a table called NODE and an exclusive lock on SYS.ALL_CATALOG. Others are all waiting to get a lock on SYS.ALL_CATALOG (actually it is some SYS.XXX table all the time). All connections are actually making the same "select for update" call.
    When I execute the query as follows I get a result which shows a very long wait time (approx: 515 seconds). isn't this too much?
    SQL> select count(*), SUM(time_waited), max(max_wait) from v$session_event where event = 'enqueue';
    COUNT(*) SUM(TIME_WAITED) MAX(MAX_WAIT)
    1 158919 308
    We are running Oracle 9.2.0.0 on a Windows 2K machine with 2G memory and dual 2.8GHz processor. The application is a Java based using a thin JDBC driver that comes with the 9.2.0.0 CD.
    SQL> set linesize 132 pagesize 66
    SQL> break on Kill on username on terminal
    SQL> column Kill heading 'Kill String' format a13
    SQL> column res heading 'Resource Type' format 999
    SQL> column id1 format 9999990
    SQL> column id2 format 9999990
    SQL> column lmode heading 'Lock Held' format a20
    SQL> column request heading 'Lock Requested' format a20
    SQL> column serial# format 99999
    SQL> column username format a10 heading "Username"
    SQL> column terminal heading Term format a8
    SQL> column tab format a35 heading "Table Name"
    SQL> column owner format a9
    SQL> column Address format a18
    SQL> select nvl(S.USERNAME,'Internal') username,
    2 nvl(S.TERMINAL,'None') terminal,
    3 L.SID||','||S.SERIAL# Kill,
    4 U1.NAME||'.'||substr(T1.NAME,1,20) tab,
    5 decode(L.LMODE,1,'No Lock',
    6 2,'Row Share',
    7 3,'Row Exclusive',
    8 4,'Share',
    9 5,'Share Row Exclusive',
    10 6,'Exclusive',null) lmode,
    11 decode(L.REQUEST,1,'No Lock',
    12 2,'Row Share',
    13 3,'Row Exclusive',
    14 4,'Share',
    15 5,'Share Row Exclusive',
    16 6,'Exclusive',null) request
    17 from V$LOCK L,
    18 V$SESSION S,
    19 SYS.USER$ U1,
    20 SYS.OBJ$ T1
    21 where L.SID = S.SID
    22 and T1.OBJ# = decode(L.ID2,0,L.ID1,L.ID2)
    23 and U1.USER# = T1.OWNER#
    24 and S.TYPE != 'BACKGROUND'
    25 order by 1,2,5
    26 /
    Username Term Kill String Table Name Lock Held Lock Requested
    EMS3 unknown 11,507 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 18,116 EMS3.NODE Row Exclusive
    EMS3 unknown 11,507 EMS3.NODE Row Share
    EMS3 unknown 13,6 EMS3.NODE Row Share
    EMS3 unknown 22,56 EMS3.NODE Row Share
    EMS3 unknown 23,6 EMS3.NODE Row Share
    EMS3 unknown 24,6 EMS3.NODE Row Share
    EMS3 unknown 25,7 EMS3.NODE Row Share
    EMS3 unknown 26,10 EMS3.NODE Row Share
    EMS3 unknown 40,8 EMS3.NODE Row Share
    EMS3 unknown 39,7 EMS3.NODE Row Share
    EMS3 unknown 38,6 EMS3.NODE Row Share
    EMS3 unknown 37,6 EMS3.NODE Row Share
    EMS3 unknown 36,6 EMS3.NODE Row Share
    EMS3 unknown 35,10 EMS3.NODE Row Share
    EMS3 unknown 34,7 EMS3.NODE Row Share
    EMS3 unknown 33,6 EMS3.NODE Row Share
    EMS3 unknown 32,7 EMS3.NODE Row Share
    EMS3 unknown 57,6 EMS3.NODE Row Share
    EMS3 unknown 56,6 EMS3.NODE Row Share
    EMS3 unknown 55,10 EMS3.NODE Row Share
    EMS3 unknown 54,7 EMS3.NODE Row Share
    EMS3 unknown 53,6 EMS3.NODE Row Share
    EMS3 unknown 52,9 EMS3.NODE Row Share
    EMS3 unknown 51,6 EMS3.NODE Row Share
    EMS3 unknown 50,8 EMS3.NODE Row Share
    EMS3 unknown 49,7 EMS3.NODE Row Share
    EMS3 unknown 67,6 EMS3.NODE Row Share
    EMS3 unknown 66,10 EMS3.NODE Row Share
    EMS3 unknown 65,7 EMS3.NODE Row Share
    EMS3 unknown 64,6 EMS3.NODE Row Share
    EMS3 unknown 63,8 EMS3.NODE Row Share
    EMS3 unknown 62,6 EMS3.NODE Row Share
    EMS3 unknown 61,7 EMS3.NODE Row Share
    EMS3 unknown 60,8 EMS3.NODE Row Share
    EMS3 unknown 59,7 EMS3.NODE Row Share
    EMS3 unknown 58,6 EMS3.NODE Row Share
    EMS3 unknown 48,7 EMS3.NODE Row Share
    EMS3 unknown 47,7 EMS3.NODE Row Share
    EMS3 unknown 46,6 EMS3.NODE Row Share
    EMS3 unknown 45,6 EMS3.NODE Row Share
    EMS3 unknown 44,9 EMS3.NODE Row Share
    EMS3 unknown 43,7 EMS3.NODE Row Share
    EMS3 unknown 42,7 EMS3.NODE Row Share
    EMS3 unknown 41,6 EMS3.NODE Row Share
    EMS3 unknown 30,7 EMS3.NODE Row Share
    EMS3 unknown 29,6 EMS3.NODE Row Share
    EMS3 unknown 28,6 EMS3.NODE Row Share
    EMS3 unknown 27,6 EMS3.NODE Row Share
    EMS3 unknown 13,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 18,116 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 23,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 25,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 67,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 66,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 65,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 64,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 63,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 62,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 61,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 60,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 59,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 58,6 SYS.ALL_CATALOG Exclusive
    Username Term Kill String Table Name Lock Held Lock Requested
    EMS3 unknown 57,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 56,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 55,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 54,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 53,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 52,9 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 51,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 50,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 49,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 48,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 47,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 46,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 45,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 44,9 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 43,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 42,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 41,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 40,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 39,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 38,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 37,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 36,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 35,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 34,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 33,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 32,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 30,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 29,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 28,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 27,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 26,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 24,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 22,56 SYS.ALL_CATALOG Exclusive
    96 rows selected.
    SQL>

    Ranganath,
    Please work with Oracle Support to resolve this issue. That way, we can get a more extensive insight and documentation for the issue and fix what underlying problems may exist. Thanks!
    Regards,
    Toliver Jue

  • Performance differce calling Procedure from sqlplus and Java

    Hi ,
    I have one procedure which is called from java application and its called only once from java and the entire process is running from procedure itself.Once its called there is no dependency from java to PL/SQL.Its taking long time from java.But if I execute the same procedure from SQL plus then its running in seconds.Also only one session is running in entire database.
    My Oracle version 11g.
    Please guide me if you get some thing based on below session event.
    This is the session status for running from SQL plus
    SID     EVENT                    TOTAL_WAITS          TOTAL_TIMEOUTS     TIME_WAITED     WAIT_CLASS
    2191     SQL*Net message from client     954                              0                    1319633          Idle
    2191     direct path read                    860                              0                    702               User I/O
    2191     db file sequential read               2605                         0                    550               User I/O
    2191     SQL*Net break/reset to client     24                              0                    460               Application
    2191     SQL*Net more data from client     3                              0                    159               Network
    2191     direct path write temp               214                              0                    74               User I/O
    2191     direct path read temp               314                              0                    67               User I/O
    2191     db file scattered read               78                              0                    42               User I/O
    2191     db file parallel read               71                              0                    21               User I/O
    2191     log file sync                         36                              0                    12               Commit
    2191     SQL*Net message to client          955                              0                    0               Network
    2191     Disk file operations I/O          8                              0                    0               User I/O
    2191     events in waitclass Other          15                              7                    0               Other
    This is the session status for running from Java
    SID     EVENT     TOTAL_WAITS     TIME_WAITED     WAIT_CLASS
    1718     SQL*Net message from client     21208     7046039     Idle
    1718     direct path read     2742     2327     User I/O
    1718     log file sync     3748     1121     Commit
    1718     db file sequential read     1533     1082     User I/O
    1718     enq: TX - row lock contention     6     423     Application
    1718     buffer busy waits     1     100     Concurrency
    1718     log buffer space     1     30     Configuration
    1718     direct path write temp     92     21     User I/O
    1718     direct path read temp     138     16     User I/O
    1718     log file switch (private strand flush incomplete)     6     16     Configuration
    1718     SQL*Net message to client     21209     2     Network
    1718     db file scattered read     2     1     User I/O
    1718     SQL*Net more data from client     17     0     Network
    1718     Disk file operations I/O     11     0     User I/O
    1718     SQL*Net more data to client     1     0     Network
    1718     events in waitclass Other     15     0     Other
    Sorry I am not able to paste in proper alignment for my plain text.

    Hi,
    you need to find which SQL is running slower, using some tools as dbms_profiler, dbms_hprof, ASH, extended SQL trace and real-time SQL monitor (caution: some of the tools may require Diagnostic Pack License).
    Then you need to pinpoint difference in the plans and understand its origin -- post plans here if you need help with that (use tags to preserve formatting).
    Best regards,
      Nikolay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Background job failing - ECC 6.0, Solution Manager 7.0

    Dear All,
    Four days back, I have installed the Solution Manager 7.0 and ECC 6.0 on
    HPUX IA64 hardware with database as Oracle 10.2.0.2.0 (Unicode).
    In both server, latest kernel patch has been applied.
    The Support package versions are (both server):
    KERNEL (Release 700)      146
    SAP_BASIS           0014
    SAP_ABA           0014
    PI_BASIS(2005_1_700)      0014
    ST-PI                0005
    SAP_BW                0016
    While checking the the jobs from SM37, in both the server,
    I am observing that following jobs are always failing with
    same reason:
    SAP_COLLECTOR_FOR_PERFMONITOR
    =============================
    Date       Time     Message text                                                           Message class Message no. Message type
    ========== ======== ====================================================================== ============= =========== ============
    15.05.2008 06:25:12 Job started                                                                 00           516          S
    15.05.2008 06:25:12 Step 001 started (program RSCOLL00, variant , user ID BGDUSER)              00           550          S
    15.05.2008 06:25:18 Clean_Plan:Cleanup of DB13 Plannings                                       DB6PM         000          S
    15.05.2008 06:25:18 Clean_Plan:started by RSDBPREV                       on server gcbeccd     DB6PM         000          S
    15.05.2008 06:25:18 Clean_Plan:Cleaning up jobs of system RD3                                  DB6PM         000          S
    15.05.2008 06:25:18 Clean_Plan:finished                                                        DB6PM         000          S
    15.05.2008 06:25:18 Database system not supported                                               S1           101          S
    15.05.2008 06:25:36 ABAP/4 processor: DBIF_DSQL2_SQL_ERROR                                      00           671          A
    15.05.2008 06:25:36 Job cancelled                                                               00           518          A
    SAP_REORG_UPDATERECORDS
    =======================
    Date       Time     Message text                                                          Message class Message no. Message type
    ========== ======== ===================================================================== ============= =========== ============
    14.05.2008 00:31:01 Job started                                                                00           516          S
    14.05.2008 00:31:01 Step 001 started (program RSM13002, variant SAP&001, user ID BGDUSER)      00           550          S
    14.05.2008 00:31:01 Reorganization of update date not allowed in batch                         15           100          A
    14.05.2008 00:31:02 Job cancelled                                                              00           518          A
    SAP_WP_CACHE_RELOAD_FULL
    ========================
    Date       Time     Message text                                                                                Message class Message no. Message type
    ========== ======== ============================================================================================ ============= =========== ============
    15.05.2008 00:30:11 Job started                                                                                00           516          S
    15.05.2008 00:30:11 Step 001 started (program RWP_RUNTIME_CACHE_RELOAD, variant SAP&RELOAD_ALL, user ID BGDUSER)      00           550          S
    15.05.2008 00:30:11 No component system chosen                                                                   URL_GEN_MSGS      031          E
    15.05.2008 00:30:11 Job cancelled after system exception ERROR_MESSAGE                                                00           564          A
    Please help to resolve this issue.
    Thanks in advance.
    Regards
    Sudip Ghosh

    Hi Markus,
    Thanks for the reply.
    Below is the dump:
    ======
    ======
    Runtime Errors         DBIF_DSQL2_SQL_ERROR
    Date and Time          15.05.2008 06:25:36
    Short text
    An SQL error occurred when executing Native SQL.
    What happened?
    The error 3113 occurred in the current database connection "DEFAULT".
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    How to correct the error
    Database error text........: "ORA-03113: end-of-file on communication channel"
    Database error code........: 3113
    Triggering SQL statement...: "FETCH NEXT "
    Internal call code.........: "[DBDS/NEW DSQL]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_DSQL2_SQL_ERROR" " "
    "RSORAVSH" or "RSORAVSH"
    "FILL_DBVSE"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    System environment
    SAP-Release 700
    Application server... "gcbeccd"
    Network address...... "10.10.4.158"
    Operating system..... "HP-UX"
    Release.............. "B.11.23"
    Hardware type........ "ia64"
    Character length.... 16 Bits
    Pointer length....... 64 Bits
    Work process number.. 15
    Shortdump setting.... "full"
    Database server... "gcbeccd"
    Database type..... "ORACLE"
    Database name..... "RD3"
    Database user ID.. "SAPSR3"
    Char.set.... "C"
    SAP kernel....... 700
    created (date)... "Apr 5 2008 00:55:24"
    create on........ "HP-UX B.11.23 U ia64"
    Database version. "OCI_102 (10.2.0.1.0) "
    Patch level. 146
    Patch text.. " "
    Database............. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE 10.2.0.."
    SAP database version. 700
    Operating system..... "HP-UX B.11"
    Memory consumption
    Roll.... 1117216
    EM...... 0
    Heap.... 0
    Page.... 32768
    MM Used. 695792
    MM Free. 400816
    User and Transaction
    Client.............. 000
    User................ "BGDUSER"
    Language key........ "E"
    Transaction......... " "
    Transactions ID..... "482B8A4C89F0442BE10000000A0A049E"
    Program............. "RSORAVSH"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where terminated
    Termination occurred in the ABAP program "RSORAVSH" - in "FILL_DBVSE".
    The main program was "RSORAVSH ".
    In the source code you have the termination point in line 48
    of the (Include) program "RSORAVSH".
    The program "RSORAVSH" was started as a background job.
    Job Name....... "SAP_COLLECTOR_FOR_PERFMONITOR"
    Job Initiator.. "BGDUSER"
    Job Number..... 05251100
    Source Code Extract
    Line
    SourceCde
    18
    INCLUDE STRUCTURE v_system_event_struc.
    19
    DATA:  END OF v_system_event_tab .
    20
    21
    check sy-dbsys(3) = 'ORA' .
    22
    23
    Get the new snapshots
    24
    25
    PERFORM fill_dbvse TABLES v_system_event_tab.
    26
    27
    28
    Get the old snapshots from database table MONI
    29
    30
    startday = sy-datum - days_to_keep .
    31
    32
    33
    Save new data now (otherwise these data will be selected twice)
    34
    35
    CONCATENATE 'SYSEVENT' sy-datum sy-uzeit INTO   monikey .
    36
    37
    EXPORT sy-datum
    38
    sy-uzeit
    39
    v_system_event_tab
    40
    TO DATABASE moni(db) ID monikey .
    41
    42
    *&      Form  FILL_DBVSE
    43
    44
    FORM fill_dbvse TABLES v_system_event_tab.
    45
    date =  sy-datum .
    46
    time =  sy-uzeit .
    47
    EXEC sql performing append_v_system_event .
    >>>>>
    select event,
    49
    total_waits,
    50
    total_timeouts,
    51
    time_waited * 10,
    52
    average_wait * 10
    53
    into :v_system_event_struc
    54
    from v$system_event
    55
    ENDEXEC .
    56
    ENDFORM.                               " FILL_DBVSE
    57
    58
    59
    *&      Form  APPEND_V_SYSTEM_EVENT
    60
    61
    FORM append_v_system_event.
    62
    v_system_event_tab-date  = date .
    63
    v_system_event_tab-time  = time .
    64
    65
    MOVE-CORRESPONDING v_system_event_struc TO v_system_event_tab.
    66
    APPEND v_system_event_tab .
    67
    ENDFORM.                               " APPEND_V_SYSTEM_EVENT
    Contents of system fields
    Name
    Val.
    SY-SUBRC
    0
    SY-INDEX
    0
    SY-TABIX
    16
    SY-DBCNT
    0
    SY-FDPOS
    0
    SY-LSIND
    0
    SY-PAGNO
    0
    SY-LINNO
    1
    SY-COLNO
    1
    SY-PFKEY
    SY-UCOMM
    SY-TITLE
    Report for Collecting Data from V$SYSTEM_EVENT Hourly
    SY-MSGTY
    SY-MSGID
    SY-MSGNO
    000
    SY-MSGV1
    SY-MSGV2
    SY-MSGV3
    SY-MSGV4
    SY-MODNO
    0
    SY-DATUM
    20080515
    SY-UZEIT
    062520
    SY-XPROG
    RSDBRUNT
    SY-XFORM
    %_INIT_PBO_FIRST
    Active Calls/Events
    No.   Ty.          Program                             Include                             Line
    Name
    2 FORM         RSORAVSH                            RSORAVSH                               48
    FILL_DBVSE
    1 EVENT        RSORAVSH                            RSORAVSH                               25
    START-OF-SELECTION
    Chosen variables
    Name
    Val.
    No.       2 Ty.          FORM
    Name  FILL_DBVSE
    SY-REPID
    RSORAVSH
    0000000000000000000000000000000000000000
    0000000000000000000000000000000000000000
    5545455422222222222222222222222222222222
    23F2163800000000000000000000000000000000
    V_SYSTEM_EVENT_STRUC
    00000000000000000000000000000000000000000000000000000000000000000000000000000000
    00000000000000000000000000000000000000000000000000000000000000000000000000000000
    22222222222222222222222222222222222222222222222222222222222222220000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000C000C000C000C
    %_SPACE
    0
    0
    2
    0
    SY
    ###############################################################################T########  ####
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000
    000000000000000000000000000000000000000100000000000000000000000000000000000000000000000D000400
    000001000000000000000000000000000000000F000000000000000000000000000000000000010500000005220000
    000000000000000000000000010001000000000E00000000000000000000000000000000000006040000000800000C
    No.       1 Ty.          EVENT
    Name  START-OF-SELECTION
    SY-LDBPG
    SAPDB__S
    0000000000000000000000000000000000000000
    0000000000000000000000000000000000000000
    5454455522222222222222222222222222222222
    31042FF300000000000000000000000000000000
    %_DUMMY$$
    0000
    0000
    2222
    0000
    SY-DBSYS+0(6)
    ORA
    000
    000
    454
    F21
    SYST
    ###############################################################################T########  ####
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000
    000000000000000000000000000000000000000100000000000000000000000000000000000000000000000D000400
    000001000000000000000000000000000000000F000000000000000000000000000000000000010500000005220000
    000000000000000000000000010001000000000E00000000000000000000000000000000000006040000000800000C
    V_SYSTEM_EVENT_TAB[]
    Table[initial]
    V_SYSTEM_EVENT_TAB
    00000000000000                                                                ################
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    3333333333333322222222222222222222222222222222222222222222222222222222222222220000000000000000
    000000000000000000000000000000000000000000000000000000000000000000000000000000000C000C000C000C
    SY-DATUM
    20080515
    00000000
    00000000
    33333333
    20080515
    DAYS_TO_KEEP
    30
    0001
    000E
    STARTDAY
    00000000
    00000000
    00000000
    33333333
    00000000
    MONIKEY
    0000000000000000000000
    0000000000000000000000
    2222222222222222222222
    0000000000000000000000
    SY-UZEIT
    062520
    000000
    000000
    333333
    062520
    SYST-REPID
    RSORAVSH
    0000000000000000000000000000000000000000
    0000000000000000000000000000000000000000
    5545455422222222222222222222222222222222
    23F2163800000000000000000000000000000000
    MONI-CLUSTR
    0
    00
    00
    MONI
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    2222222222222222222222220022000000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    Internal notes
    The termination was triggered in function "ExecuteCall"
    of the SAP kernel, in line 1190 of the module
    "//bas/700_REL/src/krn/runt/abexsql.c#2".
    The internal operation just processed is "DSQL".
    Internal mode was started at 20080515062520.
    Internal call code.........: "[DBDS/NEW DSQL]"
    Active Calls in SAP Kernel
    Lines of C Stack in Kernel (Structure Differs on Each Platform)
    (0)  0x4000000003b2b450  CTrcStack + 0x1b0 at dptstack.c:227 [dw.sapRD3_DVEBMGS00]
    (1)  0x4000000004d2c470  Z16rabaxCStackSavev + 0x1d0 [dw.sapRD3_DVEBMGS00]
    (2)  0x4000000004d32160  ab_rabax + 0x3570 [dw.sapRD3_DVEBMGS00]
    (3)  0x40000000047b51e0  Z10abdbdserriPKtiS0_P9DS_HEADERS0_iPv + 0x470 [dw.sapRD3_DVEBMGS00]
    (4)  0x4000000003d777f0  Z11ExecuteCallv + 0x11f0 [dw.sapRD3DVEBMGS00]
    (5)  0x4000000003d7e7b0  Z8abjdsqlv + 0x1b0 [dw.sapRD3_DVEBMGS00]
    (6)  0x400000000402f190  Z8abextriv + 0x440 [dw.sapRD3_DVEBMGS00]
    (7)  0x4000000003f53bc0  Z9abxeventPKt + 0x3c0 at abrunt1.c:339 [dw.sapRD3_DVEBMGS00]
    (8)  0x4000000003d9f210  Z8abtriggv + 0x110 at abrunt1.c:58 [dw.sapRD3_DVEBMGS00]
    (9)  0x4000000003d9ebe0  ab_run + 0xc0 [dw.sapRD3_DVEBMGS00]
    (10) 0x4000000001caa820  N_ab_run + 0x20 at dymainstp.c:4739 [dw.sapRD3_DVEBMGS00]
    (11) 0x4000000001cb40f0  dynpmcal + 0x3f0 at dymainstp.c:2281 [dw.sapRD3_DVEBMGS00]
    (12) 0x4000000001caf260  dynppai0 + 0xcb0 at dymainstp.c:1107 [dw.sapRD3_DVEBMGS00]
    (13) 0x4000000001cb1ec0  dynprctl + 0x340 at dymainstp.c:358 [dw.sapRD3_DVEBMGS00]
    (14) 0x4000000001c9dff0  dynpen00 + 0xac0 at dymain.c:1628 [dw.sapRD3_DVEBMGS00]
    (15) 0x4000000001fea460  Thdynpen00 + 0x510 at thxxhead.c:4830 [dw.sapRD3_DVEBMGS00]
    (16) 0x4000000001fb54e0  TskhLoop + 0x5520 at thxxhead.c:3945 [dw.sapRD3_DVEBMGS00]
    (17) 0x4000000001faae40  ThStart + 0x460 at thxxhead.c:1164 [dw.sapRD3_DVEBMGS00]
    (18) 0x4000000001569ec0  DpMain + 0x5f0 at dpxxdisp.c:1088 [dw.sapRD3_DVEBMGS00]
    (19) 0x4000000002c10630  nlsui_main + 0x30 [dw.sapRD3_DVEBMGS00]
    (20) 0x4000000002c105c0  main + 0x60 [dw.sapRD3_DVEBMGS00]
    (21) 0xc00000000002be30  main_opd_entry + 0x50 [/usr/lib/hpux64/dld.so]
    List of ABAP programs affected
    Index
    Typ
    Program
    Group
    Date
    Time
    Size
    Lang.
    0
    Prg
    RSORAVSH
    0
    30.03.2005
    10:21:59
    19456
    E
    1
    Prg
    SAPMSSY0
    1
    17.12.2007
    15:41:05
    92160
    E
    2
    Prg
    SAPMSSYD
    1
    12.09.2006
    11:33:31
    21504
    E
    3
    Prg
    SAPFSYSCALLS
    1
    09.09.2004
    14:18:32
    8192
    E
    4
    Prg
    RSDBRUNT
    0
    17.12.2007
    16:04:40
    254976
    E
    5
    Typ
    RSSCR
    0
    30.03.2005
    10:21:45
    5120
    6
    Prg
    RSDBSPBL
    0
    30.03.2005
    10:21:58
    72704
    E
    7
    Prg
    SAPDB__S
    0
    30.03.2005
    10:22:01
    19456
    E
    8
    Prg
    RSDBSPMC
    0
    12.09.2006
    11:25:01
    79872
    E
    9
    Typ
    DDSHDESCR
    0
    03.09.1997
    03:05:16
    4096
    10
    Typ
    SPPARAMS
    0
    07.05.1997
    13:10:38
    2048
    11
    Prg
    SAPLSABE
    11
    09.09.2004
    14:18:36
    13312
    E
    12
    Prg
    SAPLSECU
    12
    17.12.2007
    15:31:45
    87040
    E
    13
    Typ
    RSSUBINFO
    0
    14.10.1999
    22:01:03
    3072
    14
    Prg
    SAPLSTUP
    14
    17.12.2007
    15:29:58
    74752
    E
    15
    Prg
    SAPLCNDP
    15
    11.09.2007
    15:24:45
    195584
    E
    16
    Prg
    SAPLSCNT
    16
    18.02.2005
    14:16:06
    30720
    E
    17
    Prg
    SAPSHDTV
    16
    05.01.2005
    16:26:16
    33792
    E
    18
    Prg
    SAPFGUICNTL
    1
    18.02.2005
    14:15:08
    24576
    E
    19
    Prg
    SAPLOLEA
    19
    11.09.2007
    11:17:30
    96256
    E
    20
    Prg
    SAPLSGUI
    20
    17.12.2007
    15:41:05
    84992
    E
    21
    Prg
    SAPLSTTM
    21
    05.07.2005
    13:10:18
    69632
    E
    22
    Prg
    SAPLSBDC
    22
    17.12.2007
    15:30:54
    44032
    E
    23
    Prg
    SAPLSFES
    23
    17.12.2007
    16:04:40
    260096
    E
    24
    Prg
    SAPLTHFB
    24
    17.12.2007
    15:41:05
    394240
    E
    25
    Typ
    WPINFO
    0
    26.02.1999
    14:49:01
    6144
    26
    Prg
    SAPLURFC
    26
    17.12.2007
    15:37:35
    22528
    E
    27
    Prg
    SAPLSPLUGIN
    27
    09.09.2004
    14:18:36
    8192
    E
    28
    Typ
    SWCBCONT
    0
    15.11.2000
    17:55:11
    3072
    29
    Typ
    OLE_VERBS
    0
    04.04.1995
    16:02:20
    2048
    30
    Typ
    OLE_PA
    0
    04.04.1995
    16:02:19
    2048
    31
    Typ
    SYST
    0
    09.09.2004
    14:18:12
    31744
    32
    Typ
    MONI
    0
    31.03.2004
    16:41:21
    5120
    Directory of Application Tables
    Name                                     Date       Time       Lngth
    Val.
    Program  RSORAVSH
    SYST                                     09.09.2004 14:18:12   00004612
    \0\0\0\0\0\x0010\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
    MONI                                       .  .       :  :     00002944
    \0\0  \0\0\0\0\0\0\0\0\0\0\0\0\0\0
    ABAP Control Blocks (CONT)
    Index
    Name
    Fl
    PAR0
    PAR1
    PAR2
    PAR3
    PAR4
    PAR5
    PAR6
    Source Code
    Line
    71
    PAR2
    03
    0000
    0014
    002B
    RSORAVSH
    37
    73
    PAR2
    03
    0000
    0015
    002D
    RSORAVSH
    37
    75
    PAR2
    03
    0000
    0016
    0026
    RSORAVSH
    37
    77
    00
    0000
    RSORAVSH
    37
    78
    PERP
    00
    0002
    RSORAVSH
    44
    79
    PERP
    1C
    0000
    RSORAVSH
    44
    80
    PERP
    04
    0000
    RSORAVSH
    44
    81
    mvqk
    10
    0005
    0044
    04EC
    RSORAVSH
    45
    83
    mvqk
    0C
    0005
    0054
    052E
    RSORAVSH
    46
    85
    DSQL
    00
    0017
    RSORAVSH
    48
    86
    DSQL
    01
    0018
    RSORAVSH
    48
    87
    DSQL
    04
    0025
    RSORAVSH
    48
    >>>>>
    DSQL
    16
    0025
    RSORAVSH
    48
    89
    BRAN
    05
    0004
    RSORAVSH
    48
    90
    perf
    00
    000A
    RSORAVSH
    48
    91
    PERP
    80
    0000
    RSORAVSH
    48
    92
    BRAX
    00
    FFFC
    RSORAVSH
    48
    93
    DSQL
    23
    0000
    RSORAVSH
    48
    94
    ENDF
    00
    0000
    RSORAVSH
    56
    95
    00
    0000
    RSORAVSH
    56
    ===========
    ===========
    Please check and advise.
    Also, I am trying to search for the note 6083 in market place, but not getting the same.
    Please advise.
    Thanks & Regards
    Sudip

  • Performance problem in application

    Hi ,
    I have some serious problems with my application on perfromance, when i check the db for events i can see the following
    Events Total_Waits Time Wauted
    1     Data file init write     1794     9077
    2     local write wait     24     63
    3     read by other session     4718     3460
    4     db file sequential read     1864619     413008
    5     db file scattered read     178020     80039
    6     db file single write     116     2
    7     db file parallel read     52     179
    8     direct path read     54476     4824
    9     direct path read temp     93568     27171
    10     direct path write     18521     960
    11     direct path write temp     13999     226
    Buckets for Sequential read
    Bucket wait_count
    1     1     1441402
    2     2     39998
    3     4     78500
    4     8     187616
    5     16     78683
    6     32     26376
    7     64     8488
    8     128     1683
    9     256     1742
    10     512     126
    11     1024     4
    When I check the history details for the session i have the following details
    SAMPLE_ID     SESSION_STATE     BLOCKING_SESSION     BLOCKING_SESSION_STATUS     EVENT     EVENT_ID     EVENT#     P2     P3TEXT     P3     WAIT_CLASS     WAIT_CLASS_ID     WAIT_TIME     TIME_WAITED
    26571178     ON CPU          NOT IN WAIT                    1          0               144     0
    26571176     WAITING          NO HOLDER     db file sequential read     2652584166     116     312822     blocks     1     User I/O     1740759767     0     255583
    26571175     WAITING          NO HOLDER     db file sequential read     2652584166     116     3076763     blocks     1     User I/O     1740759767     0     251864
    26571174     ON CPU          NOT IN WAIT                    1          0               124     0
    26571171     WAITING     111     VALID     log file sync     1328744198     115     0          0     Commit     3386400367     0     555324
    26571169     WAITING          NO HOLDER     db file sequential read     2652584166     116     3076834     blocks     1     User I/O     1740759767     0     36578
    26571166     WAITING          UNKNOWN     Data file init write     2326919048     9     256     timeout     4294967295     User I/O     1740759767     0     102445
    26571165     ON CPU          NOT IN WAIT                    312     blocks     1               6079     0
    26571164     ON CPU          NOT IN WAIT                    1          0               124     0
    26571163     WAITING          UNKNOWN     read by other session     3056446529     67     198938     class#     1     User I/O     1740759767     0     215
    26571161     WAITING          UNKNOWN     read by other session     3056446529     67     3073940     class#     1     User I/O     1740759767     0     299513
    26571160     WAITING          NO HOLDER     db file sequential read     2652584166     116     3073906     blocks     1     User I/O     1740759767     0     158991
    26571158     WAITING     111     VALID     log file sync     1328744198     115     0          0     Commit     3386400367     0     229301
    26571155     WAITING          NO HOLDER     db file sequential read     2652584166     116     3073109     blocks     1     User I/O     1740759767     0     124131
    26571152     WAITING          NO HOLDER     db file sequential read     2652584166     116     3075524     blocks     1     User I/O     1740759767     0     213313
    26571151     ON CPU          NOT IN WAIT                    1          0               143     0
    26571149     WAITING          NO HOLDER     db file sequential read     2652584166     116     3075601     blocks     1     User I/O     1740759767     0     37342
    26571147     WAITING          NO HOLDER     db file sequential read     2652584166     116     3074293     blocks     1     User I/O     1740759767     0     150539
    26571146     WAITING     111     VALID     log file sync     1328744198     115     0          0     Commit     3386400367     0     148213
    26571144     WAITING          NO HOLDER     db file sequential read     2652584166     116     3076250     blocks     1     User I/O     1740759767     0     198960
    26571143     WAITING          NO HOLDER     db file sequential read     2652584166     116     3076821     blocks     1     User I/O     1740759767     0     139530
    26571142     WAITING          NO HOLDER     db file sequential read     2652584166     116     3076273     blocks     1     User I/O     1740759767     0     214391
    26571140     ON CPU          NOT IN WAIT                    1          0               124     0
    26571139     ON CPU          NOT IN WAIT                    1          0               216     0
    26571137     WAITING          NO HOLDER     db file sequential read     2652584166     116     3076411     blocks     1     User I/O     1740759767     0     185643
    26571136     ON CPU          NOT IN WAIT                    1          0               134     0
    26571135     WAITING          NO HOLDER     db file sequential read     2652584166     116     3074201     blocks     1     User I/O     1740759767     0     434296
    26571133     WAITING          UNKNOWN     direct path write     885859547     164     1484961     block cnt     1     User I/O     1740759767     0     170312
    How can I improve on db file sequential read/ do you see any other potential problems for my query execution time.
    Thank you
    Edited by: tcklion on Apr 23, 2009 10:57 AM

    tcklion wrote:
    I couldnt find the hash value , i am using this query
    Hash values are o for the query output
    select sid, sql_text,sql_hash_value
    from v$session s, v$sql q
    where sid in ('session id)
    How can i find the hash value from sys.v_$active_session_history, i dont see a column which shows the hash valueYou can use the SQL_ID available in V$ACTIVE_SESSION_HISTORY. The parameter to DBMS_XPLAN.DISPLAY_CURSOR is actually the SQL_ID and not the hash value (in passing, the SQL_ID is actually an obfuscated hash value, but that's not the point here: http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/).
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Default Buffer Pool Busy Waits and Default Buffer Pool Hit Ratio

    Hi experts,
    I am having oracle database with version 11gR2 on windows server 2003 platform.
    I am continuously getting alerts related to "Default Buffer Pool Busy Waits" and "Default Buffer Pool Hit Ratio."
    I have fired some of the queries(which contain view like v$session_wait) to get information of sessions that causing the same issue,but unable to get it.
    Please help me to resolve the same issue.

    Hi - Try this query for Buffer busy wait
    COL class FORM a10
    COL total_waits FORM 9,999,999,999
    COL "WAITS %" FORM 9999999
    COL time_waited FORM 9999999
    COL "TIME %" FORM 9999999
    COL event FORM a24
    COL avg_wait FORM 9999.99
    SELECT a.event event, substr(c.wait_class,1,9) class,
    a.total_waits total_waits, a.time_waited/100 time_waited,
    a.average_wait avg_wait
    -- a.average_wait/100 avg_wait -- displays seconds instead of 100s
    FROM v$system_event a, v$event_name b, v$system_wait_class c
    WHERE a.event_id=b.event_id
    AND b.wait_class#=c.wait_class#
    AND a.time_waited/100 > 0
    AND (event LIKE '%HW%' OR event = 'buffer busy waits')
    -- AND c.wait_class in ('Application','Concurrency','User I/O')
    ORDER BY 1 DESC;

  • What is the difference between buffer busy waits and free buffer waits

    what is the difference between buffer busy waits events and free buffer waits in Oracle database?
    select *
    from
       v$system_event
    where
       event like ‘%wait%’;
    EVENT                       TOTAL_WAITS TOTAL_TIMEOUTS TIME_WAITED AVERAGE_WAIT
    buffer busy waits                636528           1557      549700   .863591232
    write complete waits               1193              0       14799   12.4048617
    free buffer waits                  1601              0         622   .388507183

    jetq wrote:
    Buffer busy waits occur when an Oracle session needs to access a block in the buffer cache, but cannot because the buffer copy of the data block is locked. This buffer busy wait condition can happen for either of the following reasons:
    * The block is being read into the buffer by another session, so the waiting session must wait for the block read to complete. If the OP is running 10g, that would be recorded as "read by other session" not "buffer busy waits" - and unfortunately he didn't tell us the version.
    * Another session has the buffer block locked in a mode that is incompatible with the waiting session's request.
    The Free Buffer Waits Oracle metric wait event indicates that a server process was unable to find a free buffer and has posted the database writer to make free buffers by writing out dirty buffers.
    There is another possibility - if the OP is using a keep and recycle pool: see http://jonathanlewis.wordpress.com/2006/11/21/free-buffer-waits/
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    "For every expert there is an equal and opposite expert"
    Arthur C. Clarke                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Oracle 11g performace issue

    hi all,
    am using oracle 11g enterprise edition., i didn't ran any query but in ADDR report it was running some sytem based query(SYS,DBSNMP,SYSMAN etc)
    but in previous 10g it was working fine.. can anyone tell me how to stop those query..
    this is the query was running most frequently :
    select end_time, wait_class#, (time_waited_fg)/(intsize_csec/100), (time_waited)/(intsize_csec/100), 0
    from v$waitclassmetric union all
    select fg.end_time, -1, fg.value, bg.value, dbtime.value
    from v$sysmetric fg, v$sysmetric bg, v$sysmetric dbtime
    where bg.metric_name = 'Background CPU Usage Per Sec' and bg.group_id = 2 and fg.metric_name = 'CPU Usage Per Sec' and fg.group_id = 2 and dbtime.metric_name = 'Average Active Sessions' and dbtime.group_id = 2 and bg.end_time = fg.end_time and fg.end_time = dbtime.end_time order by end_time,wait_class#
    UPDATE MGMT_JOB_EXECUTION SET STEP_STATUS=:B2 WHERE STEP_ID=:B1

    Velsjeya wrote:
    hi all,
    am using oracle 11g enterprise edition., i didn't ran any query but in ADDR report it was running some sytem based query(SYS,DBSNMP,SYSMAN etc)
    but in previous 10g it was working fine.. can anyone tell me how to stop those query..
    this is the query was running most frequently :
    select end_time, wait_class#, (time_waited_fg)/(intsize_csec/100), (time_waited)/(intsize_csec/100), 0
    from v$waitclassmetric union all
    select fg.end_time, -1, fg.value, bg.value, dbtime.value
    from v$sysmetric fg, v$sysmetric bg, v$sysmetric dbtime
    where bg.metric_name = 'Background CPU Usage Per Sec' and bg.group_id = 2 and fg.metric_name = 'CPU Usage Per Sec' and fg.group_id = 2 and dbtime.metric_name = 'Average Active Sessions' and dbtime.group_id = 2 and bg.end_time = fg.end_time and fg.end_time = dbtime.end_time order by end_time,wait_class#
    UPDATE MGMT_JOB_EXECUTION SET STEP_STATUS=:B2 WHERE STEP_ID=:B1Why are you so concerned about background queries? Do you really think these queries uses high resource and have high elapsed time then you custom queries? The god way to diagnose a performance problem is to identify most resource intensive/time consuming program/module/code rather then running after background queries. Yes sometimes background queries too run slowly in rear cases and then you need to run dbms_stats.gather_dictionary_stats or dbms_stats.gather_fixed_objects_stats (https://blogs.oracle.com/optimizer/entry/fixed_objects_statistics_and_why)

Maybe you are looking for

  • MBP Late-2011 hard drive not recognized

    Okay, so last November 2012, not even a year after I bought my MBP, it just froze and wouldn't respond to anything. All it showed was the rainbow loading circle and the computer crashed. I brought it to the Apple store and the person behind the Geniu

  • Use FaceTime to record a video with screen sharing?

    I need to record a presentation, going back and forth between me talking and demonstrating my company's new iPhone app. The app runs in the Xcode iOS simulator on my MacBook, and my MacBook has a FaceTime camera (720p!). Is there a way to use FaceTim

  • Time code written in the audiotrack

    Dear users, i have FCP and i am going to work with the camere van Silicon Image. the SI2K. this one has no timecode reading of 25. european standard, it only has american standards. so now we thought lets write the timecode in the audio track. this r

  • BW Reports( BEx reports) in Sneak preview ABAP trail version.

    Hi All, Is it possible to display the BW data in BEx reports with help of Tr code RRMX in Sneak preview ABAP trail version. When i try to run Trcode RRMX system says Please install Excel as viewer.. Please let me know , how we can display data. Regar

  • Iphoto calendar to print issue.

    When creating iphoto calendar to print the months of the year font changes to very small size. No text field available to change back.