read by other session等待事件
read by other session發生的場景:
當查詢資料時,Oracle要把block從硬碟讀到buffer cache中。如果有兩個或更多session同時讀取同一個block資料,第一個session會將block讀取到buffer cache,由於block尚未完全讀取到buffer cache,就導致其他session處於"read by other session"等待下。這個是oracle 10g從oracle 9i的"buffer busy waits"中分離出來的,也是一種熱塊現象。
read by other session等待事件有三個引數,屬於User I/O類的等待 :
SQL> select name,parameter1,parameter2,parameter3,wait_class from v$event_name where name = 'read by other session';
NAME PARAMETER1 PARAMETER2 PARAMETER3 WAIT_CLASS
------------------------------ -------------------- -------------------- -------------------- -----------
read by other session file# block# class# User I/O
file#:要讀取的資料塊鎖在資料檔案的檔案號
block#:要讀取的起始資料塊號
class#:塊型別
可根據等待的file#、block#結合下面的sql獲取熱點塊所在的segment:
SELECT OWNER, SEGMENT_NAME, SEGMENT_TYPE, TABLESPACE_NAME, A.PARTITION_NAME
FROM DBA_EXTENTS A
WHERE FILE_ID = &FILE_ID
AND &BLOCK_ID BETWEEN BLOCK_ID AND BLOCK_ID + BLOCKS – 1;
查詢熱點塊物件:
SELECT *
FROM
(
SELECT O.OWNER, O.OBJECT_NAME, O.OBJECT_TYPE, SUM(TCH) TOUCHTIME
FROM X$BH B, DBA_OBJECTS O
WHERE B.OBJ = O.DATA_OBJECT_ID
AND B.TS# > 0
GROUP BY O.OWNER, O.OBJECT_NAME, O.OBJECT_TYPE
ORDER BY SUM(TCH) DESC
)
WHERE ROWNUM <= 10
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31544156/viewspace-2219653/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 等待事件: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