SlideShare a Scribd company logo
1 of 32
Download to read offline
<Insert Picture Here>




Oracle Exadata Extreme Performance

Real World Database Performance
Kaiyao Huang

                               © 2011 Oracle Corporation
About Me
•   工作于Oracle Real World Database Performance Group
•   关键词:   高性能, 高可扩展性, Exadata
•   微博:    http://www.weibo.com/kaiyaohuang
•   博客:    http://www.os2ora.com
•   电子邮件:kaiyao.huang@gmail.com
•   电话:    186-649-33229/黄凯耀
Agenda

• Data Loading
• Data Unloading
• Performance Monitoring
Data Loading
            What is it look like?

• Methods Available?
  •   imp?
  •   Data Pump?
  •   SQL * Loader?
  •   RMAN?
  •   External Table?
  •   Others?


• Expected Speed?

• CPU-bound or IO-bound?
Architecture
Data Loading
         IO Requirement

• 1 Terabyte per hour
  • 17 GByte/minute
  • 291 MByte/s
• With compressed source data
  • 1057 Gbyte Text Files  136 Gbyte GZIP Files
  • 2.3 GByte/minute
  • 40 MByte/s
Data Loading
      CPU/Memory Requirement
• Data loading is CPU/Memory Constrained
  • Raw is the cheapest
  • Timestamp is the most expensive
  • One SQL*Loader will use one copy of in-memory meta data
Data Loading
      Compress the Data
• Use preprocessor in external table definition
Data Loading
             External Table
                          External Table
create table et_target      Definition
(
column definition list ...           Reference the
)                                      Mount Point
organization external
(type oracle_loader                           Uncompress
default directory SPEEDY_FILESYSTEM              the data
preprocessor exec_file_dir: 'zcat' options '-c’
characterset 'ZHS16GBK’
                                                 The Characterset
badfile ERROR_DUMP: ’FAST_LOAD.bad’
                                                  must match the
logfile ERROR_DUMP: ’FAST_LOAD.log’
                                                Characterset of the
(
file column mapping list ...
                                                        Files
)                                                     Note Compressed
location                                                      Files
(file_1.gz, file_2.gz, file_3.gz, file_4.gz )
reject limit 1000                                               Parallel should
parallel 4                                                          match the
/                                                               number of Files
Data Loading
         How to Use

alter session enable parallel dml;
alter table target parallel;
alter table et_target parallel;
insert /*+ append */ into target
select * from et_target;
Data Loading
      Live Demo
• Load 1 TB data

   TABLE            SIZE OF SOURCE DATA   NUMBER OF RECORDS


   • Transactions   • 52 GByte            • 461M


   • Payments       • 54 GByte            • 461M


   • Line Items     • 936 Gbyte           • 6945M


   • Total          • 1042 GByte          • 7867M
Agenda

• Data Loading
• Data Unloading
• Performance Monitoring
Data Unloading
            What is it look like?

• Methods Available?
  •   exp?
  •   Data Pump?
  •   sqlplus spool?
  •   RMAN?
  •   sqluldr2 by anysql.net?
  •   Others?


• Expected Speed?

• CPU-bound or IO-bound?
Architecture
Data Unloading
    Parallel Table Function
Data Unloading
         IO Requirement

• 1 Terabyte per hour
  • 17 GByte/minute
  • 291 MByte/s
• With compressed target data
  • 1057 Gbyte Text Files  136 Gbyte GZIP Files
  • 2.3 GByte/minute
  • 40 MByte/s
Data Unloading
      CPU Requirement
• Data unloading is CPU Constrained
  • Raw is the cheapest
  • Timestamp is the most expensive
Data Unloading
      Compress the Data
• Use FIFO Pipe file to compress the data
Data Unloading
      Live Demo
• Unload 1 TB data

   TABLE             SIZE OF SOURCE DATA   NUMBER OF RECORDS


   • Transactions    • 52 GByte            • 461M


   • Payments        • 54 GByte            • 461M


   • Line Items      • 936 Gbyte           • 6945M


   • Total           • 1042 GByte          • 7867M
Agenda

• Data Loading
• Data Unloading
• Performance Monitoring
Performance Monitoring
            OS Real-Time Monitoring

•   vmstat?
•   iostat?
•   top?
•   sar?
•   netstat?
•   collectl?
Architecture of collectl
mon
      cluster-wide collectl
Performance Monitoring
           DB Monitoring

•   v$session?
•   v$sysstat?
•   statspack?
•   AWR?
•   ADDM?
•   SQL Monitor Report?
Performance Monitoring
     SQL Monitor Report
• 第一次执行的SQL Monitor Report
• 第二次执行的SQL Monitor Report
Live Example

INSERT /*+ APPEND */
INTO
  T_D
SELECT
  *
FROM
  T_A a
,T_B b
,T_C c
WHERE a.id = b.id
AND    b.number = c.number
;
Live Example
Live Example
Reference

• 史上最快,最具可扩展性的文本导出方法: http://www.os2ora.com/the-fastest-
  data-unload-method/
• 史上最快,最具可扩展性的文本导入方法: http://www.os2ora.com/the-fastest-
  data-load-method-best-practice/
• Linux操作系统资源监控工具重点推荐 — collectl: http://www.os2ora.com/linux-
  performance-monitoring-tool-recommend-collectl/
• Oracle监控工具概览: http://www.os2ora.com/oracle-monitoring-tool-summary-
  and-recommend/
• 测试: 一个SQL Monitor Report的具体例子: http://www.os2ora.com/test-sql-
  monitor-report-example/
• 利用SQL Monitor Report对SQL进行诊断与调优: http://www.os2ora.com/use-
  sql-monitor-report-to-tune-and-diagnose-sql/
PX Architecture
PX topics…

•   Degree of Parallelism
•   PX Distribution
•   PX Statement Queuing
•   Hash Partition
•   Partition-Wise Join

More Related Content

What's hot

8a. How To Setup HBase with Docker
8a. How To Setup HBase with Docker8a. How To Setup HBase with Docker
8a. How To Setup HBase with DockerFabio Fumarola
 
Evolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesEvolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesMydbops
 
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, HerokuPostgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, HerokuRedis Labs
 
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Mydbops
 
Json in Postgres - the Roadmap
 Json in Postgres - the Roadmap Json in Postgres - the Roadmap
Json in Postgres - the RoadmapEDB
 
Redis深入浅出
Redis深入浅出Redis深入浅出
Redis深入浅出iammutex
 
Boosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and SparkBoosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and SparkDvir Volk
 
In-core compression: how to shrink your database size in several times
In-core compression: how to shrink your database size in several timesIn-core compression: how to shrink your database size in several times
In-core compression: how to shrink your database size in several timesAleksander Alekseev
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to RedisArnab Mitra
 
10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQL10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQLSatoshi Nagayasu
 
What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6EDB
 
Storage talk
Storage talkStorage talk
Storage talkchristkv
 
DataEngConf SF16 - Collecting and Moving Data at Scale
DataEngConf SF16 - Collecting and Moving Data at Scale DataEngConf SF16 - Collecting and Moving Data at Scale
DataEngConf SF16 - Collecting and Moving Data at Scale Hakka Labs
 
Ceph and RocksDB
Ceph and RocksDBCeph and RocksDB
Ceph and RocksDBSage Weil
 
RocksDB compaction
RocksDB compactionRocksDB compaction
RocksDB compactionMIJIN AN
 
Ceph Day KL - Bluestore
Ceph Day KL - Bluestore Ceph Day KL - Bluestore
Ceph Day KL - Bluestore Ceph Community
 
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...Equnix Business Solutions
 
Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...
Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...
Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...Lucidworks
 

What's hot (20)

8a. How To Setup HBase with Docker
8a. How To Setup HBase with Docker8a. How To Setup HBase with Docker
8a. How To Setup HBase with Docker
 
Evolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best PracticesEvolution of MongoDB Replicaset and Its Best Practices
Evolution of MongoDB Replicaset and Its Best Practices
 
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, HerokuPostgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
Postgres & Redis Sitting in a Tree- Rimas Silkaitis, Heroku
 
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
Analyze corefile and backtraces with GDB for Mysql/MariaDB on Linux - Nilanda...
 
Json in Postgres - the Roadmap
 Json in Postgres - the Roadmap Json in Postgres - the Roadmap
Json in Postgres - the Roadmap
 
Redis深入浅出
Redis深入浅出Redis深入浅出
Redis深入浅出
 
Boosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and SparkBoosting Machine Learning with Redis Modules and Spark
Boosting Machine Learning with Redis Modules and Spark
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
In-core compression: how to shrink your database size in several times
In-core compression: how to shrink your database size in several timesIn-core compression: how to shrink your database size in several times
In-core compression: how to shrink your database size in several times
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQL10 Reasons to Start Your Analytics Project with PostgreSQL
10 Reasons to Start Your Analytics Project with PostgreSQL
 
What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6What's New in PostgreSQL 9.6
What's New in PostgreSQL 9.6
 
Storage talk
Storage talkStorage talk
Storage talk
 
DataEngConf SF16 - Collecting and Moving Data at Scale
DataEngConf SF16 - Collecting and Moving Data at Scale DataEngConf SF16 - Collecting and Moving Data at Scale
DataEngConf SF16 - Collecting and Moving Data at Scale
 
Ceph and RocksDB
Ceph and RocksDBCeph and RocksDB
Ceph and RocksDB
 
RocksDB compaction
RocksDB compactionRocksDB compaction
RocksDB compaction
 
Vmfs
VmfsVmfs
Vmfs
 
Ceph Day KL - Bluestore
Ceph Day KL - Bluestore Ceph Day KL - Bluestore
Ceph Day KL - Bluestore
 
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
 
Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...
Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...
Tuning Solr and its Pipeline for Logs: Presented by Rafał Kuć & Radu Gheorghe...
 

Similar to Exadata下的数据并行加载、并行卸载及性能监控

Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture PerformanceEnkitec
 
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Bobby Curtis
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceEnkitec
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architectureSimon Huang
 
Scale your Alfresco Solutions
Scale your Alfresco Solutions Scale your Alfresco Solutions
Scale your Alfresco Solutions Alfresco Software
 
Spark shuffle introduction
Spark shuffle introductionSpark shuffle introduction
Spark shuffle introductioncolorant
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)MongoDB
 
Monitoring MongoDB’s Engines in the Wild
Monitoring MongoDB’s Engines in the WildMonitoring MongoDB’s Engines in the Wild
Monitoring MongoDB’s Engines in the WildTim Vaillancourt
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment StrategyMongoDB
 
Tachyon memory centric, fault tolerance storage for cluster framworks
Tachyon  memory centric, fault tolerance storage for cluster framworksTachyon  memory centric, fault tolerance storage for cluster framworks
Tachyon memory centric, fault tolerance storage for cluster framworksViet-Trung TRAN
 
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChangerZero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChangerMongoDB
 
Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...
Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...
Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...MongoDB
 
The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...
The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...
The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...Glenn K. Lockwood
 
Some key value stores using log-structure
Some key value stores using log-structureSome key value stores using log-structure
Some key value stores using log-structureZhichao Liang
 
Adding Support for Networking and Web Technologies to an Embedded System
Adding Support for Networking and Web Technologies to an Embedded SystemAdding Support for Networking and Web Technologies to an Embedded System
Adding Support for Networking and Web Technologies to an Embedded SystemJohn Efstathiades
 
Oracle Performance On Linux X86 systems
Oracle  Performance On Linux  X86 systems Oracle  Performance On Linux  X86 systems
Oracle Performance On Linux X86 systems Baruch Osoveskiy
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment StrategiesMongoDB
 
MongoDB: Optimising for Performance, Scale & Analytics
MongoDB: Optimising for Performance, Scale & AnalyticsMongoDB: Optimising for Performance, Scale & Analytics
MongoDB: Optimising for Performance, Scale & AnalyticsServer Density
 

Similar to Exadata下的数据并行加载、并行卸载及性能监控 (20)

Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
Maaz Anjum - IOUG Collaborate 2013 - An Insight into Space Realization on ODA...
 
OGG Architecture Performance
OGG Architecture PerformanceOGG Architecture Performance
OGG Architecture Performance
 
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
Oracle GoldenGate Presentation from OTN Virtual Technology Summit - 7/9/14 (PDF)
 
Oracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture PerformanceOracle GoldenGate Architecture Performance
Oracle GoldenGate Architecture Performance
 
Oracle db architecture
Oracle db architectureOracle db architecture
Oracle db architecture
 
Scale your Alfresco Solutions
Scale your Alfresco Solutions Scale your Alfresco Solutions
Scale your Alfresco Solutions
 
Spark shuffle introduction
Spark shuffle introductionSpark shuffle introduction
Spark shuffle introduction
 
Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)Deployment Strategies (Mongo Austin)
Deployment Strategies (Mongo Austin)
 
Monitoring MongoDB’s Engines in the Wild
Monitoring MongoDB’s Engines in the WildMonitoring MongoDB’s Engines in the Wild
Monitoring MongoDB’s Engines in the Wild
 
Deployment Strategy
Deployment StrategyDeployment Strategy
Deployment Strategy
 
Tachyon memory centric, fault tolerance storage for cluster framworks
Tachyon  memory centric, fault tolerance storage for cluster framworksTachyon  memory centric, fault tolerance storage for cluster framworks
Tachyon memory centric, fault tolerance storage for cluster framworks
 
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChangerZero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
Zero to 1 Billion+ Records: A True Story of Learning & Scaling GameChanger
 
Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...
Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...
Ensuring High Availability for Real-time Analytics featuring Boxed Ice / Serv...
 
The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...
The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...
The Proto-Burst Buffer: Experience with the flash-based file system on SDSC's...
 
Hadoop introduction
Hadoop introductionHadoop introduction
Hadoop introduction
 
Some key value stores using log-structure
Some key value stores using log-structureSome key value stores using log-structure
Some key value stores using log-structure
 
Adding Support for Networking and Web Technologies to an Embedded System
Adding Support for Networking and Web Technologies to an Embedded SystemAdding Support for Networking and Web Technologies to an Embedded System
Adding Support for Networking and Web Technologies to an Embedded System
 
Oracle Performance On Linux X86 systems
Oracle  Performance On Linux  X86 systems Oracle  Performance On Linux  X86 systems
Oracle Performance On Linux X86 systems
 
Deployment Strategies
Deployment StrategiesDeployment Strategies
Deployment Strategies
 
MongoDB: Optimising for Performance, Scale & Analytics
MongoDB: Optimising for Performance, Scale & AnalyticsMongoDB: Optimising for Performance, Scale & Analytics
MongoDB: Optimising for Performance, Scale & Analytics
 

Recently uploaded

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
🐬 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
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 

Recently uploaded (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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)
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Exadata下的数据并行加载、并行卸载及性能监控

  • 1. <Insert Picture Here> Oracle Exadata Extreme Performance Real World Database Performance Kaiyao Huang © 2011 Oracle Corporation
  • 2. About Me • 工作于Oracle Real World Database Performance Group • 关键词: 高性能, 高可扩展性, Exadata • 微博: http://www.weibo.com/kaiyaohuang • 博客: http://www.os2ora.com • 电子邮件:kaiyao.huang@gmail.com • 电话: 186-649-33229/黄凯耀
  • 3. Agenda • Data Loading • Data Unloading • Performance Monitoring
  • 4. Data Loading What is it look like? • Methods Available? • imp? • Data Pump? • SQL * Loader? • RMAN? • External Table? • Others? • Expected Speed? • CPU-bound or IO-bound?
  • 6. Data Loading IO Requirement • 1 Terabyte per hour • 17 GByte/minute • 291 MByte/s • With compressed source data • 1057 Gbyte Text Files  136 Gbyte GZIP Files • 2.3 GByte/minute • 40 MByte/s
  • 7. Data Loading CPU/Memory Requirement • Data loading is CPU/Memory Constrained • Raw is the cheapest • Timestamp is the most expensive • One SQL*Loader will use one copy of in-memory meta data
  • 8. Data Loading Compress the Data • Use preprocessor in external table definition
  • 9. Data Loading External Table External Table create table et_target Definition ( column definition list ... Reference the ) Mount Point organization external (type oracle_loader Uncompress default directory SPEEDY_FILESYSTEM the data preprocessor exec_file_dir: 'zcat' options '-c’ characterset 'ZHS16GBK’ The Characterset badfile ERROR_DUMP: ’FAST_LOAD.bad’ must match the logfile ERROR_DUMP: ’FAST_LOAD.log’ Characterset of the ( file column mapping list ... Files ) Note Compressed location Files (file_1.gz, file_2.gz, file_3.gz, file_4.gz ) reject limit 1000 Parallel should parallel 4 match the / number of Files
  • 10. Data Loading How to Use alter session enable parallel dml; alter table target parallel; alter table et_target parallel; insert /*+ append */ into target select * from et_target;
  • 11. Data Loading Live Demo • Load 1 TB data TABLE SIZE OF SOURCE DATA NUMBER OF RECORDS • Transactions • 52 GByte • 461M • Payments • 54 GByte • 461M • Line Items • 936 Gbyte • 6945M • Total • 1042 GByte • 7867M
  • 12. Agenda • Data Loading • Data Unloading • Performance Monitoring
  • 13. Data Unloading What is it look like? • Methods Available? • exp? • Data Pump? • sqlplus spool? • RMAN? • sqluldr2 by anysql.net? • Others? • Expected Speed? • CPU-bound or IO-bound?
  • 15. Data Unloading Parallel Table Function
  • 16. Data Unloading IO Requirement • 1 Terabyte per hour • 17 GByte/minute • 291 MByte/s • With compressed target data • 1057 Gbyte Text Files  136 Gbyte GZIP Files • 2.3 GByte/minute • 40 MByte/s
  • 17. Data Unloading CPU Requirement • Data unloading is CPU Constrained • Raw is the cheapest • Timestamp is the most expensive
  • 18. Data Unloading Compress the Data • Use FIFO Pipe file to compress the data
  • 19. Data Unloading Live Demo • Unload 1 TB data TABLE SIZE OF SOURCE DATA NUMBER OF RECORDS • Transactions • 52 GByte • 461M • Payments • 54 GByte • 461M • Line Items • 936 Gbyte • 6945M • Total • 1042 GByte • 7867M
  • 20. Agenda • Data Loading • Data Unloading • Performance Monitoring
  • 21. Performance Monitoring OS Real-Time Monitoring • vmstat? • iostat? • top? • sar? • netstat? • collectl?
  • 23. mon cluster-wide collectl
  • 24. Performance Monitoring DB Monitoring • v$session? • v$sysstat? • statspack? • AWR? • ADDM? • SQL Monitor Report?
  • 25. Performance Monitoring SQL Monitor Report • 第一次执行的SQL Monitor Report • 第二次执行的SQL Monitor Report
  • 26. Live Example INSERT /*+ APPEND */ INTO T_D SELECT * FROM T_A a ,T_B b ,T_C c WHERE a.id = b.id AND b.number = c.number ;
  • 29. Reference • 史上最快,最具可扩展性的文本导出方法: http://www.os2ora.com/the-fastest- data-unload-method/ • 史上最快,最具可扩展性的文本导入方法: http://www.os2ora.com/the-fastest- data-load-method-best-practice/ • Linux操作系统资源监控工具重点推荐 — collectl: http://www.os2ora.com/linux- performance-monitoring-tool-recommend-collectl/ • Oracle监控工具概览: http://www.os2ora.com/oracle-monitoring-tool-summary- and-recommend/ • 测试: 一个SQL Monitor Report的具体例子: http://www.os2ora.com/test-sql- monitor-report-example/ • 利用SQL Monitor Report对SQL进行诊断与调优: http://www.os2ora.com/use- sql-monitor-report-to-tune-and-diagnose-sql/
  • 30.
  • 32. PX topics… • Degree of Parallelism • PX Distribution • PX Statement Queuing • Hash Partition • Partition-Wise Join