WEB开发网
开发学院数据库Oracle Oracle性能调整的要点之SGA 阅读

Oracle性能调整的要点之SGA

 2009-02-02 13:09:27 来源:WEB开发网   
核心提示: 如果SGA<128M,granule=4M,否则granule=16M,Oracle性能调整的要点之SGA(3),即需要调整sga的时候以granule为单位增加大小,并且sga的大小应该是granule的整数倍,2. 根据v$db_cache_advice调整buffer cach

如果SGA<128M,granule=4M,否则granule=16M,即需要调整sga的时候以granule为单位增加大小,并且sga的大小应该是granule的整数倍。

2. 根据v$db_cache_advice调整buffer cache的大小

SELECT size_for_estimate,buffers_for_estimate,estd_physical_read_factor,estd_phy
sical_reads FROM v$db_cache_advice WHERE NAME=’DEFAULT’ AND advice_status=’ON’
AND block_size=(SELECT Value FROM v$parameter WHERE NAME=’db_block_size’);
  estd_physical_read_factor<=1

3. 统计buffer cache的cache hit ratio>90%,如果低于90%,可以用下列方案解决:

◆ 增加buffer cache的值;

◆ 使用多个buffer pool;

◆ Cache table;

◆ 为sorting and parallel reads 建独立的buffer cache;

SELECT NAME,value FROM v$sysstat WHERE NAME IN (’session logical reads’,'physic
al reads’,'physical reads direct’,'physical reads direct(lob)’);
  Cache hit ratio=1-(physical reads-physical reads direct-physical reads direct
(lob))/session logical reads;
  Select 1-(phy.value-dir.value-lob.value)/log.value from v$sysstat log, v$syss
tat phy, v$sysstat dir, v$sysstat LOB where log.name=’session logical reads’ and
phy.name=’physical reads’ and dir.name=’physical reads direct’ and lob.name=’
physical reads direct (lob)’;

上一页  1 2 3 4  下一页

Tags:Oracle 性能 调整

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接