SlideShare a Scribd company logo
1© The Pythian Group Inc., 2018
Franky Weber Faust
October 2019
WHY, WHEN AND HOW TO DO IT
ORACLE
PARTITIONING FOR
DEVELOPERS
2© The Pythian Group Inc., 2018 2
FRANKY WEBER FAUST
● Senior Oracle Database Consultant at Pythian
● 29 years old
● Writer at OTNLA and Lore Data Blog
● Speaker at conferences around the world
● High Availability specialist
● Performance researcher
● Exadata, RAC, DataGuard, GoldenGate
● AcroYoga practitioner
● Guitar player
loredata.com.br
3© The Pythian Group Inc., 2018 3
E-mail: faust@pythian.com or franky@loredata.com.br
Blog: http://loredata.com.br/blog
Facebook: https://facebook.com/08Franky.Weber
Instagram: https://www.instagram.com/frankyweber/
Twitter: https://twitter.com/frankyweber
LinkedIn: https://linkedin.com/in/frankyweber/en
Oracle ACE: https://bit.ly/2YxU6bK
Keep in touch
© 2017 Pythian. Confidential 5
Years in Business
20 Pythian Experts
in 35 Countries
400+ Current Clients
Globally
350+
© 2017 Pythian. Confidential 6
WHY THIS PRESENTATION?
7© The Pythian Group Inc., 2018
AGENDA
7
● Partitioning concept
● Background
● Partitioning benefits (Why)
● Implementation scenarios (When)
● Types of partitioning (When)
● Range, List, Interval e Hash partitioning (How)
● The execution plan
© 2017 Pythian. Confidential 8
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 9
BACKGROUND HISTORY
● Since Oracle 8 (1997)
● Requires extra licensing and EE
● Manual partitioning using views
● New features every new release
● 19c Hybrid partitioning (Hive, HDFS,
External file)
Partition Maintenance on multiple
partitions, Asynchronous global
index maintenance, Zone maps
Oracle 12cR2
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
Auto-list and Multicolumn list
partitioning, Partitioned
external tables
© 2017 Pythian. Confidential 10
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 11
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 12
TYPES OF PARTITIONING (HOW)
● 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
● *Hybrid Partitioning (19c)*
© 2017 Pythian. Confidential 13
RANGE PARTITIONING (HOW)
© 2017 Pythian. Confidential 14
RANGE PARTITIONING (HOW)
© 2017 Pythian. Confidential 15
LIST PARTITIONING (HOW)
© 2017 Pythian. Confidential 16
LIST 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
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 26
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 27
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 28
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 29
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 30
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 31
HASH PARTITIONING (HOW)
© 2017 Pythian. Confidential 32
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 33
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 34
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 35
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 36
INTERVAL PARTITIONING (HOW)
© 2017 Pythian. Confidential 37
THE EXECUTION PLAN
© 2017 Pythian. Confidential 38
THE EXECUTION PLAN
© 2017 Pythian. Confidential 39
THE EXECUTION PLAN
© 2017 Pythian. Confidential 40
THE EXECUTION PLAN
© 2017 Pythian. Confidential 41
THE EXECUTION PLAN
© 2017 Pythian. Confidential 42
THE EXECUTION PLAN
© 2017 Pythian. Confidential 43
THE EXECUTION PLAN
© 2017 Pythian. Confidential 44
THE EXECUTION PLAN
© 2017 Pythian. Confidential 45
THE EXECUTION PLAN
© 2017 Pythian. Confidential 46
THE EXECUTION PLAN
© 2017 Pythian. Confidential 47
THE EXECUTION PLAN
© 2017 Pythian. Confidential 48
THE EXECUTION PLAN
© 2017 Pythian. Confidential 49
THE EXECUTION PLAN
© 2017 Pythian. Confidential 50
THE EXECUTION PLAN
© 2017 Pythian. Confidential 51
PARTITIONING MAINTENANCE OPERATIONS
online
© 2017 Pythian. Confidential 52
PARTITIONING MAINTENANCE OPERATIONS
© 2017 Pythian. Confidential 53
PARTITIONING MAINTENANCE OPERATIONS
online
© 2017 Pythian. Confidential 54
CONCLUSION
● Range Partitioning, Hash
Partitioning, List Partitioning, Interval
Partitioning
● 12cR2 onwards can perform 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?
© The Pythian Group Inc., 2018 55
Stay in touch!
● E-mail: franky@loredata.com.br or faust@pythian.com
● Blog: http://loredata.com.br/blog
● Facebook: https://facebook.com/08Franky.Weber
● Instagram: https://www.instagram.com/frankyweber/
● Twitter: https://twitter.com/frankyweber
● LinkedIn: https://linkedin.com/in/frankyweber/en
● Oracle ACE: https://bit.ly/2YxU6bK
© The Pythian Group Inc., 2018 5656© The Pythian Group Inc., 2018

More Related Content

Similar to PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers

Distributed Database Architecture for GDPR
Distributed Database Architecture for GDPRDistributed Database Architecture for GDPR
Distributed Database Architecture for GDPR
Yugabyte
 
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
 
SPUnite17 Transforming your Organisation into a Digital Workplace
SPUnite17 Transforming your Organisation into a Digital WorkplaceSPUnite17 Transforming your Organisation into a Digital Workplace
SPUnite17 Transforming your Organisation into a Digital Workplace
NCCOMMS
 
Industrialiser spark
Industrialiser sparkIndustrialiser spark
Industrialiser spark
Lucien Fregosi
 
Deploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud PlatformDeploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud Platform
MariaDB plc
 
The Value of Metadata
The Value of MetadataThe Value of Metadata
The Value of Metadata
DATAVERSITY
 
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
 
Data Day Seattle 2017: Scaling Data Science at Stitch Fix
Data Day Seattle 2017: Scaling Data Science at Stitch FixData Day Seattle 2017: Scaling Data Science at Stitch Fix
Data Day Seattle 2017: Scaling Data Science at Stitch Fix
Stefan Krawczyk
 
Putting data science to work
Putting data science to workPutting data science to work
Putting data science to work
Alex Breeze
 
Custom Machine Learning Recipes for the Enterprise
Custom Machine Learning Recipes for the EnterpriseCustom Machine Learning Recipes for the Enterprise
Custom Machine Learning Recipes for the Enterprise
Sri Ambati
 
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
 
Mastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL PlatformsMastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL Platforms
DATAVERSITY
 
Why Data Vault?
Why Data Vault?Why Data Vault?
Why Data Vault?
TESCHGlobal
 
Python and big data : a good match?
Python and big data : a good match?Python and big data : a good match?
Python and big data : a good match?
PyDataParis
 
Hypothetical Partitioning for PostgreSQL
Hypothetical Partitioning for PostgreSQLHypothetical Partitioning for PostgreSQL
Hypothetical Partitioning for PostgreSQL
Yuzuko Hosoya
 
OSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
OSMC 2018 | Distributed Tracing FAQ by Gianluca ArbezzanoOSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
OSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
NETWAYS
 
[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
 
Whats new in ep3
Whats new in ep3Whats new in ep3
Whats new in ep3
Jonathan Beardsley
 
Citizen Developers Intro to jQuery Customizations in SharePoint
Citizen Developers Intro to jQuery Customizations in SharePointCitizen Developers Intro to jQuery Customizations in SharePoint
Citizen Developers Intro to jQuery Customizations in SharePoint
Mark Rackley
 

Similar to PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers (20)

Distributed Database Architecture for GDPR
Distributed Database Architecture for GDPRDistributed Database Architecture for GDPR
Distributed Database Architecture for GDPR
 
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
 
SPUnite17 Transforming your Organisation into a Digital Workplace
SPUnite17 Transforming your Organisation into a Digital WorkplaceSPUnite17 Transforming your Organisation into a Digital Workplace
SPUnite17 Transforming your Organisation into a Digital Workplace
 
Industrialiser spark
Industrialiser sparkIndustrialiser spark
Industrialiser spark
 
Deploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud PlatformDeploying MariaDB for HA on Google Cloud Platform
Deploying MariaDB for HA on Google Cloud Platform
 
The Value of Metadata
The Value of MetadataThe Value of Metadata
The Value of Metadata
 
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
 
Data Day Seattle 2017: Scaling Data Science at Stitch Fix
Data Day Seattle 2017: Scaling Data Science at Stitch FixData Day Seattle 2017: Scaling Data Science at Stitch Fix
Data Day Seattle 2017: Scaling Data Science at Stitch Fix
 
Putting data science to work
Putting data science to workPutting data science to work
Putting data science to work
 
Custom Machine Learning Recipes for the Enterprise
Custom Machine Learning Recipes for the EnterpriseCustom Machine Learning Recipes for the Enterprise
Custom Machine Learning Recipes for the Enterprise
 
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
 
Mastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL PlatformsMastering Data Modeling for NoSQL Platforms
Mastering Data Modeling for NoSQL Platforms
 
Why Data Vault?
Why Data Vault?Why Data Vault?
Why Data Vault?
 
Python and big data : a good match?
Python and big data : a good match?Python and big data : a good match?
Python and big data : a good match?
 
Hypothetical Partitioning for PostgreSQL
Hypothetical Partitioning for PostgreSQLHypothetical Partitioning for PostgreSQL
Hypothetical Partitioning for PostgreSQL
 
OSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
OSMC 2018 | Distributed Tracing FAQ by Gianluca ArbezzanoOSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
OSMC 2018 | Distributed Tracing FAQ by Gianluca Arbezzano
 
[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
 
Whats new in ep3
Whats new in ep3Whats new in ep3
Whats new in ep3
 
Citizen Developers Intro to jQuery Customizations in SharePoint
Citizen Developers Intro to jQuery Customizations in SharePointCitizen Developers Intro to jQuery Customizations in SharePoint
Citizen Developers Intro to jQuery Customizations in SharePoint
 

Recently uploaded

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
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
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
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
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
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
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
 
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
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
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
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
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
 
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
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
UiPathCommunity
 
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
 
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
 

Recently uploaded (20)

FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
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
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
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
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
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
 
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
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
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...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
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
 
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...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..UiPath Community Day Dubai: AI at Work..
UiPath Community Day Dubai: AI at Work..
 
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...
 
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
 

PL/SQL Camp MeetUp 2019 - Oracle Partitioning for Developers

  • 1. 1© The Pythian Group Inc., 2018 Franky Weber Faust October 2019 WHY, WHEN AND HOW TO DO IT ORACLE PARTITIONING FOR DEVELOPERS
  • 2. 2© The Pythian Group Inc., 2018 2 FRANKY WEBER FAUST ● Senior Oracle Database Consultant at Pythian ● 29 years old ● Writer at OTNLA and Lore Data Blog ● Speaker at conferences around the world ● High Availability specialist ● Performance researcher ● Exadata, RAC, DataGuard, GoldenGate ● AcroYoga practitioner ● Guitar player loredata.com.br
  • 3. 3© The Pythian Group Inc., 2018 3 E-mail: faust@pythian.com or franky@loredata.com.br Blog: http://loredata.com.br/blog Facebook: https://facebook.com/08Franky.Weber Instagram: https://www.instagram.com/frankyweber/ Twitter: https://twitter.com/frankyweber LinkedIn: https://linkedin.com/in/frankyweber/en Oracle ACE: https://bit.ly/2YxU6bK Keep in touch
  • 4.
  • 5. © 2017 Pythian. Confidential 5 Years in Business 20 Pythian Experts in 35 Countries 400+ Current Clients Globally 350+
  • 6. © 2017 Pythian. Confidential 6 WHY THIS PRESENTATION?
  • 7. 7© The Pythian Group Inc., 2018 AGENDA 7 ● Partitioning concept ● Background ● Partitioning benefits (Why) ● Implementation scenarios (When) ● Types of partitioning (When) ● Range, List, Interval e Hash partitioning (How) ● The execution plan
  • 8. © 2017 Pythian. Confidential 8 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
  • 9. © 2017 Pythian. Confidential 9 BACKGROUND HISTORY ● Since Oracle 8 (1997) ● Requires extra licensing and EE ● Manual partitioning using views ● New features every new release ● 19c Hybrid partitioning (Hive, HDFS, External file) Partition Maintenance on multiple partitions, Asynchronous global index maintenance, Zone maps Oracle 12cR2 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 Auto-list and Multicolumn list partitioning, Partitioned external tables
  • 10. © 2017 Pythian. Confidential 10 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
  • 11. © 2017 Pythian. Confidential 11 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
  • 12. © 2017 Pythian. Confidential 12 TYPES OF PARTITIONING (HOW) ● 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 ● *Hybrid Partitioning (19c)*
  • 13. © 2017 Pythian. Confidential 13 RANGE PARTITIONING (HOW)
  • 14. © 2017 Pythian. Confidential 14 RANGE PARTITIONING (HOW)
  • 15. © 2017 Pythian. Confidential 15 LIST PARTITIONING (HOW)
  • 16. © 2017 Pythian. Confidential 16 LIST 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 HASH PARTITIONING (HOW)
  • 26. © 2017 Pythian. Confidential 26 HASH PARTITIONING (HOW)
  • 27. © 2017 Pythian. Confidential 27 HASH PARTITIONING (HOW)
  • 28. © 2017 Pythian. Confidential 28 HASH PARTITIONING (HOW)
  • 29. © 2017 Pythian. Confidential 29 HASH PARTITIONING (HOW)
  • 30. © 2017 Pythian. Confidential 30 HASH PARTITIONING (HOW)
  • 31. © 2017 Pythian. Confidential 31 HASH PARTITIONING (HOW)
  • 32. © 2017 Pythian. Confidential 32 INTERVAL PARTITIONING (HOW)
  • 33. © 2017 Pythian. Confidential 33 INTERVAL PARTITIONING (HOW)
  • 34. © 2017 Pythian. Confidential 34 INTERVAL PARTITIONING (HOW)
  • 35. © 2017 Pythian. Confidential 35 INTERVAL PARTITIONING (HOW)
  • 36. © 2017 Pythian. Confidential 36 INTERVAL PARTITIONING (HOW)
  • 37. © 2017 Pythian. Confidential 37 THE EXECUTION PLAN
  • 38. © 2017 Pythian. Confidential 38 THE EXECUTION PLAN
  • 39. © 2017 Pythian. Confidential 39 THE EXECUTION PLAN
  • 40. © 2017 Pythian. Confidential 40 THE EXECUTION PLAN
  • 41. © 2017 Pythian. Confidential 41 THE EXECUTION PLAN
  • 42. © 2017 Pythian. Confidential 42 THE EXECUTION PLAN
  • 43. © 2017 Pythian. Confidential 43 THE EXECUTION PLAN
  • 44. © 2017 Pythian. Confidential 44 THE EXECUTION PLAN
  • 45. © 2017 Pythian. Confidential 45 THE EXECUTION PLAN
  • 46. © 2017 Pythian. Confidential 46 THE EXECUTION PLAN
  • 47. © 2017 Pythian. Confidential 47 THE EXECUTION PLAN
  • 48. © 2017 Pythian. Confidential 48 THE EXECUTION PLAN
  • 49. © 2017 Pythian. Confidential 49 THE EXECUTION PLAN
  • 50. © 2017 Pythian. Confidential 50 THE EXECUTION PLAN
  • 51. © 2017 Pythian. Confidential 51 PARTITIONING MAINTENANCE OPERATIONS online
  • 52. © 2017 Pythian. Confidential 52 PARTITIONING MAINTENANCE OPERATIONS
  • 53. © 2017 Pythian. Confidential 53 PARTITIONING MAINTENANCE OPERATIONS online
  • 54. © 2017 Pythian. Confidential 54 CONCLUSION ● Range Partitioning, Hash Partitioning, List Partitioning, Interval Partitioning ● 12cR2 onwards can perform 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?
  • 55. © The Pythian Group Inc., 2018 55 Stay in touch! ● E-mail: franky@loredata.com.br or faust@pythian.com ● Blog: http://loredata.com.br/blog ● Facebook: https://facebook.com/08Franky.Weber ● Instagram: https://www.instagram.com/frankyweber/ ● Twitter: https://twitter.com/frankyweber ● LinkedIn: https://linkedin.com/in/frankyweber/en ● Oracle ACE: https://bit.ly/2YxU6bK
  • 56. © The Pythian Group Inc., 2018 5656© The Pythian Group Inc., 2018