診斷shared pool常用命令
----------查詢各個子池的記憶體分配情況
select 'shared pool(' ||
nvl(decode(to_char(ksmdsidx), '0', '0-unused', ksmdsidx), 'total') || ');' subpool,
sum(ksmsslen) bytes,
round(sum(ksmsslen) / 1048576, 2) mb
from x$ksmss
where ksmsslen > 0
group by rollup(ksmdsidx)
order by subpool asc
/
----------檢視各個子池的記憶體剩餘情況
SELECT KSMCHCLS CLASS,
COUNT (KSMCHCLS) NUM,
SUM (KSMCHSIZ) SIZ,
TO_CHAR ( ( (SUM (KSMCHSIZ) / COUNT (KSMCHCLS) / 1024)), '999,999.00')
|| 'k'
"AVG SIZE"
FROM X$KSMSP
GROUP BY KSMCHCLS;
---------檢視各個子池更加詳細的記憶體剩餘情況
SELECT ksmchidx "SubPool",
'sga heap(' || ksmchidx || ',0)' sga_heap,
ksmchcom chunkcomment,
DECODE(ROUND(ksmchsiz / 1000),
0,
'0-1K',
1,
'1-2K',
2,
'2-3K',
3,
'3-4K',
4,
'4-5K',
5,
'5-6k',
6,
'6-7k',
7,
'7-8k',
8,
'8-9k',
9,
'9-10k',
'> 10K') "size",
COUNT(*),
ksmchcls status,
SUM(ksmchsiz) BYTES
FROM x$ksmsp
WHERE ksmchcom = 'free memory'
GROUP BY ksmchidx,
ksmchcls,
'sga heap(' || ksmchidx || ',0)',
ksmchcom,
ksmchcls,
DECODE(ROUND(ksmchsiz / 1000),
0,
'0-1K',
1,
'1-2K',
2,
'2-3K',
3,
'3-4K',
4,
'4-5K',
5,
'5-6k',
6,
'6-7k',
7,
'7-8k',
8,
'8-9k',
9,
'9-10k',
'> 10K') order by 1,2;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22034023/viewspace-708355/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 轉_診斷latch:shared pool等待事件事件
- buffer cache 和shared pool詳解 診斷和解決ORA-04031 錯誤
- 【Shared Pool】使用DBMS_SHARED_POOL包將PL/SQL大物件儲存到Shared PoolSQL物件
- Oracle shared poolOracle
- _shared_pool_reserved_pct or shared_pool_reserved_size with ASMMASM
- zt_Oracle shared pool internals_共享池_shared_poolOracle
- SHARED POOL總結
- SHARED_POOL解析
- 理解Oracle Shared PoolOracle
- Oracle Shared Pool Memory ManagementOracle
- ORACLE SGA之shared poolOracle
- 使用DBMS_SHARED_POOL包將PL/SQL大物件儲存到Shared PoolSQL物件
- dbms_shared_pool keep物件到share pool中物件
- SHARED POOL 基礎知識
- 簡單分析shared pool(一)
- 簡單分析shared pool(二)
- 簡單分析shared pool(三)
- shared_pool_spare_free.sqlSQL
- ORACLE記憶體管理 之五 SGA variable pool,shared_pool,large_pool,java_poolOracle記憶體Java
- shared pool記憶體結構記憶體
- latch:shared pool的一點理解
- Shared Pool 的基本原理
- Shared Pool 的轉儲與分析
- 安裝DBMS_SHARED_POOL包
- oracle優化--shared_pool (3)Oracle優化
- oracle優化--shared_pool (2)Oracle優化
- oracle優化--shared_pool (1)Oracle優化
- PL/SQL Program Units and the Shared Pool (89)SQL
- 基於引數shared_pool_reserved_size進一步理解共享池shared pool原理
- shared_pool的sql命中率SQL
- SHARED POOL 空閒空間分配流程
- oracle 9i2 ? shared pool 巨大?Oracle
- Oracle記憶體分配與使用小記(二)Shared Pool and Large PoolOracle記憶體
- SHARED POOL ORA-04031錯誤分析
- Shared pool深入分析及效能調整
- [JVM] 應用診斷工具之Fastthread(線上診斷)JVMASTthread
- 一次對pool的誤用導致的.net頻繁gc的診斷分析GC
- ORACLE診斷案例Oracle