1104Cache Buffers chains與共享模式疑問4
[20151104]Cache Buffers chains與共享模式疑問4.txt
http://blog.itpub.net/267265/viewspace-1822491/
SCOTT@book> @ &r/ver1
PORT_STRING VERSION BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx 11.2.0.4.0 Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
--做一個全表掃描看看。
SCOTT@book> select rowid,empno,'sqlplus scott/book @h3 2e6 '||ename c60 from emp ;
ROWID EMPNO C60
------------------ ---------- ------------------------------------------------------------
AAAVREAAEAAAACXAAA 7369 sqlplus scott/book @h3 2e6 SMITH
AAAVREAAEAAAACXAAB 7499 sqlplus scott/book @h3 2e6 ALLEN
AAAVREAAEAAAACXAAC 7521 sqlplus scott/book @h3 2e6 WARD
AAAVREAAEAAAACXAAD 7566 sqlplus scott/book @h3 2e6 JONES
AAAVREAAEAAAACXAAE 7654 sqlplus scott/book @h3 2e6 MARTIN
AAAVREAAEAAAACXAAF 7698 sqlplus scott/book @h3 2e6 BLAKE
AAAVREAAEAAAACXAAG 7782 sqlplus scott/book @h3 2e6 CLARK
AAAVREAAEAAAACXAAH 7788 sqlplus scott/book @h3 2e6 SCOTT
AAAVREAAEAAAACXAAI 7839 sqlplus scott/book @h3 2e6 KING
AAAVREAAEAAAACXAAJ 7844 sqlplus scott/book @h3 2e6 TURNER
AAAVREAAEAAAACXAAK 7876 sqlplus scott/book @h3 2e6 ADAMS
AAAVREAAEAAAACXAAL 7900 sqlplus scott/book @h3 2e6 JAMES
AAAVREAAEAAAACXAAM 7902 sqlplus scott/book @h3 2e6 FORD
AAAVREAAEAAAACXAAN 7934 sqlplus scott/book @h3 2e6 MILLER
14 rows selected.
$ cat h3.sql
declare
m_id number;
m_data varchar2(200);
begin
for i in 1 .. &&1 loop
select job into m_data from emp where ename='&&2';
end loop;
end ;
/
quit
$ cat bbc.sh
sqlplus scott/book @h3 2e6 SMITH &
sqlplus scott/book @h3 2e6 ALLEN &
sqlplus scott/book @h3 2e6 WARD &
sqlplus scott/book @h3 2e6 JONES &
sqlplus scott/book @h3 2e6 MARTIN &
sqlplus scott/book @h3 2e6 BLAKE &
sqlplus scott/book @h3 2e6 CLARK &
sqlplus scott/book @h3 2e6 SCOTT &
sqlplus scott/book @h3 2e6 KING &
sqlplus scott/book @h3 2e6 TURNER &
sqlplus scott/book @h3 2e6 ADAMS &
sqlplus scott/book @h3 2e6 JAMES &
sqlplus scott/book @h3 2e6 FORD &
sqlplus scott/book @h3 2e6 MILLER &
--重複測試,也一樣,也就是在11.2.0.4下,讀讀共享不會出現cache buffers chains latch。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-1822510/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 1104Cache Buffers chains與共享模式疑問3AI模式
- 0821Cache Buffers chains與共享模式疑問4AI模式
- 0330Cache Buffers chains與共享模式疑問AI模式
- 0330Cache Buffers chains與共享模式疑問2AI模式
- Cache Buffers chains,存在共享模式?AI模式
- cache buffers chains and cache buffers lru chainsAI
- latch: cache buffers chainsAI
- cache buffers chains vs cache buffers lru chainAI
- latch:cache buffers chains案例AI
- 用於排查cache buffers chainsAI
- 深入理解latch: cache buffers chainsAI
- Trouble shooting latch: cache buffers chainsAI
- ORACLE等待事件latch: cache buffers chainsOracle事件AI
- 等待事件_cache_buffers_chains_latch事件AI
- 一次latch cache buffers chains問題的處理AI
- 模擬cache buffers chains與library cache pin等待事件AI事件
- latch:cache buffers chains解決步驟AI
- latch:cache buffers chains的優化思路AI優化
- latch:cache buffers chains的最佳化思路AI
- latch: cache buffers chains---AWR實戰分析AI
- 熱點塊競爭和解決--cache buffers chainsAI
- composite模式疑問模式
- 橋模式的疑問模式
- latch: cache buffers chains故障處理總結(轉載)AI
- 解決一例latch:cache buffers chains小記AI
- buffer cache實驗6-latch:cache buffers lru chainsAI
- Chain of Responsibility模式疑問AI模式
- 工廠模式的疑問模式
- Composite模式的疑問模式
- 處理 latch_cache_buffers_chains等待事件一例AI事件
- 關於設計模式的疑問設計模式
- buffer busy waits, latch cache buffers chains, read by other session區別AISession
- 使用了索引就一定能避免cache buffers chains爭用嗎索引AI
- latch: cache buffers chains-熱塊的簡單模擬實驗AI
- Bug 3797171 cache buffers chains latch contention increased in 10g-3797171.8AI
- 看Chain of Responsibility模式後得疑問AI模式
- 工作疑難問題解決4例
- 設計模式之間互為陷阱的問題!為模式而模式的疑問!設計模式