SlideShare une entreprise Scribd logo
1  sur  26
恩墨科技 成就所托
                                  www.eNMOU.com




© 2007-2009 Eygle.com All rights reserved.        1
深 入 解 析 Oracle
                   -数据库架构设计与性能优化实践



                                             • 盖国强 (eygle)
                                                         北京恩墨科技
                                             •   Mobile:13911812803
                                             •   MSN: eygle@hotmail.com
                                             •   Site : www.eygle.com
                                             •   Mail: eygle@eygle.com
© 2007-2009 Eygle.com All rights reserved.                          2
Who am I
          10+ 年 Oracle数据库经验
          北京恩墨科技有限公司 创始人
          ITPUB论坛超级版主
          Oracle ACE 总监
          博客站点: www.eygle.com
           公司站点: www.enmou.com
          成长于网络、回馈于网络 www.acoug.org




           2004              2005             2006   2007   2008   2009

© 2007-2009 Eygle.com All rights reserved.                                3
企业面临的数据现状
    •   海量的数据累积
    •   不断增长的存储与IO压力
    •   统计与运算的性能衰减
    •   扩展能力的瓶颈




© 2007-2009 Eygle.com All rights reserved.   4
(一)充分了解你的数据




© 2007-2009 Eygle.com All rights reserved.   5
架构设计:了解数据访问频度
    • 高频表的存储与优化




© 2007-2009 Eygle.com All rights reserved.   6
(二)制定数据缓存与归档机制




© 2007-2009 Eygle.com All rights reserved.   7
缓存为王:Default / Keep Cache
                       Auto-tuned


                                                                             nK Buffer
                      Default                     Keep         Recycle
                                                                             cache

                                                                                           F

                                                                                           E
                                  Working set 1              Working set 2
                              B                          E                                 D

                              A              C           F           F                     C
                                                                             …
                              C              A           D           D                     B

                                                                                           A
                            LRU        CKPTs         LRU          CKPTs
                                                                                         Buffer
                                                                                         cache



© 2007-2009 Eygle.com All rights reserved.                                                        8
缓存为王:Default Cache




© 2007-2009 Eygle.com All rights reserved.   9
(三)学习Oracle的设计理念




© 2007-2009 Eygle.com All rights reserved.   10
架构设计:拆分与分割
    • Oracle的内存管理演进




© 2007-2009 Eygle.com All rights reserved.   11
架构设计:分表、分区、分库




© 2007-2009 Eygle.com All rights reserved.   12
Oracle11g:Result Cache
    • Result Cache又可以分为
                                                                         Shared Pool
          – Server Result Cache
                                                                        Server Result
          – Client Result Cache                                            Cache
           SQL> select /*+ result_cache */ count(*) from eygle;
                                                                            Library
             COUNT(*)
           ----------                                                       Cache
              15993
                                                                        Data Dictionary
           Statistics                                                       Cache
           ----------------------------------------------------------
                   0 recursive calls
                   0 db block gets
                   0 consistent gets
                   0 physical reads
                   0 redo size
                  420 bytes sent via SQL*Net to client
                  416 bytes received via SQL*Net from client
                   2 SQL*Net roundtrips to/from client
                   0 sorts (memory)
                   0 sorts (disk)
                   1 rows processed




© 2007-2009 Eygle.com All rights reserved.                                                13
(四)在瓶颈之处寻找突破




© 2007-2009 Eygle.com All rights reserved.   14
Cache为王:Flash Cache 支持
     4. User Process reads
                    Extended Buffer Cache
       blocks from SGA
       (copied from Flash
       Cache if not in SGA)


                Hot Data                                                                                  Warm Data
                     16 GB                                                          120 GB
                     SGA Memory                             3. Clean blocks         Flash Cache
                                                               moved to Flash
                                                               Cache based on
                                                               LRU*


                                1. Blocks read   2. Dirty blocks flushed to disk
                                   into buffer
                                   cache




                Cold Data
                      360 GB
                      Magnetic Disks
                                                                                   * Headers for Flash Cached
                                                                                     blocks kept in SGA


© 2007-2009 Eygle.com All rights reserved.                                                                      15
Oracle In Memory Database Cache
                 Offload Data processing to Middle Tier resources
                                                        Business       Business
         • Data cached in application                  Applications   Applications


           memory                                       Cached
                                                         tables
                                                                      Cached
                                                                       tables
             • Synchronized with Oracle Database

         • Fast, consistent response times
               – High transaction throughput
               – Scale out with In-Memory cached
                 Grid
         • Standard Oracle Interfaces
               – SQL, PL/SQL, OCI


© 2007-2009 Eygle.com All rights reserved.                                      16
(五)精心设计每一个资源消耗




© 2007-2009 Eygle.com All rights reserved.   17
数据库的使命:读、写与展示




© 2007-2009 Eygle.com All rights reserved.   18
数据库的使命:读、写与展示




© 2007-2009 Eygle.com All rights reserved.   19
矛与盾的抉择:灵活性与性能




© 2007-2009 Eygle.com All rights reserved.   20
架构设计:排序与翻页




© 2007-2009 Eygle.com All rights reserved.   21
架构设计:Scale UP / OUT
  • 水平扩展构架体系
        – Scale out的解决方案                     解决单库天花板问题
        – 对业务基本透明
        – 可动态扩展
  • 支持任何数据库
  • 未来支持多主结构
        – 坏掉任何一个主库,不影响业务
  • 未来支持压力动态均衡
        – 数据可以动态分布
        – 可以方便的扩展/减少数据库主机、

        (引自 陈吉平 淘宝网架构介绍)


© 2007-2009 Eygle.com All rights reserved.               22
Sun Oracle Database Machine
                Get on the Grid Faster - OLTP & Data Warehousing

                                             Oracle Database Server Grid
                                             • 8 Database Servers
                                                 – 64 Cores
                                                 – 400 GB DRAM
                                             Exadata Storage Server Grid
                                             • 14 Storage Servers
                                                 – 5TB Smart Flash Cache
                                                 – 336 TB Disk Storage
                                             Unified Server/Storage Network
                                             • 40 Gb/sec Infiniband Links
                                                 – 880 Gb/sec Aggregate Throughput
                                             Completely Fault Tolerant



© 2007-2009 Eygle.com All rights reserved.                                           23
Significantly Reduce Storage Usage
                                  Advanced OLTP Compression

                               • Compress large application tables
                                  – Transaction processing, data warehousing
                               • Compress all data types
                                  – Structured and unstructured data types
                               • Improve query performance
                                  – Cascade storage savings throughout data center

                                               Up To



                                              4X
                                               Compression

© 2007-2009 Eygle.com All rights reserved.                                           24
Sun Oracle Exadata Storage Server
                                 Hybrid Columnar Compression


    • Data stored by column
      and then compressed
    • Useful for data that is bulk
      loaded or moved
    • Query mode for data warehousing
         – Typical 10X compression ratios
         – Scans improve accordingly
    • Archival mode for old data
         – Typical 15- 50X compression ratios
                                                               Up To


                                                               50X
© 2007-2009 Eygle.com All rights reserved.                             25
恩墨科技 成就所托

                               www.eNMOU.com




© 2007-2009 Eygle.com All rights reserved.     26

Contenu connexe

Tendances

Sun storage tek 6140 customer presentation
Sun storage tek 6140 customer presentationSun storage tek 6140 customer presentation
Sun storage tek 6140 customer presentationxKinAnx
 
Less01 architecture
Less01 architectureLess01 architecture
Less01 architectureAmit Bhalla
 
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)VLSI SYSTEM Design
 
Sun storage tek 2500 series disk array technical presentation
Sun storage tek 2500 series disk array technical presentationSun storage tek 2500 series disk array technical presentation
Sun storage tek 2500 series disk array technical presentationxKinAnx
 
D17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emD17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emMoeen_uddin
 
Joel Gibson - Challenge 2 - Virtual Design Master
Joel Gibson - Challenge 2 - Virtual Design MasterJoel Gibson - Challenge 2 - Virtual Design Master
Joel Gibson - Challenge 2 - Virtual Design Mastervdmchallenge
 
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?  Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You? EMC
 
White Paper: Using Perforce 'Attributes' for Managing Game Asset Metadata
White Paper: Using Perforce 'Attributes' for Managing Game Asset MetadataWhite Paper: Using Perforce 'Attributes' for Managing Game Asset Metadata
White Paper: Using Perforce 'Attributes' for Managing Game Asset MetadataPerforce
 
Sun storage tek 2500 series disk array customer presentation
Sun storage tek 2500 series disk array customer presentationSun storage tek 2500 series disk array customer presentation
Sun storage tek 2500 series disk array customer presentationxKinAnx
 
Sun storage tek 2500 series disk array sales presentation
Sun storage tek 2500 series disk array sales presentationSun storage tek 2500 series disk array sales presentation
Sun storage tek 2500 series disk array sales presentationxKinAnx
 
Presentation sun storage tek™ 2500 series
Presentation   sun storage tek™ 2500 seriesPresentation   sun storage tek™ 2500 series
Presentation sun storage tek™ 2500 seriesxKinAnx
 
Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012StampedeCon
 
Hadoop Distributed File System Reliability and Durability at Facebook
Hadoop Distributed File System Reliability and Durability at FacebookHadoop Distributed File System Reliability and Durability at Facebook
Hadoop Distributed File System Reliability and Durability at FacebookDataWorks Summit
 
IBM Solid State in eX5 servers
IBM Solid State in eX5 serversIBM Solid State in eX5 servers
IBM Solid State in eX5 serversTony Pearson
 
Intel - Challenges and Opportunities in Cloud-Based Genomics Analytics
Intel - Challenges and Opportunities in Cloud-Based Genomics AnalyticsIntel - Challenges and Opportunities in Cloud-Based Genomics Analytics
Intel - Challenges and Opportunities in Cloud-Based Genomics AnalyticsIntelHealthcare
 

Tendances (19)

Sun storage tek 6140 customer presentation
Sun storage tek 6140 customer presentationSun storage tek 6140 customer presentation
Sun storage tek 6140 customer presentation
 
Less01 architecture
Less01 architectureLess01 architecture
Less01 architecture
 
Less08 users
Less08 usersLess08 users
Less08 users
 
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
 
Sun storage tek 2500 series disk array technical presentation
Sun storage tek 2500 series disk array technical presentationSun storage tek 2500 series disk array technical presentation
Sun storage tek 2500 series disk array technical presentation
 
D17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emD17316 gc20 l03_broker_em
D17316 gc20 l03_broker_em
 
Joel Gibson - Challenge 2 - Virtual Design Master
Joel Gibson - Challenge 2 - Virtual Design MasterJoel Gibson - Challenge 2 - Virtual Design Master
Joel Gibson - Challenge 2 - Virtual Design Master
 
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?  Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
Greenplum Analytics Workbench - What Can a Private Hadoop Cloud Do For You?
 
White Paper: Using Perforce 'Attributes' for Managing Game Asset Metadata
White Paper: Using Perforce 'Attributes' for Managing Game Asset MetadataWhite Paper: Using Perforce 'Attributes' for Managing Game Asset Metadata
White Paper: Using Perforce 'Attributes' for Managing Game Asset Metadata
 
Place decap
Place decapPlace decap
Place decap
 
Sun storage tek 2500 series disk array customer presentation
Sun storage tek 2500 series disk array customer presentationSun storage tek 2500 series disk array customer presentation
Sun storage tek 2500 series disk array customer presentation
 
Sun storage tek 2500 series disk array sales presentation
Sun storage tek 2500 series disk array sales presentationSun storage tek 2500 series disk array sales presentation
Sun storage tek 2500 series disk array sales presentation
 
Presentation sun storage tek™ 2500 series
Presentation   sun storage tek™ 2500 seriesPresentation   sun storage tek™ 2500 series
Presentation sun storage tek™ 2500 series
 
Dba 3+ exp qus
Dba 3+ exp qusDba 3+ exp qus
Dba 3+ exp qus
 
Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012Facebook's HBase Backups - StampedeCon 2012
Facebook's HBase Backups - StampedeCon 2012
 
Hadoop Distributed File System Reliability and Durability at Facebook
Hadoop Distributed File System Reliability and Durability at FacebookHadoop Distributed File System Reliability and Durability at Facebook
Hadoop Distributed File System Reliability and Durability at Facebook
 
IBM Solid State in eX5 servers
IBM Solid State in eX5 serversIBM Solid State in eX5 servers
IBM Solid State in eX5 servers
 
Presentations bu 8
Presentations bu 8Presentations bu 8
Presentations bu 8
 
Intel - Challenges and Opportunities in Cloud-Based Genomics Analytics
Intel - Challenges and Opportunities in Cloud-Based Genomics AnalyticsIntel - Challenges and Opportunities in Cloud-Based Genomics Analytics
Intel - Challenges and Opportunities in Cloud-Based Genomics Analytics
 

Similaire à 深入解析Oracle-数据库架构设计与性能优化实践

Oracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデートOracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデートオラクルエンジニア通信
 
Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...
Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...
Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...inwin stack
 
G108277 ds8000-resiliency-lagos-v1905c
G108277 ds8000-resiliency-lagos-v1905cG108277 ds8000-resiliency-lagos-v1905c
G108277 ds8000-resiliency-lagos-v1905cTony Pearson
 
Built-in Replication in PostgreSQL
Built-in Replication in PostgreSQLBuilt-in Replication in PostgreSQL
Built-in Replication in PostgreSQLMasao Fujii
 
SDC20 ScaleFlux.pptx
SDC20 ScaleFlux.pptxSDC20 ScaleFlux.pptx
SDC20 ScaleFlux.pptxssuserabc741
 
Less04 database instance
Less04 database instanceLess04 database instance
Less04 database instanceAmit Bhalla
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best PracticesMark Ginnebaugh
 
SUN+Oracle存储产品介绍
SUN+Oracle存储产品介绍SUN+Oracle存储产品介绍
SUN+Oracle存储产品介绍PencilData
 
Ceph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph clusterCeph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph clusterCeph Community
 
Sparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterpriseSparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterprisesolarisyougood
 
QCon2016--Drive Best Spark Performance on AI
QCon2016--Drive Best Spark Performance on AIQCon2016--Drive Best Spark Performance on AI
QCon2016--Drive Best Spark Performance on AILex Yu
 
Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster
Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster
Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster Ceph Community
 
Ceph Day Tokyo - Delivering cost effective, high performance Ceph cluster
Ceph Day Tokyo - Delivering cost effective, high performance Ceph clusterCeph Day Tokyo - Delivering cost effective, high performance Ceph cluster
Ceph Day Tokyo - Delivering cost effective, high performance Ceph clusterCeph Community
 
Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster
Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster
Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster Ceph Community
 
Miro Consulting Oracle Exadata Database Machine Offering
Miro Consulting  Oracle Exadata Database Machine OfferingMiro Consulting  Oracle Exadata Database Machine Offering
Miro Consulting Oracle Exadata Database Machine Offeringgarylcoleman
 
Resume_CQ_Edward
Resume_CQ_EdwardResume_CQ_Edward
Resume_CQ_Edwardcaiqi wang
 
PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas) PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas) Ontico
 

Similaire à 深入解析Oracle-数据库架构设计与性能优化实践 (20)

Oracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデートOracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデート
Oracle Cloud PaaS & IaaS:2019年12月度サービス情報アップデート
 
Why_Oracle_Hardware.ppt
Why_Oracle_Hardware.pptWhy_Oracle_Hardware.ppt
Why_Oracle_Hardware.ppt
 
Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...
Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...
Intel - optimizing ceph performance by leveraging intel® optane™ and 3 d nand...
 
G108277 ds8000-resiliency-lagos-v1905c
G108277 ds8000-resiliency-lagos-v1905cG108277 ds8000-resiliency-lagos-v1905c
G108277 ds8000-resiliency-lagos-v1905c
 
Built-in Replication in PostgreSQL
Built-in Replication in PostgreSQLBuilt-in Replication in PostgreSQL
Built-in Replication in PostgreSQL
 
SDC20 ScaleFlux.pptx
SDC20 ScaleFlux.pptxSDC20 ScaleFlux.pptx
SDC20 ScaleFlux.pptx
 
Less04 database instance
Less04 database instanceLess04 database instance
Less04 database instance
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best Practices
 
SUN+Oracle存储产品介绍
SUN+Oracle存储产品介绍SUN+Oracle存储产品介绍
SUN+Oracle存储产品介绍
 
Ceph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph clusterCeph Day KL - Delivering cost-effective, high performance Ceph cluster
Ceph Day KL - Delivering cost-effective, high performance Ceph cluster
 
Sparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterpriseSparc m6 32 in-memory infrastructure for the entire enterprise
Sparc m6 32 in-memory infrastructure for the entire enterprise
 
QCon2016--Drive Best Spark Performance on AI
QCon2016--Drive Best Spark Performance on AIQCon2016--Drive Best Spark Performance on AI
QCon2016--Drive Best Spark Performance on AI
 
Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster
Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster
Ceph Day Seoul - Delivering Cost Effective, High Performance Ceph cluster
 
OpenDBCamp Virtualization
OpenDBCamp VirtualizationOpenDBCamp Virtualization
OpenDBCamp Virtualization
 
Ceph Day Tokyo - Delivering cost effective, high performance Ceph cluster
Ceph Day Tokyo - Delivering cost effective, high performance Ceph clusterCeph Day Tokyo - Delivering cost effective, high performance Ceph cluster
Ceph Day Tokyo - Delivering cost effective, high performance Ceph cluster
 
Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster
Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster
Ceph Day Taipei - Delivering cost-effective, high performance, Ceph cluster
 
Miro Consulting Oracle Exadata Database Machine Offering
Miro Consulting  Oracle Exadata Database Machine OfferingMiro Consulting  Oracle Exadata Database Machine Offering
Miro Consulting Oracle Exadata Database Machine Offering
 
Resume_CQ_Edward
Resume_CQ_EdwardResume_CQ_Edward
Resume_CQ_Edward
 
PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas) PostgreSQL Write-Ahead Log (Heikki Linnakangas)
PostgreSQL Write-Ahead Log (Heikki Linnakangas)
 
CLFS 2010
CLFS 2010CLFS 2010
CLFS 2010
 

Dernier

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 

Dernier (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

深入解析Oracle-数据库架构设计与性能优化实践

  • 1. 恩墨科技 成就所托 www.eNMOU.com © 2007-2009 Eygle.com All rights reserved. 1
  • 2. 深 入 解 析 Oracle -数据库架构设计与性能优化实践 • 盖国强 (eygle) 北京恩墨科技 • Mobile:13911812803 • MSN: eygle@hotmail.com • Site : www.eygle.com • Mail: eygle@eygle.com © 2007-2009 Eygle.com All rights reserved. 2
  • 3. Who am I  10+ 年 Oracle数据库经验  北京恩墨科技有限公司 创始人  ITPUB论坛超级版主  Oracle ACE 总监  博客站点: www.eygle.com 公司站点: www.enmou.com  成长于网络、回馈于网络 www.acoug.org 2004 2005 2006 2007 2008 2009 © 2007-2009 Eygle.com All rights reserved. 3
  • 4. 企业面临的数据现状 • 海量的数据累积 • 不断增长的存储与IO压力 • 统计与运算的性能衰减 • 扩展能力的瓶颈 © 2007-2009 Eygle.com All rights reserved. 4
  • 6. 架构设计:了解数据访问频度 • 高频表的存储与优化 © 2007-2009 Eygle.com All rights reserved. 6
  • 8. 缓存为王:Default / Keep Cache Auto-tuned nK Buffer Default Keep Recycle cache F E Working set 1 Working set 2 B E D A C F F C … C A D D B A LRU CKPTs LRU CKPTs Buffer cache © 2007-2009 Eygle.com All rights reserved. 8
  • 9. 缓存为王:Default Cache © 2007-2009 Eygle.com All rights reserved. 9
  • 11. 架构设计:拆分与分割 • Oracle的内存管理演进 © 2007-2009 Eygle.com All rights reserved. 11
  • 13. Oracle11g:Result Cache • Result Cache又可以分为 Shared Pool – Server Result Cache Server Result – Client Result Cache Cache SQL> select /*+ result_cache */ count(*) from eygle; Library COUNT(*) ---------- Cache 15993 Data Dictionary Statistics Cache ---------------------------------------------------------- 0 recursive calls 0 db block gets 0 consistent gets 0 physical reads 0 redo size 420 bytes sent via SQL*Net to client 416 bytes received via SQL*Net from client 2 SQL*Net roundtrips to/from client 0 sorts (memory) 0 sorts (disk) 1 rows processed © 2007-2009 Eygle.com All rights reserved. 13
  • 15. Cache为王:Flash Cache 支持 4. User Process reads Extended Buffer Cache blocks from SGA (copied from Flash Cache if not in SGA) Hot Data Warm Data 16 GB 120 GB SGA Memory 3. Clean blocks Flash Cache moved to Flash Cache based on LRU* 1. Blocks read 2. Dirty blocks flushed to disk into buffer cache Cold Data 360 GB Magnetic Disks * Headers for Flash Cached blocks kept in SGA © 2007-2009 Eygle.com All rights reserved. 15
  • 16. Oracle In Memory Database Cache Offload Data processing to Middle Tier resources Business Business • Data cached in application Applications Applications memory Cached tables Cached tables • Synchronized with Oracle Database • Fast, consistent response times – High transaction throughput – Scale out with In-Memory cached Grid • Standard Oracle Interfaces – SQL, PL/SQL, OCI © 2007-2009 Eygle.com All rights reserved. 16
  • 22. 架构设计:Scale UP / OUT • 水平扩展构架体系 – Scale out的解决方案 解决单库天花板问题 – 对业务基本透明 – 可动态扩展 • 支持任何数据库 • 未来支持多主结构 – 坏掉任何一个主库,不影响业务 • 未来支持压力动态均衡 – 数据可以动态分布 – 可以方便的扩展/减少数据库主机、 (引自 陈吉平 淘宝网架构介绍) © 2007-2009 Eygle.com All rights reserved. 22
  • 23. Sun Oracle Database Machine Get on the Grid Faster - OLTP & Data Warehousing Oracle Database Server Grid • 8 Database Servers – 64 Cores – 400 GB DRAM Exadata Storage Server Grid • 14 Storage Servers – 5TB Smart Flash Cache – 336 TB Disk Storage Unified Server/Storage Network • 40 Gb/sec Infiniband Links – 880 Gb/sec Aggregate Throughput Completely Fault Tolerant © 2007-2009 Eygle.com All rights reserved. 23
  • 24. Significantly Reduce Storage Usage Advanced OLTP Compression • Compress large application tables – Transaction processing, data warehousing • Compress all data types – Structured and unstructured data types • Improve query performance – Cascade storage savings throughout data center Up To 4X Compression © 2007-2009 Eygle.com All rights reserved. 24
  • 25. Sun Oracle Exadata Storage Server Hybrid Columnar Compression • Data stored by column and then compressed • Useful for data that is bulk loaded or moved • Query mode for data warehousing – Typical 10X compression ratios – Scans improve accordingly • Archival mode for old data – Typical 15- 50X compression ratios Up To 50X © 2007-2009 Eygle.com All rights reserved. 25
  • 26. 恩墨科技 成就所托 www.eNMOU.com © 2007-2009 Eygle.com All rights reserved. 26