CURSOR_SHARING FORCE

hi all,
When i set the parameter CURSOR_SHARING = FORCE, on INSERT STATEMENTS i have blank spaces added.
Ex :
INSERT INTO TABLE1(COL1)
VALUES('VALUE1');
SELECT COL1 FROM TABLE1;
Result : 'VALUE1 '
I get 'VALUES1' with spaces after...
ORACLE : 9.2.0.7
Windows 2003 Server 32 Bits
Any ideas ?
Thank you !

Because datatype of COL1 is char. See below :
SQL> drop table t purge;
Table dropped.
SQL> create table t(col1 varchar2(10),col2 char(10));
Table created.
SQL> insert into t values ('aaa','xxx');
1 row created.
SQL> select * from t;
COL1       COL2
aaa        xxx
SQL> select col1||col2 from t;
COL1||COL2
aaaxxx
SQL> select col2||col1 from t;
COL2||COL1
xxx       aaaHTH
Girish Sharma

Similar Messages

  • Cursor_sharing force partially parameter sql

    Hi ,
    We are running our application with weblogic ,jdbc thin client with Oracle 9.2.0.5 database.
    We have set cursor_sharing=FORCE in init.ora.
    Our problem.
    Java prepared statement with partial variable substitution is not sharing cursors, All other type of executions like update using sqlplus or without prepared statement they are sharing the cursors.
    For example.
    1)
    UPDATE t1 SET col1=? WHERE id = 123
    This gets translated into
    UPDATE t1 SET col1= :1 WHERE nid = 123
    where as
    2)
    UPDATE t1 SET col1=? WHERE id = ?
    It gets translated into
    UPDATE t1 SET col1= :1 WHERE nid = :2
    We haved 1000 of update statements run in our application as example 1)
    which is not sharing cursor.
    Is there any parameter we can set in database?
    This is happening in 9.2.0.6 also.

    <quote>Is there any parameter we can set in database?</quote>
    No.
    And the behavior you describe actually makes sense. If you used bind variables where you considered it to be appropriate [and conversely, didn’t use them where it wasn’t appropriate], why would Oracle come in and override your decision by blindingly replacing all remaining literals with binds?
    <quote>We haved 1000 of update statements run in our application as example 1) which is not sharing cursor.</quote>
    Then those statements have to be re-written. CURSOR_SHARING=FORCE at the instance level is supposed to be a temporary band-aid anyway … the fix is to address the underlying coding problem and revert to CURSOR_SHARING=EXACT. Maybe, just maybe … have CURSOR_SHARING other than EXACT at session level surrounding some particular piece of code deemed too risky to re-code (3rd party, undocumented, too obscure) … but some regular UPDATEs? … just fix.

  • Cursor_sharing改成force,会引起什么bug吗?

    公司的数据库内有一套老的应用,跑了好多年了,但没有绑定变量,导致SQLAREA占用大量资源
    我想将cursor_sharing改成force,会不会引起bug
    我在此之前将此参数similar ,应用会报错
    数据库版 10.2.0.4 64bit
    SELECT substr(sql_text, 1, 40) "SQL", count(*), sum(executions) "TotExecs"
    FROM v$sqlarea
    WHERE executions < 5
    GROUP BY substr(sql_text, 1, 40) HAVING count(*) > 30 ORDER BY 2 desc;
    结果为
    1     SELECT …………     22625     23047
    2     insert …………     21437     21437
    3     insert …………     21429     21429
    4     select …………     19464     22630
    5     delete …………     18655     18655
    6     INSERT …………     18078     20520
    7     SELECT …………     13218     15798
    8     INSERT …………     9060     9060
    9     INSERT …………     9060     9060
    10     select ………… 7870     8451
    11     insert …………     7837     8350
    12     select …………     7790     7790
    13     select …………     7789     7789
    14     insert …………     7768     7937
    15     SELECT …………     7716     9052
    16     insert …………     6636     6643
    17     SELECT …………     6392     6392
    18     UPDATE …………     6077     6439
    19     SELECT …………     6027     6389
    20     update …………     4414     4414
    21     INSERT …………     4018     4016

    1. 不推荐在任何版本上继续使用 CURSOR_SHARING=SIMILAR
    2. cursor_sharing=force 在某些特性条件下会触发bug, 主要是在低版本(9iR2,10gR2早期),具体是否触发bug取决于SQL的写法。
    建议你直接参考以下 10.2.0.4上cursor_sharing的 bug list:
    NB     Bug     Fixed     Description
    12862170     12.1.0.0     INSERT ALL fails with ORA-600[kkslhsh1] with CURSOR_SHARING enabled / High Version Count on HASH_MATCH_FAILED
    12374212     11.2.0.3, 12.1.0.0     Assorted dump , internal errors, memory corruptions with cursor_sharing = force
    12334286     11.2.0.3, 12.1.0.0     High version counts with CURSOR_SHARING=FORCE (BIND_MISMATCH and INCOMP_LTRL_MISMATCH)
    11063191     11.2.0.2.7, 11.2.0.2.BP17, 11.2.0.3.2, 11.2.0.3.BP04, 12.1.0.0     ORA-4031 with hint /*+ CURSOR_SHARING_EXACT */ - excessive "KKSSP^nn" memory
    10013170     11.2.0.3, 12.1.0.0     ORA-600 [736] from literal replacement with a "WAIT n" clause
    9877964     11.2.0.3, 12.1.0.0     ORA-600 [19003] raised by LIKE :BIND in query
    9680430     11.2.0.3, 12.1.0.0     High version count with CURSOR_SHARING = FORCE due to CBO transformation
    9411496     11.2.0.2, 12.1.0.0     ORA-979 on GROUP BY query with CURSOR_SHARING set
    9362218     11.2.0.2, 12.1.0.0     Literals replaced by binds when CURSOR_SHARING=EXACT
    9348402     12.1.0.0     OERI [kks-hash-collision] can occur with CURSOR_SHARING=FORCE|SIMILAR
    9223586     11.2.0.2, 12.1.0.0     Problems with variable length NCHAR literals with cursor sharing
    9031183     11.2.0.2, 12.1.0.0     ORA-1722 with CURSOR_SHARING=SIMILAR and with NCHAR
    8246445     11.2.0.2, 12.1.0.0     Query rewrite not working for multi-MV rewrite with literal replacement
    5751866     11.2.0.2     Wrong Results with CASE and CURSOR_SHARING
    9767674     10.2.0.5.5     Dump [kkslmtl] using CURSOR_SHARING - superceded
    8794693     11.2.0.2     Dump [kkscsmtl] using literal replacement (CURSOR_SHARING)
    8453245     11.2.0.1     Many child cursors with CURSOR_SHARING = FORCE
    8264642     11.2.0.1     ORA-600 [kkexbindopn0] with CURSOR_SHARING = SIMILAR
    7516867     10.2.0.5, 11.1.0.7.1, 11.2.0.1     Intermittent Wrong results from literal replacement with fix for bug 6163785
    7272297     10.2.0.4.1, 10.2.0.5, 11.1.0.7, 11.2.0.1     Memory corruption / OERI[17114] / OERI[17125] with literal replacement
    6337716     10.2.0.5, 11.1.0.7, 11.2.0.1     Wrong max column size for NULL strings with literal replacement
    4071519     10.2.0.5, 11.1.0.7, 11.2.0.1     GROUP BY query with CURSOR_SHARING fails with ORA-1802
    3461251     11.1.0.7, 11.2.0.1     V$SQL_SHARED_CURSOR shows all N with CURSOR_SHARING
    7296258     10.2.0.5, 11.1.0.7.1     Intermittent Wrong results from literal replacement and remote objects
    6163785     10.2.0.5, 11.1.0.7     Intermittent Wrong Results with dblink and cursor_sharing
    8202234          Intermittent Wrong Results with dblink and cursor_sharing
    4867724     10.2.0.5, 11.1.0.6     Literal replacement limits column names to 30 characters

  • Confused about cursor_sharing=force

    SQL> col name for a20
    SQL> col type for a20
    SQL> show parameter cursor_sharing
    NAME TYPE
    VALUE
    cursor_sharing string
    FORCE
    SQL> drop table test;
    Table dropped.
    SQL> create table test(id int,name varchar2(100));
    Table created.
    SQL> insert into test select 1,object_name from dba_objects;
    49794 rows created.
    SQL> insert into test select object_id,object_name from dba_objects;
    49794 rows created.
    SQL> create index i_test_1 on test(id);
    Index created.
    SQL> analyze table test compute statistics for table for all indexes for all
    2 indexed columns size 254;
    Table analyzed.
    SQL> set autot trace
    SQL> select * from test where id=1;
    49794 rows selected.
    Execution Plan
    Plan hash value: 1357081020
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 49402 | 1495K| 106 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| TEST | 49402 | 1495K| 106 (4)| 00:00:02 |
    Predicate Information (identified by operation id):
    1 - filter("ID"=1)
    Statistics
    1 recursive calls
    0 db block gets
    3766 consistent gets
    148 physical reads
    0 redo size
    1489087 bytes sent via SQL*Net to client
    36894 bytes received via SQL*Net from client
    3321 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    49794 rows processed
    SQL> select * from test where id=10000;
    no rows selected
    Execution Plan
    Plan hash value: 3275607494
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Ti
    me |
    | 0 | SELECT STATEMENT | | 1 | 31 | 2 (0)| 00
    :00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| TEST | 1 | 31 | 2 (0)| 00
    :00:01 |
    |* 2 | INDEX RANGE SCAN | I_TEST_1 | 1 | | 1 (0)| 00
    :00:01 |
    Predicate Information (identified by operation id):
    2 - access("ID"=10000)
    Statistics
    0 recursive calls
    0 db block gets
    462 consistent gets
    58 physical reads
    0 redo size
    325 bytes sent via SQL*Net to client
    374 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    why not choose full table scan here?????
    There are no rows returned, why still have 462 consistent gets
    SQL> set autot off
    SQL> select sql_text,version_count from v$sqlarea where sql_text like
    2 'select * from test%';
    SQL_TEXT
    VERSION_COUNT
    select * from test where id=:"SYS_B_0"
    1
    oracle version :10.2.0.1
    os :windows xp
    Edited by: jinyu on Aug 27, 2008 10:03 PM

    SQL> ALTER SESSION SET NLS_LANGUAGE=AMERICAN;
    Session altered.
    SQL> alter system set cursor_sharing=force;
    System altered.
    SQL> create table test as select 1 id,object_name from dba_objects;
    Table created.
    SQL> insert into test select object_id,object_name from dba_objects;
    49794 rows created.
    SQL> commit;
    Commit complete.
    SQL> create index i_test_1 on test(id);
    Index created.
    SQL> analyze table test compute statistics for table for all indexes for all indexed columns size 25
    4;
    Table analyzed.
    SQL> set autot trace
    SQL> select * from test where id=1;
    49794 rows selected.
    Execution Plan
    Plan hash value: 1357081020
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 49402 | 1495K| 106 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| TEST | 49402 | 1495K| 106 (4)| 00:00:02 |
    Predicate Information (identified by operation id):
    1 - filter("ID"=1)
    Statistics
    1 recursive calls
    0 db block gets
    3768 consistent gets
    4 physical reads
    0 redo size
    1489094 bytes sent via SQL*Net to client
    36894 bytes received via SQL*Net from client
    3321 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    49794 rows processed
    SQL> select * from test where id=10000;
    no rows selected
    Execution Plan
    Plan hash value: 3275607494
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Ti
    me |
    | 0 | SELECT STATEMENT | | 1 | 31 | 2 (0)| 00
    :00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| TEST | 1 | 31 | 2 (0)| 00
    :00:01 |
    |* 2 | INDEX RANGE SCAN | I_TEST_1 | 1 | | 1 (0)| 00
    :00:01 |
    Predicate Information (identified by operation id):
    2 - access("ID"=10000)
    Statistics
    0 recursive calls
    0 db block gets
    462 consistent gets
    14 physical reads
    0 redo size
    332 bytes sent via SQL*Net to client
    374 bytes received via SQL*Net from client
    1 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    0 rows processed
    SQL> select sql_text,PLAN_HASH_VALUE,version_count,executions,parse_calls
    2 from v$sqlarea where sql_text like '%select * from test%';
    SQL_TEXT
    PLAN_HASH_VALUE VERSION_COUNT EXECUTIONS PARSE_CALLS
    EXPLAIN PLAN SET STATEMENT_ID='PLUS4294967295' FOR select * from test where id=1
    1357081020 1 1 1
    select * from test where id=:"SYS_B_0"
    1357081020 1 2 2
    EXPLAIN PLAN SET STATEMENT_ID='PLUS4294967295' FOR select * from test where id=1
    0000
    3275607494 1 1 1
    SQL_TEXT
    PLAN_HASH_VALUE VERSION_COUNT EXECUTIONS PARSE_CALLS
    --------------- ------------- ---------- -----------

  • Set cursor_sharing=force not work

    SUNDOG315>show parameter cursor_sharing
    NAME TYPE
    VALUE
    cursor_sharing string
    EXACT
    SUNDOG315>select count(*) from dba_objects where object_id=1;
    COUNT(*)
    0
    SUNDOG315>select count(*) from dba_objects where object_id=2;
    COUNT(*)
    1
    SUNDOG315>select count(*) from dba_objects where object_id=3;
    COUNT(*)
    1
    SUNDOG315>select sql_text from v$sql where sql_text like 'select count(*) from d
    ba_objects%';
    SQL_TEXT
    select count(*) from dba_objects where object_id=1
    select count(*) from dba_objects where object_id=3
    select count(*) from dba_objects where object_id=2
    SUNDOG315>alter system set cursor_sharing=force;
    系统已更改。
    SUNDOG315>alter system flush shared_pool;
    系统已更改。
    SUNDOG315>select sql_text from v$sql where sql_text like 'select count(*) from d
    ba_objects%';
    未选定行
    SUNDOG315>select count(*) from dba_objects where object_id=1;
    COUNT(*)
    0
    SUNDOG315>select count(*) from dba_objects where object_id=2;
    COUNT(*)
    1
    SUNDOG315>select count(*) from dba_objects where object_id=3;
    COUNT(*)
    1
    SUNDOG315>select sql_text from v$sql where sql_text like 'select count(*) from d
    ba_objects%';
    SQL_TEXT
    select count(*) from dba_objects where object_id=1
    select count(*) from dba_objects where object_id=3
    select count(*) from dba_objects where object_id=2
    SUNDOG315>show parameter cursor_sharing
    NAME TYPE
    VALUE
    cursor_sharing string
    FORCE
    Edited by: Lei Liu on Oct 20, 2010 4:44 PM
    Edited by: Lei Liu on Oct 20, 2010 4:44 PM

    What is your 4 digits Oracle version ?
    I cannot reproduce this even with Oracle XE:
    SQL> show parameter cursor_sharing
    NAME                                 TYPE
    VALUE
    cursor_sharing                       string
    FORCE
    SQL>
    select sql_text from v$sql where sql_text like '%dba_objects%';
    SQL_TEXT
    select sql_text from v$sql where sql_text like '%dba_objects%'
    select count(*) from dba_objects where object_id=:"SYS_B_0"
    select count(*) from dba_objects where object_id=3

  • CURSOR_SHARING fixed in Release 2?

    The IT team, here, had initially set CURSOR_SHARING to SIMILAR in 10g R1. They noticed that we were getting incorrect Data Dictionary values. So CURSOR_SHARING had to be set back to EXACT. It was a bug in 10g R1. Does anybody know if this issue was fixed in Release 2?

    I looked it up and it looks like it was addressed as a bug fix in Release 2 in the "10.2.0.3 Patch Set - List of Bug Fixes by Problem Type". Doc ID: Note:391116.1.
    I'm pasting the category of the bug fixs "Literal Replacement (CURSOR_SHARING)" along with the number and the text for the fix. This does seem to be related to DBMS_SQL:
    Literal Replacement (CURSOR_SHARING)
    4200541 -->Parse error when CURSOR_SHARING=FORCE|SIMILAR with user binds<--
    4254094      OERI[QERRMOBND1][932] possible for queries over DB links
    4607460      Dump [opipls] when CURSOR_SHARING = SIMILAR | FORCE
    4698156      ORA-12850 querying GV$ views when CURSOR_SHARING=FORCE
    5055175      Dump [kkslpkp] using literal replacement with timezone literals

  • Cursor_sharing Side-effects

    I have a situation where several off-the-shelf applications (same vendor) are running on the same instance. One of the is performing poorly and I was able to get a good performance boost with cursor_sharing=force. After much testing in QA, we are ready to move it to production.
    Now two of the other applications are having trouble. Apparently, the applications do some very basic selects from sqlplus and then parse the results. Setting cursor_sharing to force has had a side-effect (bug) that changes the column widths of these selects. The end result is that the other application fails because it can't parse it correctly.
    This is a documented problem and Oracle recommends to always explicitly set your column widths in sqlplus. This is what we want to do, but the effort is not small.
    A kludge work-around is to alter cursor_sharing before and after the batch processes. This can be done at either the system or session level.
    My question is this: Is there a simple way to set it up so an that when this black-box application create a session, it will set the cursor_sharing to force?
    Thanks,
    Scott
    http://www.erpfuture.com

    I have a situation where several off-the-shelf
    applications (same vendor) are running on the same
    instance. One of the is performing poorly and I was
    able to get a good performance boost with
    cursor_sharing=force. After much testing in QA, we
    are ready to move it to production.
    Now two of the other applications are having trouble.
    Apparently, the applications do some very basic
    c selects from sqlplus and then parse the results.
    Setting cursor_sharing to force has had a
    a side-effect (bug) that changes the column widths of
    these selects. Actually it is the off the shelf applications that have the bug, they are not using bind variables which means you are overparsing and fragmenting your shared pool. Poor performance is about the best you will get from such applications. You are also likely open to security issues that arise from [url=http://www.google.com/search?q=sql+injection
    ]sql injection.
    Cursor sharing force is a workaround for a badly written application. It auto binds all literals. This means plans will change and all literal values are variables which could contain anything which leads to the problem you describe.
    select 'test' from dual;becomes
    select :b_sys_0 from dual;where :b_sys_0 could be 4000 characters long.
    I would second kamathg's advice that if you need to use the cursor sharing workaround to only set it at the session level for the application that needs it using the logon trigger.
    You should do this as an interim measure while you file a bug report with the software vendor to have them fix their application.
    The security issues do not go away.

  • Alternative to cursor_sharing parameter

    Hello,
    We presently have a 3rd party application that has an Oracle 9.2.0.8 db with statistics run on it and would like to improve performance with some bind variable queries in setting the cursor_sharing = force.
    The problem is that when certain queries return a larger character set string, the apps does not accept and errors out.
    Does anyone have any experience with this parameter and it's alternatives?
    Much appreciated.
    JR

    Hi JR,
    would like to improve performance with some bind variable queries in Cursor_sharing is a Godsend for shops with vendor SQL that cannot be changed, and for shops with ad-hoc query where literals appear in the SQL.
    Does anyone have any experience with this parameter and it's alternatives?Before cursor_sharing, we made the shared_pool very tiny.
    Since there was no reason to cached non-reentrant SQL, why even have a shared pool?
    Obviously, the best remedy is to re-write your code to use host variables, but that's rarely a practical solution!
    Also note that cursor_sharing=similar now works in 11g . . .
    I have some notes here that you may find helpdul:
    http://www.dba-oracle.com/t_cursor_sharing.htm
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • ORA-01008 with ref cursor and dynamic sql

    When I run the follwing procedure:
    variable x refcursor
    set autoprint on
    begin
      Crosstab.pivot(p_max_cols => 4,
       p_query => 'select job, count(*) cnt, deptno, row_number() over (partition by job order by deptno) rn from scott.emp group by job, deptno',
       p_anchor => Crosstab.array('JOB'),
       p_pivot  => Crosstab.array('DEPTNO', 'CNT'),
       p_cursor => :x );
    end;I get the following error:
    ^----------------
    Statement Ignored
    set autoprint on
    begin
    adsmgr.Crosstab.pivot(p_max_cols => 4,
    p_query => 'select job, count(*) cnt, deptno, row_number() over (partition by
    p_anchor => adsmgr.Crosstab.array('JOB'),
    p_pivot => adsmgr.Crosstab.array('DEPTNO', 'CNT'),
    p_cursor => :x );
    end;
    ORA-01008: not all variables bound
    I am running this on a stored procedure as follows:
    create or replace package Crosstab
    as
        type refcursor is ref cursor;
        type array is table of varchar2(30);
        procedure pivot( p_max_cols       in number   default null,
                         p_max_cols_query in varchar2 default null,
                         p_query          in varchar2,
                         p_anchor         in array,
                         p_pivot          in array,
                         p_cursor in out refcursor );
    end;
    create or replace package body Crosstab
    as
    procedure pivot( p_max_cols          in number   default null,
                     p_max_cols_query in varchar2 default null,
                     p_query          in varchar2,
                     p_anchor         in array,
                     p_pivot          in array,
                     p_cursor in out refcursor )
    as
        l_max_cols number;
        l_query    long;
        l_cnames   array;
    begin
        -- figure out the number of columns we must support
        -- we either KNOW this or we have a query that can tell us
        if ( p_max_cols is not null )
        then
            l_max_cols := p_max_cols;
        elsif ( p_max_cols_query is not null )
        then
            execute immediate p_max_cols_query into l_max_cols;
        else
            RAISE_APPLICATION_ERROR(-20001, 'Cannot figure out max cols');
        end if;
        -- Now, construct the query that can answer the question for us...
        -- start with the C1, C2, ... CX columns:
        l_query := 'select ';
        for i in 1 .. p_anchor.count
        loop
            l_query := l_query || p_anchor(i) || ',';
        end loop;
        -- Now add in the C{x+1}... CN columns to be pivoted:
        -- the format is "max(decode(rn,1,C{X+1},null)) cx+1_1"
        for i in 1 .. l_max_cols
        loop
            for j in 1 .. p_pivot.count
            loop
                l_query := l_query ||
                    'max(decode(rn,'||i||','||
                               p_pivot(j)||',null)) ' ||
                                p_pivot(j) || '_' || i || ',';
            end loop;
        end loop;
        -- Now just add in the original query
        l_query := rtrim(l_query,',')||' from ( '||p_query||') group by ';
        -- and then the group by columns...
        for i in 1 .. p_anchor.count
        loop
            l_query := l_query || p_anchor(i) || ',';
        end loop;
        l_query := rtrim(l_query,',');
        -- and return it
        execute immediate 'alter session set cursor_sharing=force';
        open p_cursor for l_query;
        execute immediate 'alter session set cursor_sharing=exact';
    end;
    end;
    /I can see from the error message that it is ignoring the x declaration, I assume it is because it does not recognise the type refcursor from the procedure.
    How do I get it to recognise this?
    Thank you in advance

    Thank you for your help
    This is the version of Oracle I am running, so this may have something to do with that.
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.8.0 - Production
    I found this on Ask Tom (http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:3027089372477)
    Hello, Tom.
    I have one bind variable in a dynamic SQL expression.
    When I open cursor for this sql, it gets me to ora-01008.
    Please consider:
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.4.1 - Production
    JServer Release 8.1.7.4.1 - Production
    SQL> declare
      2    type cur is ref cursor;
      3    res cur;
      4  begin
      5    open res for
      6    'select * from (select * from dual where :p = 1) connect by 1 = 1'
      7    using 1;
      8  end;
      9  /
    declare
    ERROR at line 1:
    ORA-01008: not all variables bound
    ORA-06512: at line 5
    SQL> declare
      2    type cur is ref cursor;
      3    res cur;
      4  begin
      5    open res for
      6    'select * from (select * from dual where :p = 1) connect by 1 = 1'
      7    using 1, 2;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    And if I run the same thing on 10g -- all goes conversely. The first part runs ok, and the second
    part reports "ORA-01006: bind variable does not exist" (as it should be, I think). Remember, there
    is ONE bind variable in sql, not two. Is it a bug in 8i?
    What should we do to avoid this error running the same plsql program code on different Oracle
    versions?
    P.S. Thank you for your invaluable work on this site.
    Followup   June 9, 2005 - 6pm US/Eastern:
    what is the purpose of this query really?
    but it would appear to be a bug in 8i (since it should need but one).  You will have to work that
    via support. I changed the type to tarray to see if the reserved word was causing a problem.
    variable v_refcursor refcursor;
    set autoprint on;
    begin 
         crosstab.pivot (p_max_cols => 4,
                 p_query => 
                   'SELECT job, COUNT (*) cnt, deptno, ' || 
                   '       ROW_NUMBER () OVER ( ' || 
                   '          PARTITION BY job ' || 
                   '          ORDER BY deptno) rn ' || 
                   'FROM   emp ' ||
                   'GROUP BY job, deptno',
                   p_anchor => crosstab.tarray ('JOB'),
                   p_pivot => crosstab.tarray ('DEPTNO', 'CNT'),
                   p_cursor => :v_refcursor);
    end;
    /Was going to use this package as a stored procedure in forms but I not sure it's going to work now.

  • Post Upgrade SQL Performance Issue

    Hello,
    I Just Upgraded/Migrated my database from 11.1.0.6 SE to 11.2.0.3 EE. I did this with datapump export/import out of the 11.1.0.6 and into a new 11.2.0.3 database. Both the old and the new database are on the same Linux server. The new database has 2GB more RAM assigned to its SGA then the old one. Both DB are using AMM.
    The strange part is I have a SQL statement that completes in 1 second in the Old DB and takes 30 seconds in the new one. I even moved the SQL Plan from the Old DB into the New DB so they are using the same plan.
    To sum up the issue. I have one SQL statement using the same SQL Plan running at dramatically different speeds on two different databases on the same server. The databases are 11.1.0.7 SE and 11.2.0.3 EE.
    Not sure what is going on or how to fix it, Any help would be great!
    I have included Explains and Auto Traces from both NEW and OLD databases.
    NEW DB Explain Plan (Slow)
    Plan hash value: 1046170788
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 94861 | 193M| | 74043 (1)| 00:18:52 |
    | 1 | SORT ORDER BY | | 94861 | 193M| 247M| 74043 (1)| 00:18:52 |
    | 2 | VIEW | PBM_MEMBER_INTAKE_VW | 94861 | 193M| | 31803 (1)| 00:08:07 |
    | 3 | UNION-ALL | | | | | | |
    | 4 | NESTED LOOPS OUTER | | 1889 | 173K| | 455 (1)| 00:00:07 |
    |* 5 | HASH JOIN | | 1889 | 164K| | 454 (1)| 00:00:07 |
    | 6 | TABLE ACCESS FULL| PBM_CODES | 2138 | 21380 | | 8 (0)| 00:00:01 |
    |* 7 | TABLE ACCESS FULL| PBM_MEMBER_INTAKE | 1889 | 145K| | 446 (1)| 00:00:07 |
    |* 8 | INDEX UNIQUE SCAN | ADJ_PK | 1 | 5 | | 1 (0)| 00:00:01 |
    | 9 | NESTED LOOPS | | 92972 | 9987K| | 31347 (1)| 00:08:00 |
    | 10 | NESTED LOOPS OUTER| | 92972 | 8443K| | 31346 (1)| 00:08:00 |
    |* 11 | TABLE ACCESS FULL| PBM_MEMBERS | 92972 | 7989K| | 31344 (1)| 00:08:00 |
    |* 12 | INDEX UNIQUE SCAN| ADJ_PK | 1 | 5 | | 1 (0)| 00:00:01 |
    |* 13 | INDEX UNIQUE SCAN | PBM_EMPLOYER_UK1 | 1 | 17 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    5 - access("C"."CODE_ID"="MI"."STATUS_ID")
    7 - filter("MI"."CLAIM_NUMBER" LIKE '%A0000250%' AND "MI"."CLAIM_NUMBER" IS NOT NULL)
    8 - access("MI"."ADJUSTER_ID"="A"."ADJUSTER_ID"(+))
    11 - filter("M"."THEIR_GROUP_ID" LIKE '%A0000250%' AND "M"."THEIR_GROUP_ID" IS NOT NULL)
    12 - access("M"."ADJUSTER_ID"="A"."ADJUSTER_ID"(+))
    13 - access("M"."GROUP_CODE"="E"."GROUP_CODE" AND "M"."EMPLOYER_CODE"="E"."EMPLOYER_CODE")
    Note
    - SQL plan baseline "SYS_SQL_PLAN_a3c20fdcecd98dfe" used for this statement
    OLD DB Explain Plan (Fast)
    Plan hash value: 1046170788
    | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 95201 | 193M| | 74262 (1)| 00:14:52 |
    | 1 | SORT ORDER BY | | 95201 | 193M| 495M| 74262 (1)| 00:14:52 |
    | 2 | VIEW | PBM_MEMBER_INTAKE_VW | 95201 | 193M| | 31853 (1)| 00:06:23 |
    | 3 | UNION-ALL | | | | | | |
    | 4 | NESTED LOOPS OUTER | | 1943 | 178K| | 486 (1)| 00:00:06 |
    |* 5 | HASH JOIN | | 1943 | 168K| | 486 (1)| 00:00:06 |
    | 6 | TABLE ACCESS FULL| PBM_CODES | 2105 | 21050 | | 7 (0)| 00:00:01 |
    |* 7 | TABLE ACCESS FULL| PBM_MEMBER_INTAKE | 1943 | 149K| | 479 (1)| 00:00:06 |
    |* 8 | INDEX UNIQUE SCAN | ADJ_PK | 1 | 5 | | 0 (0)| 00:00:01 |
    | 9 | NESTED LOOPS | | 93258 | 9M| | 31367 (1)| 00:06:17 |
    | 10 | NESTED LOOPS OUTER| | 93258 | 8469K| | 31358 (1)| 00:06:17 |
    |* 11 | TABLE ACCESS FULL| PBM_MEMBERS | 93258 | 8014K| | 31352 (1)| 00:06:17 |
    |* 12 | INDEX UNIQUE SCAN| ADJ_PK | 1 | 5 | | 0 (0)| 00:00:01 |
    |* 13 | INDEX UNIQUE SCAN | PBM_EMPLOYER_UK1 | 1 | 17 | | 0 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    5 - access("C"."CODE_ID"="MI"."STATUS_ID")
    7 - filter("MI"."CLAIM_NUMBER" LIKE '%A0000250%')
    8 - access("MI"."ADJUSTER_ID"="A"."ADJUSTER_ID"(+))
    11 - filter("M"."THEIR_GROUP_ID" LIKE '%A0000250%')
    12 - access("M"."ADJUSTER_ID"="A"."ADJUSTER_ID"(+))
    13 - access("M"."GROUP_CODE"="E"."GROUP_CODE" AND "M"."EMPLOYER_CODE"="E"."EMPLOYER_CODE")
    NEW DB Auto trace (Slow)
    active txn count during cleanout     0
    blocks decrypted     0
    buffer is not pinned count     664129
    buffer is pinned count     3061793
    bytes received via SQL*Net from client     3339
    bytes sent via SQL*Net to client     28758
    Cached Commit SCN referenced     662366
    calls to get snapshot scn: kcmgss     3
    calls to kcmgas     0
    calls to kcmgcs     8
    CCursor + sql area evicted     0
    cell physical IO interconnect bytes     0
    cleanout - number of ktugct calls     0
    cleanouts only - consistent read gets     0
    cluster key scan block gets     0
    cluster key scans     0
    commit cleanout failures: block lost     0
    commit cleanout failures: callback failure      0
    commit cleanouts     0
    commit cleanouts successfully completed     0
    Commit SCN cached     0
    commit txn count during cleanout     0
    concurrency wait time     0
    consistent changes     0
    consistent gets     985371
    consistent gets - examination     2993
    consistent gets direct     0
    consistent gets from cache     985371
    consistent gets from cache (fastpath)     982093
    CPU used by this session     3551
    CPU used when call started     3551
    CR blocks created     0
    cursor authentications     1
    data blocks consistent reads - undo records applied     0
    db block changes     0
    db block gets     0
    db block gets direct     0
    db block gets from cache     0
    db block gets from cache (fastpath)     0
    DB time     3553
    deferred (CURRENT) block cleanout applications     0
    dirty buffers inspected     0
    Effective IO time     0
    enqueue releases     0
    enqueue requests     0
    execute count     3
    file io wait time     0
    free buffer inspected     0
    free buffer requested     0
    heap block compress     0
    Heap Segment Array Updates     0
    hot buffers moved to head of LRU     0
    HSC Heap Segment Block Changes     0
    immediate (CR) block cleanout applications     0
    immediate (CURRENT) block cleanout applications     0
    IMU Flushes     0
    IMU ktichg flush     0
    IMU Redo allocation size     0
    IMU undo allocation size     0
    index fast full scans (full)     2
    index fetch by key     0
    index scans kdiixs1     12944
    lob reads     0
    LOB table id lookup cache misses     0
    lob writes     0
    lob writes unaligned     0
    logical read bytes from cache     -517775360
    logons cumulative     0
    logons current     0
    messages sent     0
    no buffer to keep pinned count     10
    no work - consistent read gets     982086
    non-idle wait count     6
    non-idle wait time     0
    Number of read IOs issued     0
    opened cursors cumulative     4
    opened cursors current     1
    OS Involuntary context switches     853
    OS Maximum resident set size     0
    OS Page faults     0
    OS Page reclaims     2453
    OS System time used     9
    OS User time used     3549
    OS Voluntary context switches     238
    parse count (failures)     0
    parse count (hard)     0
    parse count (total)     1
    parse time cpu     0
    parse time elapsed     0
    physical read bytes     0
    physical read IO requests     0
    physical read total bytes     0
    physical read total IO requests     0
    physical read total multi block requests     0
    physical reads     0
    physical reads cache     0
    physical reads cache prefetch     0
    physical reads direct     0
    physical reads direct (lob)     0
    physical write bytes     0
    physical write IO requests     0
    physical write total bytes     0
    physical write total IO requests     0
    physical writes     0
    physical writes direct     0
    physical writes direct (lob)     0
    physical writes non checkpoint     0
    pinned buffers inspected     0
    pinned cursors current     0
    process last non-idle time     0
    recursive calls     0
    recursive cpu usage     0
    redo entries     0
    redo size     0
    redo size for direct writes     0
    redo subscn max counts     0
    redo synch time     0
    redo synch time (usec)     0
    redo synch writes     0
    Requests to/from client     3
    rollbacks only - consistent read gets     0
    RowCR - row contention     0
    RowCR attempts     0
    rows fetched via callback     0
    session connect time     0
    session cursor cache count     1
    session cursor cache hits     3
    session logical reads     985371
    session pga memory     131072
    session pga memory max     0
    session uga memory     392928
    session uga memory max     0
    shared hash latch upgrades - no wait     284
    shared hash latch upgrades - wait     0
    sorts (memory)     3
    sorts (rows)     243
    sql area evicted     0
    sql area purged     0
    SQL*Net roundtrips to/from client     4
    switch current to new buffer     0
    table fetch by rowid     1861456
    table fetch continued row     9
    table scan blocks gotten     0
    table scan rows gotten     0
    table scans (short tables)     0
    temp space allocated (bytes)     0
    undo change vector size     0
    user calls     7
    user commits     0
    user I/O wait time     0
    workarea executions - optimal     10
    workarea memory allocated     342
    OLD DB Auto trace (Fast)
    active txn count during cleanout     0
    buffer is not pinned count     4
    buffer is pinned count     101
    bytes received via SQL*Net from client     1322
    bytes sent via SQL*Net to client     9560
    calls to get snapshot scn: kcmgss     15
    calls to kcmgas     0
    calls to kcmgcs     0
    calls to kcmgrs     1
    cleanout - number of ktugct calls     0
    cluster key scan block gets     0
    cluster key scans     0
    commit cleanouts     0
    commit cleanouts successfully completed     0
    concurrency wait time     0
    consistent changes     0
    consistent gets     117149
    consistent gets - examination     56
    consistent gets direct     115301
    consistent gets from cache     1848
    consistent gets from cache (fastpath)     1792
    CPU used by this session     118
    CPU used when call started     119
    cursor authentications     1
    db block changes     0
    db block gets     0
    db block gets from cache     0
    db block gets from cache (fastpath)     0
    DB time     123
    deferred (CURRENT) block cleanout applications     0
    Effective IO time     2012
    enqueue conversions     3
    enqueue releases     2
    enqueue requests     2
    enqueue waits     1
    execute count     2
    free buffer requested     0
    HSC Heap Segment Block Changes     0
    IMU Flushes     0
    IMU ktichg flush     0
    index fast full scans (full)     0
    index fetch by key     101
    index scans kdiixs1     0
    lob writes     0
    lob writes unaligned     0
    logons cumulative     0
    logons current     0
    messages sent     0
    no work - consistent read gets     117080
    Number of read IOs issued     1019
    opened cursors cumulative     3
    opened cursors current     1
    OS Involuntary context switches     54
    OS Maximum resident set size     7868
    OS Page faults     12
    OS Page reclaims     2911
    OS System time used     57
    OS User time used     71
    OS Voluntary context switches     25
    parse count (failures)     0
    parse count (hard)     0
    parse count (total)     3
    parse time cpu     0
    parse time elapsed     0
    physical read bytes     944545792
    physical read IO requests     1019
    physical read total bytes     944545792
    physical read total IO requests     1019
    physical read total multi block requests     905
    physical reads     115301
    physical reads cache     0
    physical reads cache prefetch     0
    physical reads direct     115301
    physical reads prefetch warmup     0
    process last non-idle time     0
    recursive calls     0
    recursive cpu usage     0
    redo entries     0
    redo size     0
    redo synch writes     0
    rows fetched via callback     0
    session connect time     0
    session cursor cache count     1
    session cursor cache hits     2
    session logical reads     117149
    session pga memory     -983040
    session pga memory max     0
    session uga memory     0
    session uga memory max     0
    shared hash latch upgrades - no wait     0
    sorts (memory)     2
    sorts (rows)     157
    sql area purged     0
    SQL*Net roundtrips to/from client     3
    table fetch by rowid     0
    table fetch continued row     0
    table scan blocks gotten     117077
    table scan rows gotten     1972604
    table scans (direct read)     1
    table scans (long tables)     1
    table scans (short tables)     2
    undo change vector size     0
    user calls     5
    user I/O wait time     0
    workarea executions - optimal     4

    Hi Srini,
    Yes the stats on the tables and indexes are current in both DBs. However the NEW DB has "System Stats" in sys.aux_stats$ and the OLD DB does not. The old DB has optimizer_index_caching=0 and optimizer_index_cost_adj=100. The new DB as them at optimizer_index_caching=90 and optimizer_index_cost_adj=25 but should not be using them because of the "System Stats".
    Also I thought none of the SQL Optimize stuff would matter because I forced in my own SQL Plan using SPM.
    Differences in init.ora
    OLD-11     optimizerpush_pred_cost_based = FALSE
    NEW-15     audit_sys_operations = FALSE
         audit_trail = "DB, EXTENDED"
         awr_snapshot_time_offset = 0
    OLD-16     audit_sys_operations = TRUE
         audit_trail = "XML, EXTENDED"
    NEW-22     cell_offload_compaction = "ADAPTIVE"
         cell_offload_decryption = TRUE
         cell_offload_plan_display = "AUTO"
         cell_offload_processing = TRUE
    NEW-28     clonedb = FALSE
    NEW-32     compatible = "11.2.0.0.0"
    OLD-27     compatible = "11.1.0.0.0"
    NEW-37     cursor_bind_capture_destination = "memory+disk"
         cursor_sharing = "FORCE"
    OLD-32     cursor_sharing = "EXACT"
    NEW-50     db_cache_size = 4294967296
         db_domain = "my.com"
    OLD-44     db_cache_size = 0
    NEW-54     db_flash_cache_size = 0
    NEW-58     db_name = "NEWDB"
         db_recovery_file_dest_size = 214748364800
    OLD-50     db_name = "OLDDB"
         db_recovery_file_dest_size = 8438939648
    NEW-63     db_unique_name = "NEWDB"
         db_unrecoverable_scn_tracking = TRUE
         db_writer_processes = 2
    OLD-55     db_unique_name = "OLDDB"
         db_writer_processes = 1
    NEW-68     deferred_segment_creation = TRUE
    NEW-71     dispatchers = "(PROTOCOL=TCP) (SERVICE=NEWDBXDB)"
    OLD-61     dispatchers = "(PROTOCOL=TCP) (SERVICE=OLDDBXDB)"
    NEW-73     dml_locks = 5068
         dst_upgrade_insert_conv = TRUE
    OLD-63     dml_locks = 3652
         drs_start = FALSE
    NEW-80     filesystemio_options = "SETALL"
    OLD-70     filesystemio_options = "none"
    NEW-87     instance_name = "NEWDB"
    OLD-77     instance_name = "OLDDB"
    NEW-94     job_queue_processes = 1000
    OLD-84     job_queue_processes = 100
    NEW-104     log_archive_dest_state_11 = "enable"
         log_archive_dest_state_12 = "enable"
         log_archive_dest_state_13 = "enable"
         log_archive_dest_state_14 = "enable"
         log_archive_dest_state_15 = "enable"
         log_archive_dest_state_16 = "enable"
         log_archive_dest_state_17 = "enable"
         log_archive_dest_state_18 = "enable"
         log_archive_dest_state_19 = "enable"
    NEW-114     log_archive_dest_state_20 = "enable"
         log_archive_dest_state_21 = "enable"
         log_archive_dest_state_22 = "enable"
         log_archive_dest_state_23 = "enable"
         log_archive_dest_state_24 = "enable"
         log_archive_dest_state_25 = "enable"
         log_archive_dest_state_26 = "enable"
         log_archive_dest_state_27 = "enable"
         log_archive_dest_state_28 = "enable"
         log_archive_dest_state_29 = "enable"
    NEW-125     log_archive_dest_state_30 = "enable"
         log_archive_dest_state_31 = "enable"
    NEW-139     log_buffer = 7012352
    OLD-108     log_buffer = 34412032
    OLD-112     max_commit_propagation_delay = 0
    NEW-144     max_enabled_roles = 150
         memory_max_target = 12884901888
         memory_target = 8589934592
         nls_calendar = "GREGORIAN"
    OLD-114     max_enabled_roles = 140
         memory_max_target = 6576668672
         memory_target = 6576668672
    NEW-149     nls_currency = "$"
         nls_date_format = "DD-MON-RR"
         nls_date_language = "AMERICAN"
         nls_dual_currency = "$"
         nls_iso_currency = "AMERICA"
    NEW-157     nls_numeric_characters = ".,"
         nls_sort = "BINARY"
    NEW-160     nls_time_format = "HH.MI.SSXFF AM"
         nls_time_tz_format = "HH.MI.SSXFF AM TZR"
         nls_timestamp_format = "DD-MON-RR HH.MI.SSXFF AM"
         nls_timestamp_tz_format = "DD-MON-RR HH.MI.SSXFF AM TZR"
    NEW-172     optimizer_features_enable = "11.2.0.3"
         optimizer_index_caching = 90
         optimizer_index_cost_adj = 25
    OLD-130     optimizer_features_enable = "11.1.0.6"
         optimizer_index_caching = 0
         optimizer_index_cost_adj = 100
    NEW-184     parallel_degree_limit = "CPU"
         parallel_degree_policy = "MANUAL"
         parallel_execution_message_size = 16384
         parallel_force_local = FALSE
    OLD-142     parallel_execution_message_size = 2152
    NEW-189     parallel_max_servers = 320
    OLD-144     parallel_max_servers = 0
    NEW-192     parallel_min_time_threshold = "AUTO"
    NEW-195     parallel_servers_target = 128
    NEW-197     permit_92_wrap_format = TRUE
    OLD-154     plsql_native_library_subdir_count = 0
    NEW-220     result_cache_max_size = 21495808
    OLD-173     result_cache_max_size = 0
    NEW-230     service_names = "NEWDB, NEWDB.my.com, NEW"
    OLD-183     service_names = "OLDDB, OLD.my.com"
    NEW-233     sessions = 1152
         sga_max_size = 12884901888
    OLD-186     sessions = 830
         sga_max_size = 6576668672
    NEW-238     shared_pool_reserved_size = 35232153
    OLD-191     shared_pool_reserved_size = 53687091
    OLD-199     sql_version = "NATIVE"
    NEW-248     star_transformation_enabled = "TRUE"
    OLD-202     star_transformation_enabled = "FALSE"
    NEW-253     timed_os_statistics = 60
    OLD-207     timed_os_statistics = 5
    NEW-256     transactions = 1267
    OLD-210     transactions = 913
    NEW-262     use_large_pages = "TRUE"

  • Database Performace Is Very Poor On IBM AIX Compared To Windows NT

    Hi,
    Recently we have migrated Our Oracle 10g DataBase from Windows NT to IBM AIX Box. Unfortunately, the Database Performance is gone down when compared to Windows NT environment. Since been a week we are working to pick the problem. We have altered the init.ora parameters to see the database behaviour., But there no Improvement is been observerd.
    Below are the Init.Ora Parameters ,
    Name      Value      Description
    tracefile_identifier     null     trace file custom identifier
    lock_name_space     null     lock name space used for generating lock names for standby/clone database
    processes     395     user processes
    sessions     439     user and system sessions
    timed_statistics     TRUE     maintain internal timing statistics
    timed_os_statistics     0     internal os statistic gathering interval in seconds
    resource_limit     TRUE     master switch for resource limit
    license_max_sessions     0     maximum number of non-system user sessions allowed
    license_sessions_warning     0     warning level for number of non-system user sessions
    cpu_count     16     number of CPUs for this instance
    instance_groups     null     list of instance group names
    event     null     debug event control - default null string
    sga_max_size     15032385536     max total SGA size
    pre_page_sga     FALSE     pre-page sga for process
    shared_memory_address     0     SGA starting address (low order 32-bits on 64-bit platforms)
    hi_shared_memory_address     0     SGA starting address (high order 32-bits on 64-bit platforms)
    use_indirect_data_buffers     FALSE     Enable indirect data buffers (very large SGA on 32-bit platforms)
    lock_sga     TRUE     Lock entire SGA in physical memory
    shared_pool_size     0     size in bytes of shared pool
    large_pool_size     0     size in bytes of large pool
    java_pool_size     0     size in bytes of java pool
    streams_pool_size     50331648     size in bytes of the streams pool
    shared_pool_reserved_size     84724940     size in bytes of reserved area of shared pool
    java_soft_sessionspace_limit     0     warning limit on size in bytes of a Java sessionspace
    java_max_sessionspace_size     0     max allowed size in bytes of a Java sessionspace
    spfile     /oracle/app/product/10.2.0.3.0/dbs/spfileCALMDB.ora     server parameter file
    instance_type     RDBMS     type of instance to be executed
    trace_enabled     FALSE     enable KST tracing
    nls_language     AMERICAN     NLS language name
    nls_territory     AMERICA     NLS territory name
    nls_sort     null     NLS linguistic definition name
    nls_date_language     null     NLS date language name
    nls_date_format     null     NLS Oracle date format
    nls_currency     null     NLS local currency symbol
    nls_numeric_characters     null     NLS numeric characters
    nls_iso_currency     null     NLS ISO currency territory name
    nls_calendar     null     NLS calendar system name
    nls_time_format     null     time format
    nls_timestamp_format     null     time stamp format
    nls_time_tz_format     null     time with timezone format
    nls_timestamp_tz_format     null     timestampe with timezone format
    nls_dual_currency     null     Dual currency symbol
    nls_comp     null     NLS comparison
    nls_length_semantics     BYTE     create columns using byte or char semantics by default
    nls_nchar_conv_excp     FALSE     NLS raise an exception instead of allowing implicit conversion
    fileio_network_adapters     null     Network Adapters for File I/O
    filesystemio_options     asynch     IO operations on filesystem files
    disk_asynch_io     FALSE     Use asynch I/O for random access devices
    tape_asynch_io     TRUE     Use asynch I/O requests for tape devices
    dbwr_io_slaves     0     DBWR I/O slaves
    backup_tape_io_slaves     FALSE     BACKUP Tape I/O slaves
    resource_manager_plan     null     resource mgr top plan
    cluster_interconnects     null     interconnects for RAC use
    file_mapping     FALSE     enable file mapping
    gcs_server_processes     0     number of background gcs server processes to start
    active_instance_count     null     number of active instances in the cluster database
    sga_target     15032385536     Target size of SGA
    control_files     /oradata10/oradata/CALMDB/control/CONTROL02.CTL     control file names list
    db_file_name_convert     null     datafile name convert patterns and strings for standby/clone db
    log_file_name_convert     null     logfile name convert patterns and strings for standby/clone db
    control_file_record_keep_time     0     control file record keep time in days
    db_block_buffers     0     Number of database blocks cached in memory
    db_block_checksum     TRUE     store checksum in db blocks and check during reads
    db_block_size     8192     Size of database block in bytes
    db_cache_size     2147483648     Size of DEFAULT buffer pool for standard block size buffers
    db_2k_cache_size     0     Size of cache for 2K buffers
    db_4k_cache_size     0     Size of cache for 4K buffers
    db_8k_cache_size     0     Size of cache for 8K buffers
    db_16k_cache_size     0     Size of cache for 16K buffers
    db_32k_cache_size     0     Size of cache for 32K buffers
    db_keep_cache_size     0     Size of KEEP buffer pool for standard block size buffers
    db_recycle_cache_size     0     Size of RECYCLE buffer pool for standard block size buffers
    db_writer_processes     6     number of background database writer  processes to start
    buffer_pool_keep     null     Number of database blocks/latches in keep buffer pool
    buffer_pool_recycle     null     Number of database blocks/latches in recycle buffer pool
    db_cache_advice     ON     Buffer cache sizing advisory
    max_commit_propagation_delay     0     Max age of new snapshot in .01 seconds
    compatible     10.2.0.3.0     Database will be completely compatible with this software version
    remote_archive_enable     TRUE     remote archival enable setting
    log_archive_config     null     log archive config parameter
    log_archive_start     FALSE     start archival process on SGA initialization
    log_archive_dest     null     archival destination text string
    log_archive_duplex_dest     null     duplex archival destination text string
    log_archive_dest_1     null     archival destination #1 text string
    log_archive_dest_2     null     archival destination #2 text string
    log_archive_dest_3     null     archival destination #3 text string
    log_archive_dest_4     null     archival destination #4 text string
    log_archive_dest_5     null     archival destination #5 text string
    log_archive_dest_6     null     archival destination #6 text string
    log_archive_dest_7     null     archival destination #7 text string
    log_archive_dest_8     null     archival destination #8 text string
    log_archive_dest_9     null     archival destination #9 text string
    log_archive_dest_10     null     archival destination #10 text string
    log_archive_dest_state_1     enable     archival destination #1 state text string
    log_archive_dest_state_2     enable     archival destination #2 state text string
    log_archive_dest_state_3     enable     archival destination #3 state text string
    log_archive_dest_state_4     enable     archival destination #4 state text string
    log_archive_dest_state_5     enable     archival destination #5 state text string
    log_archive_dest_state_6     enable     archival destination #6 state text string
    log_archive_dest_state_7     enable     archival destination #7 state text string
    log_archive_dest_state_8     enable     archival destination #8 state text string
    log_archive_dest_state_9     enable     archival destination #9 state text string
    log_archive_dest_state_10     enable     archival destination #10 state text string
    log_archive_max_processes     2     maximum number of active ARCH processes
    log_archive_min_succeed_dest     1     minimum number of archive destinations that must succeed
    standby_archive_dest     ?/dbs/arch     standby database archivelog destination text string
    log_archive_trace     0     Establish archivelog operation tracing level
    log_archive_local_first     TRUE     Establish EXPEDITE attribute default value
    log_archive_format     %t_%s_%r.dbf     archival destination format
    fal_client     null     FAL client
    fal_server     null     FAL server list
    log_buffer     176918528     redo circular buffer size
    log_checkpoint_interval     0     # redo blocks checkpoint threshold
    log_checkpoint_timeout     0     Maximum time interval between checkpoints in seconds
    archive_lag_target     0     Maximum number of seconds of redos the standby could lose
    db_files     200     max allowable # db files
    db_file_multiblock_read_count     128     db block to be read each IO
    read_only_open_delayed     FALSE     if TRUE delay opening of read only files until first access
    cluster_database     FALSE     if TRUE startup in cluster database mode
    parallel_server     FALSE     if TRUE startup in parallel server mode
    parallel_server_instances     1     number of instances to use for sizing OPS SGA structures
    cluster_database_instances     1     number of instances to use for sizing cluster db SGA structures
    db_create_file_dest     null     default database location
    db_create_online_log_dest_1     null     online log/controlfile destination #1
    db_create_online_log_dest_2     null     online log/controlfile destination #2
    db_create_online_log_dest_3     null     online log/controlfile destination #3
    db_create_online_log_dest_4     null     online log/controlfile destination #4
    db_create_online_log_dest_5     null     online log/controlfile  destination #5
    db_recovery_file_dest     null     default database recovery file location
    db_recovery_file_dest_size     0     database recovery files size limit
    standby_file_management     MANUAL     if auto then files are created/dropped automatically on standby
    gc_files_to_locks     null     mapping between file numbers and global cache locks
    thread     0     Redo thread to mount
    fast_start_io_target     0     Upper bound on recovery reads
    fast_start_mttr_target     0     MTTR target of forward crash recovery in seconds
    log_checkpoints_to_alert     FALSE     log checkpoint begin/end to alert file
    recovery_parallelism     0     number of server processes to use for parallel recovery
    logmnr_max_persistent_sessions     1     maximum number of threads to mine
    db_flashback_retention_target     1440     Maximum Flashback Database log retention time in minutes.
    dml_locks     1000     dml locks - one for each table modified in a transaction
    ddl_wait_for_locks     FALSE     Disable NOWAIT DML lock acquisitions
    replication_dependency_tracking     TRUE     tracking dependency for Replication parallel propagation
    instance_number     0     instance number
    transactions     482     max. number of concurrent active transactions
    transactions_per_rollback_segment     5     number of active transactions per rollback segment
    rollback_segments     null     undo segment list
    undo_management     AUTO     instance runs in SMU mode if TRUE, else in RBU mode
    undo_tablespace     UNDOTBS1     use/switch undo tablespace
    undo_retention     10800     undo retention in seconds
    fast_start_parallel_rollback     LOW     max number of parallel recovery slaves that may be used
    resumable_timeout     0     set resumable_timeout
    db_block_checking     FALSE     header checking and data and index block checking
    recyclebin     off     recyclebin processing
    create_stored_outlines     null     create stored outlines for DML statements
    serial_reuse     disable     reuse the frame segments
    ldap_directory_access     NONE     RDBMS's LDAP access option
    os_roles     FALSE     retrieve roles from the operating system
    rdbms_server_dn     null     RDBMS's Distinguished Name
    max_enabled_roles     150     max number of roles a user can have enabled
    remote_os_authent     FALSE     allow non-secure remote clients to use auto-logon accounts
    remote_os_roles     FALSE     allow non-secure remote clients to use os roles
    O7_DICTIONARY_ACCESSIBILITY     FALSE     Version 7 Dictionary Accessibility Support
    remote_login_passwordfile     NONE     password file usage parameter
    license_max_users     0     maximum number of named users that can be created in the database
    audit_sys_operations     TRUE     enable sys auditing
    global_context_pool_size     null     Global Application Context Pool Size in Bytes
    db_domain     null     directory part of global database name stored with CREATE DATABASE
    global_names     TRUE     enforce that database links have same name as remote database
    distributed_lock_timeout     60     number of seconds a distributed transaction waits for a lock
    commit_point_strength     1     Bias this node has toward not preparing in a two-phase commit
    instance_name     CALMDB     instance name supported by the instance
    service_names     CALMDB     service names supported by the instance
    dispatchers     (PROTOCOL=TCP) (SERVICE=CALMDB)     specifications of dispatchers
    shared_servers     1     number of shared servers to start up
    max_shared_servers     null     max number of shared servers
    max_dispatchers     null     max number of dispatchers
    circuits     null     max number of circuits
    shared_server_sessions     null     max number of shared server sessions
    local_listener     null     local listener
    remote_listener     null     remote listener
    cursor_space_for_time     FALSE     use more memory in order to get faster execution
    session_cached_cursors     200     Number of cursors to cache in a session.
    remote_dependencies_mode     TIMESTAMP     remote-procedure-call dependencies mode parameter
    utl_file_dir     null     utl_file accessible directories list
    smtp_out_server     null     utl_smtp server and port configuration parameter
    plsql_v2_compatibility     FALSE     PL/SQL version 2.x compatibility flag
    plsql_compiler_flags     INTERPRETED, NON_DEBUG     PL/SQL compiler flags
    plsql_native_library_dir     null     plsql native library dir
    plsql_native_library_subdir_count     0     plsql native library number of subdirectories
    plsql_warnings     DISABLE:ALL     PL/SQL compiler warnings settings
    plsql_code_type     INTERPRETED     PL/SQL code-type
    plsql_debug     FALSE     PL/SQL debug
    plsql_optimize_level     2     PL/SQL optimize level
    plsql_ccflags     null     PL/SQL ccflags
    job_queue_processes     10     number of job queue slave processes
    parallel_min_percent     0     minimum percent of threads required for parallel query
    create_bitmap_area_size     8388608     size of create bitmap buffer for bitmap index
    bitmap_merge_area_size     1048576     maximum memory allow for BITMAP MERGE
    cursor_sharing     FORCE     cursor sharing mode
    parallel_min_servers     10     minimum parallel query servers per instance
    parallel_max_servers     320     maximum parallel query servers per instance
    parallel_instance_group     null     instance group to use for all parallel operations
    parallel_execution_message_size     4096     message buffer size for parallel execution
    hash_area_size     62914560     size of in-memory hash work area
    shadow_core_dump     partial     Core Size for Shadow Processes
    background_core_dump     partial     Core Size for Background Processes
    background_dump_dest     /oradata28/oradata/CALMDB/bdump     Detached process dump directory
    user_dump_dest     /oradata28/oradata/CALMDB/udump     User process dump directory
    max_dump_file_size     10M     Maximum size (blocks) of dump file
    core_dump_dest     /oradata28/oradata/CALMDB/cdump     Core dump directory
    use_sigio     TRUE     Use SIGIO signal
    audit_file_dest     /oracle/app/product/10.2.0.3.0/rdbms/audit     Directory in which auditing files are to reside
    audit_syslog_level     null     Syslog facility and level
    object_cache_optimal_size     102400     optimal size of the user session's object cache in bytes
    object_cache_max_size_percent     10     percentage of maximum size over optimal of the user session's object cache
    session_max_open_files     20     maximum number of open files allowed per session
    open_links     4     max # open links per session
    open_links_per_instance     4     max # open links per instance
    commit_write     null     transaction commit log write behaviour
    optimizer_features_enable     10.2.0.3     optimizer plan compatibility parameter
    fixed_date     null     fixed SYSDATE value
    audit_trail     DB     enable system auditing
    sort_area_size     31457280     size of in-memory sort work area
    sort_area_retained_size     3145728     size of in-memory sort work area retained between fetch calls
    db_name     TESTDB     database name specified in CREATE DATABASE
    db_unique_name     TESTDB     Database Unique Name
    open_cursors     2000     max # cursors per session
    ifile     null     include file in init.ora
    sql_trace     FALSE     enable SQL trace
    os_authent_prefix     ops$     prefix for auto-logon accounts
    optimizer_mode     ALL_ROWS     optimizer mode
    sql92_security     FALSE     require select privilege for searched update/delete
    blank_trimming     FALSE     blank trimming semantics parameter
    star_transformation_enabled     FALSE     enable the use of star transformation
    parallel_adaptive_multi_user     TRUE     enable adaptive setting of degree for multiple user streams
    parallel_threads_per_cpu     2     number of parallel execution threads per CPU
    parallel_automatic_tuning     TRUE     enable intelligent defaults for parallel execution parameters
    optimizer_index_cost_adj     250     optimizer index cost adjustment
    optimizer_index_caching     0     optimizer percent index caching
    query_rewrite_enabled     TRUE     allow rewrite of queries using materialized views if enabled
    query_rewrite_integrity     enforced     perform rewrite using materialized views with desired integrity
    sql_version     NATIVE     sql language version parameter for compatibility issues
    pga_aggregate_target     3221225472     Target size for the aggregate PGA memory consumed by the instance
    workarea_size_policy     AUTO     policy used to size SQL working areas (MANUAL/AUTO)
    optimizer_dynamic_sampling     2     optimizer dynamic sampling
    statistics_level     TYPICAL     statistics level
    skip_unusable_indexes     TRUE     skip unusable indexes if set to TRUE
    optimizer_secure_view_merging     TRUE     optimizer secure view merging and predicate pushdown/movearound
    aq_tm_processes     1     number of AQ Time Managers to start
    hs_autoregister     TRUE     enable automatic server DD updates in HS agent self-registration
    dg_broker_start     FALSE     start Data Guard broker framework (DMON process)
    drs_start     FALSE     start DG Broker monitor (DMON process)
    dg_broker_config_file1     /oracle/app/product/10.2.0.3.0/dbs/dr1CALMDB.dat     data guard broker configuration file #1
    dg_broker_config_file2     /oracle/app/product/10.2.0.3.0/dbs/dr2CALMDB.dat     data guard broker configuration file #2
    olap_page_pool_size     0     size of the olap page pool in bytes
    asm_diskstring     null     disk set locations for discovery
    asm_diskgroups     null     disk groups to mount automatically
    asm_power_limit     1     number of processes for disk rebalancing
    sqltune_category     DEFAULT     Category qualifier for applying hintsets pls suggest
    Thanks
    Kr

    We have examined the AWR Reports, That shows ,
    Snap Id     Snap Time     Sessions     Cursors/Session       
    Begin Snap:     1074     27-Jul-09 13:00:03     147     16.7       
    End Snap:     1075     27-Jul-09 14:01:00     150     22.3       
    Elapsed:          60.96 (mins)                 
    DB Time:          9.63 (mins)               
    Report Summary
    Cache Sizes
         Begin     End                 
    Buffer Cache:     12,368M     12,368M     Std Block Size:     8K       
    Shared Pool Size:     1,696M     1,696M     Log Buffer:     178,172K     
    Load Profile
         Per Second     Per Transaction       
    Redo size:     12,787.87     24,786.41       
    Logical reads:     7,409.85     14,362.33       
    Block changes:     61.17     118.57       
    Physical reads:     0.51     0.98       
    Physical writes:     4.08     7.90       
    User calls:     60.11     116.50       
    Parses:     19.38     37.56       
    Hard parses:     0.36     0.69       
    Sorts:     7.87     15.25       
    Logons:     0.07     0.14       
    Executes:     50.34     97.57       
    Transactions:     0.52          
    % Blocks changed per Read:     0.83     Recursive Call %:     74.53       
    Rollback per transaction %:     3.29     Rows per Sort:     292.67     
    Instance Efficiency Percentages (Target 100%)
    Buffer Nowait %:     100.00     Redo NoWait %:     100.00       
    Buffer Hit %:     99.99     In-memory Sort %:     100.00       
    Library Hit %:     98.40     Soft Parse %:     98.15       
    Execute to Parse %:     61.51     Latch Hit %:     99.96       
    Parse CPU to Parse Elapsd %:     24.44     % Non-Parse CPU:     98.99     
    Shared Pool Statistics
         Begin     End       
    Memory Usage %:     72.35     72.86       
    % SQL with executions>1:     98.69     96.86       
    % Memory for SQL w/exec>1:     96.72     87.64     
    Top 5 Timed Events
    Event     Waits     Time(s)     Avg Wait(ms)     % Total Call Time     Wait Class       
    CPU time          535          92.5            
    db file parallel write     596     106     177     18.3     System I/O       
    log file parallel write     3,844     40     10     6.9     System I/O       
    control file parallel write     1,689     29     17     5.0     System I/O       
    log file sync     2,357     29     12     5.0     Commit     
    Time Model Statistics
    Total time in database user-calls (DB Time): 578s
    Statistics including the word "background" measure background process time, and so do not contribute to the DB time statistic
    Ordered by % or DB time desc, Statistic name
    Statistic Name     Time (s)     % of DB Time       
    sql execute elapsed time     560.61     96.99       
    DB CPU     534.91     92.55       
    parse time elapsed     24.16     4.18       
    hard parse elapsed time     17.90     3.10       
    PL/SQL execution elapsed time     7.65     1.32       
    connection management call elapsed time     0.89     0.15       
    repeated bind elapsed time     0.49     0.08       
    hard parse (sharing criteria) elapsed time     0.28     0.05       
    sequence load elapsed time     0.05     0.01       
    PL/SQL compilation elapsed time     0.03     0.00       
    failed parse elapsed time     0.02     0.00       
    hard parse (bind mismatch) elapsed time     0.00     0.00       
    DB time     577.98            
    background elapsed time     190.39            
    background cpu time     15.49          
    Wait Class
    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
    Wait Class     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn       
    System I/O     8,117     0.00     175     22     4.30       
    Commit     2,357     0.00     29     12     1.25       
    Network     226,127     0.00     7     0     119.83       
    User I/O     1,004     0.00     4     4     0.53       
    Application     91     0.00     2     27     0.05       
    Other     269     0.00     1     4     0.14       
    Concurrency     32     0.00     0     7     0.02       
    Configuration     59     0.00     0     3     0.03     
    Wait Events
    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)
    Event     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn       
    db file parallel write     596     0.00     106     177     0.32       
    log file parallel write     3,844     0.00     40     10     2.04       
    control file parallel write     1,689     0.00     29     17     0.90       
    log file sync     2,357     0.00     29     12     1.25       
    SQL*Net more data from client     4,197     0.00     7     2     2.22       
    db file sequential read     689     0.00     4     5     0.37       
    enq: RO - fast object reuse     32     0.00     2     50     0.02       
    rdbms ipc reply     32     0.00     1     34     0.02       
    db file scattered read     289     0.00     1     2     0.15       
    enq: KO - fast object checkpoint     47     0.00     1     14     0.02       
    control file sequential read     1,988     0.00     0     0     1.05       
    SQL*Net message to client     218,154     0.00     0     0     115.61       
    os thread startup     6     0.00     0     34     0.00       
    SQL*Net break/reset to client     12     0.00     0     15     0.01       
    log buffer space     59     0.00     0     3     0.03       
    latch free     10     0.00     0     8     0.01       
    SQL*Net more data to client     3,776     0.00     0     0     2.00       
    latch: shared pool     5     0.00     0     5     0.00       
    reliable message     79     0.00     0     0     0.04       
    LGWR wait for redo copy     148     0.00     0     0     0.08       
    buffer busy waits     19     0.00     0     0     0.01       
    direct path write temp     24     0.00     0     0     0.01       
    latch: cache buffers chains     2     0.00     0     0     0.00       
    direct path write     2     0.00     0     0     0.00       
    SQL*Net message from client     218,149     0.00     136,803     627     115.61       
    PX Idle Wait     18,013     100.06     35,184     1953     9.55       
    virtual circuit status     67,690     0.01     3,825     57     35.87       
    Streams AQ: qmn slave idle wait     130     0.00     3,563     27404     0.07       
    Streams AQ: qmn coordinator idle wait     264     50.76     3,563     13494     0.14       
    class slave wait     3     0.00     0     0     0.00     
    Back to Wait Events Statistics
    Back to Top
    Background Wait Events
    ordered by wait time desc, waits desc (idle events last)
    Event     Waits     %Time -outs     Total Wait Time (s)     Avg wait (ms)     Waits /txn       
    db file parallel write     596     0.00     106     177     0.32       
    log file parallel write     3,843     0.00     40     10     2.04       
    control file parallel write     1,689     0.00     29     17     0.90       
    os thread startup     6     0.00     0     34     0.00       
    log buffer space     59     0.00     0     3     0.03       
    control file sequential read     474     0.00     0     0     0.25       
    log file sync     1     0.00     0     11     0.00       
    events in waitclass Other     148     0.00     0     0     0.08       
    rdbms ipc message     32,384     54.67     49,367     1524     17.16       
    pmon timer     1,265     100.00     3,568     2821     0.67       
    Streams AQ: qmn slave idle wait     130     0.00     3,563     27404     0.07       
    Streams AQ: qmn coordinator idle wait     264     50.76     3,563     13494     0.14       
    smon timer     63     11.11     3,493     55447     0.03     
    SQL ordered by Gets
    Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
    Total Buffer Gets: 27,101,711
    Captured SQL account for 81.1% of Total
    Buffer Gets      Executions      Gets per Exec      %Total     CPU Time (s)     Elapsed Time (s)     SQL Id     SQL Module     SQL Text       
    11,889,257     3     3,963,085.67     43.87     145.36     149.62     8hr7mrcqpvw7n          Begin Pkg_Pg_consolidation.Pro...       
    5,877,417     17,784     330.49     21.69     59.94     62.30     3mw7tf64wzgv4          SELECT TOTALVOL.PERIOD_NUMBER ...       
    5,877,303     17,784     330.48     21.69     62.01     63.54     g3vhvg8cz6yu3          SELECT TOTALVOL.PERIOD_NUMBER ...       
    3,423,336     0          12.63     200.67     200.67     6jrnq2ua8cjnq          SELECT ROWNUM , first , sec...       
    2,810,100     2,465     1,140.00     10.37     19.29     19.29     7f4y1a3k1tzjn          SELECT /*+CLUSTER(VA_STATIC_CC...       
    1,529,253     230     6,648.93     5.64     15.92     16.97     6trp3txn7rh1q          SELECT /*+ index(va_gap_irlc_P...       
    1,523,043     230     6,621.93     5.62     16.22     17.18     3fu81ar131nj9          SELECT /*+ index(va_gap_irla_P...       
    855,620     358     2,390.00     3.16     11.49     13.31     a3g12c11x7yd0          SELECT FX_DATE, FX_RATE, CCY...       
    689,979     708     974.55     2.55     4.37     4.43     b7znr5szwjrtx          SELECT /*+RULE*/ YIELD_CURVE_C...       
    603,631     2,110     286.08     2.23     11.03     13.40     3c2gyz9fhswxx          SELECT ASSET_LIABILITY_GAP, AL...       
    554,080     5     110,816.00     2.04     2.37     2.44     9w1b11p6baqat          SELECT DISTINCT consolidation_...       
    318,378     624     510.22     1.17     3.20     3.45     1auhbw1rd5yn2          SELECT /*+ index(va_gap_irla_P...       
    318,378     624     510.22     1.17     3.19     3.42     6gq9rj96p9aq0          SELECT /*+ index(va_gap_irlc_P...       
    313,923     3     104,641.00     1.16     2.38     2.38     7vsznt4tvh1b5          ...     
    SQL ordered by Reads
    Total Disk Reads: 1,857
    Captured SQL account for 2.1% of Total
    Physical Reads     Executions     Reads per Exec      %Total     CPU Time (s)     Elapsed Time (s)     SQL Id     SQL Module     SQL Text       
    57     36     1.58     3.07     3.55     5.81     c6vdhsbw1t03d          BEGIN citidba.proc_analyze_tab...       
    32     507     0.06     1.72     0.22     0.40     c49tbx3qqrtm4          insert into dependency$(d_obj#...       
    28     8     3.50     1.51     0.76     3.02     4crh3z5ya2r27          BEGIN PROC_DELETE_PACK_TABLES(...       
    20     3     6.67     1.08     145.36     149.62     8hr7mrcqpvw7n          Begin Pkg_Pg_consolidation.Pro...       
    10     1     10.00     0.54     6.21     18.11     4m9ts1b1b27sv          BEGIN domain.create_tables(:1,...       
    7     23     0.30     0.38     1.56     2.22     4vw03w673b9k7          BEGIN PROC_CREATE_PACK_TABLES(...       
    4     4     1.00     0.22     0.29     1.06     1vw6carbvp4z0          BEGIN Proc_ReCreate_Gap_temp_t...       
    2     182     0.01     0.11     0.06     0.08     2h0gb24h6zpnu          insert into access$(d_obj#, or...       
    2     596     0.00     0.11     0.26     0.29     5fbmafvm27kfm          insert into obj$(owner#, name,...       
    1     1     1.00     0.05     0.01     0.02     7jsrvff8hnqft          UPDATE VA_PRR_IRUT_POL_IBCB_R...     
    SQL ordered by Executions
    Total Executions: 184,109
    Captured SQL account for 71.6% of Total
    Executions      Rows Processed     Rows per Exec     CPU per Exec (s)     Elap per Exec (s)      SQL Id     SQL Module     SQL Text       
    43,255     43,255     1.00     0.00     0.00     4m94ckmu16f9k     JDBC Thin Client      select count(*) from dual       
    25,964     24,769     0.95     0.00     0.00     2kxdq3m953pst          SELECT SURROGATE_KEY FROM TB_P...       
    17,784     54,585     3.07     0.00     0.00     3mw7tf64wzgv4          SELECT TOTALVOL.PERIOD_NUMBER ...       
    17,784     54,585     3.07     0.00     0.00     g3vhvg8cz6yu3          SELECT TOTALVOL.PERIOD_NUMBER ...       
    2,631     2,631     1.00     0.00     0.00     60uw2vh6q9vn2          insert into col$(obj#, name, i...       
    2,465     924,375     375.00     0.01     0.01     7f4y1a3k1tzjn          SELECT /*+CLUSTER(VA_STATIC_CC...       
    2,202     36     0.02     0.00     0.00     96g93hntrzjtr          select /*+ rule */ bucket_cnt,...       
    2,110     206,464     97.85     0.01     0.01     3c2gyz9fhswxx          SELECT ASSET_LIABILITY_GAP, AL...       
    2,043     2,043     1.00     0.00     0.00     28dvpph9k610y          SELECT COUNT(*) FROM TB_TECH_S...       
    842     35     0.04     0.00     0.00     04xtrk7uyhknh          select obj#, type#, ctime, mti...     
    SQL ordered by Parse Calls
    Total Parse Calls: 70,872
    Captured SQL account for 69.7% of Total
    Parse Calls     Executions      % Total Parses     SQL Id     SQL Module     SQL Text       
    17,784     17,784     25.09     3mw7tf64wzgv4          SELECT TOTALVOL.PERIOD_NUMBER ...       
    17,784     17,784     25.09     g3vhvg8cz6yu3          SELECT TOTALVOL.PERIOD_NUMBER ...       
    2,110     2,110     2.98     3c2gyz9fhswxx          SELECT ASSET_LIABILITY_GAP, AL...       
    786     786     1.11     2s6amyv4qz2h2     exp@PSLDB03 (TNS V1-V3)      SELECT INIEXT, SEXT, MINEXT,...       
    596     596     0.84     5fbmafvm27kfm          insert into obj$(owner#, name,...       
    590     590     0.83     2ym6hhaq30r73          select type#, blocks, extents,...       
    550     550     0.78     7gtztzv329wg0          select c.name, u.name from co...       
    512     512     0.72     9qgtwh66xg6nz          update seg$ set type#=:4, bloc...       
    480     480     0.68     6x2cz59yrxz3a     exp@PSLDB03 (TNS V1-V3)      SELECT NAME, OBJID, OWNER, ...       
    457     457     0.64     bsa0wjtftg3uw          select file# from file$ where ...     
    Instance Activity Stats
    Statistic     Total     per Second     per Trans       
    CPU used by this session     54,051     14.78     28.64       
    CPU used when call started     53,326     14.58     28.26       
    CR blocks created     1,114     0.30     0.59       
    Cached Commit SCN referenced     755,322     206.51     400.28       
    Commit SCN cached     29     0.01     0.02       
    DB time     62,190     17.00     32.96       
    DBWR checkpoint buffers written     3,247     0.89     1.72       
    DBWR checkpoints     79     0.02     0.04       
    DBWR object drop buffers written     118     0.03     0.06       
    DBWR parallel query checkpoint buffers written     0     0.00     0.00       
    DBWR revisited being-written buffer     0     0.00     0.00       
    DBWR tablespace checkpoint buffers written     169     0.05     0.09       
    DBWR thread checkpoint buffers written     3,078     0.84     1.63       
    DBWR transaction table writes     0     0.00     0.00       
    DBWR undo block writes     11,245     3.07     5.96       
    DFO trees parallelized     0     0.00     0.00       
    DML statements parallelized     0     0.00     0.00       
    IMU CR rollbacks     29     0.01     0.02       
    IMU Flushes     982     0.27     0.52       
    IMU Redo allocation size     1,593,112     435.57     844.26       
    IMU commits     991     0.27     0.53       
    IMU contention     3     0.00     0.00       
    IMU ktichg flush     3     0.00     0.00       
    IMU pool not allocated     0     0.00     0.00       
    IMU recursive-transaction flush     1     0.00     0.00       
    IMU undo allocation size     3,280,968     897.05     1,738.72       
    IMU- failed to get a private strand     0     0.00     0.00       
    Misses for writing mapping     0     0.00     0.00       
    OS Integral shared text size     0     0.00     0.00       
    OS Integral unshared data size     0     0.00     0.00       
    OS Involuntary context switches     0     0.00     0.00       
    OS Maximum resident set size     0     0.00     0.00       
    OS Page faults     0     0.00     0.00       
    OS Page reclaims     0     0.00     0.00       
    OS System time used     0     0.00     0.00       
    OS User time used     0     0.00     0.00       
    OS Voluntary context switches     0     0.00     0.00       
    PX local messages recv'd     0     0.00     0.00       
    PX local messages sent     0     0.00     0.00       
    Parallel operations downgraded to serial     0     0.00     0.00       
    Parallel operations not downgraded     0     0.00     0.00       
    SMON posted for dropping temp segment     0     0.00     0.00       
    SMON posted for undo segment shrink     0     0.00     0.00       
    SQL*Net roundtrips to/from client     266,339     72.82     141.14       
    active txn count during cleanout     677     0.19     0.36       
    application wait time     243     0.07     0.13       
    background checkpoints completed     0     0.00     0.00       
    background checkpoints started     0     0.00     0.00       
    background timeouts     17,769     4.86     9.42       
    branch node splits     0     0.00     0.00       
    buffer is not pinned count     11,606,002     3,173.19     6,150.50       
    buffer is pinned count     65,043,685     17,783.53     34,469.36       
    bytes received via SQL*Net from client     27,009,252     7,384.57     14,313.33       
    bytes sent via SQL*Net to client     ###############     69,310,703.02     134,343,168.92       
    calls to get snapshot scn: kcmgss     382,084     104.47     202.48       
    calls to kcmgas     15,558     4.25     8.24       
    calls to kcmgcs     1,886     0.52     1.00       
    change write time     488     0.13     0.26       
    cleanout - number of ktugct calls     628     0.17     0.33       
    cleanouts and rollbacks - consistent read gets     3     0.00     0.00       
    cleanouts only - consistent read gets     53     0.01     0.03       
    cluster key scan block gets     77,478     21.18     41.06       
    cluster key scans     41,479     11.34     21.98       
    commit batch/immediate performed     550     0.15     0.29       
    commit batch/immediate requested     550     0.15     0.29       
    commit cleanout failures: block lost     0     0.00     0.00       
    commit cleanout failures: buffer being written     0     0.00     0.00       
    commit cleanout failures: callback failure     29     0.01     0.02       
    commit cleanout failures: cannot pin     0     0.00     0.00       
    commit cleanouts     19,562     5.35     10.37       
    commit cleanouts successfully completed     19,533     5.34     10.35       
    commit immediate performed     550     0.15     0.29       
    commit immediate requested     550     0.15     0.29       
    commit txn count during cleanout     396     0.11     0.21       
    concurrency wait time     23     0.01     0.01       
    consistent changes     1,803     0.49     0.96       
    consistent gets     26,887,134     7,351.18     14,248.61       
    consistent gets - examination     1,524,222     416.74     807.75       
    consistent gets direct     0     0.00     0.00       
    consistent gets from cache     26,887,134     7,351.18     14,248.61       
    cursor authentications     773     0.21     0.41       
    data blocks consistent reads - undo records applied     1,682     0.46     0.89       
    db block changes     223,743     61.17     118.57       
    db block gets     214,573     58.67     113.71       
    db block gets direct     74     0.02     0.04       
    db block gets from cache     214,499     58.65     113.67       
    deferred (CURRENT) block cleanout applications     9,723     2.66     5.15       
    dirty buffers inspected     5,106     1.40     2.71       
    enqueue conversions     1,130     0.31     0.60       
    enqueue releases     49,151     13.44     26.05       
    enqueue requests     49,151     13.44     26.05       
    enqueue timeouts     0     0.00     0.00       
    enqueue waits     79     0.02     0.04       
    exchange deadlocks     0     0.00     0.00       
    execute count     184,109     50.34     97.57       
    failed probes on index block reclamation     1     0.00     0.00       
    free buffer inspected     6,521     1.78     3.46       
    free buffer requested     8,656     2.37     4.59       
    global undo segment hints helped     0     0.00     0.00       
    global undo segment hints were stale     0     0.00     0.00       
    heap block compress     457     0.12     0.24       
    hot buffers moved to head of LRU     5,016     1.37     2.66       
    immediate (CR) block cleanout applications     56     0.02     0.03       
    immediate (CURRENT) block cleanout applications     4,230     1.16     2.24       
    index crx upgrade (found)     0     0.00     0.00       
    index crx upgrade (positioned)     8,362     2.29     4.43       
    index fast full scans (full)     3,845     1.05     2.04       
    index fast full scans (rowid ranges)     0     0.00     0.00       
    index fetch by key     842,761     230.42     446.61       
    index scans kdiixs1     376,413     102.91     199.48       
    leaf node 90-10 splits     42     0.01     0.02       
    leaf node splits     89     0.02     0.05       
    lob reads     6,759,932     1,848.23     3,582.37       
    lob writes     11,788     3.22     6.25       
    lob writes unaligned     11,788     3.22     6.25       
    logons cumulative     272     0.07     0.14       
    messages received     133,602     36.53     70.80       
    messages sent     133,602     36.53     70.80       
    no buffer to keep pinned count     219     0.06     0.12       
    no work - consistent read gets     18,462,318     5,047.76     9,783.95       
    opened cursors cumulative     77,042     21.06     40.83       
    parse count (failures)     57     0.02     0.03       
    parse count (hard)     1,311     0.36     0.69       
    parse count (total)     70,872     19.38     37.56       
    parse time cpu     542     0.15     0.29       
    parse time elapsed     2,218     0.61     1.18       
    physical read IO requests     821     0.22     0.44       
    physical read bytes     15,212,544     4,159.25     8,061.76       
    physical read total IO requests     2,953     0.81     1.56       
    physical read total bytes     48,963,584     13,387.08     25,947.85       
    physical read total multi block requests     289     0.08     0.15       
    physical reads     1,857     0.51     0.98       
    physical reads cache     1,857     0.51     0.98       
    physical reads cache prefetch     1,036     0.28     0.55       
    physical reads direct     0     0.00     0.00       
    physical reads direct (lob)     0     0.00     0.00       
    physical reads direct temporary tablespace     0     0.00     0.00       
    physical reads prefetch warmup     0     0.00     0.00       
    physical write IO requests     6,054     1.66     3.21       
    physical write bytes     122,142,720     33,394.92     64,728.52       
    physical write total IO requests     11,533     3.15     6.11       
    physical write total bytes     199,223,808     54,469.58     105,577.00       
    physical write total multi block requests     5,894     1.61     3.12       
    physical writes     14,910     4.08     7.90       
    physical writes direct     74     0.02     0.04       
    physical writes direct (lob)     0     0.00     0.00       
    physical writes direct temporary tablespace     72     0.02     0.04       
    physical writes from cache     14,836     4.06     7.86       
    physical writes non checkpoint     14,691     4.02     7.79       
    pinned buffers inspected     4     0.00     0.00       
    prefetch clients - default     0     0.00     0.00       
    prefetch warmup blocks aged out before use     0     0.00     0.00       
    prefetch warmup blocks flushed out before use     0     0.00     0.00       
    prefetched blocks aged out before use     0     0.00     0.00       
    process last non-idle time     2,370     0.65     1.26       
    queries parallelized     0     0.00     0.00       
    recovery blocks read     0     0.00     0.00       
    recursive aborts on index block reclamation     0     0.00     0.00       
    recursive calls     643,220     175.86     340.87       
    recursive cpu usage     15,900     4.35     8.43       
    redo blocks read for recovery     0     0.00     0.00       
    redo blocks written     96,501     26.38     51.14       
    redo buffer allocation retries     0     0.00     0.00       
    redo entries     115,246     31.51     61.07       
    redo log space requests     0     0.00     0.00       
    redo log space wait time     0     0.00     0.00       
    redo ordering marks     3,605     0.99     1.91       

  • Version count in statspack report-How to reduce this

    I generate stats report every week for 24 Hr time period and analyze all top20 queries interms of buffer gets,physical reads and executions.I could tune the queries with the help of you.Recently my Boss asked me to look in to top version count queries and reduce the number of versions.
    I have 4-5 queries which are running 300,000 times and has version count of 35.How can I reduce this number.please suggest me how to approach it.
    Your help will be appreciated.Thanks in advance.
    Thanks
    Anand

    Version count 35 out of 300000 doesn't look like a problem to me. Are you having performance issue on your system at all?
    <br>
    <br>
    1. Are the subject queries using Bind variables ?<br>
    2. What's the setting of CURSOR_SHARING?<br>
    should have CURSOR_SHARING=FORCE<br>
    3. check if Bug 3406977 apply to your case <br>

  • PL/SQL leaves cursors open?

    I have been researching into what might look like a resource drain in an Oracle 7.3.4 database we have on a SCO OpenServevr 5.0.5 server.
    There are a couple of applications written in PRO*C (compiled on Solaris with Oracle 8.1.5) always running that keep connections open to the DB. All exchange of data between the apps and the db happens via calls to stored procedures.
    Examining the state of the connections, I noticed that the number of open cursors and UGA/PGA memory used seems to increase over time, and never stabilizes.
    I experimented a bit and noticed that even if I open a session via SQL/PLUS and call an extermely simple procedure that opens a cursors, fetches it, closes it and then commits, the cursor remains open until the session is closed (I examined the session with Toad and Enterprise manager - and cursor cache count is set to 0). Is the open cursor consuming resources (e.g. using precious ram of the SGA) even after the procedure is ended? And if so, how can I release a maximum of resources when my applications are idle, without having to close and reopen the session?
    Thanks, Gaetano Giunta

    If the open cursors are too many then
    ALTER SYSTEM SET CURSOR_SHARING = FORCE;
    Works only with oracle9i
    uv to set ur initparam CURSOR_SHARING=FORCE.
    Which will try using bind variables only.
    Check docs on cursor_sharing may be u may get fair idea on bringing down cursor openings....

  • Creating a Vertical report

    Hi
    I have an SQL query that returns data like this
    Col1 Col2
    text1 1234
    text2 4321
    I have created a report region based on the SQL query, and using the builtin report template "default vertical report, look1",. This shows the data like this:
    Col1 Text1
    Col2 1234
    Col1 text2
    Col2 4321
    But what I want is this:
    Col1 Text1 Text2
    Col2 1234 4321
    In other words, I want all the rows from the query to be displayed vertically, across the page. Is this in any way possible?
    I have looked into creating a custom report template, but having been able to figure it out. The Apex users guide, is quit silent on how to do this.
    Regards, and thanks in advance for any help
    Søren

    Smors,
    Here is a package that will let you create pivot results whatever the table is. You might have to change the size of the variables to suit your needs ...
    CREATE OR REPLACE PACKAGE PIVOT AS
    TYPE REFCURSOR IS REF CURSOR;
    TYPE ARRAY IS TABLE OF VARCHAR2(30);
    PROCEDURE PIVOT (P_MAX_COLS IN NUMBER DEFAULT NULL,
    P_MAX_COLS_QUERY IN VARCHAR2 DEFAULT NULL,
         P_QUERY IN VARCHAR2,
         P_ANCHOR IN ARRAY,
         P_PIVOT IN ARRAY,
         P_CURSOR IN OUT REFCURSOR );
    END;
    SHOW ERRORS
    CREATE OR REPLACE PACKAGE BODY PIVOT AS
    PROCEDURE PIVOT (P_MAX_COLS IN NUMBER DEFAULT NULL,
    P_MAX_COLS_QUERY IN VARCHAR2 DEFAULT NULL,
              P_QUERY IN VARCHAR2,
              P_ANCHOR IN ARRAY,
              P_PIVOT IN ARRAY,
              P_CURSOR IN OUT REFCURSOR ) AS
    L_MAX_COLS NUMBER;
    L_QUERY LONG;
    L_CNAMES ARRAY;
    BEGIN
    IF (P_MAX_COLS IS NOT NULL) THEN
         L_MAX_COLS := P_MAX_COLS;
    ELSIF (P_MAX_COLS_QUERY IS NOT NULL) THEN
         EXECUTE IMMEDIATE P_MAX_COLS_QUERY INTO L_MAX_COLS;
    ELSE
    RAISE_APPLICATION_ERROR (-20001, 'Cannot figure out max cols');
    END IF;
    -- NOW CONSTRUCT THE QUERY THAN CAN ANSWER THE QUESTION FOR US...
    -- START WITH THE C1,C2 ... CX COLUMNS
    L_QUERY := 'SELECT ';
    FOR I IN 1..P_ANCHOR.COUNT LOOP
    L_QUERY := L_QUERY || P_ANCHOR(i) ||',';
    END LOOP;
    -- NOW ADD IN THE C(x+1)... CN COLUMNS TO BE PIVOTED
    FOR i IN 1..L_MAX_COLS LOOP
    FOR j IN 1..P_PIVOT.COUNT LOOP
    L_QUERY := L_QUERY ||
         'MAX(DECODE(RN,'||i||','||
    P_PIVOT(J)||',NULL)) ' ||
    P_PIVOT(J)||'_'||i||',';
    END LOOP;
    END LOOP;
    -- NOW JUST ADD IN THE ORIGINAL QUERY
    L_QUERY := RTRIM(L_QUERY,',')||' FROM ('||P_QUERY||') GROUP BY ';
    -- AND THEN GROUP BY COLUMNS...
    FOR I IN 1..P_ANCHOR.COUNT LOOP
    L_QUERY := L_QUERY || P_ANCHOR(i) ||',';
    END LOOP;
    L_QUERY := RTRIM(L_QUERY,',');
    INSERT INTO X_TAB VALUES (L_QUERY);
    COMMIT;
    -- AND RETURN IT
    EXECUTE IMMEDIATE 'ALTER SESSION SET CURSOR_SHARING = FORCE';
    OPEN P_CURSOR FOR L_QUERY;
    EXECUTE IMMEDIATE 'ALTER SESSION SET CURSOR_SHARING = EXACT';
    END;
    END;
    SHOW ERROR
    BEGIN
    PIVOT.PIVOT(
    P_MAX_COLS_QUERY => 'SELECT MAX(COUNT(*)) FROM EMP GROUP BY DEPTNO,JOB',
    P_QUERY => 'SELECT DEPTNO,JOB,ENAME,SAL,ROW_NUMBER() OVER
         (PARTITION BY DEPTNO,JOB ORDER BY SAL,ENAME ) RN
    FROM EMP A',
    P_ANCHOR => PIVOT.ARRAY ('DEPTNO','JOB'),
    P_PIVOT => PIVOT.ARRAY ('ENAME', 'SAL'),
    P_CURSOR => :X );
    END;
    Keep Smiling,
    Bob R

  • Oracle instance crashing when enabling use_indirect_data_buffers=true

    I have a Windows 2003 EE server (32bit) with 16GB of ram hosting a 10.2.0.2 Oracle server which is used to support a commercial software package (arcsight). I'm trying to get the Oracle backend to leverage the available system memory. I've read 50-60 different articles and posts regarding AWE and Oracle. I have successfully tuned the userva parameter in order to get the server to boot stable with the /3gb boot parameter. I've gotten to the point that the oracle instance will start up, but within about 30-60 seconds the instance will crash. Below is the information I believe that is relevant:
    *.......From computer Registry.........*
    AWE_MEMORY_WINDOW = 1288486912
    ORA_WORKINGSETMIN = 2
    *...........From init.ora.............*
    *.__dg_broker_service_names=';'
    arcsight.__java_pool_size=0
    arcsight.__large_pool_size=0
    arcsight.__shared_pool_size=314572800
    arcsight.__streams_pool_size=0
    *.audit_file_dest='E:\oracle10g\OraHome10g\admin\arcsight\adump'
    *.audit_sys_operations=true
    *.audit_trail='db'
    *.background_dump_dest='E:\oracle10g\OraHome10g\admin\arcsight\bdump'
    *.compatible='10.2.0.1.0'
    *.control_files='E:\oracle10g\OraHome10g\oradata\arcsight\control01.ctl','f:\arcsight\control02.ctl','g:\arcsight\control03.ctl'
    *.core_dump_dest='E:\oracle10g\OraHome10g\admin\arcsight\cdump'
    *.cursor_sharing='FORCE'
    **.db_block_size=16384*
    **.db_block_buffers=235929*
    *.db_domain=''
    *.db_file_multiblock_read_count=16
    *.db_files=2000
    *.db_name='arcsight'
    *.db_writer_processes=4
    *.dispatchers=''
    *.job_queue_processes=10
    *.log_archive_dest_1='LOCATION=H:'
    *.log_buffer=1048576
    *.open_cursors=2000
    *.parallel_max_servers=0
    *.pga_aggregate_target=314572800
    *.processes=300
    *.recyclebin='OFF'
    *.remote_login_passwordfile='EXCLUSIVE'
    *.sga_target=0
    *.undo_management='AUTO'
    *.undo_retention=43200
    *.undo_tablespace='ARC_UNDO'
    *.user_dump_dest='E:\oracle10g\OraHome10g\admin\arcsight\udump'
    *.java_pool_size=0
    *.large_pool_size=0
    *.shared_pool_size=314572800
    *.streams_pool_size=0
    **.use_indirect_data_buffers=true*
    *......From oradim.log.......*
    Sun Feb 22 18:37:33 2009
    E:\oracle10g\OraHome10g\bin\oradim.exe -shutdown -sid arcsight -usrpwd * -shutmode immediate -log oradim.log
    Sun Feb 22 18:37:34 2009
    ORA-01012: not logged on
    Sun Feb 22 18:37:45 2009
    E:\oracle10g\OraHome10g\bin\oradim.exe -startup -sid arcsight -usrpwd * -log oradim.log -nocheck 0
    Sun Feb 22 18:37:51 2009
    ORA-03113: end-of-file on communication channel
    *.......From alert_arcsight.log.........*
    Dump file e:\oracle10g\orahome10g\admin\arcsight\bdump\alert_arcsight.log
    Sun Feb 22 23:20:51 2009
    ORACLE V10.2.0.2.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Windows Server 2003 Version V5.2 Service Pack 2
    CPU : 8 - type 586, 4 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:14554M/16215M, Ph+PgF:14862M/15967M, VA:1926M/2047M
    Sun Feb 22 23:20:51 2009
    Starting ORACLE instance (normal)
    Sun Feb 22 23:20:52 2009
    Window memory size 1288503296
    Sun Feb 22 23:20:52 2009
    Minimum working set window size : 4096
    LICENSE_MAX_SESSION = 0
    LICENSE_SESSIONS_WARNING = 0
    Picked latch-free SCN scheme 2
    Autotune of undo retention is turned on.
    IMODE=BR
    ILAT =36
    LICENSE_MAX_USERS = 0
    SYS auditing is enabled
    ksdpec: called for event 13740 prior to event group initialization
    Starting up ORACLE RDBMS Version: 10.2.0.2.0.
    System parameters with non-default values:
    processes = 300
    use_indirect_data_buffers= TRUE
    __shared_pool_size = 318767104
    shared_pool_size = 318767104
    __large_pool_size = 0
    large_pool_size = 0
    __java_pool_size = 0
    java_pool_size = 0
    __streams_pool_size = 0
    streams_pool_size = 0
    sga_target = 0
    control_files = E:\ORACLE10G\ORAHOME10G\ORADATA\ARCSIGHT\CONTROL01.CTL, F:\ARCSIGHT\CONTROL02.CTL, G:\ARCSIGHT\CONTROL03.CTL
    db_block_buffers = 235932
    db_block_size = 16384
    db_writer_processes = 4
    compatible = 10.2.0.1.0
    log_archive_dest_1 = LOCATION=H:
    log_buffer = 2097152
    db_files = 2000
    db_file_multiblock_read_count= 16
    undo_management = AUTO
    undo_tablespace = ARC_UNDO
    undo_retention = 43200
    recyclebin = OFF
    remote_login_passwordfile= EXCLUSIVE
    audit_sys_operations = TRUE
    db_domain =
    __dg_broker_service_names= ;
    dispatchers =
    job_queue_processes = 10
    cursor_sharing = FORCE
    parallel_max_servers = 0
    audit_file_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\ADUMP
    background_dump_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\BDUMP
    user_dump_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\UDUMP
    core_dump_dest = E:\ORACLE10G\ORAHOME10G\ADMIN\ARCSIGHT\CDUMP
    audit_trail = DB
    db_name = arcsight
    open_cursors = 2000
    pga_aggregate_target = 314572800
    PMON started with pid=2, OS id=6676
    PSP0 started with pid=6, OS id=7544
    MMAN started with pid=10, OS id=7560
    DBW0 started with pid=14, OS id=6500
    DBW1 started with pid=18, OS id=6800
    DBW2 started with pid=22, OS id=6276
    DBW3 started with pid=26, OS id=520
    LGWR started with pid=30, OS id=6756
    CKPT started with pid=34, OS id=6380
    SMON started with pid=38, OS id=7472
    RECO started with pid=42, OS id=7696
    CJQ0 started with pid=46, OS id=7912
    MMON started with pid=50, OS id=7576
    MMNL started with pid=54, OS id=6852
    Sun Feb 22 23:20:53 2009
    alter database mount exclusive
    Sun Feb 22 23:20:57 2009
    Setting recovery target incarnation to 1
    Sun Feb 22 23:20:57 2009
    Successful mount of redo thread 1, with mount id 1799551061
    Sun Feb 22 23:20:57 2009
    Database mounted in Exclusive Mode
    Completed: alter database mount exclusive
    Sun Feb 22 23:20:57 2009
    alter database open
    Sun Feb 22 23:20:58 2009
    Beginning crash recovery of 1 threads
    parallel recovery setup failed: using serial mode
    Sun Feb 22 23:20:58 2009
    Started redo scan
    Sun Feb 22 23:20:58 2009
    Completed redo scan
    0 redo blocks read, 0 data blocks need recovery
    Sun Feb 22 23:20:58 2009
    Started redo application at
    Thread 1: logseq 1137, block 3, scn 1707289029
    Sun Feb 22 23:20:58 2009
    Recovery of Online Redo Log: Thread 1 Group 5 Seq 1137 Reading mem 0
    Mem# 0: I:\ARCSIGHT\REDO\REDO5.LOG
    Mem# 1: I:\ARCSIGHT\REDO\REDO05B.LOG
    Sun Feb 22 23:20:58 2009
    Completed redo application
    Sun Feb 22 23:20:58 2009
    Completed crash recovery at
    Thread 1: logseq 1137, block 3, scn 1707309030
    0 data blocks read, 0 data blocks written, 0 redo blocks read
    Sun Feb 22 23:20:59 2009
    LGWR: STARTING ARCH PROCESSES
    ARC0 started with pid=62, OS id=6972
    Sun Feb 22 23:20:59 2009
    ARC0: Archival started
    ARC1 started with pid=66, OS id=6640
    Sun Feb 22 23:20:59 2009
    ARC1: Archival started
    LGWR: STARTING ARCH PROCESSES COMPLETE
    Thread 1 advanced to log sequence 1138
    Thread 1 opened at log sequence 1138
    Current log# 4 seq# 1138 mem# 0: G:\ARCSIGHT\REDO\REDO4.LOG
    Current log# 4 seq# 1138 mem# 1: G:\ARCSIGHT\REDO\REDO04B.LOG
    Successful open of redo thread 1
    Sun Feb 22 23:21:00 2009
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Sun Feb 22 23:21:00 2009
    ARC0: Becoming the 'no FAL' ARCH
    ARC0: Becoming the 'no SRL' ARCH
    Sun Feb 22 23:21:00 2009
    ARC1: Becoming the heartbeat ARCH
    Sun Feb 22 23:21:00 2009
    SMON: enabling cache recovery
    Sun Feb 22 23:21:02 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_pmon_6676.trc:
    ORA-27103: internal error
    OSD-00028: additional error information
    Sun Feb 22 23:21:02 2009
    PMON: terminating instance due to error 27103
    Sun Feb 22 23:21:02 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_reco_7696.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:02 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_smon_7472.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:02 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_ckpt_6380.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:02 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_lgwr_6756.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:03 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw3_520.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:03 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw2_6276.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:03 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw1_6800.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:03 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_dbw0_6500.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:03 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_mman_7560.trc:
    ORA-27103: internal error
    Sun Feb 22 23:21:04 2009
    Errors in file e:\oracle10g\orahome10g\admin\arcsight\bdump\arcsight_psp0_7544.trc:
    ORA-27103: internal error
    Instance terminated by PMON, pid = 6676
    I appreciate any input on what to look at to further isolate this issue. I'd run into many other issues along the way (setting AWE_WINDOW_MEMORY to a proper size, setting db_block_buffers to a proper value, etc) that various forum searches helped resolve but I've not been able to find anything related to the errors I'm getting now. If I set use_indirect_data_buffers=false and tune back the db_block_buffers, the instance starts without any problems. Its just when I try and enable the use of AWE that I'm having a problem.
    Nick

    Just wanted to close out this tread in case anyone else runs into a similar problem. Turns out we ran into a bug documented in the below linked article (we're using AMD processors). Essentially needed to disable NUMA.
    http://blog.csdn.net/orapeasant/archive/2007/06/05/1639532.aspx
    excerpt ....
    But please be aware of Bug 4494543 - affecting 10g and fixed in Oracle 11.0 ......
    ORA-7445: CORE DUMP [ACCESS_VIOLATION] WITH USE_INDIRECT_DATA_BUFFERS=TRUE
    Rediscovery Information:
    1) Using 32-Bit Oracle on a 32-Bit Windows 2003 server running on an AMD Opteron 64-Bit chip.
    2) You have set use_indirect_data_buffers=true in init.ora
    Workaround: Basically disable NUMA feature on 32-Bit platform :-
    1) Set ENABLENUMA = FALSE in Windows registry for the Oracle Home.
    2) Set enableNUMA_optimizations = FALSE (init.ora)
    Thanks for the help. We'll see if access to the extra memory will be useful or not .....
    Nick

Maybe you are looking for

  • Diagnostics and Agent Questions

    Hi We are currently installing the agents and need info onfollowing for our production installs: Version of Solution manager 7 sp19 1) If i have a single server with 2 sap systems: ECC and GTS, which of this agents do I have to install for each syste

  • Select query take long time

    Hi All. When i execute select query from View it takes about 00:00:45:12 sec to pull the data , but when i execute same query in some other system(different database with same table structure) it takes about 00:00:02:05 sec. 1)I have tried by dropped

  • Advanced G/L determination and segmented accounts. Need Help!!!

    Hi, I have a client that is using segmented chart of accounts with advanced g/l determination this is on v9 PL05. I have setup some rules to post to certain GL's based on item and nothing else. When the client posts an AP Invoice he enters the first

  • Restrict Material Group Access when creating a PO

    Folks- I have a scenario where in different material groups are created for different levels Ex: Machinery - 1500 Machinery-Warehouse 150010 Machinery Warehouse Exteriors 15001010 If I want to restrict the buyer to use only level 3(15001010) of the m

  • Re: Cancellation of an inspection lot

    Hi All, I need to reverse an GR posting. In this case QM is being implemented. So At the time of GR posting an inspection lot has also been created .Now due to some error in the document,The user need to reverse the Goods receipt .But  as he tries to