How to remove blocks from buffer cache for a specific object

hi everybody,
is it possible to remove blocks which belogns to a specific object (a table for ex) from buffer cache.
as you know, there is
alter system flush buffer_cache;command but it does it's job for all buffer cache. if you ask me why i want this, for tuning reasons. I want to test some plsql codes when they run as if they are running for the first time (reading from disk).
ps: I use oracle 11g r2

Hi mustafa,
Your performance will not degrade if you run the query second time ( if i understood correctly, you worry about the performance if you execute the procedure second time). Executing/running the code/sql statements over and over again will have following two good benefits.
1) This will avoid hard parsing (Hard parsing is resource intensive operation and this generally increase the overall processing time.
2) This will avoid physical read IO (You gonna see the benefits if data blocks already cached and you dont have to spend time in reading blocks from disk. Reading from disk is much costlier and time consuming operation as compared to data in RAM)
Having that said sometime bad written queries will acquire more blocks then required and consume most part of buffer cache, and this can some times effect the other important blocks and force to flush out from buffer cache.
Oracle have built some intelligence for large full table scan operations for e.g will doing full table scan(I hope you already know what is fts) oracle will put its blocks at end of LRU chain. So these will be the buffers will would flush out first then any other.
From oracle documentation:
"When the user process is performing a full table scan, it reads the blocks of the table into buffers and puts them on the LRU end (instead of the MRU end) of the LRU list. This is because a fully scanned table usually is needed only briefly, so the blocks should be moved out quickly to leave more frequently used blocks in the cache.
You can control this default behavior of blocks involved in table scans on a table-by-table basis. To specify that blocks of the table are to be placed at the MRU end of the list during a full table scan, use the CACHE clause when creating or altering a table or cluster. You can specify this behavior for small lookup tables or large static historical tables to avoid I/O on subsequent accesses of the table."
Regards
Edited by: 909592 on Feb 6, 2012 4:37 PM

Similar Messages

  • How to remove block from trusted web site. I did the obvious by pasting the web address in the allow content area. What are the other ways

    I am a cityville game player on facebook and for some reason today I am unable to send out blasted on the game when if fact this was never a problem. Finally I went to internet explorer and the same problem happen, but internet explorer let me know that the content was blocked. All I had to do was unblock it and that was easy and know I can blast out. However trying to remove the block from fire fox is a issue. I went into to tools and removed every block and it still want work right. Therefore, how to remove block from trusted web site. I did the obvious by pasting the web address in the allow content area under tools options. What are the other ways

    Hello,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is about ASP.NET website programming, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    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.

  • How to remove block from inspection lot

    I would like to know how to remove a block from an inspection lot

    Clifton,
    Execute transaction QA02, input your inspection lot number and enter. In the change Inspection Lot: Origin screen, from Menu bar Inspection Lot-->Functions->Unblock Lot and now save the lot.
    Regards,
    Prasobh

  • How to remove fields from view V_QCMBSEG for table BSEG

    Hi
    By mistake have appended 5 fields in standard table BSEG,  after that i have deleted that appended structure from table, while deleting from different views network got disconnected i lost connection from server.
    So process get terminated and those fields left in view V_QCMBSEG.
    Because of this table partially activated.... is there any way to delete it
    Thanks

    its not activating ...its displaying error
    Field BSEG-ZZCHANNEL is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZPROD is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZPROJ is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZRECODE is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZSTATE1 is still being used as a view field in view V_QCMBSEG

  • How to remove an object from Buffer Cache

    Hi,
    I have a simple question. How can I remove an object from the Buffer Cache in Oracle 10gR2 ?
    I am doing some tuning tasks in a shared development database, so I can't do "alter system flush shared_pool" because it will affect other people who are running their queries. So I want to remove from Buffer Cache only the objects that I know that I am the only reader. I can see the objects that I want to be removed by querying the V$BH view.
    By the way, I did some "alter system flush shared_pool" and my objects were not removed from the Buffer Cache, and they are not in the "Keep".
    Thanks In Advance,
    Christiano

    Further more, you can use CACHE | NOCACHE on table level to indicate how you want Oracle handle the data blocks of said table.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2215507
    CACHE | NOCACHE | CACHE READS
    Use the CACHE clauses to indicate how Oracle Database should store blocks in the buffer cache. If you specify neither CACHE nor NOCACHE, then:
    In a CREATE TABLE statement, NOCACHE is the default
    In an ALTER TABLE statement, the existing value is not changed.
    CACHE For data that is accessed frequently, this clause indicates that the blocks retrieved for this table are placed at the most recently used end of the least recently used (LRU) list in the buffer cache when a full table scan is performed. This attribute is useful for small lookup tables.
    As a parameter in the LOB_storage_clause, CACHE specifies that the database places LOB data values in the buffer cache for faster access.
    Restriction on CACHE You cannot specify CACHE for an index-organized table. However, index-organized tables implicitly provide CACHE behavior.
    NOCACHE For data that is not accessed frequently, this clause indicates that the blocks retrieved for this table are placed at the least recently used end of the LRU list in the buffer cache when a full table scan is performed. NOCACHE is the default for LOB storage.
    As a parameter in the LOB_storage_clause, NOCACHE specifies that the LOB value either is not brought into the buffer cache or is brought into the buffer cache and placed at the least recently used end of the LRU list. The latter is the default behavior.
    Restriction on NOCACHE You cannot specify NOCACHE for an index-organized table.
    CACHE READS CACHE READS applies only to LOB storage. It specifies that LOB values are brought into the buffer cache only during read operations but not during write operations.

  • Hi i got a few free app before and did not download them completely and dont want to do this but they stay in my download list and start automatly when i connect to itunes store and going to crazy me how can i remove them from my account for ever please h

    hi
    i got a few free app before and did not download them completely and dont want to do this
    but they stay in my download list and start automatly when i connect to itunes store and going to crazy me
    how can i remove them from my account for ever
    please help me
    thank you

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

  • Available blocks in buffer cache

    Hi.
    I need to find available blocks in buffer cache. I can not query x$bh as not sysdba user. Anyone that has an idea how to get this information. I tried query the v$bh view but I can not get it right.
    Anyone with a good idea?
    Rgds
    Kjell OVe

    No,
    When you have a 100m buffer cache, it means you can buffer 100m/8k blocks of your database in cache, and you don't need to read them from disk.
    When the cache gets full Oracle will use a modified Least Recently Used algorithm to determine which blocks can be flushed.
    If the block is unmodified (not dirty) it will simply be removed, if it is modified it will be written to disk.
    When you insert a record (you seem to be really obsessed by this)
    - Oracle will look for free space in the current segment.
    When it finds a block and it is not in cache, it will retrieve this in cache.
    - if there is no space, Oracle will allocate a new extent.
    It will retrieve blocks from the new extent in cache. Simply: each block in the cache has a RBA (relative block address). The RBA points to a block on disk.
    - When it can't allocate an extent, Oracle will try to extend the tablespace (actually the datafile)
    If this doesn't succeed Oracle will raise an error, and send the error number and error text to the client program.
    The failing statement will be rolled back automatically.
    Hth
    Sybrand Bakker
    Senior Oracle DBA

  • How to discard blocks from memory ?

    Hi,
    How to discard blocks from memory ?
    Thank you.

    To add to what has already been posted. The full Oracle version should be included on all posts since many features and most bugs are version dependend.
    Oracle will flush dirty blocks from the buffer cache and overlay unchanged blocks as needed to fit new requests to the buffer cache. It also reuses space in the shared pool so the question of which blocks you want to flush from memory and why can be important to getting the most appropriate answer to your questions.
    On a production instance it should be unnecessary to manually flush either the buffer cache or shared pool as a normal part of opertations.
    HTH -- Mark D Powell --

  • When CSS wholly remove connection from internal cache

    Hi,
    I use RPC over TCP between client and server through CSS 11500.
    I have a question about when CSS remove this RPC connection from internal cache/connection table ?
    and does CSS generate and send back RST if same connection come in CSS after removing ?
    I do not change flow-timeout-multiplier parameter, so RPC's timeout value (Inactivity Timeout) is 16 sec.
    I understand CSS marked the connection as idle after 16 sec elapsed in this case.
    And, however CSS does not delete it from internal cache/connection table.
    Does it mean that this idle connection went in a list of resource that can be reused when same connection
    come in ?
    That is, the connection which marked as idle does not need 3 way handshake again to get create connection/flow
    entry because connection information remains on CSS in spite of the state is idle.
    Is it correct ?
    So when idle connection is wholly removed from internal cache/connection table ?
    That is, after how much time CSS wholly remove it from internal cache/connection table ?
    And after CSS wholly remove it, does CSS generate and send back RST when same connection without
    3 way handshake come in CSS ?
    Your information would be greatly appreciated.
    Best Regards,

    Your understand is correct.
    Once a flow is marked idle, it is moved to a list of resources that can be reused.
    While sitting in this list, the flow information can still be used to switch traffic belonging to this session.
    The flow data will move inside the list and then will be deleted to be used for a new connection.
    Depending on the number of connection/sec that you get, the flow data will move quickly or not inside the list. It is impossible to predict when it will be deleted.
    Once deleted, if data comes in for the old session, the CSS has no information about the flow and it should send a RESET back to the source.
    Gilles.

  • HT1386 The first time I synced my iphone with my mac, I didn't realize that all of my photos from iphoto would transfer over to the phone.   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the

    The first time I synced my iphone 4 with my mac, I didn't realize that all of my photos from the iphoto library would transfer over to the phone (more than 3,000).   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the phone.  I tried to uncheck boxes and sync again, but I get a message that there is no room on the iphone.  I've read as many articles as I can find, but still cannot manage this.  Thanks for any help.

    Open itunes, connect iphone, select what you want, sync

  • Does anyone know how to remove images from google

    i had instagram and i didnt upload images of myself but i only used my own image in the display picture and some how it has gone on to the google image search yesterday i deleted my account but when i checked to see if my images do appear in the google images i had some really bad regrets !! i reallywant to know how i can remove pictures off the google image search  even doe this does not kind of relate thank you .

    Does anyone know how to remove vocals from an import from I tunes...a  polyphonic stereo mix ?
    If you are talking about some "Karaoke" method using Logic I'll try to offer one. Before that I must say that most of the Karaoke methods are based on reversing the Phase of one of the stereo channel and bussing or merging the stereo into Mono. The result is: killing all Pan Centered in the mix - like Main Vocal, Bass, Kick, SN ect.
    The artifacts of the Stereo FX of the main vocal will stay in the Karaoke, cause the FX is stereo etc.
    Here is the Logic Setup I can offer to try some Karaoke trick using Logic.
    1. Import a Stereo mix into a Logic Stereo track.
    2. Create another stereo track and duplicate (copy) the Original Mix region to the duplicated track.
    3. Hard Pan L/R both stereo tracks.
    4. Insert an EQ and Gainer plugins into the duplicated track (R).
    5. Set the Output select of the both tracks to a Bus and assign the new Aux Track Switch mode to "Mono".
    6. Open the Gainer plugin and thick the "Phase Invert" Right button.
    7. To keep the "lowend" instruments like the bass and kick, open the EQ plugin and enable the Low Cut filter and try some Hz settings 80-115, or different Q which will sounds better for your Karaoke.
    P.S Click the image below to show its real resolution!
    Regards,
    A.G
    ======================================
    www.audiogrocery.com
    Author of: Logic GUI Deluxe(Free), Vox De Bulgaria s.a.g.e vocal pack for RMX, Logic Snapshot Console, RMX Power CTRL - Logic Environment Midi editor for Stylus etc.
    ======================================

  • How to remove text from .swf animation?

    how to remove text from .swf animation? Can no find this text
    in fla file. Flash 8.

    exactly what 'text' are you referring to? text that you typed
    on the Stage using the 'textTool'? simply select the text with the
    'arrowTool' and hit delete.
    If you are referring to a textField that you want to
    eliminate after a certain amount of time, within your animation
    sequence. first copy the text, create a new layer, paste the text
    in place, then where you want to have the text 'disappear' insert a
    'blank keyframe' at that point in the text layer.
    OR place the textfield within a MC and remove it with code.
    OR if the text is dynamic and you wish to use the position at a
    later time, pass a value of null or and empty string to the field
    at the point you wish. And there are other ways still. :) hope one
    of these works for you.

  • How to remove myself from/leave a team?

    Hi
    I'm using Visual Studio Online in my software development classes. The problem is that the "Accounts list" on my Visual Studio Online portal is crowded with projects from past years. A clean-up is needed.
    I found this solution (https://social.msdn.microsoft.com/Forums/vstudio/en-US/80057697-38d7-4161-8564-13c630943484/vs-tfs-online-how-to-remove-myself-from-a-team-?forum=TFService), but the problem in order to apply it is that I have no more contact with
    a lot of those students + most of their accounts are expired.
    How can I solve this?
    Thanks in advance!
    Evert
    PS: my apologies for any linguistic mistakes... English isn't my mother tongue.

    Hi Evert,
    Based on your description, seems you're the owner of the Visual Studio Online account. If you want to remove your account from the teams that expired, then you can delete the teams directly in team project administrative page of team web access.
    If you only want to remove your account from the teams, then you can click the team and remove your account in administrative page.
    Best regards,
    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.

  • How to remove FaceTime from iPad

    How to remove FaceTime from iPad

    Me too is having problem with facetime,it started when i was watching on my iswifter browser, then someone call on facetime, when i tried to answer it,it was working fine,but after a connection lost,i tried calling my friend again, and suddenly it wasn't working anymore, i call a lot of times but she said there is no call in her ipad,nobody is recieving my call on facetime since then,and also i cant recieve any from them,everytime i place a call,i cant here it ringing, but after maybe 50seconds i can here to sound tot-tot then the facetime will have a display of connection lost call back!  I tried everything possible to fix it,even reset my network connection,change apple id,mute un mute,force stop... Turn on turn off facetime but nothing is change,until this very moment im still looking for answers!! I was looking for answers how do i uninstall it and then install it again mybe it'll work!!

  • How to remove scratches from Ipad 2

    how to remove scrtaches from Ipad 2

    Front I'd say you can't without affecting how the digitizer is going to work, and as for the back .... why bother?
    If you want to mitigate further damage, then consider something like ZAGG shields, which provide coverage for both sides, or better cases, or some combination of the two.

Maybe you are looking for

  • Deployment getting aborted

    hi facing this  problem  after deploying the application un 24, 2008 11:14:40 AM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR: [006]Deployment aborted Settings SDM host : DCEP01SBX SDM p

  • Table Names used in IS-U

    Hi Experts, Can anyone please give me the table names used in IS Utilities in FI/CA, Billing, CCS along wth their inter relation ships? my mail id is [email protected] Regards,

  • Premiere CC crash but not CS6

    Premiere CC crash - period! Before it crash on start-up it also crashed when I tried to render longer project. The message say "applications running out of memory". But CS6 is runing fine. Something wrong with the CC version of Premiere Pro? Does it

  • Nokia 5610 & AD54

    hi everyone i use ad56 for my nokia 5610 but remote control is necessary for me ! does nokia 5610 work with HS-45 and AD-54 ?? help please

  • Infopackage filter

    Can I create an info package which loads just blank values for a selection field. Scenario 1. Create 6 info packages using field 1 as filter 2. On 7th info package I want to select the records which have a null value for field 1 Thanks