SlideShare a Scribd company logo
1 of 30
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL for Oracle DBAs
•
Ben Krug
•
Senior Technical Support Engineer
•
ben.krug@oracle.com
•
August 2015
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Introduction to MySQL – What is MySQL?
•
Open-source RDBMS
– Beginning: One element of historical LAMP stack (Linux, Apache, MySQL, PHP)
– Present: RDBMS, yet also supports high-performance NoSQL
●
http://www.mysql.com/why-mysql/white-papers/guide-to-mysql-and-nosql-delivering-the-best-of-both-worlds/
– Future: 5.7 (not yet GA) also introduces native JSON support (and much more!)
●
http://mysqlserverteam.com/json-labs-release-native-json-data-type-and-binary-format/
•
Several core products, for different needs and environments
– Enterprise, Cluster, Community, and more
●
http://www.oracle.com/us/products/mysql/overview/index.html
●
https://www.mysql.com/products/
•
The world's most popular open-source database - www.mysql.com
4
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Why Use MySQL?
•
Choose the right tool for each job
– Simple and efficient
– Low cost
– Widely tested and used
– Highly scalable
•
Ideal for web applications
– http://www.mysql.com/why-mysql/white-papers/top-10-reasons-to-choose-mysql-for-next-generation-web-applications/
•
Supported by Oracle and integrates with Oracle databases and environments
5
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL for the Oracle DBA
•
This talk will give an overview and highlights of MySQL
– From an Oracle DBA's perspective
●
I started out as an Oracle DBA
– Highlighting aspects that an Oracle DBA might not expect
●
Similarities and differences
– Since it is an overview, we can't cover every detail
●
Therefore, many references are provided in the slides
•
Let's get started...
6
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL – Community or Enterprise?
•
The Community version of MySQL is free to download and use
– http://www.oracle.com/us/products/mysql/mysqlcommunityserver/overview/index.html
•
Why use Enterprise, then?
– Enhanced scalability
– Management and online backup tools
– Features for Security and Regulatory Compliance
– http://www.oracle.com/us/products/mysql/mysqlenterprise/overview/index.html
•
What about Cluster?
– Suited for particular needs, in-memory, more specialized, more complex
– http://www.oracle.com/us/products/mysql/mysqlcluster/overview/index.html
•
Before you start, know the products
7
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Terminology
•
No schemas; users don't own objects
•
Instead, multiple databases per instance (almost like schemas)
•
Log files have different names
– Binary logs, or binlogs, are similar to archived redo log files
– InnoDB log files (ib_logfile) are like online redo logs
– Error log is the alert log (you might have guessed that one!)
•
What is a storage engine? ...
•
Terminology is similar, with minor differences – eg:
8
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Terminology
•
MySQL code is modular – storage engine covers storage – tables, etc
•
Can think of it as a table type, but it's more than that
•
Default is InnoDB, which supports ACID, foreign keys, and much more
– 'CREATE TABLE t (a int);' is the same as 'CREATE TABLE t (a int) ENGINE=InnoDB;'
•
Other storage engines exist for specialized needs
– First S.E. was MyISAM
– Others include Archive, ndb, etc
– InnoDB will suffice in many cases
•
Storage Engine
9
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Terminology
•
Scale-up – buy a bigger, faster server with more storage
•
Scale-out – buy more “commodity” servers
– Scale-out is common approach with MySQL
– Divide the data into “shards” and spread it across servers and databases
– Add rack units as needed
– https://oracle2mysql.wordpress.com/2007/08/22/12/
•
What is “scale-out” vs “scale-up”?
10
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
How to get and install MySQL
•
.rpm's are the simplest and most common way
– “sudo yum install ...”
– Get Enterprise packages from edelivery.oracle.com
– Or, official community yum repo, see http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/index.html
– Creates mysql user, group, installs, sets up service – ready to go!
•
There are also debian packages
•
GUI installer for Windows
•
Manually - tar or zip files for more control over placement, etc
•
http://dev.mysql.com/doc/refman/5.6/en/installing.html
•
There are many ways...
11
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
How to get and install MySQL, continued
•
For testing, or other constraints
– Docker: https://hub.docker.com/_/mysql/
– Pre-built Virtualbox VMs
●
Enterprise: http://www.oracle.com/technetwork/server-storage/vm/overview/mysql-358840.html
●
Community: http://www.oracle.com/technetwork/community/developer-vm/index.html#mysql
– A popular community tool (not official Oracle) – MySQL Sandbox
●
http://mysqlsandbox.net/
•
There are many ways...
12
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
How will users connect?
•
Mysql command-line client
– “mysql -u root -p” can connect to your new installation
– Like using sql*plus, with a little less “plus”
– Some sample commands to try: http://www.nparikh.org/unix/mysql.php
– https://dev.mysql.com/doc/refman/5.6/en/mysql.html
•
MySQL Workbench for GUI
– Development and DBA tools
– Server and user admin (backups, auditing, configuration, and much more)
– https://www.mysql.com/products/workbench , https://www.mysql.com/products/workbench/admin/
•
How will you connect?
13
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Privileges
•
Privileges depend on user, and the host they are connecting from
– Eg, root can be set to only allow local connection
– Or, a user or app can only connect from a certain host or subnet
– Privileges may vary, depending on where the user is
– This can lead to some surprises...
●
Eg, https://oracle2mysql.wordpress.com/2007/08/24/playing-with-permissions/
•
No roles, but Workbench simulates them for convenience
– https://dev.mysql.com/doc/workbench/en/wb-mysql-connections-navigator-management-users-and-privileges.html
●
Native MySQL security
14
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Privileges, continued
•
Authentication plugins allow for more flexibility and integration
– External authentication via PAM, Windows login IDs, LDAP, or Kerberos
– Stronger encryption
– Proxy users
●
Roles? http://mysqlblog.fivefarmers.com/2015/04/08/emulating-roles-with-expanded-proxy-user-support-in-5-7-7/
●
Authentication plugins - http://dev.mysql.com/doc/refman/5.6/en/pluggable-authentication.html
15
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Things to be aware of...
•
Character sets and collations
– In strings, does 'a'='A'? You may want to set your character sets and collations
●
https://dev.mysql.com/doc/refman/5.6/en/charset.html
•
Case-sensitive table names
– For tables, does 'TableName' = 'tablename'? Check lower_case_table_names
●
https://dev.mysql.com/doc/refman/5.6/en/identifier-case-sensitivity.html
•
You commit without saying “commit”? set autocommit off
– https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_autocommit
•
You might not have thought to even think of these things
16
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
System databases
•
mysql
– Contains data about all databases, users, plugins, procedures, etc
•
information_schema
– Contains metadata views
●
(note: here databases are called schemas! See information_schema.schemata.)
•
performance_schema
– Contains instrumentation about performance, highly configurable
•
SQL commands: SHOW DATABASES; USE dbname; SHOW TABLES;
17
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
System databases, continued
•
A sys schema is incorporated into coming 5.7 releases
– http://mysqlserverteam.com/the-mysql-sys-schema-in-mysql-5-7-7/
– Contributed by Mark Leith
– Available to install now, https://github.com/MarkLeith/mysql-sys/
•
Also, some “helper” views and scripts to make performance_schema more readable
– http://www.markleith.co.uk/ps_helper/
•
Where is sys? (for advanced users...)
18
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL for Oracle DBAs
•
OK, so how do I administer?
•
•
•
Let's get to the DBA tasks and tools...
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Server Administration
•
https://dev.mysql.com/doc/refman/5.6/en/server-administration.html
– Contains details on the things you expect – file placements, configuration files, how to set variables, and more
•
Also references further reading on:
– Tuning (InnoDB)
– Backups
– Replication
•
First, read the overview
20
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Server Administration, continued
•
InnoDB buffer pool is like db buffer cache, crucial to set
– innodb_buffer_pool_size and innodb_buffer_pool_instances, to start
•
InnoDB is highly configurable, take it one step at a time
– https://dev.mysql.com/doc/refman/5.6/en/innodb-configuration.html
•
Running SHOW STATUS; and SHOW ENGINE INNODB STATUSG
– Like running utlbstat and utlestat in older days
– Compare outputs over time, deltas
•
•
Tuning (especially InnoDB)
21
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Server Administration, tuning continued
•
Enable slow query log for a quick start
– mysqldumpslow – tool to analyze slow query log content
– https://dev.mysql.com/doc/refman/5.6/en/mysqldumpslow.html
•
Performance_schema (and ps_helper)
– Provide wait instrumentation
•
MySQL Enterprise Monitor (“MEM”)
– Performance advisors
– Query analyzer
•
OEM – use the MySQL plugin for Oracle Enterprise Manager
– More on this to come...
22
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Server Administration, continued
•
Generic methods:
– Cold backups – shut down and copy files
– Snapshots (eg LVM)
•
mysqldump provides logical backup, like export
– Use –single-transaction option for InnoDB
– Or, take mysqldump from a replication slave (...replication?)
•
MySQL Enterprise Backup (“MEB”) - “hot” backups for InnoDB
•
Backups
23
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL Server Administration, continued
•
Replication is a basic skill for a MySQL DBA
•
Easy to set up
– Slaves replay changes from master, creating a copy
– Uses binary logs from master to create relay logs on slave
•
Can offload heavy queries or backups to a slave
•
Simple, or complex: there are many possible options and configurations
– http://dev.mysql.com/doc/refman/5.6/en/replication.html
•
Replication
24
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL for Oracle DBAs
•
Enterprise tools
•
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL DBA tools
•
MySQL Utilities – free tools to simplify many DBA tasks
– Simplify MySQL administration, replication, and much more
– https://dev.mysql.com/downloads/utilities/
•
MySQL Enterprise Backup
– Online and incremental backups
•
MySQL Enterprise Monitor
– Manage and monitor MySQL installations
•
Many more, including tools for encryption, firewall, and auditing
– https://www.mysql.com/products/enterprise/
26
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL for Oracle DBAs
•
Further questions and support
•
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
For further questions and support
•
Enterprise licensing includes MySQL Support
– https://www.mysql.com/support/
•
For general understanding, the online manuals
– http://dev.mysql.com/doc/
•
For comparing products and features
– http://www.mysql.com/products/enterprise/
•
For the OEM MySQL plugin
– http://dev.mysql.com/doc/mysql-em-plugin/en/index.html
•
Enterprise support
29
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
MySQL for Oracle DBAs
•
Q&A
•
•
•
Ben Krug, Senior MySQL Support Engineer
•
ben.krug@oracle.com
•
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor Statement
The preceding is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied
upon in making purchasing decisions. The development, release, and timing of any
features or functionality described for Oracle’s products remains at the sole discretion of
Oracle.
31
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

More Related Content

What's hot

MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsMario Beck
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document StoreMario Beck
 
What's new in my sql smug
What's new in my sql smugWhat's new in my sql smug
What's new in my sql smugTed Wennmark
 
MySQL Enterprise Edition Overview
MySQL Enterprise Edition OverviewMySQL Enterprise Edition Overview
MySQL Enterprise Edition OverviewMario Beck
 
MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMark Swarbrick
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorTed Wennmark
 
MySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL Day Paris 2016 - MySQL Enterprise EditionMySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL Day Paris 2016 - MySQL Enterprise EditionOlivier DASINI
 
MySQL Security
MySQL SecurityMySQL Security
MySQL SecurityMario Beck
 
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud ServiceMySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud ServiceOlivier DASINI
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterOlivier DASINI
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015Sanjay Manwani
 
MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014Lars Thalmann
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMario Beck
 
OpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackOpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackMatt Lord
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMark Swarbrick
 
Using MySQL in the Cloud
Using MySQL in the CloudUsing MySQL in the Cloud
Using MySQL in the CloudMatt Lord
 
MySQL Community and Commercial Edition
MySQL Community and Commercial EditionMySQL Community and Commercial Edition
MySQL Community and Commercial EditionMario Beck
 

What's hot (20)

MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Document Store
MySQL Document StoreMySQL Document Store
MySQL Document Store
 
What's new in my sql smug
What's new in my sql smugWhat's new in my sql smug
What's new in my sql smug
 
MySQL Enterprise Edition Overview
MySQL Enterprise Edition OverviewMySQL Enterprise Edition Overview
MySQL Enterprise Edition Overview
 
MySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & TuneMySQL Tech Tour 2015 - Manage & Tune
MySQL Tech Tour 2015 - Manage & Tune
 
Mysql security 5.7
Mysql security 5.7 Mysql security 5.7
Mysql security 5.7
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
MySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL Day Paris 2016 - MySQL Enterprise EditionMySQL Day Paris 2016 - MySQL Enterprise Edition
MySQL Day Paris 2016 - MySQL Enterprise Edition
 
MySQL Security
MySQL SecurityMySQL Security
MySQL Security
 
InnoDb Vs NDB Cluster
InnoDb Vs NDB ClusterInnoDb Vs NDB Cluster
InnoDb Vs NDB Cluster
 
NoSQL and MySQL
NoSQL and MySQLNoSQL and MySQL
NoSQL and MySQL
 
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud ServiceMySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
MySQL Day Paris 2016 - Introducing Oracle MySQL Cloud Service
 
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB ClusterMySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
MySQL Day Paris 2016 - MySQL HA: InnoDB Cluster and NDB Cluster
 
My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015My sql5.7 whatsnew_presentedatgids2015
My sql5.7 whatsnew_presentedatgids2015
 
MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014
 
MySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB ClusterMySQL InnoDB Cluster and NDB Cluster
MySQL InnoDB Cluster and NDB Cluster
 
OpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStackOpenStack Days East -- MySQL Options in OpenStack
OpenStack Days East -- MySQL Options in OpenStack
 
MySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats newMySQL Tech Tour 2015 - 5.7 Whats new
MySQL Tech Tour 2015 - 5.7 Whats new
 
Using MySQL in the Cloud
Using MySQL in the CloudUsing MySQL in the Cloud
Using MySQL in the Cloud
 
MySQL Community and Commercial Edition
MySQL Community and Commercial EditionMySQL Community and Commercial Edition
MySQL Community and Commercial Edition
 

Similar to MySQL for Oracle DBAs

2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 Geir Høydalsvik
 
MySQL Manchester TT - Performance Tuning
MySQL Manchester TT  - Performance TuningMySQL Manchester TT  - Performance Tuning
MySQL Manchester TT - Performance TuningMark Swarbrick
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1Ivan Ma
 
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...Olivier DASINI
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLMario Beck
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014Sanjay Manwani
 
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)OracleMySQL
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivanIvan Tu
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015Mario Beck
 
OUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source CodeOUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source CodeGeorgi Kodinov
 
Pl17: MySQL 8.0: security
Pl17: MySQL 8.0: securityPl17: MySQL 8.0: security
Pl17: MySQL 8.0: securityGeorgi Kodinov
 
MySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMark Swarbrick
 
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...OracleMySQL
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL FabricMark Swarbrick
 
Openfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentOpenfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentGeorgi Kodinov
 
Using MySQL in Automated Testing
Using MySQL in Automated TestingUsing MySQL in Automated Testing
Using MySQL in Automated TestingMorgan Tocker
 
2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL ServerGeorgi Kodinov
 
MySQL :What's New #GIDS16
MySQL :What's New #GIDS16MySQL :What's New #GIDS16
MySQL :What's New #GIDS16Sanjay Manwani
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0Ståle Deraas
 
MySQL Web Reference Architecture
MySQL Web Reference Architecture MySQL Web Reference Architecture
MySQL Web Reference Architecture Ricky Setyawan
 

Similar to MySQL for Oracle DBAs (20)

2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015 2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
2015: Whats New in MySQL 5.7, At Oracle Open World, November 3rd, 2015
 
MySQL Manchester TT - Performance Tuning
MySQL Manchester TT  - Performance TuningMySQL Manchester TT  - Performance Tuning
MySQL Manchester TT - Performance Tuning
 
01 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv101 demystifying mysq-lfororacledbaanddeveloperv1
01 demystifying mysq-lfororacledbaanddeveloperv1
 
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
MySQL Day Paris 2018 - MySQL InnoDB Cluster; A complete High Availability sol...
 
Oracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQLOracle Enterprise Manager for MySQL
Oracle Enterprise Manager for MySQL
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014
 
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
 
1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan1 my sql20151219-kaji_ivan
1 my sql20151219-kaji_ivan
 
MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015MySQL 5.7: What's New, Nov. 2015
MySQL 5.7: What's New, Nov. 2015
 
OUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source CodeOUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: Guided Tour On The MySQL Source Code
 
Pl17: MySQL 8.0: security
Pl17: MySQL 8.0: securityPl17: MySQL 8.0: security
Pl17: MySQL 8.0: security
 
MySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL FabricMySQL London Tech Tour March 2015 - MySQL Fabric
MySQL London Tech Tour March 2015 - MySQL Fabric
 
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
 
Netherlands Tech Tour 02 - MySQL Fabric
Netherlands Tech Tour 02 -   MySQL FabricNetherlands Tech Tour 02 -   MySQL Fabric
Netherlands Tech Tour 02 - MySQL Fabric
 
Openfest15 MySQL Plugin Development
Openfest15 MySQL Plugin DevelopmentOpenfest15 MySQL Plugin Development
Openfest15 MySQL Plugin Development
 
Using MySQL in Automated Testing
Using MySQL in Automated TestingUsing MySQL in Automated Testing
Using MySQL in Automated Testing
 
2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server2014 OpenSuse Conf: Protect your MySQL Server
2014 OpenSuse Conf: Protect your MySQL Server
 
MySQL :What's New #GIDS16
MySQL :What's New #GIDS16MySQL :What's New #GIDS16
MySQL :What's New #GIDS16
 
Upgrading to my sql 8.0
Upgrading to my sql 8.0Upgrading to my sql 8.0
Upgrading to my sql 8.0
 
MySQL Web Reference Architecture
MySQL Web Reference Architecture MySQL Web Reference Architecture
MySQL Web Reference Architecture
 

Recently uploaded

RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhijennyeacort
 
2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING
2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING
2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSINGmarianagonzalez07
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our WorldEduminds Learning
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改yuu sss
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...Boston Institute of Analytics
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理e4aez8ss
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanMYRABACSAFRA2
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
Machine learning classification ppt.ppt
Machine learning classification  ppt.pptMachine learning classification  ppt.ppt
Machine learning classification ppt.pptamreenkhanum0307
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...GQ Research
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfBoston Institute of Analytics
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 

Recently uploaded (20)

RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝DelhiRS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
RS 9000 Call In girls Dwarka Mor (DELHI)⇛9711147426🔝Delhi
 
2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING
2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING
2006_GasProcessing_HB (1).pdf HYDROCARBON PROCESSING
 
Learn How Data Science Changes Our World
Learn How Data Science Changes Our WorldLearn How Data Science Changes Our World
Learn How Data Science Changes Our World
 
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
专业一比一美国俄亥俄大学毕业证成绩单pdf电子版制作修改
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
NLP Data Science Project Presentation:Predicting Heart Disease with NLP Data ...
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
科罗拉多大学波尔得分校毕业证学位证成绩单-可办理
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
Identifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population MeanIdentifying Appropriate Test Statistics Involving Population Mean
Identifying Appropriate Test Statistics Involving Population Mean
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
Machine learning classification ppt.ppt
Machine learning classification  ppt.pptMachine learning classification  ppt.ppt
Machine learning classification ppt.ppt
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
Biometric Authentication: The Evolution, Applications, Benefits and Challenge...
 
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdfPredicting Salary Using Data Science: A Comprehensive Analysis.pdf
Predicting Salary Using Data Science: A Comprehensive Analysis.pdf
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
原版1:1定制南十字星大学毕业证(SCU毕业证)#文凭成绩单#真实留信学历认证永久存档
 

MySQL for Oracle DBAs

  • 1. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
  • 2. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL for Oracle DBAs • Ben Krug • Senior Technical Support Engineer • ben.krug@oracle.com • August 2015
  • 3. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Introduction to MySQL – What is MySQL? • Open-source RDBMS – Beginning: One element of historical LAMP stack (Linux, Apache, MySQL, PHP) – Present: RDBMS, yet also supports high-performance NoSQL ● http://www.mysql.com/why-mysql/white-papers/guide-to-mysql-and-nosql-delivering-the-best-of-both-worlds/ – Future: 5.7 (not yet GA) also introduces native JSON support (and much more!) ● http://mysqlserverteam.com/json-labs-release-native-json-data-type-and-binary-format/ • Several core products, for different needs and environments – Enterprise, Cluster, Community, and more ● http://www.oracle.com/us/products/mysql/overview/index.html ● https://www.mysql.com/products/ • The world's most popular open-source database - www.mysql.com 4
  • 4. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Why Use MySQL? • Choose the right tool for each job – Simple and efficient – Low cost – Widely tested and used – Highly scalable • Ideal for web applications – http://www.mysql.com/why-mysql/white-papers/top-10-reasons-to-choose-mysql-for-next-generation-web-applications/ • Supported by Oracle and integrates with Oracle databases and environments 5
  • 5. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL for the Oracle DBA • This talk will give an overview and highlights of MySQL – From an Oracle DBA's perspective ● I started out as an Oracle DBA – Highlighting aspects that an Oracle DBA might not expect ● Similarities and differences – Since it is an overview, we can't cover every detail ● Therefore, many references are provided in the slides • Let's get started... 6
  • 6. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL – Community or Enterprise? • The Community version of MySQL is free to download and use – http://www.oracle.com/us/products/mysql/mysqlcommunityserver/overview/index.html • Why use Enterprise, then? – Enhanced scalability – Management and online backup tools – Features for Security and Regulatory Compliance – http://www.oracle.com/us/products/mysql/mysqlenterprise/overview/index.html • What about Cluster? – Suited for particular needs, in-memory, more specialized, more complex – http://www.oracle.com/us/products/mysql/mysqlcluster/overview/index.html • Before you start, know the products 7
  • 7. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Terminology • No schemas; users don't own objects • Instead, multiple databases per instance (almost like schemas) • Log files have different names – Binary logs, or binlogs, are similar to archived redo log files – InnoDB log files (ib_logfile) are like online redo logs – Error log is the alert log (you might have guessed that one!) • What is a storage engine? ... • Terminology is similar, with minor differences – eg: 8
  • 8. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Terminology • MySQL code is modular – storage engine covers storage – tables, etc • Can think of it as a table type, but it's more than that • Default is InnoDB, which supports ACID, foreign keys, and much more – 'CREATE TABLE t (a int);' is the same as 'CREATE TABLE t (a int) ENGINE=InnoDB;' • Other storage engines exist for specialized needs – First S.E. was MyISAM – Others include Archive, ndb, etc – InnoDB will suffice in many cases • Storage Engine 9
  • 9. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Terminology • Scale-up – buy a bigger, faster server with more storage • Scale-out – buy more “commodity” servers – Scale-out is common approach with MySQL – Divide the data into “shards” and spread it across servers and databases – Add rack units as needed – https://oracle2mysql.wordpress.com/2007/08/22/12/ • What is “scale-out” vs “scale-up”? 10
  • 10. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | How to get and install MySQL • .rpm's are the simplest and most common way – “sudo yum install ...” – Get Enterprise packages from edelivery.oracle.com – Or, official community yum repo, see http://dev.mysql.com/doc/mysql-repo-excerpt/5.6/en/index.html – Creates mysql user, group, installs, sets up service – ready to go! • There are also debian packages • GUI installer for Windows • Manually - tar or zip files for more control over placement, etc • http://dev.mysql.com/doc/refman/5.6/en/installing.html • There are many ways... 11
  • 11. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | How to get and install MySQL, continued • For testing, or other constraints – Docker: https://hub.docker.com/_/mysql/ – Pre-built Virtualbox VMs ● Enterprise: http://www.oracle.com/technetwork/server-storage/vm/overview/mysql-358840.html ● Community: http://www.oracle.com/technetwork/community/developer-vm/index.html#mysql – A popular community tool (not official Oracle) – MySQL Sandbox ● http://mysqlsandbox.net/ • There are many ways... 12
  • 12. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | How will users connect? • Mysql command-line client – “mysql -u root -p” can connect to your new installation – Like using sql*plus, with a little less “plus” – Some sample commands to try: http://www.nparikh.org/unix/mysql.php – https://dev.mysql.com/doc/refman/5.6/en/mysql.html • MySQL Workbench for GUI – Development and DBA tools – Server and user admin (backups, auditing, configuration, and much more) – https://www.mysql.com/products/workbench , https://www.mysql.com/products/workbench/admin/ • How will you connect? 13
  • 13. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Privileges • Privileges depend on user, and the host they are connecting from – Eg, root can be set to only allow local connection – Or, a user or app can only connect from a certain host or subnet – Privileges may vary, depending on where the user is – This can lead to some surprises... ● Eg, https://oracle2mysql.wordpress.com/2007/08/24/playing-with-permissions/ • No roles, but Workbench simulates them for convenience – https://dev.mysql.com/doc/workbench/en/wb-mysql-connections-navigator-management-users-and-privileges.html ● Native MySQL security 14
  • 14. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Privileges, continued • Authentication plugins allow for more flexibility and integration – External authentication via PAM, Windows login IDs, LDAP, or Kerberos – Stronger encryption – Proxy users ● Roles? http://mysqlblog.fivefarmers.com/2015/04/08/emulating-roles-with-expanded-proxy-user-support-in-5-7-7/ ● Authentication plugins - http://dev.mysql.com/doc/refman/5.6/en/pluggable-authentication.html 15
  • 15. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Things to be aware of... • Character sets and collations – In strings, does 'a'='A'? You may want to set your character sets and collations ● https://dev.mysql.com/doc/refman/5.6/en/charset.html • Case-sensitive table names – For tables, does 'TableName' = 'tablename'? Check lower_case_table_names ● https://dev.mysql.com/doc/refman/5.6/en/identifier-case-sensitivity.html • You commit without saying “commit”? set autocommit off – https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_autocommit • You might not have thought to even think of these things 16
  • 16. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | System databases • mysql – Contains data about all databases, users, plugins, procedures, etc • information_schema – Contains metadata views ● (note: here databases are called schemas! See information_schema.schemata.) • performance_schema – Contains instrumentation about performance, highly configurable • SQL commands: SHOW DATABASES; USE dbname; SHOW TABLES; 17
  • 17. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | System databases, continued • A sys schema is incorporated into coming 5.7 releases – http://mysqlserverteam.com/the-mysql-sys-schema-in-mysql-5-7-7/ – Contributed by Mark Leith – Available to install now, https://github.com/MarkLeith/mysql-sys/ • Also, some “helper” views and scripts to make performance_schema more readable – http://www.markleith.co.uk/ps_helper/ • Where is sys? (for advanced users...) 18
  • 18. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL for Oracle DBAs • OK, so how do I administer? • • • Let's get to the DBA tasks and tools...
  • 19. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Server Administration • https://dev.mysql.com/doc/refman/5.6/en/server-administration.html – Contains details on the things you expect – file placements, configuration files, how to set variables, and more • Also references further reading on: – Tuning (InnoDB) – Backups – Replication • First, read the overview 20
  • 20. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Server Administration, continued • InnoDB buffer pool is like db buffer cache, crucial to set – innodb_buffer_pool_size and innodb_buffer_pool_instances, to start • InnoDB is highly configurable, take it one step at a time – https://dev.mysql.com/doc/refman/5.6/en/innodb-configuration.html • Running SHOW STATUS; and SHOW ENGINE INNODB STATUSG – Like running utlbstat and utlestat in older days – Compare outputs over time, deltas • • Tuning (especially InnoDB) 21
  • 21. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Server Administration, tuning continued • Enable slow query log for a quick start – mysqldumpslow – tool to analyze slow query log content – https://dev.mysql.com/doc/refman/5.6/en/mysqldumpslow.html • Performance_schema (and ps_helper) – Provide wait instrumentation • MySQL Enterprise Monitor (“MEM”) – Performance advisors – Query analyzer • OEM – use the MySQL plugin for Oracle Enterprise Manager – More on this to come... 22
  • 22. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Server Administration, continued • Generic methods: – Cold backups – shut down and copy files – Snapshots (eg LVM) • mysqldump provides logical backup, like export – Use –single-transaction option for InnoDB – Or, take mysqldump from a replication slave (...replication?) • MySQL Enterprise Backup (“MEB”) - “hot” backups for InnoDB • Backups 23
  • 23. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL Server Administration, continued • Replication is a basic skill for a MySQL DBA • Easy to set up – Slaves replay changes from master, creating a copy – Uses binary logs from master to create relay logs on slave • Can offload heavy queries or backups to a slave • Simple, or complex: there are many possible options and configurations – http://dev.mysql.com/doc/refman/5.6/en/replication.html • Replication 24
  • 24. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL for Oracle DBAs • Enterprise tools •
  • 25. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL DBA tools • MySQL Utilities – free tools to simplify many DBA tasks – Simplify MySQL administration, replication, and much more – https://dev.mysql.com/downloads/utilities/ • MySQL Enterprise Backup – Online and incremental backups • MySQL Enterprise Monitor – Manage and monitor MySQL installations • Many more, including tools for encryption, firewall, and auditing – https://www.mysql.com/products/enterprise/ 26
  • 26. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL for Oracle DBAs • Further questions and support •
  • 27. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | For further questions and support • Enterprise licensing includes MySQL Support – https://www.mysql.com/support/ • For general understanding, the online manuals – http://dev.mysql.com/doc/ • For comparing products and features – http://www.mysql.com/products/enterprise/ • For the OEM MySQL plugin – http://dev.mysql.com/doc/mysql-em-plugin/en/index.html • Enterprise support 29
  • 28. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | MySQL for Oracle DBAs • Q&A • • • Ben Krug, Senior MySQL Support Engineer • ben.krug@oracle.com •
  • 29. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Safe Harbor Statement The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 31
  • 30. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |

Editor's Notes

  1. <number>
  2. This is a Title Slide with Picture slide ideal for including a picture with a brief title, subtitle and presenter information. To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To copy the Customized Background from Another Presentation on PC Click New Slide from the Home tab's Slides group and select Reuse Slides. Click Browse in the Reuse Slides panel and select Browse Files. Double-click the PowerPoint presentation that contains the background you wish to copy. Check Keep Source Formatting and click the slide that contains the background you want. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Right-click any selected slide, point to Layout, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. To copy the Customized Background from Another Presentation on Mac Click New Slide from the Home tab's Slides group and select Insert Slides from Other Presentation… Navigate to the PowerPoint presentation file that contains the background you wish to copy. Double-click or press Insert. This prompts the Slide Finder dialogue box. Make sure Keep design of original slides is unchecked and click the slide(s) that contains the background you want. Hold Shift key to select multiple slides. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Click Layout from the Home tab's Slides group, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. <number>
  3. This is a Safe Harbor Front slide, one of two Safe Harbor Statement slides included in this template. One of the Safe Harbor slides must be used if your presentation covers material affected by Oracle’s Revenue Recognition Policy To learn more about this policy, e-mail: Revrec-americasiebc_us@oracle.com For internal communication, Safe Harbor Statements are not required. However, there is an applicable disclaimer (Exhibit E) that should be used, found in the Oracle Revenue Recognition Policy for Future Product Communications. Copy and paste this link into a web browser, to find out more information.   http://my.oracle.com/site/fin/gfo/GlobalProcesses/cnt452504.pdf For all external communications such as press release, roadmaps, PowerPoint presentations, Safe Harbor Statements are required. You can refer to the link mentioned above to find out additional information/disclaimers required depending on your audience. <number>
  4. <number>
  5. <number>
  6. <number>
  7. <number>
  8. <number>
  9. <number>
  10. <number>
  11. <number>
  12. <number>
  13. <number>
  14. <number>
  15. <number>
  16. <number>
  17. <number>
  18. <number>
  19. This is a Title Slide with Picture slide ideal for including a picture with a brief title, subtitle and presenter information. To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To copy the Customized Background from Another Presentation on PC Click New Slide from the Home tab's Slides group and select Reuse Slides. Click Browse in the Reuse Slides panel and select Browse Files. Double-click the PowerPoint presentation that contains the background you wish to copy. Check Keep Source Formatting and click the slide that contains the background you want. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Right-click any selected slide, point to Layout, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. To copy the Customized Background from Another Presentation on Mac Click New Slide from the Home tab's Slides group and select Insert Slides from Other Presentation… Navigate to the PowerPoint presentation file that contains the background you wish to copy. Double-click or press Insert. This prompts the Slide Finder dialogue box. Make sure Keep design of original slides is unchecked and click the slide(s) that contains the background you want. Hold Shift key to select multiple slides. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Click Layout from the Home tab's Slides group, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. <number>
  20. <number>
  21. <number>
  22. <number>
  23. <number>
  24. <number>
  25. This is a Title Slide with Picture slide ideal for including a picture with a brief title, subtitle and presenter information. To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To copy the Customized Background from Another Presentation on PC Click New Slide from the Home tab's Slides group and select Reuse Slides. Click Browse in the Reuse Slides panel and select Browse Files. Double-click the PowerPoint presentation that contains the background you wish to copy. Check Keep Source Formatting and click the slide that contains the background you want. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Right-click any selected slide, point to Layout, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. To copy the Customized Background from Another Presentation on Mac Click New Slide from the Home tab's Slides group and select Insert Slides from Other Presentation… Navigate to the PowerPoint presentation file that contains the background you wish to copy. Double-click or press Insert. This prompts the Slide Finder dialogue box. Make sure Keep design of original slides is unchecked and click the slide(s) that contains the background you want. Hold Shift key to select multiple slides. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Click Layout from the Home tab's Slides group, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. <number>
  26. <number>
  27. <number>
  28. This is a Title Slide with Picture slide ideal for including a picture with a brief title, subtitle and presenter information. To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To copy the Customized Background from Another Presentation on PC Click New Slide from the Home tab's Slides group and select Reuse Slides. Click Browse in the Reuse Slides panel and select Browse Files. Double-click the PowerPoint presentation that contains the background you wish to copy. Check Keep Source Formatting and click the slide that contains the background you want. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Right-click any selected slide, point to Layout, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. To copy the Customized Background from Another Presentation on Mac Click New Slide from the Home tab's Slides group and select Insert Slides from Other Presentation… Navigate to the PowerPoint presentation file that contains the background you wish to copy. Double-click or press Insert. This prompts the Slide Finder dialogue box. Make sure Keep design of original slides is unchecked and click the slide(s) that contains the background you want. Hold Shift key to select multiple slides. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Click Layout from the Home tab's Slides group, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. <number>
  29. <number>
  30. This is a Title Slide with Picture slide ideal for including a picture with a brief title, subtitle and presenter information. To customize this slide with your own picture: Right-click the slide area and choose Format Background from the pop-up menu. From the Fill menu, click Picture and texture fill. Under Insert from: click File. Locate your new picture and click Insert. To copy the Customized Background from Another Presentation on PC Click New Slide from the Home tab's Slides group and select Reuse Slides. Click Browse in the Reuse Slides panel and select Browse Files. Double-click the PowerPoint presentation that contains the background you wish to copy. Check Keep Source Formatting and click the slide that contains the background you want. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Right-click any selected slide, point to Layout, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. To copy the Customized Background from Another Presentation on Mac Click New Slide from the Home tab's Slides group and select Insert Slides from Other Presentation… Navigate to the PowerPoint presentation file that contains the background you wish to copy. Double-click or press Insert. This prompts the Slide Finder dialogue box. Make sure Keep design of original slides is unchecked and click the slide(s) that contains the background you want. Hold Shift key to select multiple slides. Click the left-hand slide preview to which you wish to apply the new master layout. Apply New Layout (Important): Click Layout from the Home tab's Slides group, and click the slide containing the desired layout from the layout gallery. Delete any unwanted slides or duplicates. <number>
  31. This is a Safe Harbor Front slide, one of two Safe Harbor Statement slides included in this template. One of the Safe Harbor slides must be used if your presentation covers material affected by Oracle’s Revenue Recognition Policy To learn more about this policy, e-mail: Revrec-americasiebc_us@oracle.com For internal communication, Safe Harbor Statements are not required. However, there is an applicable disclaimer (Exhibit E) that should be used, found in the Oracle Revenue Recognition Policy for Future Product Communications. Copy and paste this link into a web browser, to find out more information.   http://my.oracle.com/site/fin/gfo/GlobalProcesses/cnt452504.pdf For all external communications such as press release, roadmaps, PowerPoint presentations, Safe Harbor Statements are required. You can refer to the link mentioned above to find out additional information/disclaimers required depending on your audience. <number>
  32. <number>