Oracle 11g advantages for performance

Hello,
I am doing test of Client side result set cache on oracle 11 g rel2 ,O/S- RHEL
i am doing test as below on 2 Oracle 11g rel2 test servers on RHEL
one oracle 11g rel2 instance is used as server1,from other oracle 11g rel2 server2, i am running queries connecting to server1 through sqlplus,listener(tnsnames )
i run query few times without any client cache settings then
i have set init.ora paras for oracle 11g rel2 for client result cache,cache size/cache lag
i run the same query few times
in both the cases after each run i am noting statistics
select * from V$RESULT_CACHE_OBJECTS;
select * from V$CLIENT_RESULT_CACHE_STATS;
select * from gv$cpool_conn_info;
also autotrace,plan etc
but after using cache this views are getting poplulated ,autiotrace plan shows cache is used
but i cant see any improvement in performance after using client cache like speed,reduce network trip, etc
in fact without using cache/with no hint ,query executes faster
let me know if i am missing something,i believe sqlplus internally using OCI
thanks

>
I tested with custom code using java/jdbc thin driver ,connecting same as between 2 oracle 11g2 instance 1 as client other server,running code calling queries from client connecting to server
>
Unless you plan to provide the information ask for about what it is you are doing there really isn't any point in providing status updates that: you test this, you tested that. You made several statements about what you were doing
>
i have set init.ora paras for oracle 11g rel2 for client result cache,cache size/cache lag
i run the same query few times
in both the cases after each run i am noting statistics
select * from V$RESULT_CACHE_OBJECTS;
select * from V$CLIENT_RESULT_CACHE_STATS;
select * from gv$cpool_conn_info;
also autotrace,plan etc
>
and were asked to provide specific information that you haven't provided nor have you provided the query.
>
You say you are doing a bunch of things
But you don't post any of those results so we can see what it is you are looking at.
No one can comment on things they can't see.
>
You have to be using OCI for client side caching so if you use the Java thin driver but don't use OCI there won't be any cacheing. There also won't be any if it is not enabled or if the query has certain constraints as listed in the doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci10new.htm#CHDGGFEF
>
Queries that are not Cached
There are queries that are not cached on the OCI client even if the result cache hint is specified. Such queries may be cached on the database if the server result cache feature is enabled (see Oracle Database Concepts, "SQL Query Result Cache" for more information). If a SQL query includes any of the following, then the result set of that query is not cached in the OCI client result cache:
•Views
•Remote objects
•Complex types in the select list
•Snapshot-based or flashback queries
•Queries executed in a serializable, read-only transaction, or inside a flashback session
•Queries that have PL/SQL functions in them
•Queries that have VPD policies enabled on the tables
>
This Oracle-Developer.net article author doesn't seem to have any trouble caching results.
http://www.oracle-developer.net/display.php?id=503

Similar Messages

  • Which one is best option RAC 10g or oracle 11g RAC for certifiction point ?

    hi ,
    which one is best option RAC 10g or oracle 11g RAC for certifiction point of view?
    can any one detail difference between above 2 options?
    Regards,
    A.Anwar

    A. Anwar wrote:
    hi ,
    which one is best option RAC 10g or oracle 11g RAC for certifiction point of view?
    can any one detail difference between above 2 options?The main difference is: Oracle Lifetime Support
    Premier Support Ends
    Oracle 10g R2 - Jul 2010
    Oracle 11g R2 - Jan 2015
    Extended Support Ends
    Oracle 10g R2 - Jul 2013
    Oracle 11g R2 - Jan 2018
    http://www.oracle.com/us/support/library/lifetime-support-technology-069183.pdf
    Oracle 10g R2 is getting unsupported.

  • Is Oracle 11g released for NW04s and ECC6.0?

    Is Oracle 11g released for NW04s and ECC6.0?
    Please help. Thanks!

    Plain and simple: No, it isn't.
    Check the SAP on Oracle homepage [here|SAP on Oracle] in SDN and read the latest development news on this topic including a rough schedule.
    regards,
    Lars

  • Oracle 11G database for 64 bit windows installation error

    Hi,
    I downloaded the 11G 64bit for windows and unzipped the files into one folder and ran the setup.exe as an administrator. It opened up the java screen and I chose, create and configure a database. Next screen I chose, Desktop Class, when I click next it dies. It does not show me teh next screen. I went to the appdata folder and saw this error but not sure what to do EXCEPTION_ACCESS_VIOLATION (0xc0000005). Please help. Thanks for your time and help.

    Adipur wrote:
    Hello, have you tried to create new administrator user, and install using that newly created user...?You found this to be a band-aid solution in your specific instance. (Strange case of installation on windows 7 - unable to complete installation But you have drawn the wrong conclusions and never found the real issue in the cited thread. Under the circumstances, I would not be offering this up as a generalized solution, as you are doing in this thread and in others:
    Re: Oracle 11G database for 64 bit windows installation error
    Re: Trouble installing Oracle Personal in Windows 7 64-bit environment
    I have been doing Oracle DBA work since v 7.3, and have never seen advice like this to be anything more than a work-around the real issue.
    Edited by: EdStevens on May 15, 2013 7:03 AM

  • Oracle 11g ODBC for Windows NT and Windows 95

    Hi
    Please does anyone knows where can I find this ODBC ? Oracle 11g ODBC for Windows NT and Windows 95
    I have test some ODBC from the Oracle page but doesnt work
    Thank you
    J.A.

    I'm thinking no.
    However I did find this which may help :
    http://www.oracle.com/technetwork/database/windows/odbcfaq-128251.pdf
    I did the search for 16 bit in it and found some interesting information.
    The other piece of information I can share is the Oracle 11 client has issues connecting to Oracle 9.
    An Oracle 10 clients might have a better chance, but the catch is finding it.
    The last client I remember working on these OS's was Oracle 8. But I doubt that will connect to Oracle 11.
    Best Regards
    mseberg
    Edited by: mseberg on Aug 14, 2012 6:06 PM
    Later
    I'm not a huge fan of when they move stuff. This spot feels a little like the island of misfit toys.

  • The danger of memory target in Oracle 11g - request for discussion.

    Hello, everyone.
    This is not a question, but kind of request for discussion.
    I believe that many of you heard something about automatic memory management in Oracle 11g.
    The concept is that Oracle manages the target size of SGA and PGA. Yes, believe it or not, all we have to do is just to tell Oracle how much memory it can use.
    But I have a big concern on this. The optimizer takes the PGA size into consideration when calculating the cost of sort-related operations.
    So what would happen when Oracle dynamically changes the target size of PGA? Following is a simple demonstration of my concern.
    UKJA@ukja116> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    -- Configuration
    *.memory_target=350m
    *.memory_max_target=350m
    create table t1(c1 int, c2 char(100));
    create table t2(c1 int, c2 char(100));
    insert into t1 select level, level from dual connect by level <= 10000;
    insert into t2 select level, level from dual connect by level <= 10000;
    -- First 10053 trace
    alter session set events '10053 trace name context forever, level 1';
    select /*+ use_hash(t1 t2) */ count(*)
    from t1, t2
    where t1.c1 = t2.c1 and t1.c2 = t2.c2
    alter session set events '10053 trace name context off';
    -- Do aggressive hard parse to make Oracle dynamically change the size of memory segments.
    declare
      pat1     varchar2(1000);
      pat2     varchar2(1000);
      va       number;
      vc       sys_refcursor;
      vs        varchar2(1000);
    begin
      select ksppstvl into pat1
        from sys.xm$ksppi i, sys.xm$ksppcv v   -- views for x$ table
        where i.indx = v.indx
        and i.ksppinm = '__pga_aggregate_target';
      for idx in 1 .. 10000000 loop
        execute immediate 'select count(*) from t1 where rownum = ' || (idx+1)
              into va;
        if mod(idx, 1000) = 0 then
          sys.dbms_system.ksdwrt(2, idx || 'th execution');
          select ksppstvl into pat2
          from sys.xm$ksppi i, sys.xm$ksppcv v   -- views for x$ table
          where i.indx = v.indx
          and i.ksppinm = '__pga_aggregate_target';
          if pat1 <> pat2 then
            sys.dbms_system.ksdwrt(2, 'yep, I got it!');
            exit;
          end if;
        end if;
      end loop;
    end;
    -- As to alert log file,
    25000th execution
    26000th execution
    27000th execution
    28000th execution
    29000th execution
    30000th execution
    yep, I got it! <-- the pga target changed with 30000th hard parse
    -- Second 10053 trace for same query
    alter session set events '10053 trace name context forever, level 1';
    select /*+ use_hash(t1 t2) */ count(*)
    from t1, t2
    where t1.c1 = t2.c1 and t1.c2 = t2.c2
    alter session set events '10053 trace name context off';With above test case, I found that
    1. Oracle invalidates the query when internal pga aggregate size changes, which is quite natural.
    2. With changed pga aggregate size, Oracle recalculates the cost. These are excerpts from the both of the 10053 trace files.
    -- First 10053 trace file
    PARAMETERS USED BY THE OPTIMIZER
      PARAMETERS WITH ALTERED VALUES
    Compilation Environment Dump
    _smm_max_size                       = 11468 KB
    _smm_px_max_size                    = 28672 KB
    optimizer_use_sql_plan_baselines    = false
    optimizer_use_invisible_indexes     = true
    -- Second 10053 trace file
    PARAMETERS USED BY THE OPTIMIZER
      PARAMETERS WITH ALTERED VALUES
    Compilation Environment Dump
    _smm_max_size                       = 13107 KB
    _smm_px_max_size                    = 32768 KB
    optimizer_use_sql_plan_baselines    = false
    optimizer_use_invisible_indexes     = true
    Bug Fix Control Environment10053 trace file clearly says that Oracle recalculates the cost of the query with the change of internal pga aggregate target size. So, there is a great danger of unexpected plan change while Oracle dynamically controls the memory segments.
    I believe that this is a desinged behavior, but the negative side effect is not negligible.
    I just like to hear your opinions on this behavior.
    Do you think that this is acceptable? Or is this another great feature that nobody wants to use like automatic tuning advisor?
    ================================
    Dion Cho - Oracle Performance Storyteller
    http://dioncho.wordpress.com (english)
    http://ukja.tistory.com (korean)
    ================================

    I made a slight modification with my test case to have mixed workloads of hard parse and logical reads.
    *.memory_target=200m
    *.memory_max_target=200m
    create table t3(c1 int, c2 char(1000));
    insert into t3 select level, level from dual connect by level <= 50000;
    declare
      pat1     varchar2(1000);
      pat2     varchar2(1000);
      va       number;
    begin
      select ksppstvl into pat1
        from sys.xm$ksppi i, sys.xm$ksppcv v
        where i.indx = v.indx
        and i.ksppinm = '__pga_aggregate_target';
      for idx in 1 .. 1000000 loop
        -- try many patterns here!
        execute immediate 'select count(*) from t3 where 10 = mod('||idx||',10)+1' into va;
        if mod(idx, 100) = 0 then
          sys.dbms_system.ksdwrt(2, idx || 'th execution');
          for p in (select ksppinm, ksppstvl
              from sys.xm$ksppi i, sys.xm$ksppcv v
              where i.indx = v.indx
              and i.ksppinm in ('__shared_pool_size', '__db_cache_size', '__pga_aggregate_target')) loop
              sys.dbms_system.ksdwrt(2, p.ksppinm || ' = ' || p.ksppstvl);
          end loop;
          select ksppstvl into pat2
          from sys.xm$ksppi i, sys.xm$ksppcv v
          where i.indx = v.indx
          and i.ksppinm = '__pga_aggregate_target';
          if pat1 <> pat2 then
            sys.dbms_system.ksdwrt(2, 'yep, I got it! pat1=' || pat1 ||', pat2='||pat2);
            exit;
          end if;
        end if;
      end loop;
    end;
    /This test case showed expected and reasonable result, like following:
    100th execution
    __shared_pool_size = 92274688
    __db_cache_size = 16777216
    __pga_aggregate_target = 83886080
    200th execution
    __shared_pool_size = 92274688
    __db_cache_size = 16777216
    __pga_aggregate_target = 83886080
    300th execution
    __shared_pool_size = 88080384
    __db_cache_size = 20971520
    __pga_aggregate_target = 83886080
    400th execution
    __shared_pool_size = 92274688
    __db_cache_size = 16777216
    __pga_aggregate_target = 83886080
    500th execution
    __shared_pool_size = 88080384
    __db_cache_size = 20971520
    __pga_aggregate_target = 83886080
    1100th execution
    __shared_pool_size = 92274688
    __db_cache_size = 20971520
    __pga_aggregate_target = 83886080
    1200th execution
    __shared_pool_size = 92274688
    __db_cache_size = 37748736
    __pga_aggregate_target = 58720256
    yep, I got it! pat1=83886080, pat2=58720256Oracle continued being bounced between shared pool and buffer cache size, and about 1200th execution Oracle suddenly stole some memory from PGA target area to increase db cache size.
    (I'm still in dark age on this automatic memory target management of 11g. More research in need!)
    I think that this is very clear and natural behavior. I just want to point out that this would result in unwanted catastrophe under special cases, especially with some logic holes and bugs.
    ================================
    Dion Cho - Oracle Performance Storyteller
    http://dioncho.wordpress.com (english)
    http://ukja.tistory.com (korean)
    ================================

  • Tuning Oracle Integration Adapters for Performance

    Hi,
    I would like to know about tuning Oracle Applications adapter for performnace .
    I got a document for performance tuning of BPEL PM. I am searching for similar kind of document which helps to fine tune the adapters for performance.
    Please help me
    Regards,
    Sundar

    Hi,
    Oracle JDeveloper 11g 11.1.2... doesn't include the SOA and WebCenter pieces - to use these components you'll need to download Oracle JDeveloper 11.1.1.6.0...
    http://www.oracle.com/technetwork/developer-tools/jdev/downloads/jdeveloper11116-1377208.html
    You will also need the Fusion Middleware Extensions for JDeveloper... Oracle SOA Composite Editor...
    http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/156082.xml
    Hope this helps...
    Cheers,
    Vlad

  • Oracle 11g certification for People tools 8.46 & 8.45??

    Are the above people tools Oracle 11g certified??

    I'm trying to determine if PS tools 8.44 (HRMS 8.8) is certified on Oracle DB 11gr2. By the looks of things, it appears the latest Oracle DB release certified on tools 8.44 is DB v 9.2.x.x. Am I reading this correct?
    Apologies for simplistic questions - I'm new to the PeopleSoft world
    Thanks for the help.

  • How to create Oracle 11g DSN for database on another server

    Hi,
    How do i create an Oracle Database 11g DSN for a database that is lying on another server? I tried using the Microsoft ODBC Administrator tool but it gives me options only for the databases lying on my own machine.

    Hi,
    Check this thread may it help you https://forums.oracle.com/thread/2479208

  • Reg: Oracle 11g XE for Webcenter 11.1.1.6

    Dear Experts,
    I am planning to setup Oracle Webcenter 11.1.1.6 on my laptop that runs on a 4Gigs RAM. The pre-reqs and install guides say Oracle 11g 11.2.0.1 version of DB which would be pretty heavy for my machine.
    As I need this setup only for learning and practice purposes, Can you please suggest me if Oracle 11g XE version(the lightweight one) would suffice?
    Thanks,
    Srikanth.

    for your learning purpose,it is enough to go ahead with your system configuration and Oracle XE 11g db.
    you need to keep it mind that ,before running RCU utility,you need to change the number of process running and process cursor to 500 and restart the Oracle DB Service.
    alter system set processes=500 scope=spfile;
    alter system set process_cursor=500;
    and restart the db.
    Best of luck for your learning!!!Enjoy Webcenter Learning!!!!
    Regards,
    Hoque

  • Latest Oracle 11g Client for Windows

    I was able to download base Oracle 11g Client from
    http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    Does anybody knows if this latest what they have for 11g ? Did Oracle release any patchset on top of that?

    Patch 11.1.0.7.0 is available for download from metalink. Patch number is 6890831. Of course, you would need to use your metalink login credentials for this download.

  • OTN for Oracle 11g R2 for Linux x86_64 "See All" link does not work

    I'm trying to view all of the downloads for LInux x86_64 Oracle 11g R2. When I select the link I get the following message:
    An error occurred while processing the request. Try refreshing your browser. If the problem persists contact the site administrator
    Can someone please investigate this issue.
    Thanks

    user457508 wrote:
    An error occurred while processing the request. Try refreshing your browser. If the problem persists contact the site administratorThis is somewhat reminiscent of the problems we faced a few months back. While you are waiting for someone to investigate, you can also try:
    - log out of OTN completely
    - clear all cookies and cached files in your browser
    - log back in again
    - try again

  • Oracle 11g Support For WLS 10 and WLS 9.2

    Hi,
    Does anyone know where I can find out definatively when Weblogic 10 and 9.2 will officially support Oracle 11g ?
    Any official BEA sources here.
    Cheers
    Simon

    There is only one real answer here: test it and test it thoroughly. Asking this question here is pointless, you cannot trust anyone here to give you advice you can rely on. Whatever is said, you have to validate the claims anyway.
    Or did you think that Oracle employees were going to answer your question? If so, you are sadly mistaken. Oracle charges money for giving technical support.

  • Oracle 11g support for JDK 1.4

    Dear All,
    We are planning to migrate from Oracle 10.2.0.3 to Oracle 11.2.0.2. However our application server JDK version is in JDK1.4 and we use ojdbc4.jar for JDBC connectivity.
    Please let me know, to migrate to Oracle 11g requires JDK1.5 and ojdbc1.5 or can we continue to stay at JDK1.4 and uses ojdbc4.jar to connect to Oracle11g.
    Help Appreciated.

    There is only one real answer here: test it and test it thoroughly. Asking this question here is pointless, you cannot trust anyone here to give you advice you can rely on. Whatever is said, you have to validate the claims anyway.
    Or did you think that Oracle employees were going to answer your question? If so, you are sadly mistaken. Oracle charges money for giving technical support.

  • Oracle 11g bug for column ambigously defined error

    I have below format query running on Oracle 10g without any issues
    select col1
    from (select col1
    from (select 'A' col1
    from dual)
    ) v1
    inner join (select col1 as col2
    from (select 'A' col1
    from dual)
    ) v2
    on (v1.col1=v2.col2);
    When I run the exact same query on Oracle 11g I get column ambiguously defined error. But when I change the query to as below it works fine on 11g
    select v1.col1
    from (select col1
    from (select 'A' col1
    from dual)
    ) v1
    inner join (select col1 as col2
    from (select 'A' col1
    from dual)
    ) v2
    on (v1.col1=v2.col2);
    Is it because 11g ignores column alias in my inner queries.

    I'd tend to agree that this seems to be a bug in 11.1.0.7 (at least, that's the version I'm running it in)
    It's not even that Oracle doesn't know about the column aliases, you can remove the aliases in the ON without a problem, i.e.
    SELECT v1.col1
       FROM
      (SELECT col1 FROM
        (SELECT 'A' col1 FROM dual
      ) v1
    INNER JOIN
      (SELECT col1 AS col2 FROM
        (SELECT 'A' col1 FROM dual
      ) v2
         ON (col1=col2);works fine. Using the old join syntax also seems to work fine
    SELECT col1
       FROM
      (SELECT col1 FROM
        (SELECT 'A' col1 FROM dual
      ) v1,
      (SELECT col1 AS col2 FROM
        (SELECT 'A' col1 FROM dual
      ) v2
      WHERE (col1=col2);So it appears that something in the SQL 99 parser is broken. Have you logged a bug in Metalink?
    Justin

Maybe you are looking for

  • User-Defined Function and Context Manipulation

    Hi Mapping Gurus, I need your help. I have a user-defined function and one of my input parameter (c) is in a loop (EDI segment).  So one, if I execute my function I get: Exception:[java.lang.ArrayIndexOutOfBoundsException: 0] If I change the context

  • Adobe Reader 9.x crashes when opening some pdf files that work fine with Adobe Reader 8.x

    Adobe Reader 9 crashes when opening approximately 10% to 20% of the pdfs in my collection. The remaining 80% to 90% work without problems. The pdfs are launched by double-clicking the pdf file from Windows Explorer. The crashes occur with both v9.0 a

  • Pages freezes when I open up a project

    I purchased Pages off the Apple site back in March.  I am working on a project that involves several images.  I tired to back up to a usb and when I did the usb said no image files.  Pages froze and would not let me continue to work on it. I have del

  • Blurred images in signature

    Hi All, Im wondering if anyone else has come across this problem, and has come up with  a solution, because its really starting to get frustrating. Basically we have an email signature with some text and a 500 + 40px logo in bmp format (about 40k in

  • Searching Japanese using keywords

    When searching using keywords in the awesome bar, it converts any Japanese characters to their percent-encoded forms (sorry if I'm using the wrong terminology here). This is no problem for most searches, for example http://eow.alc.co.jp/search?q=%E3%