Oracle性能调整的要点之SGA
2009-02-02 13:09:27 来源:WEB开发网如果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)’;
- ››oracle 中 UPDATE nowait 的使用方法
- ››Oracle ORA-12560解决方法
- ››Oracle 10g RAC 常用维护命令
- ››Oracle如何在ASM中定位文件的分布
- ››Oracle的DBMS_RANDOM.STRING 的用法
- ››oracle 外部表导入时间日期类型数据,多字段导入
- ››Oracle中查找重复记录
- ››oracle修改用户登录密码
- ››Oracle创建删除用户、角色、表空间、导入导出等命...
- ››Oracle中登陆时报ORA-28000: the account is lock...
- ››Oracle数据库在配置文件中更改最大连接数
- ››Oracle中在pl/sql developer修改表的两种方式
更多精彩
赞助商链接