티스토리 뷰

반응형

메모리 활용률 쿼리

 

select
-- Dictionary Hit ---------------------------------
(select to_char(trunc((1-sum(getmisses)/sum(gets))*100, 2))
       from   v$rowcache) "Dictionary Hit",
-- Blockbuffer Hit ---------------------------------
(SELECT to_char(trunc( (1 - (PHYSICAL_READS / (DB_BLOCK_GETS + CONSISTENT_GETS)))*100,2))
FROM V$BUFFER_POOL_STATISTICS) "Blockbuffer Hit",
-- Library Hit ---------------------------------
(select to_char(trunc((1-sum(reloads)/sum(pins))*100, 2)) from v$librarycache) "Library Hit",
-- Disk Sort ---------------------------------
(select  to_char(trunc(sum(waits)/sum(gets)*100,2)) "RBS Waits(%)"
from v$rollstat) "RBS contention",
(select
trunc("buffer busy waits"/("db block gets"+"consistent gets")*100,5)
from (
select
(select value from v$sysstat where name = 'consistent gets') "consistent gets",
(select value from v$sysstat where name = 'db block gets') "db block gets",
(select total_waits from v$system_event where event = 'buffer busy waits') "buffer busy waits"
from dual
)) "Buffer Busy Wait Ratio" from dual;




반응형
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함