Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Pinning Tables

Re: Pinning Tables

From: Marin Dimitrov <marin_at_sirma.bg>
Date: Tue, 06 Feb 2001 03:51:26 -0800
Message-ID: <F001.002ABC6C.20010206031025@fatcity.com>

> Hi all,
> I have been trying to find some reference on pinning tables in the SGA. I
> haven't found anything, all that I am finding is table caching and the
keep
> buffer pool. Is this all that there is, can I "pin" a table in the
memory?
> Thanks in advance.

try ALTER TABLE xxx STORAGE(BUFFER_POOL KEEP);

when the table blocks are first accessed they should go to the KEEP buffer and if it is big enough they should never be flushed out (take a look at the BUFFER_POOL_KEEP init.ora parameter).

several people mentioned ALTER TABLE xxx CACHE; but this is different from "pinning" because it will just instruct the server to place the table blocks on the "most recently used" end of the buffer pool (instead on the "least recently used" one) if full table scan is performed and sooner or later they would probably be flushed out.

hth,

    Marin



"When someone is seeking, it happens quite easily that he only sees the thing that he is seeking; that he is unable to find anything, unable to absorb anything, because he is only thinking of the thing he is seeking, because he is obsessed with his goal. Seeking means: to have a goal; but finding means: to be free, to be receptive, to have no goal. ..."
                                Herman Hesse, "Siddhartha"


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Marin Dimitrov
  INET: marin_at_sirma.bg

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Feb 06 2001 - 05:51:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US