Using the Client result Cache

Hi all

I have a question about the use of the result of the client cache but first of all, here is the information on 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 installed the Oracle Client Tools on my clientmachine. There a tnsnames.ora like this:

ORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = FEA11-119SRV)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = orcl.local)
    )
  )

The result of the Client 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 this:


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 you set up a client's server, I try the SQL query on the clientmachine followign:

sqlplus oracle/password@orcl

set autotrace traceonly explain

SELECT /*+ result_cache */ *
FROM testtable;

You cannot enable the customer with SQL result cache * more, no matter what you do with parameters. If you install the CD examples, you will find examples of code in cdemoqc.c and cdemoqc2.c that shows how with the OCI calls.

You probably want to use the result of the server cache, there is a full demo of this here,

Using the SQL Oracle 11g result Cache

--

John Watson

Oracle Certified Master s/n

Tags: Database

Similar Questions

  • Using the ODP client result cache still shows it as running on AWR, is the work of cache?

    Hello

    I use the Oracle 12 manged customer ODP.net connected to a database of GR 11, 2. I recently went on the cache of results with great effectiveness.

    So, I thought I would try the result to the client cache. I have the setting turned on and restarted my db, but my questions always appear in the graphs of Enterprise manager and the AWR report. I would have thought if the query has been cached on the client, that it does not show.

    How will I know if it works or not?

    Thanks in advance.

    Adrian.

    Re-reading the original question, I missed the fact that you use managed ODP.NET. The client result cache does not support managed ODP.NET. Only unmanaged ODP.NET is because it uses the capacity, within the OIC, that uses the unmanaged code.

    I apologize for the misunderstanding.

  • Consider the function result Cache

    Hello

    Have a question about the function result to cache.

    Follow this link: http://www.oracle.com/technetwork/articles/sql/11g-caching-pooling-088320.html

    I use the following version of oracle: Oracle Database 11g Express Edition Release 11.2.0.2.0

    I'm doing using the feature of function result cache.

    Please find the source code used, below:

    create or replace function fnresultcahceg (empid employees.employee_id%type)

    employees.salary%type result_cache relies_on (employees) is back

    l_salary employees.salary%type;

    Start

    Select the wage in l_salary of employees where employee_id = empid;

    DBMS_LOCK. Sleep (1);

    Return l_salary;

    end fnresultcahceg;

    Try to run the function created above with the following:

    SQL > select fnresultcahceg (200) double;

    FNRESULTCAHCEG (200)

    -------------------

    4400

    Elapsed time: 00:00:01.15

    SQL > select fnresultcahceg (201) twice;

    FNRESULTCAHCEG (201)

    -------------------

    13000

    Elapsed time: 00:00:01.01

    SQL > select fnresultcahceg (200) double;

    FNRESULTCAHCEG (200)

    -------------------

    4400

    Elapsed time: 00:00:01.00

    SQL > select fnresultcahceg (201) twice;

    FNRESULTCAHCEG (201)

    -------------------

    13000

    Elapsed time: 00:00:01.01

    SQL > select fnresultcahceg (201) twice;

    FNRESULTCAHCEG (201)

    -------------------

    13000

    Elapsed time: 00:00:01.00

    SQL > exec dbms_output.put_line (fnresultcahceg (200));

    4400

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.04

    SQL > exec dbms_output.put_line (fnresultcahceg (201)).

    13000

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.03

    SQL > exec dbms_output.put_line (fnresultcahceg (201)).

    13000

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.01

    SQL > exec dbms_output.put_line (fnresultcahceg (201)).

    13000

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.00

    SQL > exec dbms_output.put_line (fnresultcahceg (201)).

    13000

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.00

    SQL > exec dbms_output.put_line (fnresultcahceg (201)).

    13000

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.01

    SQL > spool off;

    We could see no improvement in time elapsed execution.

    Have a doubt on the am I missed something / do wrong to the result of the setting of the cache settings.

    Have you tried with the following result cache settings

    ALTER SYSTEM SET result_cache_max_size = 2M RANGE = MΘMOIRE

    ALTER SYSTEM SET result_cache_remote_expiration = 2;

    ALTER SYSTEM SET result_cache_mode = {MANUAL |} STRENGTH} - two similar agronomic results

    The wait was to reduce the execution time after its first execution if the data remains the same.

    Please guide me in this regard.

    Thanks in advance,

    Sandeep.S

    > I use the next version of oracle: Oracle Database 11g Express Edition Release 11.2.0.2.0.

    PL/SQL function result Cache is only available in Oracle Database Enterprise Edition (EE).

    Concerning

  • Error message: your browser must have Java enabled to use the Client for Java when you try to access the Citrix server.

    Original title: java question.

    I'm trying to access the Citrix server to access my work server.  When I click on an application, I get an error message: your browser must have Java enabled to use the Client for Java.  I checked and the right version of Java installed and removed the old Java applications but still this message when trying to access Citrix.  Please meet w / directions for a fix.

    Start by seeing if Java has been installed correctly:

    http://www.Java.com/en/download/testjava.jsp

    or
    http://javatester.org/

  • When I use the Client for NFS provided by Windows 7, I'm unable to connect. The "mount \\ip address\share Z:" command fails with the error code "the path not found network".

    Identification of customer's Windows 7 NFS UID GID information

    I am trying to connect to the Windows 7 Client NFS on a server running on a computer (VxWorks) NFS.  I am able to properly connect Client NFS software by a 3rd party on the NFS server.  However, when I use the Client for NFS provided by Windows 7, I am unable to connect.  The \\ip address\share Z: mount"command fails with the error code"the path not found network ".  I can't do a ping of the computer running the NFS server.

    The NFS Client operating system: Windows 7 Ultimate, 64-bit

    Data captured by Wireshark

    MOUNT V1 EXPORT call 3rd party client
    Identification information Flavor: AUTH_UNIX (1)
    Length: 32
    Stamp: 0xc7065970

    Machine name: PC
    UID: 1000
    GID: 1000

    MOUNT V1 EXPORT appeal of the NFS client
    Identification information Flavor: AUTH_NULL (0)
    Length: 0

    It seems that the credentials of NFS Client are not correct.  How can I change the flavor of AUTH_UNIX and the UID and GID to 1000?

    Hello VDAEMP,

    As Eddie and Sudarshan has said, the Microsoft Answers community focuses on issues and problems related to the consumer environment. Please join the public IT pro TechNet forums below:
    TechNet - Windows Server
     
    Thank you

  • Cannot use the client console discovers vGpu 6.1

    Hi all

    I'm unable to use the client console after deploying machine put in common, I see a black screen.

    Master image work of the console very well and when I connect via the customer direct access overview and breath all work very well.

    I have a virtualized environment based on vsphere esx 6.0, view Server 6.1 and Nvidiia vib file NVIDIA-vgx - VMware_ESXi_6.0_Host_Driver_346.42 - 1OEM.600.0.0.2159203.vib (for cards NVIDIA K1).

    Best regards

    Once the NVIDIA driver is installed and enabled, it disables the display of the console, so this is of design and a sign of properly working config.  Direct connection is the right way to proceed, not RDP as this will bypass our driver.

    -Luke

  • white screen when connecting using the client to view

    Hello

    I have a situation on my hands if I try to connect to my office using the client to view I can connect but when I click to start all I get is a black sceren.  If I can access the external url of my security server, I can connect and my desktop appears.  If anyone has experienced this? any ideas would be greatly appreciated.

    You can connect from a WAN using PCoIP if you use a VPN. If you are

    using the server security, for now, you will need to use RDP.

    Ian

  • Use the client VPN tunnel to cross the LAN-to-LAN tunnel

    I have been troubleshooting an issue and cannot cross an obstacle. The ASA is running ASA running 1,0000 code 24. I am using a client VPN tunnel to connect to the ASA. The ASA has already a LAN-to-LAN tunnel, set up and operating and I need the VPN client to access the remote site over the LAN-to-LAN tunnel.

    The internal IP address of the local part is 192.168.0.0/24 and the IP address of the Remote LAN-to-LAN tunnel is 172.20.1.0/24. The clients are distributed 192.168.200.0/24 IPs. I have attached the relevant configuration for the SAA.

    When the VPN client on the network, I can access resources on the ASA network internal. On the internal network of the SAA, users can access resources through the LAN-to-LAN tunnel. Client VPN cannot access resources on the LAN-to-LAN tunnel. For the latter, there are no hits on the C-TEST access list.

    Thank you for your help.

    try adding...

    permit same-security-traffic intra-interface

    http://www.Cisco.com/en/us/products/ps6120/products_configuration_guide_chapter09186a00806370f2.html#wp1042114

  • Cannot save the schema using the client - crashes ' start record contour.

    All,

    I use version 9.3.1 (yes I know we should be upgraded) and EAS installed on my machine (not web-based version).  For some reason, my computer crashed last week so I had to reinstall EAS.  After I did, I started having the problem of not being able to save a scheme and it gets stuck on the "start record sketch."

    It is not a java problem, that I'm not using the web browser.  In addition, a colleague has the same version of java and isn't in trouble. Also, I got this version of java (1.6) on my machine for months.

    Any ideas.

    Thank you

    Check: Cannot save the schema with Essbase Administration Services and Version Java JRE 1.6 (Doc ID 847487.1)

    It indicates that the client computer does not have the supported JRE versions.

  • Cannot access newly vCenter configuration 5.5 using the client

    Hi all

    I just finish the vCenter configuration successfully, but I can't access through the client with the error message below.

    Error: You are not allowed to connect to the server: VC Hostname

    The accounts I have try are the domain administrator, the service account for the vCenter and my account. All these account have admin on the server vCenter access itself.

    I also add these accounts using the Web Client of Directors-> SSO-> user and groups-> groups-> administrator.

    So far, I'm only able to access the web client using vsphere administrator. Anywhere else I miss?

    Hi Doran,

    When you access Vcentre, if you do not install user accounts, you will need to use [email protected] until you have configured other accounts. The web console is where you need to go to start, the default path is Https: / /: 9443/web-client.

    From what you wrote, you may need to assign specific permission on the server Vcentre itself for these accounts.

    Check out this blog regarding how to set up SSO for the first time.

    http://spoon-Tuxedo.NET/BrettsITBlog/?p=26

  • Error connecting to the server by using the Client VMware vCenter

    When you attempt to connect to vCenter server using vSphere client, I get this message:

    "a general error has occurred: authorize the exception."

    However, if I log on the vCenter server locally and use a local Windows account in vSphere Client to connect to vCenter Server on the same computer - it works OK.

    There is obviously a problem with what happens when you use active directory to authenticate a user who connects with the VMware vCenter server client.

    Someone has seen this before or have any ideas?

    Thank you

    I had a similar problem on two different sites

    1. It was my firewall local windows on my Windows 7 desktop that it has prevented from work
    2. Another situation was DNS was not working properly and once I had a static entry, it worked
  • Pass through authentication using the client view 4

    When you use the view Client we are invited to connect to the agent connection, then guests again on the virtual Windows machine. I was told that it is because of the legal warning that is displayed before the sign-in Windows appears.

    I removed the warning, and now we're good. is anyone else seeing this and if so what work arounds did you?

    Has been added to the Configuration of the administrator view and it worked.

    Thank you

    Ernie

    A training class for view 4.0.1 told us, that this would happen when you configure LegalCaptionNotice and LegalCaptionText in the registry of your Windows Client or via GPO/policy. (I did not try myself, if)

    To work around the problem (if the warning is required), disable these settings and use 'Message before logon' view - which can be defined in the global settings dialog box - instead.

    André

  • How to use the Client Tnsping

    Hello!

    I use Forms 6i on side customers & 10g database on server.

    My application is multi-user. and want to use tnsping command via the client system, but its does not work. If any other way to ping the client side database having only installed runtime forms6i.


    Thank you!



    &
    Kind regards!

    Dear

    You can use tnsping80 except tnsping alongside clint.

    Concerning

    Shahidr

  • How to obtain version 1.1 of the Client-Side Caching command-line Options command-line tool

    I write on behalf of the client.

    The customer s verbatim:

    Message: I need to extract files from a local store on a PC Windows XP offline files.  According to this link: http://support.microsoft.com/kb/884739 I need CSCCMD v 1.1 but you can download v1.0 (in the 2003 Server resource kit).

    How can I get v 1.1?

    Thank you.

    Hello

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the TechNet forums.

    http://social.technet.Microsoft.com/forums/en/winserverfiles/threads

  • GemFire Http Module Session using the Client/Server mode

    Hello

    I have a server of GemFire autonomous 2 and 1 GemFire running separately in the ports index: Locator: 13489, GF-Server1: 13490 and GF - Server2:13491

    and below cache.xml in Server GemFire, which also has the configured session area

    <?xml version="1.0"?>
    <!DOCTYPE cache PUBLIC 
         "-//GemStone Systems, Inc.//GemFire Declarative Caching 7.0//EN"
         "http://www.gemstone.com/dtd/cache7_0.dtd">
    
    <cache lock-lease="120" lock-timeout="60" search-timeout="300" is-server="true" copy-on-read="false">
         <cache-server bind-address="${address}" port="${port}"></cache-server>
         <disk-store name="insuranceOFDS" allow-force-compaction="true" auto-compact="true" 
                        compaction-threshold="40" max-oplog-size="2048" queue-size="1000" time-interval="1000" write-buffer-size="65536">
              <disk-dirs>
                   <disk-dir dir-size="3072">${GF_SERVER_DS_FOLDER}\insurance_ds</disk-dir>
              </disk-dirs>
         </disk-store>
         <disk-store name="httpSessionDS" allow-force-compaction="true" auto-compact="true" 
                        compaction-threshold="40" max-oplog-size="2048" queue-size="1000" time-interval="1000" write-buffer-size="65536">
              <disk-dirs>
                   <disk-dir dir-size="3072">${GF_SERVER_DS_FOLDER}\httpSession_ds</disk-dir>
              </disk-dirs>
         </disk-store>
         <region-attributes id="defaultRegionAttr" refid="PARTITION_REDUNDANT_OVERFLOW" data-policy="partition" statistics-enabled="true" multicast-enabled="false" disk-store-name="insuranceOFDS" disk-synchronous="false">
              <entry-time-to-live>
                   <expiration-attributes timeout="900" action="destroy"/>
              </entry-time-to-live>
              <partition-attributes redundant-copies="1" recovery-delay="10000" startup-recovery-delay="5000" total-num-buckets="113"></partition-attributes>
              <subscription-attributes interest-policy="cache-content"/>
              <eviction-attributes>
                   <lru-memory-size maximum="100" action="overflow-to-disk"/>
              </eviction-attributes>
         </region-attributes>
    
          <region-attributes id="sessionAttr" refid="PARTITION_REDUNDANT_OVERFLOW" data-policy="partition" statistics-enabled="true" 
              multicast-enabled="false" disk-store-name="httpSessionDS" disk-synchronous="false">
              <entry-time-to-live>
                   <expiration-attributes timeout="1800" action="destroy">
                        <custom-expiry>
                             <class-name>com.gemstone.gemfire.modules.util.SessionCustomExpiry</class-name>
                        </custom-expiry>
                   </expiration-attributes>
              </entry-time-to-live>
              <partition-attributes redundant-copies="1" recovery-delay="10000" startup-recovery-delay="5000" total-num-buckets="113"></partition-attributes>
              <subscription-attributes interest-policy="cache-content"/>
              <eviction-attributes>
                   <lru-memory-size maximum="100" action="overflow-to-disk"/>
              </eviction-attributes>
         </region-attributes>
    
         <!-- Customer region -->
         <region name="customers" refid="defaultRegionAttr"/>
         
            <!-- Policy region  -->
         <region name="policies" refid="defaultRegionAttr"/>
         
            <!-- Claims region  -->
         <region name="claims" refid="defaultRegionAttr"/>
         
            <!-- Payment region  -->
         <region name="payments" refid="defaultRegionAttr"/>
         
            <!-- http session object distributed region -->
         <region name="gemfire_modules_sessions" refid="sessionAttr"/>
         <resource-manager critical-heap-percentage="90" eviction-heap-percentage="80"/>
    </cache>     
    
     
    
    

    and I created an instance of tcServer with module gemfire-cs:

    tcruntime-instance.bat create Server4 --version 6.0.35.A.RELEASE --layout separate 
    --property base.shutdown.port=-1 --property base.jmx.port=6972 --property bio.http.port=8087 --property bio.https.port=8446 
    --template base --template gemfire-cs --interactive
    
    Catalina.properties, I have disabled local cache
    ------------------------------------------------
    gemfire-cs.enable.debug.listener=false
    gemfire-cs.enable.gateway.replication=false
    gemfire-cs.enable.local.cache=false
    gemfire-cs.region.attributes.id=sessionAttr
    gemfire-cs.region.name=gemfire_modules_sessions
    gemfire-cs.cache.configuration.file=cache-client.xml
    gemfire-cs.critical.heap.percentage=0.0
    gemfire-cs.eviction.heap.percentage=80.0
    gemfire-cs.log.file=gemfire_modules.log
    gemfire-cs.statistic.archive.file=gemfire_modules.gfs
    gemfire-cs.statistic.sampling.enabled=false
    

    and in CONF\client - cache.xml inside CATALINA_BASE, I have below the syntax pointing to standalone locator

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE client-cache PUBLIC
    "-//GemStone Systems, Inc.//GemFire Declarative Caching 7.0//EN"
    "http://www.gemstone.com/dtd/cache7_0.dtd">
    <client-cache>
         <pool name="sessions" subscription-enabled="true">
              <locator host="localhost" port="13489"/>
         </pool>
    </client-cache>
    

    I started locator both gemfire server and when I run tcServer, tcServer throws an error that "'gemfire_modules_sessions ' region cannot be found. "

    I believed that tcServer will connect to standalone GemFire locator and search for the session to the server area. I understand OK if not, can someone explain how gemfire-cs module, code examples if we can post will also be useful for everyone.


    Hi Mathieu,

    Glad you got things sorted. Here are some answers to your questions:

    1 were the same for the ClientCacheFactoryBean and the pool defined in client - cache.xml the names of your pool?

    2 - if all your host names are resolvable on all systems in your cluster so you should not use IP addresses.

    4 - this property snuck in the config that I sent you. It is no longer valid to go to 7.0.0.2. Previously, we have defined a valve optional commit in context.xml. This valve valid changes of the session at the end of the request/response http instead immediately when each session attribute is changed. It is allowed to improve performance. Since version 7.0.0.2 definition of the valve is removed from context.xml is configured programmatically and is enabled using this property.

    -Jens

Maybe you are looking for

  • Cannot transfer a file PDF of MacBook for iPad

    I have a MacBook Pro 13 inch 2012 running on OS X El Capitan, version 10.11.6. I also have an iPad 2014 Air running on iOS, version 9.3.4. I'm trying to transfer a file PDF of the MacBook to the iPad. However, when I try to use iTunes to synchronize

  • Video is not working and cannot share the screen

    Hello, I have a little problem... What happens is that, in my group, I can not share my screen or use my webcam because the video button is gray and "Screen sharing" is not there. He said I can't have more than 10 people in the call, but I have only

  • Satellite A100 - how to install "Windows XP MCE" on a new HARD drive?

    I have a laptop Satellite A100-495. the cd/dvd does not work and I have a new hard drive. Now, I want to install the original os (windows xp professional, mce).I'm trying to put the files of my original restore on a USB cd but never works and I did n

  • G505s slow down the speed of the CPU load while.

    It's terrible using CPUz, I see that, while the laptop is in charge, the clock speed down to 900 mhz and fluctautes between this and 1400 mhz, it's shocking, I can hardly Watch youtube videos or even post this thread, the LAG and slow is unbearable.

  • toolbar of Babylon which results in errors

    How can I remove this without mistakes, I don't know what to do