Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: cached tables
<FONT
color=#0000ff face=Arial size=2>Just by executing the command
<FONT
color=#0000ff face=Arial size=2>alter table xxx cache
;
<FONT color=#0000ff
face="Arial TUR" size=2>Table won't come in cache. You have to select rows
from the table to get itinto
cache. Another point is that
kept field is meant for pl/sql packages and functionsand not for objects
like tables/indexes etc. Below is full details of objectsa<SPAN
class=665035108-30092001>nd their codes that can be kept on database
startup.
<FONT
color=#0000ff face=Arial size=2>
-- Value Kind of Object to keep -- ----- ---------------------- --
Q sequence -- R trigger -- T type -- JS
JR java resource -- JD java shared data -- C
<FONT color=#0000ff
face="Arial TUR" size=2>Of
course for verifying you can use,
<FONT color=#0000ff
face="Arial TUR" size=2><SPAN
class=665035108-30092001>
<FONT color=#0000ff
face="Arial TUR" size=2>select name, owner from
v$db_object_cache where name in ( 'xxx', 'yyy') ;
<FONT color=#0000ff
face="Arial TUR" size=2><SPAN
class=665035108-30092001>
<FONT color=#0000ff
face="Arial TUR" size=2><SPAN
class=665035108-30092001>HTH,
<FONT color=#0000ff
face="Arial TUR" size=2><SPAN
class=665035108-30092001>Rajesh
<FONT
size=2>-----Original
Message-----From: root_at_fatcity.com [mailto:root_at_fatcity.com]On
Behalf Of Bunyamin K. KaradenizSent: Saturday, September 29,
2001 10:55 PMTo: Multiple recipients of list
ORACLE-LSubject: cached tables
I execute
alter table xxx cache ;
But can not see this cached table on the query
below. Why ? Do you have any idea.?
SELECT name, type, kept
FROM v$db_object_cache
WHERE
kept='YES';
Received on Sun Sep 30 2001 - 04:15:28 CDT
![]() |
![]() |