Disabling oracle cache

Hi,
I am a graduate student in Computer Science and need to do some experiments for my thesis. I am not very familiar with oracle. I am using oracle and have implemented a cache to store some of the frequently used data items in my application.
I am connecting to oracle using the ODBC driver 9.0.2, the one that comes with oracle 9i client installation.
To measure the performance of the cache, I need to disable any other cache implemented by the oracle client or the server. Is there any way by which I can do that? I know oracle does do some of its own caching.
Is there any way in which I can disable the oracle cache? Please refer me to the appropriate documentation.
Something that I can give in my query. I am not the DBA. It is ok even if there is a directive in the query to tell oracle to bypass the cache. That will also work for me.
Thanks,
Nishant
Thanks,
Nishant

You can flush the shared pool
ALTER SYSTEM FLUSH SHARED_POOLwhich will flush the buffer cache. This will clear the cache on the server. I don't believe it is possible to tell Oracle not to cache buffers it reads from disk, though.
What sort of client-side caches are you thinking of? The client will automatically fetch rows you may not have requested yet (i.e. fetch the first 10 rows from SELECT * FROM <<someLargeTable>> when the application requests the first row). That is covered by the prefetch count in the ODBC DSN. Not sure what a value of 0 means, though-- that may specify that the default value be used.
What about things like the operating system cache (assuming you're not using raw devices) or the hardware disk cache. I don't think you can disable those.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Disable RAC Cache Fusion in 10r2

    Hi all,
    is it possible to disable the Oracle Cache Fusion in Oracle Database 10.2.0.4 Database ?
    Regards,

    I think it is nonsense to think about disabling cache fusion. and it is almost not possible. On the other hand, how can RAC work without this feature ? How can you imagine the work of your RAC system without global synchronization between nodes ???
    Regarding to singleton concept which is mentioned by guys, it means that the idea here is concentrating the database service which your application uses on one node, so mostly your application will be served by this node, which means the roundtrip between instances will be low. You can think about this state just like you are working with single instance database, as here cache synchronization overhead is almost eliminated. Basically RAC itself also does remastering of resources, based on workload dynamically, but remember that if your database service is served by several instances, your connections could be directed to both of them and in inpredictable fashion, based on load balansing goal to be exact.
    Besides all of this, there are several wait event classes spesific for RAC and corresponding views for them. you can explore them and find the idea about which wait classes are bottleneck.

  • Oracle cache and File System cache

    on the checkpoint, oracle cache will be written to disk. But, If an oracle database is over file system datafile, it likely that the data are still leave in FileSystem cache. I don't know how could oracle keep data consistency.

    Thanks for your feedback. I am almost clear about this issue now, except one point need to be confirmed: do you mean that on linux or unix, if required, we can set "direct to disk" from OS level, but for windows, it's default "direct to disk", we do not need to set it manually.
    And I have a further question: If a database is stored on a SAN disk, say, a volume from disk array, the disk array could take snapshot for a disk on block level, we need to implement online backup of database. The steps are: alter tablespace begin backup, alter system suspend, take a snapshot of the volume which store all database files, including datafiles, redo logs, archived redo logs, controll file, service parameter file, network parameter files, password file. Do you think this backup is integrity or not. please note, we do not flush the fs cache before all these steps. Let's assume the SAN cache could be flushed automatically. Can I think it's integrity because the redo writes are synchronous.

  • Disable IP caching

    I'm attempting to disable IP caching for my Web Start application. I would like to do this automatically so the end user does not need to manually modify a properties file.
    In the application, I have the line:
    java.security.Security.setProperty("networkaddress.cache.ttl" , "0");When I run this as a standalone application, it works fine. But if I include this in a jar and launch as a Web Start application, it no longer works. The property is set as expected, but the initial IP address is still cached.
    I have attempted to set this property in other ways too, such as:
    - Setting the property in the jnlp file. For example:
        <resources>
            <j2se version="1.4+" href="http://java.sun.com/products/autodl/j2se"/>
            <jar href="DnsTest.jar"/>
            <property name="networkaddress.cache.ttl" value="0"/>
        </resources>- Setting the analogous Sun-specific property (sun.net.inetaddr.ttl) in the jnlp file
    - Prepending "java.security." to the names of these properties
    - Setting the property in the code using System.setProperty()
    - Setting the property as a jvm argument in the jnlp. For example:
    <j2se version="1.4+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Dnetworkaddress.cache.ttl=0"/>- Setting this property on the javaws command-line
    - Using the command-line:
    "javaws -userConfig deployment.javaws.secure.properties networkaddress.cache.ttl"
    with networkaddress.cache.ttl specified in the jnlp
    Please let me know if you have any recommendations.
    Thank you.

    I tried that and it seems like my arguments that I put into my JNLP file are not being passed to the JVM. I tried a few things, none of which seem to show up in the pop up box that is displayed. I tried:
      <j2se version="1.5.0+" href="http://java.sun.com/products/auto\
    dl/j2se" java-vm-args="-Xms77m -Xmx256m -Dsun.net.inetaddr.ttl=10 -Dnetworkaddress.cache.ttl=10 "/>and also
    <property name="sun.net.inetaddr.ttl" value="10"/>
    <property name="networkaddress.cache.ttl" value="10"/>I know you only need to set one of these, but I was just trying both just in case.
    Neither of these show up in the arguments to the JVM.
    I found one way to make this work, but it is quite ugly. If I define the JAVAWS_VM_ARGS environment variable on my local machine to have the timeout, then everything works as expected. However, this is not a very attractive option. I can't tell all the users to manually add this environment variable.
    There has to be a better way. Does anyone have any ideas?

  • Disabling Mirrored cache AND/OR Redundant Controller in STK 2540

    Hi,
    We have a dual controller STK 2540. Wanted to know if there is a way to disable cache mirroring (also called cache synchronization)? This is to test the impact of 1/3 loss of performance when cache is mirrored to protect cached data in the event of controller failure in a dual-active controller configuration.
    I searched thorugh entire CAM and could not find an option.
    Also would like to know how to confirm whether the controller is in redundant mode or Active-Passive mode. CAM does not show this as well.
    Is CLI the only option to view/modify the above mentioned configuration? If so, please let me know what command should we use to view and modify the same.
    Thanks.

    RW_DB_Arch wrote:
    Thanks nwi.
    I have seen the 'Active' status for both controllers from the CAM interface as well from the sscs output. That is fine, but I think I did not put across my question very correctly.
    According to my understanding, if the cache is mirrored/synchronized then it will impose an approx. 33% of performance degradation. And I want to do away with that. So,
    I want to view the redundancy mode of controllers i.e. whether they are running in non-redundant mode or redundant mode. In either mode, both will be active.
    I also want to view the mirroring mode of the cache i.e. whether the cache is mirrored or not mirrored. In either mode, full 1Gb cache will be used.
    The controller will always be in redundant mode, you cannot change this. They will be active/active, if any controller is passive this means that it doesn't service I/O and the volumes won't failover in case there is a problem with the active one.
    You can however disable the cache mirroring between both controllers, that said, this is something we really do not recommend to do. Imagine you disable the mirroring, now one controller reboots (because this is something that may happen as per design to protect the data in specific situations), you will lose the data in the cache for this controller, this is the data which is not flushed to the drives.
    And then I want to achieve the foll. configuration:
    2 controllers, both active, but in non-redundant mode.You cannot do that. With the ST2500 like the ST6000 the controller are redundant each other.
    Which also means that cache mirroring/synchronization is off. So something like this: 2 volumes - vol1 has Controller A as the owning/preferred controller and vol2 has Controller B as the
    owning/preferred controller. Since controller redundancy is off, I believe, if 1 of the controller fails then the volume cannot be accessed via the surviving controller (i.e. no failover to the surviving
    controller) and I am fine with it. But I will get better performance because of the non-mirroring mode of cache.Such non redundant configuration isn't supported with those arrays.
    Regards
    >
    Pls. advice.
    Thanks.

  • Disable object cache ?

    Is it possible to disable object cache globally i.e. any deref results in update from db ?
    Message was edited by:
    tiaanw

    Not currently. We may have this feature in future.

  • Disabling InfoPath Caching

    I've been asked to disable InfoPath caching via Group Policy. Is there a way to do this or a reason to not do this? I believe some users encountered an issue with a form and this is a heavy handed approach to prevent it from happening again. I'm not a
    big InfoPath guy, so I'm curious if there's a way to do it and if it's advisable.

    Hi,
    According to your post, my understanding is that you wanted to clear the cache in
    Citrix.
    As the article of Citrix said, you can clear the cache as below.
    On the computer where you want to clear the cache, type the following at a command prompt:
    radecache [-i] [-if] [-ir] [-u] [-uf] [–ur]
    [/flush:GUID]
    radecache [/flushall]
    radecache [/?]
    where GUID is the unique GUID for the application streamed to user devices.
    GUIDs must not include spaces.
    As this issue is related to the Citrix, I recommend you can post your question to the forum for
    Citrix:
    http://discussions.citrix.com/
    More experts will assist you, then you will get more information relation to
    Citrix.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to disable Jar cache on Application Server

    Hello,
    I am now developing a Webdynpro Project in the following enviroment:
    Windows 2003 Server 64Bit SP2
    JDK 5.0 Update 12
    Windows x64 Platform
    info at sun Installation Notes , Supported System Configurations
    C:\Program Files\Java\jdk1.5.0_12
    NetWeaver Composition Environment 7.1 (Application Server Java)
    Since I need always change my code wiin a jar file and upload it as a library.
    The default behavior of Application Server is to support java cache locally in JVM. That brings me many problems  (Like can't find new implemented class by dynamical class loader,  ref. http://www.szegedi.org/articles/remotejars.html )
    It there any way to disable JAVA cache on the Application Server?
    Besides, someone told spawning a new JVM for loading the jar may also work. Does our AS support spawning JVM explicitly?
    Message was edited by:
            Zenghuan Shan

    I also want to know if it is possible to disable the cache on server. In my situation, we are deploying the par file (portlet archive) to development server. Could anybody please help?

  • Reason for disabling browswer caching in Portal

    Can someone tell me the technical reason for disabling browswer caching in Portal.
    This is a big problem for our client who have central rollout of software and the corporate decision is to allow automatic browswer caching in IE 5.0.1.
    Why does the Portal framework not generate the cache-control header directive to prevent the browser from using its caching facility? See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1 for more info on this.
    Cheers,
    John

    Can someone tell me the technical reason for disabling browswer caching in Portal.
    This is a big problem for our client who have central rollout of software and the corporate decision is to allow automatic browswer caching in IE 5.0.1.
    Why does the Portal framework not generate the cache-control header directive to prevent the browser from using its caching facility? See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1 for more info on this.
    Cheers,
    John

  • Disable "Oracle Essbase" option in Smartview

    Hi,
    We are in Planning 11.1.2 application. When users logs-in Smartview, they see two options - "Oracle Hyperion Planning, Fusion Edition" and "Oracle Essbase".... Is there a way to disable "Oracle Essbase" in Smartview?
    Thanks,
    Siva

    As the question is about 11.1.2.x and Smart View then there is a way to disable essbase from the Shared Connection.
    Log into workspace > Navigate > Administer > Workspace Server settings
    Select enabled products, untick provider services.
    Log into a Shared Connection in Smart View and essbase should no longer be there.
    This is all or nothing so cannot be applied at user level.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Firefox 3.6 freezing / hanging most of the time. All add-ons disabled. Cache and cookies cleared. Help!

    Firefox 3.6 freezing / hanging most of the time. All add-ons disabled. Cache and cookies cleared. Help!
    Examples: Freezes for about 20 seconds every launch. Freezes quiting. Freezes switching tabs. Freezes clicking links.

    Note that such issues can be caused by security software that blocks Firefox and possibly isn't initialized when you get (got) this issue.
    So if it happens again then try to remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full, unrestricted, access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls
    *https://support.mozilla.org/kb/fix-problems-connecting-websites-after-updating

  • Caching at client end using Oracle Cache Implementation

    I would like to know if we could use Oracle' Cache Implementation at the client end [Application server]- if so how do I go abt it & from performance point of view is this better .... Pls get back at the earliest

    Dear All,
    I got this link while googling -
    http://www.ibm.com/developerworks/webservices/library/ws-cach1/
    ................ caching concept is clear now............ but still
    implementation part is not cleared.....
    How, What and Where i need to do changes for this............
    I am using JDK 1.5 and Axis 1.4........
    Regards,
    Santosh Sharma

  • Disable session cache

    Hi,
    How to disable session cache for particular reports
    thanks

    Hi,
    I would like to know, what you are referring to as 'Session Cache' here. I think you are referring to the presentation server cache, which can be managed by tags in the instanceconfig.xml or you could by-pass in completely during analysis creation with the 'By Pass Presentation Services Cache' setting.
    Instanceconfig.xml tags are as follows:
    <ServerInstance>
    <Cache>
    <Query>
    <MaxEntries>100</MaxEntries>
    <MaxExpireMinutes>60</MaxExpireMinutes>
    <MinExpireMinutes>10</MinExpireMinutes>
    <MinUserExpireMinutes>10</MinUserExpireMinutes>
    </Query>
    </Cache>
    <ServerInstance>
    Let me know, if I got you wrong here.
    Hope this helps.
    Thank you,
    Dhar

  • Oracle cache is still there after I restart the Oracle server - can it be?

    Hello,
    My name is Tal and I work for a software company called Mercury.
    We have a strange case in Oracle 9.2.0.6 (running on Solaris 2.9) and I wonder if one of you can help.
    I am running query, this query is doing something like “select * from x where y between z and w”.
    x, y, z and w are parameters which cause the query to be one that scans a lot of data.
    I run the query twice and the first time takes 60 seconds, but the second time takes only 3 seconds.
    I assumed that this is caused by the database cache (block buffers).
    BUT,
    Then I bounced the database (shutdown immediate + startup) and rerun the query.
    It comes back after 3 seconds again!!!
    Can some share some info on this; it looks like Oracle cache is still there after I restart the Oracle server.
         Tal Olier ([email protected]).

    Regarding the buffer cache, it is definitly flushed after database restart.
    There can be many factors causing your case:
    1. The first time you ran the query, some other process was consuming the server resources.
    2. Some other users were running heavy queries.
    3. Sudden Heavy network activities.
    Q: Did the query, in any time, run in 60 seconds again?
    If yes, then further factors should be considered.

  • How to disable memory cache for SL410?

    Hi,
    My lenovo thinkpad SL410 has Windows 7 prof edition as its OS.  But in the last few months it frequently crashes.  Many times when I use Chrome browser status would indicate AppCache, and that's an evil OMEN for its usually the prelude of crash.  Other browser may or may not have such issue, however, Chrome is really my preferred web browser.
    Some research seems to suggest disabling memory cache via BIO setup would resolve it.  And here's my lenovo's BIO info:
    Version: 1.23
    Date: 2009-10-19
    but it does not have any info as to who's its maker or the like.  And I don't see any option in the BIO setup that would allow me to disable cache.  So, two questions, 
    a) Is it possible to disable memory cache for SL410?
    b) if so how?
    Thanks.

    Hi mujno,
    As I know currently there is no programmatically way to clean cache for WebView, see Matt's blog:How to clear the WebView cache
    However if you are developing an enterprise app, you should be able to invoke some scripts to clean for you, see this for more information:Brokered
    Windows Runtime Components for side-loaded Windows Store apps
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Upgrade from 11.2.0.1 to 11.2.0.3

    We are currently running in production Oracle DBMS 11.2.0.1 on RHEL5.6. We have been looking at the CPUs (Critical Patch Update) for 11.2.0.1... but all we can find are CPUs for 11.2.0.2 or 3. This begs a few questions... 1) are there CPUs for 11.2.0

  • Pixelated pictures in Photos v.1.0 in OS 10.10.3

    After upgrading from 10.10.2 to  Mac OS 10.10.3, on my wife's iMac, and thereby gaining Photos v.1.0, I find that a small, but significant, number of pictures are pixellated.  If I click "Edit"on an individual picture and then "Done" the pixellation

  • Regrding Thai Language

    Hi experts, I'm not getting solution for this need to disply the Tities for the PopUp screen, window screen, subscreens,... In Thai Language in Thai Login, But It was not displaying any thing including all the SAP standard screens. In debugging mode

  • IMic USB Audio System will not play in Logic Pro X, help?

    Hi guys.. I'm still pretty new to Logic. I'm currently trying to connect a guitar for recording using a 1/4" cable connected to an iMic USB Audio system. When I plug it in Logic recognizes it immediately, however it will not record. When I play it no

  • Setting playheadTime in VideoDisplay

    I encountered a weird behaviour of the playheadTime setter in the VideoDisplay component. It seems like I'm getting the right value from it, but when I'm trying to set it - the playhead jumps to an unexpected point in the video. In the code below I'm