SlideShare a Scribd company logo
1© The Pythian Group Inc., 2018
MAY 2018
WHY, WHEN AND HOW TO DO IT
ORACLE
PARTITIONING FOR
DBAS AND
DEVELOPERS
2© The Pythian Group Inc., 2018 2
FRANKY WEBER FAUST
● Senior Oracle Database Consultant at
Pythian
● 27 years old
● Writer at OTNLA and Lore Data Blog
● Speaker at some conferences
● High Availability specialist
● Performance researcher
● Exadata, RAC, DataGuard, Grid
Infrastructure, GoldenGate
© 2017 Pythian. Confidential 3
Years in Business
20 Pythian Experts
in 35 Countries
400+ Current Clients
Globally
350+
4© The Pythian Group Inc., 2018
AGENDA
4
● Partitioning concept
● Background
● Partitioning benefits (Why)
● Implementation scenarios (When)
● Types of partitioning (When)
● Range, List, Interval e Hash partitioning (How)
● The execution plan
● Partitioning maintenance operations*
● Historical data archiving*
● Converting partitions*
© 2017 Pythian. Confidential 5
PARTITIONING CONCEPTS
● Break down a table/index into
smaller pieces
● Partition Key
● Single or multicolumn
● Up to 16 columns
● Unique values are not required
● Every partition is a segment
● Tables
● Heap tables
● Index-organized tables
● Indexes
● Materialized Views
● Clusters
● Performance
● Partition Pruning
© 2017 Pythian. Confidential 6
BACKGROUND HISTORY
● Since Oracle 8
● Requires extra licensing and EE
● Manual partitioning using views
● New features every new release
Oracle 12cR2 Auto-list and Multicolumn list
partitioning, Partitioned
external tables
Table creation for partition exchange,
read-only partitions, Filtered partition
maintenance, Online table
conversion to partitioned table
Oracle 18c Online Merging of Partitions
and Subpartitions
Parallel Partition-Wise
SQL Operations
Modifying the Partitioning
Strategy
Partition Maintenance on multiple
partitions, Asynchronous global
index maintenance, Zone maps
© 2017 Pythian. Confidential 7
PARTITIONING BENEFITS (WHY)
● Increases availability of data
● Eases administration of large
segments
● Might improve the performance of
some queries
● Might reduce contention on hot
OLTP segments
© 2017 Pythian. Confidential 8
IMPLEMENTATION SCENARIOS (WHEN)
● Large volume of data when
administration becomes difficult
● Query performance on large tables
suffers
● Buffer busy waits on high-concurrent
tables
● Horizontal scalability in RAC
● Decreased storage cost
● Compression and row archival
© 2017 Pythian. Confidential 9
TYPES OF PARTITIONING (WHEN)
● Range Partitioning
● Dates and numbers are good
candidates
● Upper boundary
● Hash Partitioning
● High-volume OLTP segments
● Data is evenly distributed across
partitions
● List Partitioning
● Categories, colors, sports, brands
● Default values accepted
● Interval Partitioning
● Automated range partitions
● Reference Partitioning
● Relational model PK-FK
● Interval Reference Partitioning
● All child tables will be automatically
maintained
● Virtual Column Based Partitioning
© 2017 Pythian. Confidential 10
RANGE PARTITIONING (HOW)
© 2017 Pythian. Confidential 11
RANGE PARTITIONING (HOW)
© 2017 Pythian. Confidential 12
LIST PARTITIONING (HOW)
© 2017 Pythian. Confidential 13
LIST PARTITIONING (HOW)
© 2017 Pythian. Confidential 14
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 15
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 16
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 17
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 18
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 19
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 20
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 21
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 22
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 23
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 24
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 25
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 26
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 27
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 28
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 29
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 30
THE EXECUTION PLAN
© 2017 Pythian. Confidential 31
THE EXECUTION PLAN
© 2017 Pythian. Confidential 32
THE EXECUTION PLAN
© 2017 Pythian. Confidential 33
THE EXECUTION PLAN
© 2017 Pythian. Confidential 34
THE EXECUTION PLAN
© 2017 Pythian. Confidential 35
PARTITIONING MAINTENANCE OPERATIONS
© 2017 Pythian. Confidential 36
PARTITIONING MAINTENANCE OPERATIONS
© 2017 Pythian. Confidential 37
PARTITIONING MAINTENANCE OPERATIONS
© 2017 Pythian. Confidential 38
CONCLUSION
● Range Partitioning, Hash
Partitioning, List Partitioning, Interval
Partitioning
● 12cR2 onwards can do most
partitioning operations online
● Performance problems in read or
write operations can get better or
worse with partitioning, so plan well
● New releases -> New features, it's
been like that for years.
● Questions?
© 2017 Pythian. Confidential 39
STAY IN TOUCH!
● E-mail: faust@pythian.com
● Blog: http://loredata.com.br/blog
● Facebook: https://facebook.com/08Franky.Weber
● Twitter: https://twitter.com/frankyweber
● LinkedIn: https://linkedin.com/in/frankyweber/en
● Oracle ACE profile: https://apex.oracle.com/pls/apex/f?p=19297:4:::NO:4:P4_ID:17002

More Related Content

PPTX
Zero to Snowflake Presentation
PPTX
POUG 2019 - Oracle Partitioning for DBAs and Devs
PDF
Some Iceberg Basics for Beginners (CDP).pdf
PDF
You might be paying too much for BigQuery
PDF
SQL Interview Questions - InterviewBit.pdf
PDF
Data Lake,beyond the Data Warehouse
PDF
MySQL 8.0.16 New Features Summary
PDF
What's New in SAP Replication Server 15.7.1 SP100
Zero to Snowflake Presentation
POUG 2019 - Oracle Partitioning for DBAs and Devs
Some Iceberg Basics for Beginners (CDP).pdf
You might be paying too much for BigQuery
SQL Interview Questions - InterviewBit.pdf
Data Lake,beyond the Data Warehouse
MySQL 8.0.16 New Features Summary
What's New in SAP Replication Server 15.7.1 SP100

What's hot (20)

PDF
mysql 8.0 architecture and enhancement
PDF
Snowflake SnowPro Certification Exam Cheat Sheet
PPTX
Microservices architecture overview v2
PPTX
Master the Multi-Clustered Data Warehouse - Snowflake
PDF
Log System As Backbone – How We Built the World’s Most Advanced Vector Databa...
PPT
Oracle Transparent Data Encryption (TDE) 12c
PDF
Data Lake: A simple introduction
PPTX
Snowflake: The Good, the Bad, and the Ugly
PPT
Oracle archi ppt
PDF
1_OnBSession_はじめてのOracleCloud_12Jul.pdf
PPTX
DW Migration Webinar-March 2022.pptx
PPTX
Introduction to Azure Databricks
PDF
AWS Summit Singapore 2019 | Snowflake: Your Data. No Limits
PDF
Making Data Timelier and More Reliable with Lakehouse Technology
PPTX
Top 10 Cypher Tuning Tips & Tricks
PDF
[IBM 김상훈] 오브젝트스토리지 | 늘어만 가는 데이터 저장문제로 골 아프신가요? (자료를 다운로드하시면 고화질로 보실 수 있습니다.)
PDF
Webinar Data Mesh - Part 3
PDF
Data Warehouse Design and Best Practices
PDF
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
PPTX
Snowflake essentials
mysql 8.0 architecture and enhancement
Snowflake SnowPro Certification Exam Cheat Sheet
Microservices architecture overview v2
Master the Multi-Clustered Data Warehouse - Snowflake
Log System As Backbone – How We Built the World’s Most Advanced Vector Databa...
Oracle Transparent Data Encryption (TDE) 12c
Data Lake: A simple introduction
Snowflake: The Good, the Bad, and the Ugly
Oracle archi ppt
1_OnBSession_はじめてのOracleCloud_12Jul.pdf
DW Migration Webinar-March 2022.pptx
Introduction to Azure Databricks
AWS Summit Singapore 2019 | Snowflake: Your Data. No Limits
Making Data Timelier and More Reliable with Lakehouse Technology
Top 10 Cypher Tuning Tips & Tricks
[IBM 김상훈] 오브젝트스토리지 | 늘어만 가는 데이터 저장문제로 골 아프신가요? (자료를 다운로드하시면 고화질로 보실 수 있습니다.)
Webinar Data Mesh - Part 3
Data Warehouse Design and Best Practices
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
Snowflake essentials
Ad

Similar to Oracle Partitioning for DBAs and Developers (20)

PDF
PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
PPTX
Leveraging partition enhancements
PDF
MySQL partitioning
ODP
Partitioning
PDF
Partitioning Tables and Indexing Them --- Article
PDF
Partitioning 11g-whitepaper-159443
PDF
The Truth About Partitioning
 
PDF
Big data mgmt bala
PDF
MySQL Partitioning 5.6
PPTX
Partitioning your Oracle Data Warehouse - Just a simple task?
PDF
Table Partitioning: Secret Weapon for Big Data Problems
PDF
Table Partitioning in SQL Server: A Magic Solution for Better Performance? (P...
PDF
Practical Partitioning in Production with Postgres
PPT
Informatica partitions
PDF
Partition and conquer large data in PostgreSQL 10
PPSX
Oracle Table Partitioning - Introduction
PDF
MySQL partitions tutorial
PDF
Partitioning Under The Hood
PPTX
Partitioning Design
PDF
Practical Partitioning in Production with Postgres
 
PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
Leveraging partition enhancements
MySQL partitioning
Partitioning
Partitioning Tables and Indexing Them --- Article
Partitioning 11g-whitepaper-159443
The Truth About Partitioning
 
Big data mgmt bala
MySQL Partitioning 5.6
Partitioning your Oracle Data Warehouse - Just a simple task?
Table Partitioning: Secret Weapon for Big Data Problems
Table Partitioning in SQL Server: A Magic Solution for Better Performance? (P...
Practical Partitioning in Production with Postgres
Informatica partitions
Partition and conquer large data in PostgreSQL 10
Oracle Table Partitioning - Introduction
MySQL partitions tutorial
Partitioning Under The Hood
Partitioning Design
Practical Partitioning in Production with Postgres
 
Ad

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Programs and apps: productivity, graphics, security and other tools
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MIND Revenue Release Quarter 2 2025 Press Release
Per capita expenditure prediction using model stacking based on satellite ima...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The AUB Centre for AI in Media Proposal.docx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Machine learning based COVID-19 study performance prediction
Encapsulation theory and applications.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton

Oracle Partitioning for DBAs and Developers

  • 1. 1© The Pythian Group Inc., 2018 MAY 2018 WHY, WHEN AND HOW TO DO IT ORACLE PARTITIONING FOR DBAS AND DEVELOPERS
  • 2. 2© The Pythian Group Inc., 2018 2 FRANKY WEBER FAUST ● Senior Oracle Database Consultant at Pythian ● 27 years old ● Writer at OTNLA and Lore Data Blog ● Speaker at some conferences ● High Availability specialist ● Performance researcher ● Exadata, RAC, DataGuard, Grid Infrastructure, GoldenGate
  • 3. © 2017 Pythian. Confidential 3 Years in Business 20 Pythian Experts in 35 Countries 400+ Current Clients Globally 350+
  • 4. 4© The Pythian Group Inc., 2018 AGENDA 4 ● Partitioning concept ● Background ● Partitioning benefits (Why) ● Implementation scenarios (When) ● Types of partitioning (When) ● Range, List, Interval e Hash partitioning (How) ● The execution plan ● Partitioning maintenance operations* ● Historical data archiving* ● Converting partitions*
  • 5. © 2017 Pythian. Confidential 5 PARTITIONING CONCEPTS ● Break down a table/index into smaller pieces ● Partition Key ● Single or multicolumn ● Up to 16 columns ● Unique values are not required ● Every partition is a segment ● Tables ● Heap tables ● Index-organized tables ● Indexes ● Materialized Views ● Clusters ● Performance ● Partition Pruning
  • 6. © 2017 Pythian. Confidential 6 BACKGROUND HISTORY ● Since Oracle 8 ● Requires extra licensing and EE ● Manual partitioning using views ● New features every new release Oracle 12cR2 Auto-list and Multicolumn list partitioning, Partitioned external tables Table creation for partition exchange, read-only partitions, Filtered partition maintenance, Online table conversion to partitioned table Oracle 18c Online Merging of Partitions and Subpartitions Parallel Partition-Wise SQL Operations Modifying the Partitioning Strategy Partition Maintenance on multiple partitions, Asynchronous global index maintenance, Zone maps
  • 7. © 2017 Pythian. Confidential 7 PARTITIONING BENEFITS (WHY) ● Increases availability of data ● Eases administration of large segments ● Might improve the performance of some queries ● Might reduce contention on hot OLTP segments
  • 8. © 2017 Pythian. Confidential 8 IMPLEMENTATION SCENARIOS (WHEN) ● Large volume of data when administration becomes difficult ● Query performance on large tables suffers ● Buffer busy waits on high-concurrent tables ● Horizontal scalability in RAC ● Decreased storage cost ● Compression and row archival
  • 9. © 2017 Pythian. Confidential 9 TYPES OF PARTITIONING (WHEN) ● Range Partitioning ● Dates and numbers are good candidates ● Upper boundary ● Hash Partitioning ● High-volume OLTP segments ● Data is evenly distributed across partitions ● List Partitioning ● Categories, colors, sports, brands ● Default values accepted ● Interval Partitioning ● Automated range partitions ● Reference Partitioning ● Relational model PK-FK ● Interval Reference Partitioning ● All child tables will be automatically maintained ● Virtual Column Based Partitioning
  • 10. © 2017 Pythian. Confidential 10 RANGE PARTITIONING (HOW)
  • 11. © 2017 Pythian. Confidential 11 RANGE PARTITIONING (HOW)
  • 12. © 2017 Pythian. Confidential 12 LIST PARTITIONING (HOW)
  • 13. © 2017 Pythian. Confidential 13 LIST PARTITIONING (HOW)
  • 14. © 2017 Pythian. Confidential 14 HASH PARTITIONING (HOW)
  • 15. © 2017 Pythian. Confidential 15 HASH PARTITIONING (HOW)
  • 16. © 2017 Pythian. Confidential 16 HASH PARTITIONING (HOW)
  • 17. © 2017 Pythian. Confidential 17 HASH PARTITIONING (HOW)
  • 18. © 2017 Pythian. Confidential 18 HASH PARTITIONING (HOW)
  • 19. © 2017 Pythian. Confidential 19 HASH PARTITIONING (HOW)
  • 20. © 2017 Pythian. Confidential 20 HASH PARTITIONING (HOW)
  • 21. © 2017 Pythian. Confidential 21 HASH PARTITIONING (HOW)
  • 22. © 2017 Pythian. Confidential 22 HASH PARTITIONING (HOW)
  • 23. © 2017 Pythian. Confidential 23 HASH PARTITIONING (HOW)
  • 24. © 2017 Pythian. Confidential 24 HASH PARTITIONING (HOW)
  • 25. © 2017 Pythian. Confidential 25 INTERVAL PARTITIONING (HOW)
  • 26. © 2017 Pythian. Confidential 26 INTERVAL PARTITIONING (HOW)
  • 27. © 2017 Pythian. Confidential 27 INTERVAL PARTITIONING (HOW)
  • 28. © 2017 Pythian. Confidential 28 INTERVAL PARTITIONING (HOW)
  • 29. © 2017 Pythian. Confidential 29 INTERVAL PARTITIONING (HOW)
  • 30. © 2017 Pythian. Confidential 30 THE EXECUTION PLAN
  • 31. © 2017 Pythian. Confidential 31 THE EXECUTION PLAN
  • 32. © 2017 Pythian. Confidential 32 THE EXECUTION PLAN
  • 33. © 2017 Pythian. Confidential 33 THE EXECUTION PLAN
  • 34. © 2017 Pythian. Confidential 34 THE EXECUTION PLAN
  • 35. © 2017 Pythian. Confidential 35 PARTITIONING MAINTENANCE OPERATIONS
  • 36. © 2017 Pythian. Confidential 36 PARTITIONING MAINTENANCE OPERATIONS
  • 37. © 2017 Pythian. Confidential 37 PARTITIONING MAINTENANCE OPERATIONS
  • 38. © 2017 Pythian. Confidential 38 CONCLUSION ● Range Partitioning, Hash Partitioning, List Partitioning, Interval Partitioning ● 12cR2 onwards can do most partitioning operations online ● Performance problems in read or write operations can get better or worse with partitioning, so plan well ● New releases -> New features, it's been like that for years. ● Questions?
  • 39. © 2017 Pythian. Confidential 39 STAY IN TOUCH! ● E-mail: faust@pythian.com ● Blog: http://loredata.com.br/blog ● Facebook: https://facebook.com/08Franky.Weber ● Twitter: https://twitter.com/frankyweber ● LinkedIn: https://linkedin.com/in/frankyweber/en ● Oracle ACE profile: https://apex.oracle.com/pls/apex/f?p=19297:4:::NO:4:P4_ID:17002