SGA之SQL

--查看診斷位置信息

select * from v$diag_info;


--查看sga中內存分配信息

select * from sys.x$ksmfs;


--查看內存塊還剩餘多少

select pool,name,bytes/1024/1024 MB from v$sgastat where name='free memory';


--查看共享池的使用情況比率

select to_number(v$parameter.value) value,v$sgastat.bytes/1024/1024 "v$sgastat MB",

(v$sgastat.bytes/v$parameter.value)*100 "percent free"

from v$sgastat,v$parameter where v$sgastat.name='free memory' and v$parameter.name='shared_pool_size'

and v$sgastat.pool='shared pool';


--查看SGA內各個易失存儲器塊的情況

select * from v$sga_dynamic_components


--查詢動態調整SGA內存塊還有多少可使用空間

select * from v$sga_dynamic_free_memory;


--SGA信息

select * from v$sgainfo


--可根據此視圖調整SGA大小

select * from v$sga_target_advice


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章