read by other session等待事件模擬
This event occurs when a session requests a buffer that is currently being read into the buffer cache
by another session. Prior to release 10.1, waits for this event were grouped with the other reasons for
waiting for buffers under the 'buffer busy wait' event
客戶系統最近這個事件表現的比較突出,簡單的模擬了一下,這是一個和io相關的讀等待事件,因此它也伴隨著db file sequential read和db file sequential read一起出現
[@more@]session 1:
SQL> select distinct sid from v$mystat;
SID
----------
159
SQL> declare
2 i number :=0;
3 v_string varchar2(50) :='alter system flush buffer_cache';
4 begin
5 loop
6 select count(*) into i from tt;
7 execute immediate v_string;
8 end loop;
9 end;
10 /
--==========================
session 2:
SQL> select distinct sid from v$mystat;
SID
----------
144
SQL> declare
2 i number :=0;
3 v_string varchar2(50) :='alter system flush buffer_cache';
4 begin
5 loop
6 select count(*) into i from tt;
7 execute immediate v_string;
8 end loop;
9 end;
10 /
--=========================
session 3:
SQL> select distinct sid from v$mystat;
SID
----------
142
SQL> declare
2 i number :=0;
3 v_string varchar2(50) :='alter system flush buffer_cache';
4 begin
5 loop
6 select count(*) into i from tt;
7 execute immediate v_string;
8 end loop;
9 end;
10 /
--===========================
session 4:(監控)
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 read by other session file# block# class# User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file sequential read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 read by other session file# block# class# User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 read by other session file# block# class# User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file sequential read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 read by other session file# block# class# User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 read by other session file# block# class# User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 read by other session file# block# class# User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 read by other session file# block# class# User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL> select sid,event,p1text,p2text,p3text,wait_class from v$session_wait where
sid in (159,144,142);
SID EVENT P1TEXT P2TEXT P3TEXT WAIT_CLASS
---------- ------------------------- ---------- ---------- ---------- ----------
142 db file scattered read file# block# blocks User I/O
144 db file scattered read file# block# blocks User I/O
159 db file scattered read file# block# blocks User I/O
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19602/viewspace-1028929/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 等待模擬-read by other sessionSession
- 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
- 等待事件_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優化
- [20220531]模擬inactive session等待事件.txtSession事件
- direct path read/read temp等待事件事件
- library cache pin等待事件的模擬事件
- cursor: pin S wait on X等待事件模擬AI事件
- db file scattered read等待事件事件
- db file sequential read等待事件事件
- 【等待事件】db file sequential read事件
- 【等待事件】db file scattered read事件
- cursor: pin S wait on X等待事件模擬(轉)AI事件
- 【TUNE_ORACLE】等待事件之IO等待“direct path read”Oracle事件
- enq: TM - contention TM 等待事件的原因及模擬ENQ事件
- 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
- 模擬產生CBC LATCH與buffer busy wait等待事件AI事件
- 模擬cache buffers chains與library cache pin等待事件AI事件
- 模擬library cahe lock/pin等待事件以及問題定位事件