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

What's hot

Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Databricks
 
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Apache Spark Data Source V2 with Wenchen Fan and Gengliang WangApache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Databricks
 
Snowflake essentials
Snowflake essentialsSnowflake essentials
Snowflake essentials
qureshihamid
 
Simplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Simplify CDC Pipeline with Spark Streaming SQL and Delta LakeSimplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Simplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Databricks
 
Redpanda and ClickHouse
Redpanda and ClickHouseRedpanda and ClickHouse
Redpanda and ClickHouse
Altinity Ltd
 
ORC Deep Dive 2020
ORC Deep Dive 2020ORC Deep Dive 2020
ORC Deep Dive 2020
Owen O'Malley
 
Zero to Snowflake Presentation
Zero to Snowflake Presentation Zero to Snowflake Presentation
Zero to Snowflake Presentation
Brett VanderPlaats
 
Using Apache Arrow, Calcite, and Parquet to Build a Relational Cache
Using Apache Arrow, Calcite, and Parquet to Build a Relational CacheUsing Apache Arrow, Calcite, and Parquet to Build a Relational Cache
Using Apache Arrow, Calcite, and Parquet to Build a Relational Cache
Dremio Corporation
 
Examining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail FilesExamining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail Files
Bobby Curtis
 
Extreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGateExtreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGate
Bobby Curtis
 
YugaByte DB Internals - Storage Engine and Transactions
YugaByte DB Internals - Storage Engine and Transactions YugaByte DB Internals - Storage Engine and Transactions
YugaByte DB Internals - Storage Engine and Transactions
Yugabyte
 
Snowflake for Data Engineering
Snowflake for Data EngineeringSnowflake for Data Engineering
Snowflake for Data Engineering
Harald Erb
 
Iceberg + Alluxio for Fast Data Analytics
Iceberg + Alluxio for Fast Data AnalyticsIceberg + Alluxio for Fast Data Analytics
Iceberg + Alluxio for Fast Data Analytics
Alluxio, Inc.
 
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Flink Forward
 
Building an open data platform with apache iceberg
Building an open data platform with apache icebergBuilding an open data platform with apache iceberg
Building an open data platform with apache iceberg
Alluxio, Inc.
 
A Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and HudiA Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and Hudi
Databricks
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Glen Hawkins
 
The Apache Spark File Format Ecosystem
The Apache Spark File Format EcosystemThe Apache Spark File Format Ecosystem
The Apache Spark File Format Ecosystem
Databricks
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
Kirill Loifman
 
File Format Benchmark - Avro, JSON, ORC & Parquet
File Format Benchmark - Avro, JSON, ORC & ParquetFile Format Benchmark - Avro, JSON, ORC & Parquet
File Format Benchmark - Avro, JSON, ORC & Parquet
DataWorks Summit/Hadoop Summit
 

What's hot (20)

Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
Deep Dive into Spark SQL with Advanced Performance Tuning with Xiao Li & Wenc...
 
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Apache Spark Data Source V2 with Wenchen Fan and Gengliang WangApache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
Apache Spark Data Source V2 with Wenchen Fan and Gengliang Wang
 
Snowflake essentials
Snowflake essentialsSnowflake essentials
Snowflake essentials
 
Simplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Simplify CDC Pipeline with Spark Streaming SQL and Delta LakeSimplify CDC Pipeline with Spark Streaming SQL and Delta Lake
Simplify CDC Pipeline with Spark Streaming SQL and Delta Lake
 
Redpanda and ClickHouse
Redpanda and ClickHouseRedpanda and ClickHouse
Redpanda and ClickHouse
 
ORC Deep Dive 2020
ORC Deep Dive 2020ORC Deep Dive 2020
ORC Deep Dive 2020
 
Zero to Snowflake Presentation
Zero to Snowflake Presentation Zero to Snowflake Presentation
Zero to Snowflake Presentation
 
Using Apache Arrow, Calcite, and Parquet to Build a Relational Cache
Using Apache Arrow, Calcite, and Parquet to Build a Relational CacheUsing Apache Arrow, Calcite, and Parquet to Build a Relational Cache
Using Apache Arrow, Calcite, and Parquet to Build a Relational Cache
 
Examining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail FilesExamining Oracle GoldenGate Trail Files
Examining Oracle GoldenGate Trail Files
 
Extreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGateExtreme Replication - Performance Tuning Oracle GoldenGate
Extreme Replication - Performance Tuning Oracle GoldenGate
 
YugaByte DB Internals - Storage Engine and Transactions
YugaByte DB Internals - Storage Engine and Transactions YugaByte DB Internals - Storage Engine and Transactions
YugaByte DB Internals - Storage Engine and Transactions
 
Snowflake for Data Engineering
Snowflake for Data EngineeringSnowflake for Data Engineering
Snowflake for Data Engineering
 
Iceberg + Alluxio for Fast Data Analytics
Iceberg + Alluxio for Fast Data AnalyticsIceberg + Alluxio for Fast Data Analytics
Iceberg + Alluxio for Fast Data Analytics
 
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
Squirreling Away $640 Billion: How Stripe Leverages Flink for Change Data Cap...
 
Building an open data platform with apache iceberg
Building an open data platform with apache icebergBuilding an open data platform with apache iceberg
Building an open data platform with apache iceberg
 
A Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and HudiA Thorough Comparison of Delta Lake, Iceberg and Hudi
A Thorough Comparison of Delta Lake, Iceberg and Hudi
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 
The Apache Spark File Format Ecosystem
The Apache Spark File Format EcosystemThe Apache Spark File Format Ecosystem
The Apache Spark File Format Ecosystem
 
Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
 
File Format Benchmark - Avro, JSON, ORC & Parquet
File Format Benchmark - Avro, JSON, ORC & ParquetFile Format Benchmark - Avro, JSON, ORC & Parquet
File Format Benchmark - Avro, JSON, ORC & Parquet
 

Similar to Oracle Partitioning for DBAs and Developers

PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
PL/SQL Camp MeetUp 2019 - Oracle Partitioning for DevelopersPL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
Franky Weber Faust
 
Leveraging partition enhancements
Leveraging partition enhancementsLeveraging partition enhancements
Leveraging partition enhancements
Aishwarya Kala
 
graymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdfgraymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdf
GrayMatter Software Services
 
[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...
[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...
[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...
Insight Technology, Inc.
 
There and back_again_oracle_and_big_data_16x9
There and back_again_oracle_and_big_data_16x9There and back_again_oracle_and_big_data_16x9
There and back_again_oracle_and_big_data_16x9
Gleb Otochkin
 
Delicious : EDQ, OGG and ODI over Exadata for Perfection
Delicious : EDQ, OGG and ODI over Exadata for PerfectionDelicious : EDQ, OGG and ODI over Exadata for Perfection
Delicious : EDQ, OGG and ODI over Exadata for Perfection
Gurcan Orhan
 
Why are we excited about MySQL 8? / Петр Зайцев (Percona)
Why are we excited about MySQL 8? / Петр Зайцев (Percona)Why are we excited about MySQL 8? / Петр Зайцев (Percona)
Why are we excited about MySQL 8? / Петр Зайцев (Percona)
Ontico
 
How to scale MongoDB
How to scale MongoDBHow to scale MongoDB
How to scale MongoDB
Igor Donchovski
 
Mysql query optimization best practices and indexing
Mysql query optimization  best practices and indexingMysql query optimization  best practices and indexing
Mysql query optimization best practices and indexing
Alkin Tezuysal
 
Why Data Vault?
Why Data Vault?Why Data Vault?
Why Data Vault?
TESCHGlobal
 
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
Gleb Otochkin
 
YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...
YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...
YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...
Jimmy Guerrero
 
Oracle Database Cloud Service - Provisioning Your First DBaaS Instance
Oracle Database Cloud Service - Provisioning Your First DBaaS InstanceOracle Database Cloud Service - Provisioning Your First DBaaS Instance
Oracle Database Cloud Service - Provisioning Your First DBaaS Instance
Revelation Technologies
 
Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"
Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"
Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"
Fwdays
 
Make your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWSMake your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWS
Kimmo Kantojärvi
 
Implementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source toolsImplementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source tools
All Things Open
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by YugabyteA Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
Carlos Andrés García
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by YugabyteA Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
VMware Tanzu
 
How YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQLHow YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQL
Yugabyte
 
Mastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL PlatformsMastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL Platforms
DATAVERSITY
 

Similar to Oracle Partitioning for DBAs and Developers (20)

PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
PL/SQL Camp MeetUp 2019 - Oracle Partitioning for DevelopersPL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers
 
Leveraging partition enhancements
Leveraging partition enhancementsLeveraging partition enhancements
Leveraging partition enhancements
 
graymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdfgraymatter-pentaho-consulting-services-.pdf
graymatter-pentaho-consulting-services-.pdf
 
[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...
[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...
[db tech showcase Tokyo 2017] C13:There and back again or how to connect Orac...
 
There and back_again_oracle_and_big_data_16x9
There and back_again_oracle_and_big_data_16x9There and back_again_oracle_and_big_data_16x9
There and back_again_oracle_and_big_data_16x9
 
Delicious : EDQ, OGG and ODI over Exadata for Perfection
Delicious : EDQ, OGG and ODI over Exadata for PerfectionDelicious : EDQ, OGG and ODI over Exadata for Perfection
Delicious : EDQ, OGG and ODI over Exadata for Perfection
 
Why are we excited about MySQL 8? / Петр Зайцев (Percona)
Why are we excited about MySQL 8? / Петр Зайцев (Percona)Why are we excited about MySQL 8? / Петр Зайцев (Percona)
Why are we excited about MySQL 8? / Петр Зайцев (Percona)
 
How to scale MongoDB
How to scale MongoDBHow to scale MongoDB
How to scale MongoDB
 
Mysql query optimization best practices and indexing
Mysql query optimization  best practices and indexingMysql query optimization  best practices and indexing
Mysql query optimization best practices and indexing
 
Why Data Vault?
Why Data Vault?Why Data Vault?
Why Data Vault?
 
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
One bridge to connect them all. Oracle GoldenGate for Big Data.UKOUG Tech 2018
 
YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...
YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...
YugaByte DB - "Designing a Distributed Database Architecture for GDPR Complia...
 
Oracle Database Cloud Service - Provisioning Your First DBaaS Instance
Oracle Database Cloud Service - Provisioning Your First DBaaS InstanceOracle Database Cloud Service - Provisioning Your First DBaaS Instance
Oracle Database Cloud Service - Provisioning Your First DBaaS Instance
 
Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"
Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"
Alkin Tezuysal "MySQL Query Optimization Best Practices and Indexing"
 
Make your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWSMake your data fly - Building data platform in AWS
Make your data fly - Building data platform in AWS
 
Implementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source toolsImplementing MySQL Database-as-a-Service using open source tools
Implementing MySQL Database-as-a-Service using open source tools
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by YugabyteA Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
 
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by YugabyteA Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
A Planet-Scale Database for Low Latency Transactional Apps by Yugabyte
 
How YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQLHow YugaByte DB Implements Distributed PostgreSQL
How YugaByte DB Implements Distributed PostgreSQL
 
Mastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL PlatformsMastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL Platforms
 

Recently uploaded

LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
UiPathCommunity
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
Globus
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
Jen Stirrup
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 

Recently uploaded (20)

LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
Le nuove frontiere dell'AI nell'RPA con UiPath Autopilot™
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Enhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZEnhancing Performance with Globus and the Science DMZ
Enhancing Performance with Globus and the Science DMZ
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...The Metaverse and AI: how can decision-makers harness the Metaverse for their...
The Metaverse and AI: how can decision-makers harness the Metaverse for their...
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 

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