If sga_target set explicitly, result cache become disabled

hi all,
I am using 11g R2 and automatic memory management. I realized something. if I explicitly declare sga_target parameter in parameter file, result cache become disabled.
as you know if you use automatic memory management, sga_target is set to 0 automatically already but if I write that to the parameter file than whatever I set for result_cache_max_size parameter, instance always opens with result_cache_max_size=0 (I saw that in alert log).
is there any reason for that ?
here is my pfile contents.
orcl.__db_cache_size=922746880
orcl.__java_pool_size=33554432
orcl.__large_pool_size=16777216
orcl.__oracle_base='C:\app\paranoyakX'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=838860800
orcl.__sga_target=1258291200
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=251658240
orcl.__streams_pool_size=16777216
*.audit_file_dest='C:\app\paranoyakX\admin\orcl\adump'
*.audit_trail='DB_EXTENDED'
*.compatible='11.2.0.0.0'
*.control_files='C:\app\paranoyakX\oradata\orcl\control01.ctl','C:\app\paranoyakX\flash_recovery_area\orcl\control02.ctl'
*.db_16k_cache_size=0
*.db_4k_cache_size=0
*.db_block_size=8192
*.db_domain='oracle.com'
*.db_flashback_retention_target=1000
*.db_keep_cache_size=0
*.db_name='orcl'
*.db_recovery_file_dest='C:\app\paranoyakX\flash_recovery_area'
*.db_recovery_file_dest_size=10737418240
*.diagnostic_dest='C:\app\paranoyakX'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.memory_max_target=34359738368
*.memory_target=2097152000
*.nls_language='TURKISH'
*.nls_territory='TURKEY'
*.open_cursors=300
*.pga_aggregate_target=528482304
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.resource_limit=TRUE
*.undo_tablespace='UNDOTBS1'
*.result_cache_max_size=5000000
*.sga_target=0

I would suggest that you pay more attention to documentation and don't jump to conclusion in a haste. Just because the parameter result_cache_max_size is set to 0, it does not mean that the result cache in itself is disabled. This is the maximum size of the result cache. See below,
[oracle@edbar2p0-orcl ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Thu Jul 14 08:35:00 2011
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing options
SQL> sho parameter result
NAME                                 TYPE        VALUE
client_result_cache_lag              big integer 3000
client_result_cache_size             big integer 0
result_cache_max_result              integer     5
result_cache_max_size                big integer 1184K
result_cache_mode                    string      MANUAL
result_cache_remote_expiration       integer     0
SQL> show parameter sga
NAME                                 TYPE        VALUE
lock_sga                             boolean     FALSE
pre_page_sga                         boolean     FALSE
sga_max_size                         big integer 460M
sga_target                           big integer 0
SQL> set autot trace exp
selSQL> ect /*+ result_cache */ * from scott.dept;
Execution Plan
Plan hash value: 3383998547
| Id  | Operation          | Name                       | Rows  | Bytes | Cost (
%CPU)| Time     |
|   0 | SELECT STATEMENT   |                            |     4 |    80 |     3
  (0)| 00:00:01 |
|   1 |  RESULT CACHE      | 1c13q1afp56bq0jpnmysvywx7g |       |       |
     |          |
|   2 |   TABLE ACCESS FULL| DEPT                       |     4 |    80 |     3
  (0)| 00:00:01 |
Result Cache Information (identified by operation id):
   1 - column-count=3; dependencies=(SCOTT.DEPT); name="select /*+ result_cache
*/ * from scott.dept"
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Automatic Storage Management, OLAP, Data Mining
and Real Application Testing optionsThe value for the result_cache parameter is automatically set by oracle depending on either you have Memory_target/SGA_TARGET or Shared_Pool parameter set. Please see oracle documentation for more information.
HTH
Aman....

Similar Messages

  • Using the Client Result Cache

    Hello everyone,
    I have a question regarding the use of the client result cache but first of all here are the informations about my database:
    SQL> SELECT * FROM v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0    Production
    TNS for Linux: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    I have installed the Oracle Client Tools on my clientmachine. It has a tnsnames.ora like this:
    ORCL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = FEA11-119SRV)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = orcl.local)
    The Client Result Cache is configured in the sqlnet.ora.
    ADR_BASE = /u01/app/oracle
    OCI_RESULT_CACHE_MAX_SIZE= 2048000
    OCI_RESULT_CACHE_MAX_RSET_SIZE = 1024000
    NAMES.DIRECTORY_PATH = (EZCONNECT, TNSNAMES, HOSTNAME)
    The Databaseserver is configured like that:
    SQL> col name format a30
    SQL> col value format a30
    SQL> SELECT name, value
      2  FROM   v$system_parameter
      3  WHERE  name LIKE '%result_cache%';
    NAME                   VALUE
    result_cache_mode           MANUAL
    result_cache_max_size           0
    result_cache_max_result        5
    result_cache_remote_expiration 0
    client_result_cache_size       1073741824
    client_result_cache_lag        3000
    After configuring client an server I try the followign SQL-Statement on the clientmachine:
    sqlplus oracle/password@orcl
    set autotrace traceonly explain
    SELECT /*+ result_cache */ *
    FROM testtable;
    SQL
    The execution plan show two operations: "SELECT STATEMENT" and "TABLE ACCESS FULL" but no the "RESULT CACHE" operation.
    Did I miss something?
    Any help would be appreciated
    Florian W.

    result_cache_max_size           0
    That means the result cache is disabled. You need to set it to a non-zero value. That is the maximum ammount of memory, in bytes, the database will allocate on the shared pool to dedicate it to the result cache for all requests.
    By the way, OCI_RESULT_CACHE_MAX_SIZE is optional. By default the sessions will have the maximum size they can occupy on the cache determined by CLIENT_RESULT_CACHE parameter, the client (OCI) side parameters override that.
    result_cache_mode           MANUAL
    Another thing to consider is RESULT_CACHE_MODE in MANUAL, that will cause only the statements with the RESULT_CACHE hint on it to be cached on the result cache. You can also set result cache to mode FORCE on specific tables with alter table command.
    Regards

  • Enabling result cache

    Hi,
    I am trying to enable result cache feature at Oracle 11g R2 server. I am following the below steps but everytime the cache status is coming DISABLED. Please help me to correct it
    1. I am setting the RESULT_CACHE_MAX_SIZE and RESULT_CACHE_MODE as below. Memory_Target is 1232M, so I chose to allocate 200M for result cache.
    ALTER SYSTEM SET RESULT_CACHE_MODE=FORCE
    System altered.
    ALTER SYSTEM SET RESULT_CACHE_MAX_SIZE=200M
    System altered.2. I am restarting the database
    SHUTDOWN IMMEDIATE
    STARTUP
    3. I am querying the result cache status
    SELECT DBMS_RESULT_CACHE.STATUS FROM DUAL
    STATUS
    DISABLEDI have configured other database servers for cache and its working fine. But i am not able to sort out what is going wrong in above scripts. Please help me if i am missing out some step.
    Thanks

    select * from v$version;you need "Enterprise Edition" http://docs.oracle.com/cd/B28359_01/license.111/b28287/editions.htm
    for EE check this:
    http://psoug.org/reference/dbms_result_cache.html
    http://www.oracle.com/technetwork/articles/datawarehouse/vallath-resultcache-rac-284280.html
    http://www.oracle-developer.net/display.php?id=503

  • Does OCI client result cache and oracle UCP work together?

    I'm using Oracle 11.2.1.0. I've set up FCF and enabled OCI result cache on server side, so on client side, I'm using UCP for failover.
    this is my datasource configuration:
    <Resource name="jdbc/MyPool"
    auth="Container"
    factory="oracle.ucp.jdbc.PoolDataSourceImpl"
    type="oracle.ucp.jdbc.PoolDataSource"
    connectionFactoryClassName="oracle.jdbc.pool.OracleDataSource"
    url="jdbc:oracle:oci:@dbhost:1521/myDb"
    user="db_user"
    password="db_password"
    fastConnectionFailoverEnabled="true"
    onsConfiguration=""
    connectionPoolName="dbPool"
    initialPoolSize="5"
    minPoolSize="5"
    maxPoolSize="25"
    connectionWaitTimeout="10000"
    inactiveConnectionTimeout="120000"
    abandonConnectionTimeout="60"
    validateConnectionOnBorrow="true"
    sqlForValidateConnection="select user from dual"
    maxStatements="30"/>
    I've enabled OCI client result cache.
    I use /*+ result_cache */ in my query to take advantage of the result cache.
    so I execute the following scenario:
    i) select /*+ result_cache */ value from myTable where id=1; (this returns a result.)
    ii) update myTable to set a different value for id=1 record;
    iii) run select query again; (this should return a different result. oci result cache gets updated when table changes.)
    if I take out
    "sqlForValidateConnection" and/or "validateConnectionOnBorrow" (i.e. disable sql validation on borrow), the 2nd query after table update doesn't show the latest result. it's still showing the old query result.
    is this a bug? that UCP validation on borrow has an impact on OCI result cache function? this doesn't happen if using dbcp java connection pooling with OCI result cache.

    it turns out I ran the test against an oracle server that doesnt have FCF configured, nor ONS.
    once i switched to a correct oracle cluster, my test passed.

  • Using the client result cache without the query result cache

    I have constructed a client in C# using ODP.NET to connect to an Oracle database and want to perform client result caching for some of my queries.
    This is done using a result_cache hint in the query.
    select /*+ result_cache */ * from table
    As far as I can tell query result caching on the server is done using the same hint, so I was wondering if there was any way to differentiate between the two? I want the query results to be cached on the client, but not on the server.
    The only way I have found to do this is to disable all caching on the server, but I don't want to do this as I want to use the server cache for PL/SQL function results.
    Thanks.

    e3a934c9-c4c2-4c80-b032-d61d415efd4f wrote:
    I have constructed a client in C# using ODP.NET to connect to an Oracle database and want to perform client result caching for some of my queries.
    This is done using a result_cache hint in the query.
    select /*+ result_cache */ * from table 
    As far as I can tell query result caching on the server is done using the same hint, so I was wondering if there was any way to differentiate between the two? I want the query results to be cached on the client, but not on the server.
    The only way I have found to do this is to disable all caching on the server, but I don't want to do this as I want to use the server cache for PL/SQL function results.
    Thanks.
    You haven't provided ANY information about how you configured the result cache. Different parameters are used for configuring the client versus the server result cache so you need to post what, if anything, you configured.
    Post the code you executed when you set the 'client_result_cache_lag' and 'client_result_cache_size' parameters so we can see what values you used. Also post the results of querying those parameters after you set them that show that they really are set.
    You also need to post your app code that shows that you are using the OCI statements are used when you want to use client side result cacheing.
    See the OCI dev guide
    http://docs.oracle.com/cd/B28359_01/appdev.111/b28395/oci10new.htm#sthref1491
    Statement Caching in OCI
    Statement caching refers to the feature that provides and manages a cache of statements for each session. In the server, it means that cursors are ready to be used without the need to parse the statement again. Statement caching can be used with connection pooling and with session pooling, and will improve performance and scalability. It can be used without session pooling as well. The OCI calls that implement statement caching are:
      OCIStmtPrepare2()
      OCIStmtRelease()

  • OSB result caching with Coherence Out of process

    Existing setup:
    Oracle Fusion Middleware SOA 11g domain with
    1 weblogic cluster
    1 OSB cluster
    We have an Out of Process Coherence cluster configured with  caches defined already which is just working fine in production.
    The requirement is that development team would like to use the OSB result caching feature and we are having hard time to configure this OSB result cache join our existing cluster.
    Any suggestions on this is appreciated.

    Hi,
    You would need to override the operational configuration on OSB Server to join the cluster spawned by the Coherence dedicated servers. Also, set the flag -Dtangosol.coherence.distributed.storage=false in the ServerStart of your OSB Servers which will disable the data storage in the OSB Servers.
    HTH
    Cheers,
    _NJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Difference Result Caching : OSB

    Hi
    In OSB, for a business service (based on a Java deployment on WebLogic server) I can see -
    Under Configuration Details - Message Handling Configuration-->Result Caching --> "Not Supported"
    Under Operational Settings - Result Caching-->Result Caching State--> This is enabled by default
    I have restarted server and executed a proxy flow. I think its still ON. I want it to be OFF.
    Can someone tell me if result caching should be ON or OFF in above scenario?
    -s-k

    what makes you think it's still on?
    the option in operation settings should be on if you're planning to use it on one of the other business services (it's the global enable setting)
    after that you can enable it per service with the settings in configuration details
    if you never want to use it it should be enough(i think) to disable it in the operation settings

  • Query result cache with functions

    Hi all,
    one of my colleagues has found a little bit weird behavior of a query result cache. He has set result_cache_mode = 'FORCE' (but it can be reproduced with a result_cache hint too) and suddenly functions called from the query get executed twice (for the first time) .
    An easy example:
    alter session set result_cache_mode = 'FORCE';
    create sequence test_seq;
    create or replace function test_f(i number)
    return number
    is                  
    begin
      dbms_output.put_line('TEST_F executed');
      --autonomous transaction or package variable can be used too
      return test_seq.nextval;
    end;
    prompt First call
    select test_f(1) from dual;
    prompt Second call
    select test_f(1) from dual;
    drop sequence test_seq;
    drop function test_f;
    First call
    TEST_F(1)
             2
    TEST_F executed
    TEST_F executed
    Second call
    TEST_F(1)
             1
    As you can see - for the first time the function is executed twice and return the value from the second execution. When I execute the query again it returns the value from the first execution... but it doesn't matter, problem is in the double execution. Our developers used to send emails via select (it's easier for them):
    select send_mail(...) from dual;
    ... and now the customers complains that they get emails twice
    And now the question - is there any way, hot to get rid of this behavior (without changing the parameter back or rewriting code)? I thought that the result cache is automatically disabled for non-deterministic functions...or is this an expected behavior?
    Thanks,
    Ivan

    Interesting.. you are right:
    SELECT /*+ RESULT_CACHE */ 'dog' FROM DUAL;
    And at the second execution:
    | Id  | Operation        | Name                       | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT |                            |     1 |     2   (0)| 00:00:01 |
    |   1 |  RESULT CACHE    | cc5k01xyqz3ypf9t0j28r5gtd1 |       |            |          |
    |   2 |   FAST DUAL      |                            |     1 |     2   (0)| 00:00:01 |
    Hmmm..

  • Hello! i forgot my screen password and my iphone become disabled, how can i fix it?

    Please I have a very important information inside of my iPhone 4. I forgot my screen password and after my iPhone become disable. And now I can not open it at all of course. Maybe someone knows how can I fix it? Thank you . My e-mail: [email protected]

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • HT1212 Hi, one of my daughters friends tried to access her ipod causing it to become disabled; i do not want her to lose all her photos, she accesses my itunes account which is on ICLOUD, will she lose all her data - can this be fixed?

    Hi, one of my daughters friends tried to access her ipod causing it to become disabled; i do not want her to lose all her photos, she accesses my itunes account which is on ICLOUD, will she lose all her data - can this be fixed? I do not think it has been synced with a computer before.

    Disabled
    If you previously synced to the computer then you may be able to recover use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.
    Otherwise y will have to restore and thus erase the iPod
    You can restore from backup
    If not in backup then:
    - If you used PhotoStream then try getting them from your PhotoStream. See that topic of:
    iOS: Importing personal photos and videos from iOS devices to your computer
    - Maybe from the restored iPod via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html
    -iPod touch Deleted Photo Recovery Tips You Should Know
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
    If you previously synced to the computer then you may be able to recover use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.

  • Oracle 11g result cache and TimesTen

    Oracle 11g has introduced the concept of result cache whereby the result set of frequently executed queries are stored in cache and used later when other users request the same query. This is different from caching the data blocks and exceuting the query over and over again.
    Tom Kyte calls this just-in-time materialized view whereby the results are dynamically evaluated without DBA intervention
    http://www.oracle.com/technology/oramag/oracle/07-sep/o57asktom.html
    My point is that in view of utilities like result_cache and possible use of Solid State Disks in Oracle to speed up physical I/O etc is there any need for a product like TimesTen? It sounds to me that it may just asdd another layer of complexity?

    Oracle result cache ia a useful tool but it is distinctly different from TimesTen. My understanding of Oracle's result cache is caching results set for seldom changing data like look up tables (currencies ID/code), reference data that does not change often (list of counter parties) etc. It would be pointless for caching result set where the underlying data changes frequently.
    There is also another argument for SQL result cache in that if you are hitting high on your use of CPUs and you have enough of memory then you can cache some of the results set thus saving on your CPU cycles.
    Considering the arguments about hard wired RDBMS and Solid State Disks (SSD), we can talk about it all day but having SSD does not eliminate the optimiser consideration for physical I/O. A table scan is a table scan whether data resides on SCSI or SSD disk. SSD will be faster but we are still performing physical IOs.
    With regard to TimesTen, the product positioning is different. TimesTen is closer to middletier than Oracle. It is designed to work closely to application layer whereas Oracle has much wider purpose. For real time response and moderate volumes there is no way one can substitue TimesTen with any hard wired RDBMS. The request for result cache has been around for sometime. In areas like program trading and market data where the underlying data changes rapidly, TimesTen will come very handy as the data is real time/transient and the calculations have to be done almost realtime, with least complications from the execution engine. I fail to see how one can deploy result cache in this scenario. Because of the underlying change of data, Oracle will be forced to calculate the queries almost everytime and the result cache will be just wasted.
    Hope this helps,
    Mich

  • Function result Cache in oracle 11G

    Hi,
    i am reading the following article and trying to reproduce same set of statements to learn about function result cache.
    http://www.oracle.com/technology/oramag/oracle/07-sep/o57asktom.html
    Details about my output:
    SQL> create or replace
    function not_cached
    ( p_owner in varchar2 )
    return number
    as
    l_cnt number;
    begin
    select count(*)
    into l_cnt
    from t
    where owner = p_owner;
    sys.dbms_lock.sleep(1);
    return l_cnt;
    end;
    Function created.
    Elapsed: 00:00:00.13
    SQL> create or replace
    function cached
    ( p_owner in varchar2 )
    return number
    result_cache
    relies_on(T)
    as
    l_cnt number;
    begin
    select count(*)
    into l_cnt
    from t
    where owner = p_owner;
    dbms_lock.sleep(1);
    return l_cnt;
    end;
    Function created.
    Elapsed: 00:00:00.08
    SQL> exec dbms_output.put_line( not_cached( 'SCOTT' ) );
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.06
    SQL> exec dbms_output.put_line( not_cached( 'SCOTT' ) );
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.01
    SQL> SQL> exec dbms_output.put_line( not_cached( 'SCOTT' ) );
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.02
    SQL> SQL> set serveroutput on
    SQL> exec dbms_output.put_line( not_cached( 'SCOTT' ) );
    0
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.02
    SQL> SQL> exec dbms_output.put_line( cached( 'SCOTT' ) );
    0
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.02
    SQL> SQL> exec dbms_output.put_line( cached( 'SCOTT' ) );
    0
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.02
    SQL> SQL> exec dbms_output.put_line( cached( 'SCOTT' ) );
    0
    PL/SQL procedure successfully completed.
    SQL> exec dbms_output.put_line( cached( 'SCOTT' ) );
    0
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:01.01
    I am supposed to get the results quickly for "cached" call. However, i still dont see any change in the response time. May i know what i am missing here?
    Thank you
    Giridhar

    Try to play with
    RESULT_CACHE_MAX_SIZE
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/initparams206.htm#REFRN10272
    RESULT_CACHE_MAX_RESULT
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/initparams205.htm#REFRN10298

  • Production use of the Result Cache area

    Hi all,
       OS.......: OEL 6.3 (x86_64)
       DB.......: Oracle 11.2.0.3 (x86_64)
       I would like to know from those who have used the Result Cache massively in production environments... just to know the opinion of the ones who have used this "for real". Did you use it proactively, to solve a specific problem? Or in every new database created, you configure this memory area? Did it really work as it should be?
       Thanks in advance.

    Hi Fabricio,
    We run result cache in our live forecast system on 11.2.0.2. We have result_cache_mode set to force and a cache of 20MB. The performance improvement we get with this is incredible, from a server running flat out to a server that looks like it's hardly doing anything. Of course it depends on exactly how your app works but we've seen no issues with it other than occassional waits for the result cache latch when there are a large number of requests - but even when this happens it's still way faster than running without result cache.
    Cheers,
    Harry

  • Result Cache in oracle 11g release 2.0.2.0

    All,
    Few months back I was trying Result Cache feature of 11g release 2.0.1.0. That time oracle mentioned that they have 3 modes to use this feature by setting result_cache_mode paramter to AUTO, FORCE or MANUAL. With AUTO mode (result_cache_mode=AUTO) you can identify queries that may benefit from result cache. I would like to know whcih views or function I should see where it captures this information.
    In 11.2.0.1.0 documentation it was referencing some views (I totally don't remember those views names) and said those will be available in 11.2.0.2.0.
    Is anyone know about this?
    Thanks in advance.

    user2486753 wrote:
    Though oracle doc doesn't say about AUTO it is still accepts that value and caches the result of the SQL query if you add /*+ result cache */ hint to the SQL.
    I know that they did mentioned in 112010 some where that it will help users to find which SQL's are good candidates for caching by running the application for a while. I just couldn't fine it.If we are adding AUTO and still passing the hint, its the same behavior as like MANUAL. I am not sure that I have seen the value anywhere and neither its there in the docs too.
    HTH
    Aman....

  • Possible result cache problem 11GR1;;Plz Help me :)

    Hello,
    I just finished installing Oracle 11g Enterprise Edition on my laptop,under windows XP 32 Bit,
    Just run to test the result cache ,It seems the result cache does not work for me ;
    Please see the demonstration below and help me to undertsand:
    (I am the only person connected to the database and I only have one session conneted )
    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
    Connected as SYS
    SQL> set timi on
    SQL> 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
    Executed in 0.031 seconds
    SQL> ----result cache demonstration
    SQL> ----clear the server result cache
    SQL> exec dbms_result_cache.Flush
    PL/SQL procedure successfully completed
    Executed in 0 seconds
    SQL> ---run a query to load the server result cache
    SQL>
    SQL> SELECT /*+ result_cache */
      2   H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID, COUNT(*)
      3    FROM HR.DEPARTMENTS H
      4   GROUP BY H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID
      5  ;
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
               10 Administration                        200          1
               30 Purchasing                            114          1
               50 Shipping                              121          1
               60 IT                                    103          1
               70 Public Relations                      204          1
              200 Operations                                         1
              210 IT Support                                         1
              230 IT Helpdesk                                        1
               90 Executive                             100          1
              100 Finance                               108          1
              140 Control And Credit                                 1
              150 Shareholder Services                               1
              160 Benefits                                           1
              220 NOC                                                1
              250 Retail Sales                                       1
              130 Corporate Tax                                      1
              110 Accounting                            205          1
              270 Payroll                                            1
               40 Human Resources                       203          1
              170 Manufacturing                                      1
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
              260 Recruiting                                         1
               20 Marketing                             201          1
              120 Treasury                                           1
               80 Sales                                 145          1
              180 Construction                                       1
              190 Contracting                                        1
              240 Government Sales                                   1
    27 rows selected
    Executed in 0.282 seconds
    SQL> --*-response time is 0.282 seconds*
    SQL> ---Show the result information from v$result_cache_objects : is the result cache is valid ?
    SQL> --- The space used also?
    SQL>
    SQL> SELECT ID,
      2         NAME,
      3         TYPE,
      4         STATUS,
      5         BLOCK_COUNT,
      6         ROW_COUNT * ROW_SIZE_AVG AS SPACE_FOR_ROWS,
      7         SPACE_OVERHEAD
      8    FROM V$RESULT_CACHE_OBJECTS V
      9  ;
            ID NAME                                                                             TYPE       STATUS    BLOCK_COUNT SPACE_FOR_ROWS SPACE_OVERHEAD
             0 HR.DEPARTMENTS                                                                   Dependency Published           1              0              0
             1 SELECT /*+ result_cache */                                                       Result     Published           1            675            320
                H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID, COUNT(*)                                                                     
                 FROM HR.DEPARTMENTS H                                                                                                         
                GROUP BY H.DEPAR                                                                                                               
    Executed in 0.141 seconds
    SQL> ---we run again our query
    SQL>
    SQL> SELECT /*+ result_cache */
      2   H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID, COUNT(*)
      3    FROM HR.DEPARTMENTS H
      4   GROUP BY H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID
      5  ;
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
               10 Administration                        200          1
               30 Purchasing                            114          1
               50 Shipping                              121          1
               60 IT                                    103          1
               70 Public Relations                      204          1
              200 Operations                                         1
              210 IT Support                                         1
              230 IT Helpdesk                                        1
               90 Executive                             100          1
              100 Finance                               108          1
              140 Control And Credit                                 1
              150 Shareholder Services                               1
              160 Benefits                                           1
              220 NOC                                                1
              250 Retail Sales                                       1
              130 Corporate Tax                                      1
              110 Accounting                            205          1
              270 Payroll                                            1
               40 Human Resources                       203          1
              170 Manufacturing                                      1
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
              260 Recruiting                                         1
               20 Marketing                             201          1
              120 Treasury                                           1
               80 Sales                                 145          1
              180 Construction                                       1
              190 Contracting                                        1
              240 Government Sales                                   1
    27 rows selected
    *Executed in 0.297 seconds*
    SQL> Why the first is faster than the second?
    thanks a lot,
    Edited by: Ora-Wiss on Apr 3, 2010 2:17 PM

    I have been using 11g from quite some time now in my sessions and already have started sessions over 11gr2 as well and I can't recall that I ever faced this thing. And I just did show the same to you on my personal system as well. But nevermind, here is one more run with the database being restarted and the same code being run.
    SQL> 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
    Elapsed: 00:00:00.00
    SQL> startup force
    ORACLE instance started.
    Total System Global Area  171573248 bytes
    Fixed Size                  1331936 bytes
    Variable Size             125832480 bytes
    Database Buffers           37748736 bytes
    Redo Buffers                6660096 bytes
    Database mounted.
    Database opened.
    SQL> exec dbms_result_cache.Flush;
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.06
    SQL> SELECT /*+ result_cache */   H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID, COUNT(*)  FROM HR.DEPARTMENTS H GROUP BY H.DEP
    ARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID;
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
               10 Administration                        200          1
               30 Purchasing                            114          1
               50 Shipping                              121          1
               60 IT                                    103          1
               70 Public Relations                      204          1
              200 Operations                                         1
              210 IT Support                                         1
              230 IT Helpdesk                                        1
               90 Executive                             100          1
              100 Finance                               108          1
              140 Control And Credit                                 1
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
              150 Shareholder Services                               1
              160 Benefits                                           1
              220 NOC                                                1
              250 Retail Sales                                       1
              130 Corporate Tax                                      1
              110 Accounting                            205          1
              270 Payroll                                            1
               40 Human Resources                       203          1
              170 Manufacturing                                      1
              260 Recruiting                                         1
               20 Marketing                             201          1
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
              120 Treasury                                           1
               80 Sales                                 145          1
              180 Construction                                       1
              190 Contracting                                        1
              240 Government Sales                                   1
    27 rows selected.
    Elapsed: 00:00:00.15
    SQL> SELECT /*+ result_cache */   H.DEPARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID, COUNT(*)  FROM HR.DEPARTMENTS H GROUP BY H.DEP
    ARTMENT_ID, H.DEPARTMENT_NAME, H.MANAGER_ID;
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
               10 Administration                        200          1
               30 Purchasing                            114          1
               50 Shipping                              121          1
               60 IT                                    103          1
               70 Public Relations                      204          1
              200 Operations                                         1
              210 IT Support                                         1
              230 IT Helpdesk                                        1
               90 Executive                             100          1
              100 Finance                               108          1
              140 Control And Credit                                 1
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
              150 Shareholder Services                               1
              160 Benefits                                           1
              220 NOC                                                1
              250 Retail Sales                                       1
              130 Corporate Tax                                      1
              110 Accounting                            205          1
              270 Payroll                                            1
               40 Human Resources                       203          1
              170 Manufacturing                                      1
              260 Recruiting                                         1
               20 Marketing                             201          1
    DEPARTMENT_ID DEPARTMENT_NAME                MANAGER_ID   COUNT(*)
              120 Treasury                                           1
               80 Sales                                 145          1
              180 Construction                                       1
              190 Contracting                                        1
              240 Government Sales                                   1
    27 rows selected.
    Elapsed: 00:00:00.01
    SQL>As you can see, I can't reproduce.
    HTH
    Aman....

Maybe you are looking for

  • Can no longer connect via ssh

    I've been trying to learn basic networking and have set up a website to upload files to. I've been using ssh in Terminal to do this. Until today I have had no problem connecting and logging into the hosting site and transferring files. Now, after I e

  • Adding PDF-document in portal

    hi there, we will start with our portal in 2 weeks. (ESS). i have some documentation for users in PDF-files. what is the easiest way to put a link into the portal to display the pdf's via acrobat reader ? where this documents can be stored ? best reg

  • IDoc to ABAP Server Proxy scenario

    HI Experts, Recently our client has upgraded his R/3 system. From this R/3 system, IDocs are posted to SRM system thorugh XI. On receiver side we are implementing ABAP Server Proxies. We have recomended our client with all necessary changes to be don

  • Need Inputs on transferring data thru Webservice

    Hi All, Can we use webservice to transfer huge amount of data (i.e. An XML which has 20,000 rows from a table of 15 columns) from the webserver to the client. Currently am passing this as a String. Is it okay to pass it in this way? or is there any o

  • Firefox 14.0.1 OSX, New site opens new window.

    Everytime a new site is loaded it opens a new Firefox. I've removed Tab Plus and all the other plug-in but it still does it. I've also rebooted.