Force direct read instead of memory

hi,
is it possible via a hint or something to force oracle not to put a sql's blocks to buffer cache and read from directly from disk every time ? it is for a test issue.
thanks all

elcaro wrote:
thanks a lot Alexander, perfect answer for me.Good.
Keep in mind that only full scans (table, index, matview) can work in direct-path read.
Also if you test queries which will work in usual (cached) mode you maybe just need to flush buffer cache before you tests, instead of direct reads
alter system flush buffer_cache;obviously for test environments only

Similar Messages

  • Direct Path Reads instead of Sequential Reads for index range scan

    Database is 11.2. I have two development schemas, with the same table loaded in each schema - a 5 million row table. The execution path for the sql statement is the same against both tables; it's doing an index range scan.
    But it would appear Oracle performs a direct path read against one schema, and performs sequential reads against the other schema. I don't understand why I'm seeing different behavior when the execution plan is the same. Any ideas? These are two different schemas in the same database.

    There is not enough information.So you even these tables located same database and you gathered statistics it is not mean both run time wait event statistics must be same.Really they are different tables.If both query use INDEX RANGE SCAN the it is not mean these plans are same.What about table and their index statistics? are they same? for example num_row or num_blocks of both tables are same? also about indexes.In additionally if you want to get exact reason you can enable sql trace(using dbms_monitor or setting sql_trace parameter to true according session) and need analyze result trace file using tkprof utility.In additionally in 11g here when query execution time oracle automatically choose direct read path(serial) based on size of tables and size of buffer cache(also here is available some hidden parameter to controlling this behavior).

  • Hint or parameter to force physical read

    I am using  Oracle 11.2.0.3. I have a query which took 45 minute the first time and it take 4 minutes in subsequent run  in QC environment. In both the cases it uses same plan. If I try the query again in few days , first time it takes considerable amount of time.Most of the wait is in range index scan - 'db file parallel read'
    Same query runs within 2 minutes in lower environment with different plan. I have used  hint to make the plan same in QC environment. Now query runs as expected but I suspect it might slow down if the data is not cached. I do not have access to  alter system flush buffer cache privilege.
    Is there any  hint or parameter I can use force physical read?
    Which view will tell me if a table is still cached in memory?

    spur230 wrote:
    <snip>
    Which view will tell me if a table is still cached in memory?
    v$bh will tell you what blocks of an object are cached:
    orcla> select file#,block#,status from v$bh where objd=(select data_object_id
      2  from dba_objects where owner='SCOTT' and objecT_name='DEPT');
    no rows selected
    orcla> select * from scott.dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    orcla> select file#,block#,status from v$bh where objd=(select data_object_id
      2  from dba_objects where owner='SCOTT' and objecT_name='DEPT');
         FILE#     BLOCK# STATUS
             4        131 xcur
             4        134 xcur
             4        132 xcur
             4        135 xcur
             4        130 xcur
             4        133 xcur
    6 rows selected.
    orcla>
    but you do need to be aware of the status. There may be several versions of a block cached.

  • Read/Write PCI Memory

    Hi All,
    This question may be outside the scope of Java and this forum (appologies if so). However, I'm trying to read/write some PCI memory locations in either Linux or Windows. I'd like to access these locations via Java. Is there any direct method to do this? Is there an API to access more low level hardware? Currently, I can read/write the memory locations with a program called PciTree. So, I know my PCI device is working, and the basic driver for the PCI device is installed.
    If this is not possible in Java, I can try C and study the device driver's functionality.

    You could write something in C/C++ and then expose methods to Java via JNI. But Java doesn't have built-in support for accessing memory at that level. A third party library may be availble though. Good luck.

  • How to implement Force-Directed Edge Bundling for node-link graphs?

    has any one done the force-directed edge bundling technique (Danny Holten, 2009) in LabVIEW?

    See also here for a more recent discussion of the same thing.
    LabVIEW Champion . Do more with less code and in less time .

  • Force Spotify to use internal memory.

    Hi there, community! Was wondering, if there is a way to force Spotify save songs to my internal storage, not the external (that was chosen by default, because it has more space)?I tried clearing the cache, restarting phone and removing my SD card, downloaded songs to my internal storage, it works. Once I put my SD card back in, it shows that there are no songs downloaded even though my internal memory is full with songs?  Is there a way to force Spotify read music from my internal memory, not external? Would be glad to find out! With Love,Kukijs

    Hey ! Welcome to the community!
    You've already taken the logical steps which is awesome!
    At the moment Spotify will save songs to the SD card rather than Internal Storage automatically. I am suprised it doesn't show up when downloaded to internal already though.
    I recommend posting an idea for Storage Location Selection for Spotify on Android HERE
    Have a great day!

  • How can I make my mac book pro read a SDHC memory card

    Can someone tell me how to make my mac book pro read an SDHC memory card?

    http://support.apple.com/kb/HT3553

  • Recently no matter what I do, Firefox will not allow me to use Adobe Reader instead of it's own

    I used to be able to display pdf documents using Adobe Reader instead of Firefox's built in. I have tried everything that you suggest and that Adobe suggest. I have uninstalled and reinstalled Firefox. I have uninstalled and reinstalled Adobe Reader (11.0.09). I have gone to the options in Mozilla but when I try to change the Portable Document settings, I don't get the option for "Use Adobe Acrobat (in Firefox)". I do get the for Adobe Forms, but not for PDF documents. If I change it to use Adobe Reader, it downloads and then opens reader which is not I want. I want to use the plugin which is installed (I go to Add-ons and it is installed and "always activate").
    Help? This only started happening in the last month or so. I am running latest released Firefox (33.0.2), Windows 7 (up to date with all updates, etc.).

    That doesn't solve the problem. I have all those defaults. But in Firefox, it won't let me select for "Portable Document Format" to "Use Adobe Acrobat (in Firefox)" which it used to let me and which is what the Mozilla Firefox help stuff says to do. I can select Adobe Reader but then it downloads it and opens it in a separate reader window rather than using the plugin. If I select to let Firefox "Preview in Firefox", then the Firefox built-in PDF reader will display it. I have added an add-on "pdfViewerSwitcher" which then lets me display in the Adobe Reader plug-in but only after first displaying it in the Firefox preview. So that verifies that the Adobe Reader plug-in works. But I can't set it to always use the Adobe Reader plug-in.
    I have some reasons for wanting to use the Adobe Reader plug-in. I use Nuance Power PDF Pro for editing and doing other things with pdfs.
    This all used to work and stopped working at some point in the last couple months. And if you search the web, you will find I am not the only one with this complaint.
    I don't know whether it is Adobe's fault or Mozilla's fault but at least one of them is broken. And I think it is Firefox since it won't even let me select it but does let me select it for Adobe Forms.

  • Is it possible to open a book in Adobe Reader instead of Adobe Digital Editions?

    Is it possible to open a book in Adobe Reader instead of Adobe Digital Editions?

    Thanks a lot , I'am a complete newbie in this , I started by downloading the sdk, I unzipped it ,thought I'd try a sample named Basic Plugin, opened the solution file from the samples folder,, I built the solution,build succeeded but I'am not able to find the api file to copy it to the adobe acrobat plugin folder.Is this the right way to do this?

  • How to get pdfs to open in acrobat reader instead of quicktime

    Pdfs automatically open in quick time. How do I get them to open in Acrobat reader instead. I need step by step instructions.. Please help.

    Check here...
    System Perferences->QuickTime->Advanced - click MIME Settings and expand Images - Still images files - then uncheck PDF Images (if it is checked).
    or just click Use Defaults.
    I hope it helps.
    Tom

  • Cannot export my D800 images out of lightroom, message reads not enough memory. Anyone any ideas how

    cannot export my D800 images out of lightroom, message reads not enough memory. Anyone any ideas how to fix this?

    Is it Win7 32-Bit (that's where I've seen it happen). I would report it as a bug at the official Adobe site:
    http://feedback.photoshop.com/photoshop_family
    Beat

  • How do I force the reader to open to full screen?

    Is there a setting that forces the reader to open to a full screen when I open a doc from within a web site? It goes to the task bar first then having to click on it to see it full screen.
    Thanks,
    Mark

    If you close Firefox while in full screen mode then Firefox should start the next time in full screen mode as well.
    If that doesn't happen the see:
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Can I use APEX directly read/sync with the Oracle Tables ?

    We have a Oracle Database to manage the design data.I am trying to setup a web-based front end using APEX to manage & monitor the parts ordering & logisitics.I want to drive the master data directly from the database without any export or data transfer ? Can I directly read or Link an Oracle tables from APEX application.
    Also,once this is setup,I am looking for setting up some data entry fields to enter Purchasing & Logistics information.Hope I can achieve this using APEX !
    Look forward for the appropriate response.
    Thanks,
    Sham

    Tony,
    Thanks & Appreciate your Quick response.
    Glad that I can use the existing Oracle db schema with APEX.I am not sure if there is any information as how I can connect or link my production schema to the APEX ! I was able to import .csv files & use XL data to create some test databases & play with APEX..but,I did try to go thru most of the instructions & guides to find how to use the production oracle tables,but,could not find anything particular...Please send me a link or material info.
    I suppose I can then use which ever attribute or table data that is required to build the queries ! I am planning to use the production data to build the ordering & logistics application using APEX.Assume I can create new fields & columns for parts that will be ordered & capture/record the purchasing information like Purchase order numbers/Supplier Info/Target Delivery dates etc...
    - Am on very tight schedules to get this application up & running ! Is there any support team or a technical support team that I can call upon if I need any help ?
    Thanks,
    Sham

  • Fm to read from SAP memory

    Hi,
    I need a fm whic will read the sub-equipments currnetly dismanteled for a superior equipment.
    I am using tcode ieo2 and enhancement IEQM0003
    Plz help

    Hi
    you can use export and import parameter i.d to read from sap memory
    Regards
    Divya

  • VI to read CPU and Memory usage on XP machines

    Need a VI to read CPU and Memory usage on an XP machine.

    it works perfectly on my LV8.0 and W2K... it should work on XP too... happy coding...
    Message Edited by JQ on 01-12-2007 11:14 AM
    Best Regards,
    JQ
    LV 8.0 user...
    Attachments:
    cpu_usage.vi ‏18 KB

Maybe you are looking for