分享
 
 
 

oracle statspack实例(二)

王朝oracle·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

--内存调整

select * from v$sga;

--调整前SGA

NAME VALUE

-------------------- ----------

Fixed Size 452184

Variable Size 402653184

Database Buffers 251658240

Redo Buffers 667648

select * from v$sgastat;

POOL NAME BYTES

----------- -------------------------- ----------

fixed_sga 452184

buffer_cache 251658240

log_buffer 656384

shared pool errors 8940

shared pool enqueue 171860

shared pool KGK heap 3756

shared pool KQR M PO 1393788

shared pool KQR S PO 177272

shared pool KQR S SO 5120

shared pool sessions 410040

shared pool sql area 61446860

POOL NAME BYTES

----------- -------------------------- ----------

shared pool 1M buffer 2098176

shared pool KGLS heap 2613480

shared pool PX subheap 19684

shared pool parameters 39012

shared pool free memory 125812664

shared pool PL/SQL DIANA 3445584

shared pool FileOpenBlock 695504

shared pool PL/SQL MPCODE 637644

shared pool PL/SQL PPCODE 48400

shared pool PL/SQL SOURCE 14344

shared pool library cache 19376952

POOL NAME BYTES

----------- -------------------------- ----------

shared pool miscellaneous 8639216

shared pool PLS non-lib hp 2068

shared pool joxs heap init 4220

shared pool table definiti 2632

shared pool trigger defini 1128

shared pool trigger inform 528

shared pool trigger source 624

shared pool Checkpoint queue 564608

shared pool VIRTUAL CIRCUITS 265160

shared pool dictionary cache 1614976

shared pool KSXR receive buffers 1032500

POOL NAME BYTES

----------- -------------------------- ----------

shared pool character set object 432136

shared pool FileIdentificatonBlock 319452

shared pool message pool freequeue 833032

shared pool KSXR pending messages que 840636

shared pool event statistics per sess 1908760

shared pool fixed allocation callback 268

large pool free memory 83886080

Java pool free memory 83886080

41 rows selected.

--UGA的大小,UGA主要包含一下部分的内存设置

show parameters area_size;

NAME TYPE VALUE

------------------------------------ ----------- ------------------------------

bitmap_merge_area_size integer 1048576

create_bitmap_area_size integer 8388608

hash_area_size integer 1048576

sort_area_size integer 524288

workarea_size_policy string AUTO

--计算数据缓冲区命中率

select value from v$sysstat where name='physical reads' 4383475

select * from v$sysstat where name='physical reads direct' 3834798

select * from v$sysstat where name='physical reads direct (lob)' 374616

select * from v$sysstat where name like 'consistent gets' 1198738167

select * from v$sysstat where name like 'db block gets' 53472785

x=physical reads direct+physical reads direct (lob)

100-(physical reads-x)/(consistent gets+db block gets-x)*100

100-(4383475-3834798-374616)/(1198738167+53472785-3834798-374616)*100

--共享池的命中率

select sum(pinhits)/sum(pins)*100 "hit radio" from v$librarycache;

--关于排序部分

select name,value from v$sysstat where name like '%sort%';

select sorts(disk)/(sorts (memory)+sorts(disk)) from dual

select 0/(17038425+0) from dual

--关于log_buffer

select name,value from v$sysstat

where name in('redo entries','redo buffer allocation retries');

redo buffer allocation retries/redo entries >1% 考虑增加log_buffer

--其他视图

v$db_cache_advice、v$pga_target_advice、v$java_pool_advice 和 v$db_shared_pool_advice

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有