read by other session 測試
表TEST是一個130M的表。
create or replace procedure test_buffer_read
is
begin
for x in (select * from test) loop
null;
end loop;
end;
var job_no number;
begin
for idx in 1..20 loop
dbms_job.submit(:job_no,'test_buffer_read;');
end loop;
commit;
end;
然後手動執行一次 execute test_buffer_read
select * from v$session_event a,(select SID from v$mystat where rownum<=1) b
where a.SID=b.sid;
對於這樣的,很可能會出現很多等待,
EVENT
----------------------------------------------------------------
latch: cache buffers chains
latch: cache buffers chains
latch: cache buffers chains
db file scattered read
read by other session
read by other session
db file sequential read
latch: cache buffers chains
read by other session
db file scattered read
read by other session
job scheduler coordinator slave wait
往往這些等待同時出現,需要知道他們是息息相關的
可以用如下語句檢視,當前會話中的等待物件如果等待的是data block的話,但是速度很慢。。
SELECT a.segment_name,b.wait_time,'LOG READ' FROM DBA_EXTENTS a,
(select p1,p2,WAIT_TIME from v$session_wait where event in ('read by other session','buffer busy waits') and p3=1) b
where a.file_id=b.p1 and b.p2 between a.block_id and a.block_id+a.blocks-1
union all
SELECT a.segment_name,b.wait_time,'phy READ' FROM DBA_EXTENTS a,
(select p1,p2,WAIT_TIME from v$session_wait where event in ('db file scattered read','db file sequential read')) b
where a.file_id=b.p1 and b.p2 between a.block_id and a.block_id+a.blocks-1
order by wait_time;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-764533/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- read by other session等待事件Session事件
- 等待事件:read by other session事件Session
- 【等待事件】read by other session事件Session
- read by other session 等待事件分析Session事件
- 等待模擬-read by other sessionSession
- Wait event:read by other sessionAISession
- read by other session在undo所想Session
- Buffer busy waits/read by other sessionAISession
- 關於等待事件"read by other session"事件Session
- read by other session等待事件模擬Session事件
- read by other session的優化記錄Session優化
- 【效能調整】等待事件read by other session事件Session
- 【TUNE_ORACLE】等待事件之IO等待“read by other session”Oracle事件Session
- Oracle Dba必須瞭解的Read By Other Session等待:OracleSession
- 等待事件_buffer_busy_waits_and_read_by_other_session(1)事件AISession
- 等待事件_buffer_busy_waits_and_read_by_other_session(2)事件AISession
- 等待事件_buffer_busy_waits_and_read_by_other_session(3)事件AISession
- 等待事件_buffer_busy_waits_and_read_by_other_session(4)事件AISession
- buffer busy waits, latch cache buffers chains, read by other session區別AISession
- 玩轉跟蹤(to owner session、other session)Session
- session測試Session
- kill session的測試Session
- 關於oracle session的簡單測試OracleSession
- mysql中read commited與repeatable read兩種隔離級別的測試MySqlMIT
- v$session之小測試(一)_與v$lockSession
- v$session之小測試(二)_與v$sqlSessionSQL
- oracle一個process對應多個session測試OracleSession
- v$session之小測試(三)_與dba_objectsSessionObject
- Django Mysql SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTEDDjangoMySqlSessionMIT
- 初探團隊基於session的探索性測試Session
- 測試測試測試測試測試測試
- Cookie和Session的區別以及設計測試用例CookieSession
- [譯]The other ways to detect OllyDbg 檢測OllyDbg的另類方法
- 測試2個oracle session會話同時相同記錄持鎖OracleSession會話
- Runloop + runtime + otherOOP
- nginx 負載均衡 使用ip_hash方式解決session問題 測試Nginx負載Session
- PHP函式庫(other)PHP函式
- Other SGA Initialization Parameters (96)