DTCC2011                                恩墨科技 成就所托                                  www.eNMOU.com© 2009-2012 Eygle.com All ...
DTCC2011                          深入解析Oracle                 -栓锁竞争与Latch优化实践                                             •...
Who am I         DTCC2011      盖国强                    北京恩墨科技有限公司           创始人                盖国强是国内第一个Oracle ACE及ACE总监 ...
数据库宏观的演进-拆分与并发                   DTCC2011                                             企业的经历:                              ...
DTCC2011         数据库微观的演进-拆分与并发                                      Instance                                         SGA ...
Latch竞争导致CPU 100%                                 DTCC2011© 2009-2012 Eygle.com All rights reserved.   6
案例分析-棘手的CPU问题                            DTCC2011    Latch:Oracle用于控制内存并发的串行锁机制© 2009-2012 Eygle.com All rights reserved. ...
案例分析-棘手的CPU问题                            DTCC2011© 2009-2012 Eygle.com All rights reserved.   8
以数据库的视角思考 DTCC2011 Index II Latch:                                                 Latch:                  Index I        ...
Latch:row cache objects                                        DTCC2011                        SQL A                 SQL A...
cursor pin S wait on DTCC2011                                         X                        SQL A                SQL A ...
What mean Latch Free?                                     DTCC2011© 2009-2012 Eygle.com All rights reserved.   12
索引与Row Cache Gets                                    DTCC2011© 2009-2012 Eygle.com All rights reserved.   13
最佳实践:降低CPU负载                             DTCC2011© 2009-2012 Eygle.com All rights reserved.   14
DTCC2011                             恩墨科技 成就所托                               www.eNMOU.com© 2009-2012 Eygle.com All rights...
Upcoming SlideShare
Loading in …5
×

盖国强:深入解析Oracle 栓锁竞争与latch优化实践

1,400 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,400
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

盖国强:深入解析Oracle 栓锁竞争与latch优化实践

  1. 1. DTCC2011 恩墨科技 成就所托 www.eNMOU.com© 2009-2012 Eygle.com All rights reserved. 1
  2. 2. DTCC2011 深入解析Oracle -栓锁竞争与Latch优化实践 • 盖国强 (eygle) 北京恩墨科技 • Mobile:13911812803 • MSN: eygle@hotmail.com • Site : www.eygle.com • Mail: eygle@eygle.com© 2009-2012 Eygle.com All rights reserved. 2
  3. 3. Who am I DTCC2011  盖国强 北京恩墨科技有限公司 创始人  盖国强是国内第一个Oracle ACE及ACE总监  截至2010年已经出版了8本技术书籍,在国内拥有最广泛的读者群  国内最大技术论坛ITPUB的主要发起人之一  独家为甲骨文公司提供定制的“大师系列培训课程”  2006年中国十大杰出数据库工程师之一  2010年,他和张乐奕共同创建了旨在开展技术交流的中国Oracle用户组 (ACOUG – All China Oracle User Group),并开展了持续的公益活动© 2009-2012 Eygle.com All rights reserved. 3
  4. 4. 数据库宏观的演进-拆分与并发 DTCC2011 企业的经历:  数据累积 性能衰减  拆分数据表  分割数据库  分布式数据库  异构与迁移 企业的目标:  提升性能  提高稳定性  保障数据安全© 2009-2012 Eygle.com All rights reserved. 4
  5. 5. DTCC2011 数据库微观的演进-拆分与并发 Instance SGA Shared Pool Server Result Cache Redo Log Database Buffer Library Cache Buffer Cache Streams pool Data Dictionary Cache Java Pool Large Pool PMON SMON DBWR LGWR CKPT Others Latch:Oracle的串行内存锁机制  Latch:shared Pool  Latch:Library Cache  Latch:Row Cache Objects© 2009-2012 Eygle.com All rights reserved. 5
  6. 6. Latch竞争导致CPU 100% DTCC2011© 2009-2012 Eygle.com All rights reserved. 6
  7. 7. 案例分析-棘手的CPU问题 DTCC2011 Latch:Oracle用于控制内存并发的串行锁机制© 2009-2012 Eygle.com All rights reserved. 7
  8. 8. 案例分析-棘手的CPU问题 DTCC2011© 2009-2012 Eygle.com All rights reserved. 8
  9. 9. 以数据库的视角思考 DTCC2011 Index II Latch: Latch: Index I Cache buffer lru chain Cache buffer chain cid status 1 cid data 1 Freea 3 1 1 2 Free 5 12 3 3 Free 24 5 SQL-1 SQL-2 SQL-3 Latch: Latch: shared pool library cache 1 3 5 8© 2009-2012 Eygle.com All rights reserved. 9
  10. 10. Latch:row cache objects DTCC2011 SQL A SQL A SQL A Latch:row cache objects Latch: row cache objects© 2009-2012 Eygle.com All rights reserved. 10
  11. 11. cursor pin S wait on DTCC2011 X SQL A SQL A SQL A cursor pin S wait on X Latch: Pin S row cache objects SQL A On X© 2009-2012 Eygle.com All rights reserved. 11
  12. 12. What mean Latch Free? DTCC2011© 2009-2012 Eygle.com All rights reserved. 12
  13. 13. 索引与Row Cache Gets DTCC2011© 2009-2012 Eygle.com All rights reserved. 13
  14. 14. 最佳实践:降低CPU负载 DTCC2011© 2009-2012 Eygle.com All rights reserved. 14
  15. 15. DTCC2011 恩墨科技 成就所托 www.eNMOU.com© 2009-2012 Eygle.com All rights reserved. 15

×