Profilo di haiOracle & StarcraftBlogElenchi Strumenti Guida
15 marzo

DBWR parallel query checkpoint buffers written

DBWR parallel query checkpoint buffers written是oracle的一种特殊的checkpoint的产物,这种checkpoint在oracle8 以前称作Extent-based Checkpoint,当发生parallel query时oracle必须做checkpoint把脏数据写入磁盘,因为parallel query走的时direct read,直接从文件读入pga,如果有脏数据没有被写回磁盘,那么读出来的结果将会不一致。在oracle8以前,如果发生direct read,那么当每一个extent被读入的时候oracle会先去检查data buffer中有没和这个extent相关的dirty block,如果有就会驱动dbwr来写出,同时增加一次checkpoint的次数。这样的话如果这个表有N个extent都存在dirty block,那么将会发生N次checkpoint,这样的话将会使parallel query的执行时间大大超过normal query。在oracle8中这种情况有了改进,Extent-based Checkpoint变成了object-based checkpoint,不再会对单独的extent做checkpoint。
 
让我们再回到主题,DBWR parallel query checkpoint buffers written
 
首先来看一下v$statname
 
SQL 10G>select statistic#,name from v$statname where name like '%DBWR%';
STATISTIC# NAME
---------- ----------------------------------------------------------------
        69 DBWR checkpoint buffers written
        70 DBWR thread checkpoint buffers written
        71 DBWR tablespace checkpoint buffers written
        72 DBWR parallel query checkpoint buffers written
        73 DBWR object drop buffers written
        74 DBWR transaction table writes
        75 DBWR undo block writes
        76 DBWR revisited being-written buffer
        77 DBWR make free requests
        78 DBWR lru scans
        79 DBWR checkpoints
STATISTIC# NAME
---------- ----------------------------------------------------------------
        80 DBWR fusion writes
 
再来创建一张测试表
 
create table test(a number)
 
 
SQL 10G>select count(*) from test;
  COUNT(*)
----------
   4194496
 
SQL 10G>select distinct a from test;
         A
----------
         1
 
这个测试表包含了4194496条值为1的记录
 
先刷新data buffer
 
SQL 10G>ALTER SESSION SET EVENTS 'immediate trace name flush_cache';
Session altered.
 
我们来更新其中一条记录
 
SQL 10G>update test set a=2 where rownum<2;
1 row updated.
 
SQL 10G>commit;
Commit complete.
 
执行parallel query
 
SQL 10G>select b.name,a.value from v$sysstat a,v$statname b where a.statistic# in(72,79) and a.statistic#=b.statistic#;
NAME                                                                         VALUE
----------------------------------------------------------------                ----------
DBWR parallel query checkpoint buffers written                 28615
DBWR checkpoints                                                        552
 
SQL 10G>select/*+ parallel(test,4)*/distinct a from test;
         A
----------
         2
         1

SQL 10G>select b.name,a.value from v$sysstat a,v$statname b where a.statistic# in(72,79) and a.statistic#=b.statistic#;
NAME                                                                        VALUE
----------------------------------------------------------------                ----------
DBWR parallel query checkpoint buffers written                 28616
DBWR checkpoints                                                        553

checkpoint和buffer written都增加1
 
再来更新分布在多个extent上的block来证实一下是不是现在的oracle版本用的是object-based checkpoint
 
SQL 10G>update test set a=10 where mod(dbms_rowid.ROWID_BLOCK_NUMBER(rowid),1000)=0 and dbms_rowid.ROWID_ROW_NUMBER(rowid)=0;
6 rows updated.
 
SQL 10G>commit;
Commit complete.
 
SQL 10G>select b.name,a.value from v$sysstat a,v$statname b where a.statistic# in(72,79) and a.statistic#=b.statistic#;
NAME                                                                         VALUE
----------------------------------------------------------------                 ----------
DBWR parallel query checkpoint buffers written                 28616
DBWR checkpoints                                                        553
 
SQL 10G>select/*+ parallel(test,4)*/distinct a from test;
         A
----------
        10
         2
         1
 
SQL 10G>select b.name,a.value from v$sysstat a,v$statname b where a.statistic# in(72,79) and a.statistic#=b.statistic#;
NAME                                                                         VALUE
----------------------------------------------------------------                 ----------
DBWR parallel query checkpoint buffers written                 28622
DBWR checkpoints                                                        554
 
 
可以看到写出了6个块,但是只发生一次checkpoint,所以我们可以知道oracle已经采用了object-based checkpoint。
 
 
总结来说,DBWR parallel query checkpoint buffers written就是当发生parallel query时导致checkpoint而写出的块数。
 
 
 

Commenti (20)

Attendere...
Il commento immesso è troppo lungo. Immetti un commento più breve.
Immissione non effettuata. Riprova.
Impossibile aggiungere il commento al momento. Riprova più tardi.
Per aggiungere un commento è necessaria l'autorizzazione di un genitore. Chiedi autorizzazione
I tuoi genitori hanno disattivato i commenti.
Impossibile eliminare il commento al momento. Riprova più tardi.
Hai raggiunto il numero massimo di commenti pubblicabili giornalmente. Riprova tra 24 ore.
Impossibile lasciare commenti. La funzionalità è stata disattivata perché i sistemi hanno rilevato una possibile attività di spamming dal tuo account. Se ritieni che il tuo account è stato disattivato per errore, contatta il supporto tecnico di Windows Live.
Esegui il seguente controllo di protezione per completare la pubblicazione del commento.
I caratteri digitati nel controllo di protezione devono corrispondere ai caratteri dell'immagine o della riproduzione audio.

Per aggiungere un commento, accedi con il tuo Windows Live ID (se utilizzi Hotmail, Messenger o Xbox LIVE possiedi già un Windows Live ID). Accedi


Non hai ancora un Windows Live ID? Registrati

28 Ago.
Senza nomeha scritto:
[url=http://www.warhammer100.com/][b]warhammer gold[/b][/url]
[url=http://www.warhammer100.com/][b]buy warhammer gold[/b][/url]
[url=http://www.cheaperzone.com/][b]warhammer gold[/b][/url]
[url=http://www.cheaperzone.com/News/News.Html][b]buy warhammer gold[/b][/url]
[url=http://www.buyfastgold.com/][b]warhammer gold[/b][/url]
[url=http://www.buyfastgold.com/news/][b]buy warhammer gold[/b][/url]
[url=http://www.game4power.com/][b]wow gold[/b][/url]
[url=http://www.game4power.com/news/][b]buy wow gold[/b][/url]
[url=http://www.wowgoldone.com/][b]wow gold[/b][/url]
[url=http://www.wowgoldone.com/][b]buy wow gold[/b][/url]
[url=http://www.game4power.com/][b]world of warcraft gold[/b][/url]
[url=http://www.wowgoldone.com/][b]world of warcraft gold[/b][/url]
[url=http://www.gamelevelup.com/][b]wow power leveling[/b][/url]
[url=http://itemstores.com/][b]wow item[/b][/url]

A href="http://www.warhammer100.com/" target=_blank><FONT size=4><B>warhammer gold</B></FONT></A> <FONT size=4></FONT><A href="http://www.warhammer100.com/" target
<A href="http://www.warhammer100.com/" target=_blank><FONT size=4><B>warhammer gold</B></FONT></A> <FONT size=4></FONT><A href="http://www.warhammer100.com/" target=_blank><FONT size=4><B>buy warhammer gold</B></FONT></A><BR><A href="http://www.cheaperzone.com/" target=_blank><FONT size=4><B>warhammer gold</B></FONT></A><FONT size=4></FONT> <A href="http://www.cheaperzone.com/News/News.Html" target=_blank><FONT size=4><B>buy warhammer gold</B></FONT></A><BR><A href="http://www.buyfastgold.com/" target=_blank><FONT size=4><B>warhammer gold</B></FONT></A> <FONT size=4></FONT><A href="http://www.buyfastgold.com/news/" target=_blank><FONT size=4><B>buy warhammer gold</B></FONT></A><BR><A href="http://www.game4power.com/" target=_blank><FONT size=4><B>wow gold</B></FONT></A> <FONT size=4></FONT><A href="http://www.game4power.com/news/" target=_blank><FONT size=4><B>buy wow gold</B></FONT></A><BR><A href="http://www.wowgoldone.com/" target=_blank><FONT size=4><B>wow gold</B></FONT></A> <FONT size=4></FONT><A href="http://www.wowgoldone.com/" target=_blank><FONT size=4><B>buy wow gold</B></FONT></A><BR><A href="http://www.game4power.com/" target=_blank><FONT size=4><B>world of warcraft gold</B></FONT></A> <FONT size=4></FONT><A href="http://www.wowgoldone.com/" target=_blank><FONT size=4><B>world of warcraft gold</B></FONT></A><BR><A href="http://www.gamelevelup.com/" target=_blank><FONT size=4><B>wow power leveling</B></FONT></A><BR><A href="http://itemstores.com/" target=_blank><FONT size=4><B>wow item</B></FONT></A>
21 Nov.
14 Ott.
Senza nomeha scritto:
客户管理 客户管理系统 营销管理系统 客户资源管理 销售管理软件 客户资料管理软件 客户资源管理软件 客户信息管理软件 客户资料管理 客户资源管理 客户信息管理 客户资料管理系统 客户资源管理系统 客户管理软件免费版砂磨机 砂磨机 砂磨机 卧式砂磨机 卧式砂磨机 卧式砂磨机 三辊研磨机 三辊研磨机 三辊研磨机 混合机 混合机 混合机 锥形混合机 锥形混合机 锥形混合机 行星动力混合机 行星动力混合机 行星动力混合机 无重力混合机 无重力混合机 无重力混合机 干粉砂浆设备 干粉砂浆设备 干粉砂浆设备 捏合机 捏合机 捏合机 导热油炉 导热油炉 导热油炉 反应釜 反应釜 反应釜 搪玻璃反应釜 搪玻璃反应釜 搪玻璃反应釜 乳化机 涂料设备 干混砂浆设备 无重力混合机 胶体磨 涂料成套设备 双螺旋混合机 北京婚庆 北京婚庆公司 400电话办证 呼吸机 制氧机亚都 亚都加湿器 亚都净化器 亚都装修卫士饰品批发 小饰品批发 韩国饰品 韩国饰品批发 premature ejaculation penis enlargement 破碎机 制砂机 球磨机 雷蒙磨 雷蒙磨粉机 鄂式破碎机 鄂式破碎机 免烧砖机 加气混凝土设备 反击式破碎机 选矿设备 安利产品 马来西亚留学网站优化 网站推广衬布代写论文代写论文 论文代写 代写论文 代写硕士论文 代写毕业论文磁力泵离心泵化工泵隔膜泵螺杆泵潜水泵油泵耐腐蚀泵 水泵拖链
14 Ott.
Senza nomeha scritto:
spherical roller bearing搬运车 搬运车 电动搬运车 油桶搬运车 堆高车 电动堆高车 半电动堆高车 堆垛车 高空作业平台车 电动叉车 平衡重叉车 前移叉车 电瓶叉车苗木价格 苗木信息 标牌制作 深圳标牌 儿童摄影 北京儿童摄影 防静电鞋 淘宝刷信誉威海凤凰湖 威海海景房 大庆密封件打标机 淘宝刷信誉 TESOL/TEFL国际英语教师证书 英语教师进修及培训韩国饰品批发 代写论文 代写论文 代写论文 代写代发 论文代写 电源模块 模块电源X架 超薄灯箱> 易拉宝 展柜制作 代理服务器 游戏加速器 网络加速器 网通加速器 电信加速器 电信网通转换器 电信网通加速器 网通电信互转 网通电信互通 网络游戏加速器 美国VPN代理 美国独享VPN 美国独享IPpvc ceiling panel Spherical roller bearingsSEO优化安全鞋 劳保鞋 防砸鞋 电绝缘鞋 上海安全鞋 上海劳保鞋 江苏劳保鞋 服装软件 服装管理软件 进销存软件 进销存管理软件 服装管理系统 服装进销存软件 进销存系统 进销存管理系统 免费进销存软件吉林中医 东北特产打包机 dhl阳痿 阴茎短小 阴茎增大 早泄 前列腺炎 阴茎增粗 阴茎延长国际机票 上海国际机票 国际打折机票 国际特价机票CRM 客户管理软件 客户关系管理 免费客户管理软件 客户管理软件下载 客户信息管理系统 销售管理系统 销售管理 CRM系统 CRM软件 客户关系管理系统 客户关系管理软件
14 Ott.
14 Ott.
Senza nomeha scritto:
Want to go to tibet tour? You can rely on us! We are expert in tour in tibet. based in Tibet 15 years experience, 600 private groups operated! So join us for your wondrous tibet travel! Are you interested in mysterious Lhasa travel to tibet? Why not take our Lhasa tibet trekking? You can appreciate the holiness of Lhasa tibet tour guide with our well-connected itinerary and leave a memorable recollection over life. These are China Lhasa tibet thangka packages with personal local tibet map, and private vehicle with driver + hotels + entrance fees and meals as listed for your party based on minimum 2 travelers. Tibet Buddhist Sects and Characteristics, For single person, please email us for new quotations. For any questions, please feel free to contact our customer team with our prompt and personalized travel services.
10 Ott.
Senza nomeha scritto:

Hi,Do you need advertising displays, digital signages, advertising player and LCD displays? Please go Here:www.amberdigital.com.hk(Amberdigital).we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.

amberdigital Contact Us

website:www.amberdigital.com.hk
alibaba:amberdigital.en.alibaba.com[hghjcfdheajdhd]

23 Set.
Senza nomeha scritto:
Key words click link to see (wow power leveling) and (wow gold) the discounted prices!
17 Set.
Senza nomeha scritto:

Amberdigital Branch,Southern Stars Enterprises Co is specializing in the development and manufacturing of ad players, advertisement player and LCD advertisings. Established in 1996, we have explored and developed the international market with professionalism. We have built a widespread marketing network, and set up a capable management team dedicated to provide beyond-expectation services to our customers.

amberdigital Contact Us
Southern Stars Enterprises Co (Hong Kong Office)
Add:3 Fl, No.2, Lane 2, Kam Tsin Tsuen, Sheung Shui, Hong Kong
Tel:+852 2681 4099
Fax:+852 2681 4586

Southern Stars Enterprises Co (Shenzhen Office)
Add:DE, 16/F, Building 2, Nanguo Tower, Sungang Road, Shenzhen, China
Tel:+86 755 2592 9100
Fax:+86 755 2592 7171

E-mail:sstar@netvigator.com
website:www.amberdigital.com.hk
alibaba:amberdigital.en.alibaba.com[chie

28 Ago.
24 Ago.
9 Ago.
30 Lug.
Immagine di Anonimo
(没有名字) ha scritto:

徵 信是個富有挑戰的工作,忙碌、刺激、激情。最后的結局總是有人哭,有人笑。在徵信社工作的幾年時間里,我感悟到很多生活的無奈與殘酷。閑暇時我去中古车市 场,感覺工作太緊張,放松一下而已,不是純粹的為了淘二手车。私家偵探也就是徵信工作人員似乎是個很酷的詞,但是如果誰需要私家偵探來幫忙的話,他(她) 的婚姻也許已經亮起了紅燈。每天陪著星際客戶喝著咖啡,似乎是一件很爽的事,可是她們的眼淚比咖啡要苦的多。常常聽他們說嘈雜的燈光音響麻痹著他們的神 經,讓他們過著醉生夢死的生活。其實,誰不渴望幸福美滿的愛情。沒有團體制服不了那些玩弄生活、玩弄感情的人,于是,徵信社應運而生。這不知道是人們的福 音還是不幸,希望天下的每一個人都歡樂著、幸福著。坐月子是女人一生的大事,女人可以为了襁褓中的婴儿放弃一直引用的红酒而吃月子餐,这时候的女人是幸福 而伟大的。有人歡喜有人優,有人狂笑有人大哭,我不想看到女人太多的眼淚,辭職后,我做了一位安靜、平和的室內設計師。虽然上下班没有了车接车送,但我租 车怡然自得。偶爾和Fake Rolex Watch, Breitling Replica Watch, Best replica watches, Omega Replica Watches ecosway的朋友小聚,很愜意

24 Lug.
26 Mar.
hai wangha scritto:
8i我没做过实验,但是拒jl说是基于extent-based checkpoint
11 Apr.
yumianfeil​ongha scritto:
在8i下测了一下,checkpoint实际上是tablespace checkpoint;
 
并行的时候,会将要并行扫描的段所在的表空间的所有blocks都flush to disk.

I see on Mark Rittman's website a note about an enhancement in 10g Release 2
relating to:
"a change in the way that checkpoints are issued prior to a direct path read
when using parallel query, so that now just the object being queried is
checkpointed rather than the whole tablespace"
9 Apr.
hai wangha scritto:
对,针对小表而言parallel query不会采取direct read
27 Mar.
yumianfeil​ongha scritto:
测试了一下,当表的数据比较大的时候,确实有如上结果。
 
但是当表数据比较少的时候,并行查询,并行进程竟然使用的是db file sequential/ scattered read;就不会有如上的结果。
 
看来Oracle会根据要访问的数据量大小来决定访问方法。
25 Mar.
eygleha scritto:
不错,在10g里看到了这个统计信息,没有仔细研究。
17 Mar.

Riferimenti

L'URL di riferimento per questo intervento è:
http://wzwanghai.spaces.live.com/blog/cns!56626E237AFBD116!302.trak
Blog che fanno riferimento a questo intervento
  • Nessuno