测试环境:solaris 10
oracle 10g
1.对于经常使用的热点、访问次数多的表我们可以放置在db_keep_cache_size中、
JSP页面直接从cache中获取、提升访问的速度。但是如果表的大小超过了
db_keep_cache_size的大小的时候、是无法提高表的访问速度。
2.
select owner,segment_type,segment_name,buffer_pool
from dba_segments
where buffer_pool != 'DEFAULT';
OWNER | SEGMENT_TYPE | SEGMENT_NAME | BUFFER_POOL | ||||
test1 | TABLE | APARTMENT_MAIN_T | KEEP | ||||
APARTMENT_MAINS_FLOORS_T | APARTMENT_MAINS_ROOMS_T | APARTMENT_MAINS_BEDSPACE_T | APARTMENT_BIDE_STUBED_T | APARTMENT_BIDE_MAINCOLLEGE_T | test2 | ORG_THCIC_SESSION | KEEP |
1
2
3
4
5
6
7
8
9
10
11
12
|
1)
alter
table
fisher cache;
2)
fisher storage(buffer_pool keep);
--取消缓存
fisher nocache;
fisher storage(buffer_pool
default
);
select
table_name,OWNER,cache,buffer_pool
from
dba_tables
where
table_name=
'FISHER'
;
--查看是否缓存
*
dba_segments
segment_name=
;
--查看表大小
|
1
|
alter
system
set
db_keep_cache_size=50M scope=both sid=‘*';
|