SlideShare a Scribd company logo
www.fromdual.com 1
MySQL Architectures for Oracle DBA's
UKOUG Conference 2011
December 5th
, Birmingham
Oli Sennhauser
Senior MySQL Consultant, FromDual
oli.sennhauser@fromdual.com
www.fromdual.com 2
FromDual
● FromDual provides neutral and independent:
● Consulting for MySQL (on-site and remote)
● Remote-DBA / MySQL operations
● Support for Galera (synchronous MySQL Replication)
● Support for MySQL (Basic and Silver)
● Training for MySQL
● Consulting Partner of Open Database Alliance
(ODBA.org)
● Oracle Silver Partner (OPN)
● More informations at: www.fromdual.com
www.fromdual.com 3
Our customer
www.fromdual.com 4
Content
● The LAMP Stack
● History of MySQL
● Open Source
● Branches and Forks
● Move from Oracle?
● MySQL Architecture
● Pluggable Storage Engines
● Differences between Oracle and MySQL
● Scale-Up vs. Scale-Out
● High-Availability solutions
● Architectures put in place
www.fromdual.com 5
The LAMP Stack
PHP
Who is
behind?
Alternatives
MySQL
Apache
Linux
We are the Web!
Zend Technologies
MySQL/Oracle
Apache Software
Foundation
Linux Foundation
Perl, Java, Python,
Ruby
PostgreSQL, others
Lighty (lighttpd), IIS
Windows, Solaris,
BSD, others
www.fromdual.com 6
History of MySQL
2000 01 02 03 04 2005 06 07 0908 2010
Oct 2005:
Oracle buys
Innobase OY
InnoDB Friday
...
1995: project started
by Monty Widenius,
David Axmark and
Allan Larsson
Jun
2000:
GPL
Oracle tries to
buy MySQL
IPO is announced
for 2008
Jan 2008: Sun buys
MySQL for USD 1000
Mio
2008: Branching
of MySQL begins
Jan 2001: v3.23
GA
Apr 2009:
Oracle buys
Sun for USD
7400 Mio
www.fromdual.com 7
Open Source
● Basics:
● Source code is available and visible (transparency)
● Source code can be changed, adapted or used elsewhere
● Everybody can participate: Communities
● Advantages
● „no“ Vendor Lock-in!
● More flexibility!
● Less costs?
● Better Quality?
● Higher reliability?
● Disadvantages
● Not everything is served on a golden plate: „read the source“!
● Potential for conflicts as soon as commercial interests come into the game
● For me personally important: Know-how transfer, freedom of know-how
www.fromdual.com 8
Branches and Forks
2009
Jul Drizzle MySQL Fork
Jul ProvenScaling
MySQL Branch (†)
Oct OurDelta MySQL Branch
Dec XtraDB InnoDB Branch / Percona Build / Percona Server
May MariaDB/Aria MySQL/MyISAM Branch Fork ?
2010
Google patches
MySQL
2008
www.fromdual.com 9
Switch from Oracle?
Oracle MySQL
It needs some time to adapt (3 - 6 monts?)!
www.fromdual.com 10
MySQL Architecture
mysqld
MySQL is a multi-thread and
NOT a multi-process
application!
Application / Client
Parser
Optimizer
Access Control
Table Manager
Table Open
Cache (.frm, fh)
Table Definition
Cache (tbl def.)
Handler Interface
MyISAM Memory NDB PBXTInnoDB ...Aria XtraDB Federated-X
Thread
Cache
Connection
Manager
User Au-
thentication
Command
Dispatcher
Logging
Query Cache
Module
Query
Cache
www.fromdual.com 11
Pluggable Storage Engines (SE)
Conventional
(R)DBMS
= monolithic
MYSQL SE
Handler Interface
ISAM MyISAM BDB ...
built-in
MYSQL pluggable SE
InnoDB MyISAM PBXT NDB ...
Handler Interface
plug-in
● The concept of Storage Engines (SE)
● A Storage Engine is a database kernel
www.fromdual.com 12
The most important Storage
Engines (SE)
● MyISAM / Aria
● InnoDB / XtraDB / PBXT (transactional SE)
● MEMORY
● NDB (MySQL Cluster)
● Federated-X (~ Oracle DB-Link)
● CSV, Archive, Blackhole
● Spider, etc.
www.fromdual.com 13
Migration from Oracle to MySQL
● Application?
● Most difficult: PL/SQL
● >> 1 Tbyte?
● MySQL Migration Tool-kit helps you
● ETL tools help you
www.fromdual.com 14
Differences between Oracle and
MySQL
● Characteristics is SE dependent → configuration
● Transactions/Locking is SE dependent
→ InnoDB / XtraDB / PBXT are the closest SE
● Some buffers / caches are SE dependent, others are not
→ Configure differently depending on you needs
● Connections in Oracle are expensive, in MySQL they are
quite cheap
● Oracle is a multi-process architecture, MySQL is a multi-
thread architecture
● Oracle has a fixed size shared memory SGA, MySQL has
dynamic memory for the process → can grow!
www.fromdual.com 15
Other differences between Oracle
and MySQL
● Oracle has tablespaces / redo log files → in MySQL 1 system
TS (+ 1 tablespace per table) and the transaction log files
(ib_logfile<n>).
● Oracle has rman, in MySQL you have many tools (mysqldump,
mysql, mysqlbackup, xtrabackup, …)
● Backup in MySQL can be done wrong!
● exp / imp → mysqldump / mysql
● rman → mysqlbackup / xtrabackup
● OEM/Grid Control → MySQL Enterprise Monitor (will be
integrated into OEM/GC?)
● RAC → Galera / MySQL Cluster
● Oracle Streams Replication → MySQL Replication
www.fromdual.com 16
Further differences between
Oracle and MySQL
● MySQL has different Logs:
● Error Log (= alert.log)
● Binary Log (~ archive log)
● Transaction Log (~ REDO log, but Binary
Log != Transaction Log)
● General Query log (Oracle ?)
● Schema in Oracle: User + Objects
● Schema in MySQL: indepent of user
● Oracle: Scale-up, MySQL: Scale-out
www.fromdual.com 17
MySQL Scale-Out vs. Scale-Up
Scale-Out
● Cost
● MySQL design
● Physical bottlenecks
Scale-Up
● „Relaxation of Constraints“
www.fromdual.com 18
The MySQL Scale-Out approach
Application
Master
Slave Backup
Load balancer
Slave 1
Slave Reporting
Slave 2
Slave 3
rt
w
ro
...
www.fromdual.com 19
Active/passive fail-over with SAN
App App App
M'
SAN
Slave1
Slave2
Slave3
Load balancing (LB)
M
VIP
www.fromdual.com 20
Active/passive fail-over with SAN
● SPOF! App App App
M'
SAN
Slave1
Slave2
Slave3
Load balancing (LB)
M
VIP
!!!
www.fromdual.com 21
Active/passive fail-over with
DRBD
App App App
M'
Slave1
Slave2
Slave3
Load balancing (LB)
M
VIP
DRBD
www.fromdual.com 22
Active/passive fail-over with
DRBD
App App App
M'
Slave1
Slave2
Slave3
Load balancing (LB)
M
VIP
DRBD
www.fromdual.com 23
MySQL Cluster
Application
Mgm Node 1
Load balancer
Application Application Application Application
SQL Node 1
Data Node 1
Data Node 2
Sw.
Data Node 3
Data Node 4
Sw.
SQL Node 2
SQL Node 3 ...
NDB-API NDB-API
Mgm Node 2
www.fromdual.com 24
Some Architectures put in place
www.fromdual.com 25
Laser welding device from the car
industry
www.fromdual.com 26
Data collection of laser devices
www.fromdual.com 27
Measuring of media consumption
www.fromdual.com 28
Car-Sharing platform
www.fromdual.com 29
Solar cell production
www.fromdual.com 30
Solar cell production
www.fromdual.com 31
Online Stock trading platform
www.fromdual.com 32
Questions and Discussion
?
Slides: www.fromdual.com
or
oli.sennhauser@fromdual.com

More Related Content

What's hot

M|18 How to use MyRocks with MariaDB Server
M|18 How to use MyRocks with MariaDB ServerM|18 How to use MyRocks with MariaDB Server
M|18 How to use MyRocks with MariaDB Server
MariaDB plc
 
Vitess: Scalable Database Architecture - Kubernetes Community Days Africa Ap...
Vitess: Scalable Database Architecture -  Kubernetes Community Days Africa Ap...Vitess: Scalable Database Architecture -  Kubernetes Community Days Africa Ap...
Vitess: Scalable Database Architecture - Kubernetes Community Days Africa Ap...
Alkin Tezuysal
 
Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020
Alkin Tezuysal
 
MySQL Storage Engines Landscape
MySQL Storage Engines LandscapeMySQL Storage Engines Landscape
MySQL Storage Engines Landscape
Colin Charles
 
MyRocks in MariaDB
MyRocks in MariaDBMyRocks in MariaDB
MyRocks in MariaDB
Sergey Petrunya
 
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Ted Wennmark
 
20171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v120171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v1
Ivan Ma
 
MyRocks in MariaDB: why and how
MyRocks in MariaDB: why and howMyRocks in MariaDB: why and how
MyRocks in MariaDB: why and how
Sergey Petrunya
 
Say Hello to MyRocks
Say Hello to MyRocksSay Hello to MyRocks
Say Hello to MyRocks
Sergey Petrunya
 
Case Study: MySQL migration from latin1 to UTF-8
Case Study: MySQL migration from latin1 to UTF-8Case Study: MySQL migration from latin1 to UTF-8
Case Study: MySQL migration from latin1 to UTF-8
Olivier DASINI
 
Oracle to MySQL 2012
Oracle to MySQL  2012 Oracle to MySQL  2012
Oracle to MySQL 2012
Marco Tusa
 
Integrating best of breed open source tools to vitess orchestrator pleu21
Integrating best of breed open source tools to vitess  orchestrator   pleu21Integrating best of breed open source tools to vitess  orchestrator   pleu21
Integrating best of breed open source tools to vitess orchestrator pleu21
Alkin Tezuysal
 
M|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocksM|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocks
MariaDB plc
 
MySQL overview
MySQL overviewMySQL overview
MySQL overview
Marco Tusa
 
MySQL Day Paris 2016 - State Of The Dolphin
MySQL Day Paris 2016 - State Of The DolphinMySQL Day Paris 2016 - State Of The Dolphin
MySQL Day Paris 2016 - State Of The Dolphin
Olivier DASINI
 
Fosdem2014 MariaDB CONNECT Storage Engine
Fosdem2014 MariaDB CONNECT Storage EngineFosdem2014 MariaDB CONNECT Storage Engine
Fosdem2014 MariaDB CONNECT Storage Engine
Serge Frezefond
 
MariaDB CONNECT Storage Engine
MariaDB CONNECT Storage EngineMariaDB CONNECT Storage Engine
MariaDB CONNECT Storage Engine
Serge Frezefond
 
How to upgrade like a boss to MySQL 8.0 - PLE19
How to upgrade like a boss to MySQL 8.0 -  PLE19How to upgrade like a boss to MySQL 8.0 -  PLE19
How to upgrade like a boss to MySQL 8.0 - PLE19
Alkin Tezuysal
 
Breakthrough performance with MySQL Cluster (2012)
Breakthrough performance with MySQL Cluster (2012)Breakthrough performance with MySQL Cluster (2012)
Breakthrough performance with MySQL Cluster (2012)
Frazer Clement
 
Using MySQL in Automated Testing
Using MySQL in Automated TestingUsing MySQL in Automated Testing
Using MySQL in Automated Testing
Morgan Tocker
 

What's hot (20)

M|18 How to use MyRocks with MariaDB Server
M|18 How to use MyRocks with MariaDB ServerM|18 How to use MyRocks with MariaDB Server
M|18 How to use MyRocks with MariaDB Server
 
Vitess: Scalable Database Architecture - Kubernetes Community Days Africa Ap...
Vitess: Scalable Database Architecture -  Kubernetes Community Days Africa Ap...Vitess: Scalable Database Architecture -  Kubernetes Community Days Africa Ap...
Vitess: Scalable Database Architecture - Kubernetes Community Days Africa Ap...
 
Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020Myrocks in the wild wild west! FOSDEM 2020
Myrocks in the wild wild west! FOSDEM 2020
 
MySQL Storage Engines Landscape
MySQL Storage Engines LandscapeMySQL Storage Engines Landscape
MySQL Storage Engines Landscape
 
MyRocks in MariaDB
MyRocks in MariaDBMyRocks in MariaDB
MyRocks in MariaDB
 
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8Upgrade to MySQL 5.7 and latest news planned for MySQL 8
Upgrade to MySQL 5.7 and latest news planned for MySQL 8
 
20171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v120171104 hk-py con-mysql-documentstore_v1
20171104 hk-py con-mysql-documentstore_v1
 
MyRocks in MariaDB: why and how
MyRocks in MariaDB: why and howMyRocks in MariaDB: why and how
MyRocks in MariaDB: why and how
 
Say Hello to MyRocks
Say Hello to MyRocksSay Hello to MyRocks
Say Hello to MyRocks
 
Case Study: MySQL migration from latin1 to UTF-8
Case Study: MySQL migration from latin1 to UTF-8Case Study: MySQL migration from latin1 to UTF-8
Case Study: MySQL migration from latin1 to UTF-8
 
Oracle to MySQL 2012
Oracle to MySQL  2012 Oracle to MySQL  2012
Oracle to MySQL 2012
 
Integrating best of breed open source tools to vitess orchestrator pleu21
Integrating best of breed open source tools to vitess  orchestrator   pleu21Integrating best of breed open source tools to vitess  orchestrator   pleu21
Integrating best of breed open source tools to vitess orchestrator pleu21
 
M|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocksM|18 How Facebook Migrated to MyRocks
M|18 How Facebook Migrated to MyRocks
 
MySQL overview
MySQL overviewMySQL overview
MySQL overview
 
MySQL Day Paris 2016 - State Of The Dolphin
MySQL Day Paris 2016 - State Of The DolphinMySQL Day Paris 2016 - State Of The Dolphin
MySQL Day Paris 2016 - State Of The Dolphin
 
Fosdem2014 MariaDB CONNECT Storage Engine
Fosdem2014 MariaDB CONNECT Storage EngineFosdem2014 MariaDB CONNECT Storage Engine
Fosdem2014 MariaDB CONNECT Storage Engine
 
MariaDB CONNECT Storage Engine
MariaDB CONNECT Storage EngineMariaDB CONNECT Storage Engine
MariaDB CONNECT Storage Engine
 
How to upgrade like a boss to MySQL 8.0 - PLE19
How to upgrade like a boss to MySQL 8.0 -  PLE19How to upgrade like a boss to MySQL 8.0 -  PLE19
How to upgrade like a boss to MySQL 8.0 - PLE19
 
Breakthrough performance with MySQL Cluster (2012)
Breakthrough performance with MySQL Cluster (2012)Breakthrough performance with MySQL Cluster (2012)
Breakthrough performance with MySQL Cluster (2012)
 
Using MySQL in Automated Testing
Using MySQL in Automated TestingUsing MySQL in Automated Testing
Using MySQL in Automated Testing
 

Viewers also liked

Instalar MySQL CentOS
Instalar MySQL CentOSInstalar MySQL CentOS
Instalar MySQL CentOS
Moisés Elías Araya
 
UKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA'sUKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA's
FromDual GmbH
 
Explain
ExplainExplain
Mysql Performance Schema - fossasia 2016
Mysql Performance Schema - fossasia 2016Mysql Performance Schema - fossasia 2016
Mysql Performance Schema - fossasia 2016
Mayank Prasad
 
MySQL Performance Tuning - GNUnify 2010
MySQL Performance Tuning - GNUnify 2010MySQL Performance Tuning - GNUnify 2010
MySQL Performance Tuning - GNUnify 2010
OSSCube
 
MySQL Performance Tuning
MySQL Performance TuningMySQL Performance Tuning
MySQL Performance Tuning
FromDual GmbH
 

Viewers also liked (6)

Instalar MySQL CentOS
Instalar MySQL CentOSInstalar MySQL CentOS
Instalar MySQL CentOS
 
UKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA'sUKOUG 2011: MySQL Architectures for Oracle DBA's
UKOUG 2011: MySQL Architectures for Oracle DBA's
 
Explain
ExplainExplain
Explain
 
Mysql Performance Schema - fossasia 2016
Mysql Performance Schema - fossasia 2016Mysql Performance Schema - fossasia 2016
Mysql Performance Schema - fossasia 2016
 
MySQL Performance Tuning - GNUnify 2010
MySQL Performance Tuning - GNUnify 2010MySQL Performance Tuning - GNUnify 2010
MySQL Performance Tuning - GNUnify 2010
 
MySQL Performance Tuning
MySQL Performance TuningMySQL Performance Tuning
MySQL Performance Tuning
 

Similar to Ukoug 2011 mysql_arch_for_orcl_dba

NoSQL with MySQL
NoSQL with MySQLNoSQL with MySQL
NoSQL with MySQL
FromDual GmbH
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
FromDual GmbH
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
Lenz Grimmer
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
Lenz Grimmer
 
Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02
Louis liu
 
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Manuel Contreras
 
Running MySQL in AWS
Running MySQL in AWSRunning MySQL in AWS
Running MySQL in AWS
Laine Campbell
 
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB Corporation
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Keith Hollman
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
Tarique Saleem
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdl
sqlhjalp
 
MySQL Cluster (NDB) - Best Practices Percona Live 2017
MySQL Cluster (NDB) - Best Practices Percona Live 2017MySQL Cluster (NDB) - Best Practices Percona Live 2017
MySQL Cluster (NDB) - Best Practices Percona Live 2017
Severalnines
 
PostgreSQL and MySQL
PostgreSQL and MySQLPostgreSQL and MySQL
PostgreSQL and MySQL
PostgreSQL Experts, Inc.
 
MySQL Performance Tuning Variables
MySQL Performance Tuning VariablesMySQL Performance Tuning Variables
MySQL Performance Tuning Variables
FromDual GmbH
 
Latest trends in database management
Latest trends in database managementLatest trends in database management
Latest trends in database management
BcomBT
 
Scaling up and accelerating Drupal 8 with NoSQL
Scaling up and accelerating Drupal 8 with NoSQLScaling up and accelerating Drupal 8 with NoSQL
Scaling up and accelerating Drupal 8 with NoSQL
OSInet
 
MariaDB 10 and Beyond
MariaDB 10 and BeyondMariaDB 10 and Beyond
MariaDB 10 and Beyond
MariaDB Corporation
 
Tutorial MySQL com Java
Tutorial MySQL com JavaTutorial MySQL com Java
Tutorial MySQL com Java
MySQL Brasil
 
My sql vivo_5.5_product_update_pt
My sql  vivo_5.5_product_update_ptMy sql  vivo_5.5_product_update_pt
My sql vivo_5.5_product_update_pt
MySQL Brasil
 

Similar to Ukoug 2011 mysql_arch_for_orcl_dba (20)

NoSQL with MySQL
NoSQL with MySQLNoSQL with MySQL
NoSQL with MySQL
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
MySQL High Availability Solutions
MySQL High Availability SolutionsMySQL High Availability Solutions
MySQL High Availability Solutions
 
Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02Mysqlhacodebits20091203 1260184765-phpapp02
Mysqlhacodebits20091203 1260184765-phpapp02
 
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
 
Running MySQL in AWS
Running MySQL in AWSRunning MySQL in AWS
Running MySQL in AWS
 
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin FrankfurtMariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
MariaDB und mehr - MariaDB Roadshow Summer 2014 Hamburg Berlin Frankfurt
 
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA -   UKOUGEmbracing Database Diversity: The New Oracle / MySQL DBA -   UKOUG
Embracing Database Diversity: The New Oracle / MySQL DBA - UKOUG
 
Mysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New FeaturesMysql User Camp : 20th June - Mysql New Features
Mysql User Camp : 20th June - Mysql New Features
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
My sql crashcourse_intro_kdl
My sql crashcourse_intro_kdlMy sql crashcourse_intro_kdl
My sql crashcourse_intro_kdl
 
MySQL Cluster (NDB) - Best Practices Percona Live 2017
MySQL Cluster (NDB) - Best Practices Percona Live 2017MySQL Cluster (NDB) - Best Practices Percona Live 2017
MySQL Cluster (NDB) - Best Practices Percona Live 2017
 
PostgreSQL and MySQL
PostgreSQL and MySQLPostgreSQL and MySQL
PostgreSQL and MySQL
 
MySQL Performance Tuning Variables
MySQL Performance Tuning VariablesMySQL Performance Tuning Variables
MySQL Performance Tuning Variables
 
Latest trends in database management
Latest trends in database managementLatest trends in database management
Latest trends in database management
 
Scaling up and accelerating Drupal 8 with NoSQL
Scaling up and accelerating Drupal 8 with NoSQLScaling up and accelerating Drupal 8 with NoSQL
Scaling up and accelerating Drupal 8 with NoSQL
 
MariaDB 10 and Beyond
MariaDB 10 and BeyondMariaDB 10 and Beyond
MariaDB 10 and Beyond
 
Tutorial MySQL com Java
Tutorial MySQL com JavaTutorial MySQL com Java
Tutorial MySQL com Java
 
My sql vivo_5.5_product_update_pt
My sql  vivo_5.5_product_update_ptMy sql  vivo_5.5_product_update_pt
My sql vivo_5.5_product_update_pt
 

Recently uploaded

Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
vikram sood
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
74nqk8xf
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
roli9797
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 

Recently uploaded (20)

Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 
Global Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headedGlobal Situational Awareness of A.I. and where its headed
Global Situational Awareness of A.I. and where its headed
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Analysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performanceAnalysis insight about a Flyball dog competition team's performance
Analysis insight about a Flyball dog competition team's performance
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 

Ukoug 2011 mysql_arch_for_orcl_dba

  • 1. www.fromdual.com 1 MySQL Architectures for Oracle DBA's UKOUG Conference 2011 December 5th , Birmingham Oli Sennhauser Senior MySQL Consultant, FromDual oli.sennhauser@fromdual.com
  • 2. www.fromdual.com 2 FromDual ● FromDual provides neutral and independent: ● Consulting for MySQL (on-site and remote) ● Remote-DBA / MySQL operations ● Support for Galera (synchronous MySQL Replication) ● Support for MySQL (Basic and Silver) ● Training for MySQL ● Consulting Partner of Open Database Alliance (ODBA.org) ● Oracle Silver Partner (OPN) ● More informations at: www.fromdual.com
  • 4. www.fromdual.com 4 Content ● The LAMP Stack ● History of MySQL ● Open Source ● Branches and Forks ● Move from Oracle? ● MySQL Architecture ● Pluggable Storage Engines ● Differences between Oracle and MySQL ● Scale-Up vs. Scale-Out ● High-Availability solutions ● Architectures put in place
  • 5. www.fromdual.com 5 The LAMP Stack PHP Who is behind? Alternatives MySQL Apache Linux We are the Web! Zend Technologies MySQL/Oracle Apache Software Foundation Linux Foundation Perl, Java, Python, Ruby PostgreSQL, others Lighty (lighttpd), IIS Windows, Solaris, BSD, others
  • 6. www.fromdual.com 6 History of MySQL 2000 01 02 03 04 2005 06 07 0908 2010 Oct 2005: Oracle buys Innobase OY InnoDB Friday ... 1995: project started by Monty Widenius, David Axmark and Allan Larsson Jun 2000: GPL Oracle tries to buy MySQL IPO is announced for 2008 Jan 2008: Sun buys MySQL for USD 1000 Mio 2008: Branching of MySQL begins Jan 2001: v3.23 GA Apr 2009: Oracle buys Sun for USD 7400 Mio
  • 7. www.fromdual.com 7 Open Source ● Basics: ● Source code is available and visible (transparency) ● Source code can be changed, adapted or used elsewhere ● Everybody can participate: Communities ● Advantages ● „no“ Vendor Lock-in! ● More flexibility! ● Less costs? ● Better Quality? ● Higher reliability? ● Disadvantages ● Not everything is served on a golden plate: „read the source“! ● Potential for conflicts as soon as commercial interests come into the game ● For me personally important: Know-how transfer, freedom of know-how
  • 8. www.fromdual.com 8 Branches and Forks 2009 Jul Drizzle MySQL Fork Jul ProvenScaling MySQL Branch (†) Oct OurDelta MySQL Branch Dec XtraDB InnoDB Branch / Percona Build / Percona Server May MariaDB/Aria MySQL/MyISAM Branch Fork ? 2010 Google patches MySQL 2008
  • 9. www.fromdual.com 9 Switch from Oracle? Oracle MySQL It needs some time to adapt (3 - 6 monts?)!
  • 10. www.fromdual.com 10 MySQL Architecture mysqld MySQL is a multi-thread and NOT a multi-process application! Application / Client Parser Optimizer Access Control Table Manager Table Open Cache (.frm, fh) Table Definition Cache (tbl def.) Handler Interface MyISAM Memory NDB PBXTInnoDB ...Aria XtraDB Federated-X Thread Cache Connection Manager User Au- thentication Command Dispatcher Logging Query Cache Module Query Cache
  • 11. www.fromdual.com 11 Pluggable Storage Engines (SE) Conventional (R)DBMS = monolithic MYSQL SE Handler Interface ISAM MyISAM BDB ... built-in MYSQL pluggable SE InnoDB MyISAM PBXT NDB ... Handler Interface plug-in ● The concept of Storage Engines (SE) ● A Storage Engine is a database kernel
  • 12. www.fromdual.com 12 The most important Storage Engines (SE) ● MyISAM / Aria ● InnoDB / XtraDB / PBXT (transactional SE) ● MEMORY ● NDB (MySQL Cluster) ● Federated-X (~ Oracle DB-Link) ● CSV, Archive, Blackhole ● Spider, etc.
  • 13. www.fromdual.com 13 Migration from Oracle to MySQL ● Application? ● Most difficult: PL/SQL ● >> 1 Tbyte? ● MySQL Migration Tool-kit helps you ● ETL tools help you
  • 14. www.fromdual.com 14 Differences between Oracle and MySQL ● Characteristics is SE dependent → configuration ● Transactions/Locking is SE dependent → InnoDB / XtraDB / PBXT are the closest SE ● Some buffers / caches are SE dependent, others are not → Configure differently depending on you needs ● Connections in Oracle are expensive, in MySQL they are quite cheap ● Oracle is a multi-process architecture, MySQL is a multi- thread architecture ● Oracle has a fixed size shared memory SGA, MySQL has dynamic memory for the process → can grow!
  • 15. www.fromdual.com 15 Other differences between Oracle and MySQL ● Oracle has tablespaces / redo log files → in MySQL 1 system TS (+ 1 tablespace per table) and the transaction log files (ib_logfile<n>). ● Oracle has rman, in MySQL you have many tools (mysqldump, mysql, mysqlbackup, xtrabackup, …) ● Backup in MySQL can be done wrong! ● exp / imp → mysqldump / mysql ● rman → mysqlbackup / xtrabackup ● OEM/Grid Control → MySQL Enterprise Monitor (will be integrated into OEM/GC?) ● RAC → Galera / MySQL Cluster ● Oracle Streams Replication → MySQL Replication
  • 16. www.fromdual.com 16 Further differences between Oracle and MySQL ● MySQL has different Logs: ● Error Log (= alert.log) ● Binary Log (~ archive log) ● Transaction Log (~ REDO log, but Binary Log != Transaction Log) ● General Query log (Oracle ?) ● Schema in Oracle: User + Objects ● Schema in MySQL: indepent of user ● Oracle: Scale-up, MySQL: Scale-out
  • 17. www.fromdual.com 17 MySQL Scale-Out vs. Scale-Up Scale-Out ● Cost ● MySQL design ● Physical bottlenecks Scale-Up ● „Relaxation of Constraints“
  • 18. www.fromdual.com 18 The MySQL Scale-Out approach Application Master Slave Backup Load balancer Slave 1 Slave Reporting Slave 2 Slave 3 rt w ro ...
  • 19. www.fromdual.com 19 Active/passive fail-over with SAN App App App M' SAN Slave1 Slave2 Slave3 Load balancing (LB) M VIP
  • 20. www.fromdual.com 20 Active/passive fail-over with SAN ● SPOF! App App App M' SAN Slave1 Slave2 Slave3 Load balancing (LB) M VIP !!!
  • 21. www.fromdual.com 21 Active/passive fail-over with DRBD App App App M' Slave1 Slave2 Slave3 Load balancing (LB) M VIP DRBD
  • 22. www.fromdual.com 22 Active/passive fail-over with DRBD App App App M' Slave1 Slave2 Slave3 Load balancing (LB) M VIP DRBD
  • 23. www.fromdual.com 23 MySQL Cluster Application Mgm Node 1 Load balancer Application Application Application Application SQL Node 1 Data Node 1 Data Node 2 Sw. Data Node 3 Data Node 4 Sw. SQL Node 2 SQL Node 3 ... NDB-API NDB-API Mgm Node 2
  • 25. www.fromdual.com 25 Laser welding device from the car industry
  • 27. www.fromdual.com 27 Measuring of media consumption
  • 32. www.fromdual.com 32 Questions and Discussion ? Slides: www.fromdual.com or oli.sennhauser@fromdual.com