成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

dbfilesequentialread及優(yōu)化-創(chuàng)新互聯(lián)

db file sequential read:直接路徑讀;

創(chuàng)新互聯(lián)公司專業(yè)IDC數(shù)據(jù)服務(wù)器托管提供商,專業(yè)提供成都服務(wù)器托管,服務(wù)器租用,服務(wù)器托管,服務(wù)器托管,成都多線服務(wù)器托管等服務(wù)器托管服務(wù)。

 

官方說(shuō)明如下:

This event signifies that the user process is reading a buffer into the SGA buffer cache and is waiting for a physical I/O call to return. A sequential read is a single-block read.

Single block I/Os are usually the result of using indexes. Rarely, full table scan calls could get truncated to a single block call because of extent boundaries, or buffers present in the buffer cache. These waits would also show up as db file sequential read.

Check the following V$SESSION_WAIT parameter columns:

?P1: The absolute file number

?P2: The block being read

?P3: The number of blocks (should be 1)

 

解釋:ORACLE進(jìn)程需要訪問(wèn)block不能從SGA中獲取的時(shí)候,因此oracle進(jìn)程會(huì)等待block從I/O讀取到SGA;

一個(gè)順序讀是一個(gè)單塊讀,單塊I/O一般來(lái)自索引讀的結(jié)果;

db file sequential read等待事件有3個(gè)參數(shù):

?P1: The absolute file number             文件號(hào)

?P2: The block being read                first block#     

?P3: The number of blocks (should be 1)       block數(shù)量

db file sequential read等待時(shí)間是由于執(zhí)行對(duì)索引,回滾(undo)段,和表(當(dāng)借助rowid來(lái)訪問(wèn)),控制文件和數(shù)據(jù)文件頭的單塊讀操作SQL語(yǔ)句(用戶和遞歸)引起的。對(duì)于這些對(duì)象的物理I/O請(qǐng)求是很正常的,因此db file sequential read等待的存在不是一定意味庫(kù)或應(yīng)用出錯(cuò)了。如果會(huì)話在這事件上花了好長(zhǎng)事件,它可能也不是一個(gè)糟糕的事情。相反,如果會(huì)話花了大量時(shí)間在equeue或latch free上,那么一定是有問(wèn)題。

 

問(wèn)題:AWR報(bào)告中的系統(tǒng)的等待事件中的db file sequential read是否合理?

根據(jù)awr報(bào)告中的以下重要參數(shù)進(jìn)行解讀,以11G的awr報(bào)告為例子:

db file sequential read及優(yōu)化

說(shuō)明:db file sequential read是指sga中找不到相應(yīng)的數(shù)據(jù),所以跟buffer hit有很大的關(guān)系,當(dāng)buffer hit命中率太低了,相應(yīng)的db file sequential read就會(huì)高,一般buffer hit保持著95%以上;

 

db file sequential read及優(yōu)化

查看這個(gè)報(bào)告的db file sequential read的總時(shí)間和平均時(shí)間;

 

db file sequential read及優(yōu)化

Foreground Wait Events也會(huì)統(tǒng)計(jì)db file sequential read所花費(fèi)的時(shí)間和平均時(shí)間

 

db file sequential read及優(yōu)化

根據(jù)SQL User I/O等待時(shí)間,查看是否有調(diào)優(yōu)的空間;

 

db file sequential read的優(yōu)化方法:

  1. 從讀取開始,增加SGA中buffer cache的大小,避免每次都從硬盤中去讀數(shù);
  2. 優(yōu)化sql語(yǔ)句,減少不必要的塊讀取;

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

本文作者:JOHN

ORACLE技術(shù)博客:ORACLE 獵人筆記               數(shù)據(jù)庫(kù)技術(shù)群:367875324 (請(qǐng)備注ORACLE管理 )  

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

文章標(biāo)題:dbfilesequentialread及優(yōu)化-創(chuàng)新互聯(lián)
標(biāo)題網(wǎng)址:http://jinyejixie.com/article4/dpegie.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供標(biāo)簽優(yōu)化、搜索引擎優(yōu)化、商城網(wǎng)站微信小程序、網(wǎng)站導(dǎo)航、外貿(mào)網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化
临漳县| 宜章县| 嵊泗县| 定西市| 崇信县| 临邑县| 崇州市| 齐齐哈尔市| 西乌珠穆沁旗| 松原市| 敦化市| 岑溪市| 阆中市| 衡阳县| 金溪县| 清徐县| 微博| 乡城县| 广水市| 廊坊市| 吉水县| 寻乌县| 郁南县| 施甸县| 阿坝县| 加查县| 兴宁市| 新郑市| 鄂尔多斯市| 沙湾县| 敦煌市| 奉节县| 梧州市| 新郑市| 尚志市| 定边县| 莆田市| 博客| 莱芜市| 武功县| 闵行区|