[20220413]shared pool latch與使用sga heap的疑問3.txt
[20220413]shared pool latch與使用sga heap的疑問3.txt
--//接著前面的測試,驗證註解為KGLHD,KGLDA的情況.
--//首先註解為KGLHD,KGLDA,一定分配在特定sga heap(N,0) 與sga heap(N+,0)之間.,前面的測試已經驗證.
--//本文驗證KGLDA的情況.
--//首先x$kglob的父/子游標的kglobhd0,kglobhd6 等於x$ksmsp的ksmchpar.
SYS@127.0.0.1:9014/ywdb> select KSMCHIDX,count(*) from xx2 where KSMCHCOM='KGLDA' group by cube(KSMCHIDX) order by 1;
KSMCHIDX COUNT(*)
---------- ----------
1 9780
2 9709
3 7753
4 9139
5 8945
6 10124
7 7712
63162
8 rows selected.
create table xx4 as
with tt1 as (select /*+ MATERIALIZE */ distinct ksmchpar ksmchparx,
(CASE WHEN (KGLHDNSD='SQL AREA STATS' and KGLOBTYD='CURSOR STATS' ) then
mod(mod(TO_NUMBER(substr(kglnaobj,-8),'xxxxxxxxxxxxxxxx'),131072),7)+1
else
mod(mod(kglnahsh, 131072),7)+1
end) N10
from xx1,xx2 where (xx1.kglobhd0 = xx2.ksmchpar or xx1.kglobhd6 = xx2.ksmchpar ) and xx2.ksmchpar<>'00')
select * from xx2,tt1 where KSMCHCOM='KGLDA'
and
to_number( tt1.ksmchparx,'XXXXXXXXXXXXXXXX') between to_number(xx2.ksmchptr,'XXXXXXXXXXXXXXXX') and to_number(xx2.ksmchptr,'XXXXXXXXXXXXXXXX') + ksmchsiz - 1;
--//先建立表XX4,因為查詢很慢,便於反覆查詢。
SYS@127.0.0.1:9014/ywdb> select count(*) from xx4;
COUNT(*)
----------
62972
SYS@127.0.0.1:9014/ywdb> select count(*) from xx4 where n10=ksmchidx;
COUNT(*)
----------
62972
SYS@127.0.0.1:9014/ywdb> select count(*) from xx4 where n10<>ksmchidx;
COUNT(*)
----------
0
--//僅僅少量63162-62972 = 190不存在。
--//這樣經過前面的測試,基本可以肯定使用那個shared pool latch ,其chunk在對應的sga heap 中分配。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2887686/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20220412]shared pool latch與使用sga heap的疑問2.txt
- [20220406]使用那個shared pool latch的疑問1.txt
- [20210520]11g shared pool latch與library cache mutex的簡單探究3.txtMutex
- [20210512]shared pool latch與library cache latch的簡單探究.txt
- [20190319]shared pool latch與library cache latch的簡單探究.txt
- [20210708]使用那個shared pool latch.txt
- [20210803]使用那個shared pool latch(補充).txt
- [20200212]使用DBMS_SHARED_POOL.MARKHOT與sql語句3.txtSQL
- [20210520]11g shared pool latch與library cache mutex的簡單探究.txtMutex
- [20210521]11g shared pool latch與library cache mutex的簡單探究4.txtMutex
- 透過案例學調優之--和 SHARED POOL 相關的主要 Latch
- [20191210]降序索引疑問3.txt索引
- [20190423]那個更快的疑問3.txt
- [20200126]使用DBMS_SHARED_POOL.MARKHOT與sql語句.txtSQL
- 共享池 shared pool
- [20190102]DBMS_SHARED_POOL.MARKHOT與表.txt
- [20200212]使用DBMS_SHARED_POOL.MARKHOT與sql的計算2.txtSQL
- [20200211]使用DBMS_SHARED_POOL.MARKHOT與sql_id的計算.txtSQL
- [20200213]使用DBMS_SHARED_POOL.MARKHOT的總結.txt
- Oracle Shared Pool Memory ManagementOracle
- [20200211]使用DBMS_SHARED_POOL.MARKHOT與sql語句2.txtSQL
- [20201117]使用DBMS_SHARED_POOL.MARKHOT與sql語句5.txtSQL
- [20201117]使用DBMS_SHARED_POOL.MARKHOT與sql語句6.txtSQL
- [20200212]使用DBMS_SHARED_POOL.MARKHOT與檢視v$open_cursor.txt
- [20190419]shared latch spin count.txt
- [20210418]CBC latch再討論3.txt
- [20190416]檢視shared latch gets的變化.txt
- [20190419]shared latch spin count 2.txt
- [20210218]shared latch spin count 6.txt
- [20210218]shared latch spin count 5.txt
- SHARED POOL中KGH: NOACCESS佔用大量記憶體的問題分析記憶體
- [20200212]使用DBMS_SHARED_POOL.MARKHOT標識熱物件.txt物件
- 使用DBMS_SHARED_POOL包將物件固定到共享池物件
- locust 使用的疑問
- [20210208][20200426]檢視shared latch gets的變化.txt
- [20190415]關於shared latch(共享栓鎖).txt
- [20200213]使用DBMS_SHARED_POOL.MARKHOT標識熱物件2.txt物件
- [20200217]使用snapper探究DBMS_SHARED_POOL.MARKHOT標識熱物件的等待事件.txtAPP物件事件