【等待事件】read by other session
等待時間描述:
這個等待事件發生時,當我們試圖訪問一個緩衝區快取記憶體中的緩衝區,但我們發現該緩衝區目前正在由其他使用者讀取磁碟,所以我們需要等待完成之前,我們可以訪問它。
在以前的版本中,等待被歸入“"buffer busy waits”事件。然而,在Oracle10.1和更高版本中,等待時間改寫為“read by other session”等事件。過多的等待通常是由於過多的程式重複閱讀相同的塊,例如許多session在同一個表掃描相同的索引或執行全表掃描。
Readby other session 等待的出現也說明資料庫存在讀的競爭,所以該等待事件通常和db file sequential read或db file scattered read 同時出現。
當一個會話正在等待對這一事件,將會看到一個條目在V $ SESSION_WAIT系統檢視塊正在等待更多資訊:
SELECT p1 "file#", p2 "block#", p3 "class#"
FROM v$session_wait WHERE event = 'read by other session';
FROM v$session_wait WHERE event = 'read by other session';
確定熱快
SELECT relative_fno, owner, segment_name, segment_type FROM dba_extents
WHERE file_id = &file
AND &block BETWEEN block_id AND block_id + blocks - 1;
WHERE file_id = &file
AND &block BETWEEN block_id AND block_id + blocks - 1;
確定阻塞的程式和sql
select b.SID,b.EVENT,b.P1,b.P2,(select m.SQL_FULLTEXT from v$sql m where m.SQL_ID=b.SQL_ID) SQL_FULLTEXT
from v$session b
where (b.P1, b.p2) in
(select a.P1, a.P2
from v$session a
where a.EVENT = 'read by other session')
and b.EVENT<>'read by other session';
解決辦法:
可以從awr找到相應sql 進行最佳化
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-758062/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- read by other session等待事件Session事件
- 等待事件:read by other session事件Session
- 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
- 等待模擬-read by other sessionSession
- 等待事件_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
- Oracle Dba必須瞭解的Read By Other Session等待:OracleSession
- read by other session 測試Session
- Wait event:read by other sessionAISession
- read by other session在undo所想Session
- Buffer busy waits/read by other sessionAISession
- read by other session的優化記錄Session優化
- direct path read/read temp等待事件事件
- db file scattered read等待事件事件
- db file sequential read等待事件事件
- 【等待事件】db file sequential read事件
- 【等待事件】db file scattered read事件
- 【TUNE_ORACLE】等待事件之IO等待“direct path read”Oracle事件
- cell single block physical read等待事件BloC事件
- 詳解 db file sequential read 等待事件事件
- control file sequential read等待事件事件
- 【TUNE_ORACLE】等待事件之IO等待“db file sequential read”Oracle事件
- 【TUNE_ORACLE】等待事件之IO等待“db file scattered read”Oracle事件
- buffer busy waits, latch cache buffers chains, read by other session區別AISession
- oracle等待事件2構造一個DB File Sequential Read等待事件和構造一個Direct Path ReadOracle事件
- 玩轉跟蹤(to owner session、other session)Session
- 等待事件db file sequential read、db file scattered read和direct read的區別事件
- 0322理解db file parallel read等待事件2Parallel事件
- 0316理解db file parallel read等待事件Parallel事件
- Oracle常見等待事件之direct path read/writeOracle事件
- 非空閒的等待事件-db file scattered read事件
- 尋找 library cache lock 等待事件的session事件Session