等待模擬-BUFFER BUSY WAIT
create table test_buf(id number,name char(1000))
tablespace test;
begin
for idx in 1..100 loop
insert into test_buf values(idx,'aa');
end loop;
end;
select dbms_rowid.rowid_relative_fno(rowid),dbms_rowid.rowid_block_number(rowid),count(*) from test_buf group by dbms_rowid.rowid_relative_fno(rowid),dbms_rowid.rowid_block_number(rowid);
DBMS_ROWID.ROWID_RELATIVE_FNO( DBMS_ROWID.ROWID_BLOCK_NUMBER( COUNT(*)
------------------------------ ------------------------------ ----------
6 23661 7
6 23666 7
6 23670 7
6 23679 7
6 23668 7
6 23663 7
6 23662 7
6 23665 7
6 23680 2
6 23667 7
6 23672 7
6 23660 7
6 23669 7
6 23671 7
6 23664 7
create or replace procedure test_buf_pr
is
begin
for n in 1..1000 loop
for idx in 2..10 loop
update test_buf set name='TT'
where id=10*(idx-1);
commit;
end loop;
end loop;
end;
var job_no number;
begin
for idx in 1..100 loop
dbms_job.submit(:job_no,'test_buf_pr;');
end loop;
commit;
end;
同時本會話也執行檢視等待事件
execute test_buf_pr
最後可以觀察到這就是UPDATE UPDATE buffer busy wait爭用
select * from dba_hist_active_sess_history a,(select SID from v$mystat where rownum<=1) b where a.session_ID=b.sid and a.wait_class<>'Idle' order by SAMPLE_TIME desc;
是CLASS=1也就是DATA BLOCK,這個可以透過v$waitstat來檢視。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-764948/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 模擬產生CBC LATCH與buffer busy wait等待事件AI事件
- buffer busy wait 等待事件說明AI事件
- buffer busy wait 等待事件說明(轉)AI事件
- Oracle資料庫buffer busy wait等待事件 (2)Oracle資料庫AI事件
- Oracle資料庫buffer busy wait等待事件 (1)Oracle資料庫AI事件
- buffer busy wait 解析AI
- 轉載經典文章 buffer busy wait 等待事件說明AI事件
- wait event:gc buffer busyAIGC
- Buffer Busy Wait小結AI
- zt_buffer busy waitAI
- 等待模擬-cache buffer chainAI
- 【等待事件】buffer busy waits事件AI
- buffer busy wait 的深度剖析AI
- cursor: pin S wait on X等待事件模擬AI事件
- oracle buffer busy waits等待的含義OracleAI
- buffer busy waits 平均等待時間AI
- [20180305]手工模擬buffer busy wait.txtAI
- cursor: pin S wait on X等待事件模擬(轉)AI事件
- log buffer space wait event等待事件AI事件
- 【TUNE_ORACLE】等待事件之“buffer busy waits”Oracle事件AI
- [摘錄]Oracle Wait Interface之Buffer busy waits事件OracleAI事件
- 記一次gc buffer busy等待事件的處理GC事件
- Oracle Dba必須瞭解的buffer busy waits等待OracleAI
- 等待事件_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
- gc buffer busyGC
- buffer busy waits與rac cluster wait之間的聯絡AI
- [20130904]等待事件wait for a undo record模擬.txt事件AI
- Oracle Buffer Busy WaitsOracleAI
- gc buffer busy的優化GC優化
- 分析解決11gR2 雙節點RAC環境下的gc cr block busy/gc buffer busy acquire等待GCBloCUI
- cursor: pin S wait on X模擬AI
- 等待模擬-read by other sessionSession
- Buffer Cache以及buffer busy waits/gc相關事件AIGC事件
- gc buffer busy的最佳化GC
- Buffer Busy Waits深入分析AI