Oracle 等待事件之 buffer busy waits

來源:互聯網
上載者:User

標籤:oracle 等待事件之 buffer busy waits

buffer busy waits (熱塊兒爭用)

官網解釋:

    This wait indicates that there are some buffers in the buffer cache that multiple processes are attempting to access concurrently. Query V$WAITSTAT for the wait statistics for each class of buffer. Common buffer classes that have buffer busy waits include data block, segment header, undo header, and undo block.

Check the following V$SESSION_WAIT parameter columns:  

  • P1: File ID

  • P2: Block ID

  • P3: Class ID


解釋:

    此等待表示緩衝區快取中存在多個進程嘗試同時訪問的緩衝區。 查詢V$WAITSTAT為每類緩衝區的等待統計資訊。 具有緩衝區忙等待的公用緩衝區包括資料區塊,段頭,撤銷頭和撤消塊。

    這個等待事件的產生僅說明了一個會話在等待一個 Buffer(資料區塊)

有兩種情形是:
(1)當一個會話試圖修改一個 Buffer,但這個 Buffer 正在被另一個會話修改時。
熱塊是典型的是資源爭用,分析熱塊產生原因,才可對症下藥:以下為熱塊發生的部位:
①表塊②索引塊,段頭塊( free list) ,undo 塊等
(2)當一個會話需要讀取一個 Buffer,而這個 Buffer 正在被另一個會話從磁碟讀取到記憶體中時。
在 11g 的版本中,這種情況已經被獨立出來,以 read by other session命名等待事件。
Buffer busy waits 等待事件常見於資料庫中存在熱塊的時候,當多個使用者頻繁地讀取或者修改同樣的資料區塊時,這個等待事件就會產生。

本文出自 “Linux Oracle MariaDB” 部落格,請務必保留此出處http://wangergui.blog.51cto.com/8504247/1912944

Oracle 等待事件之 buffer busy waits

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.