You are an IT manager or Oracle DBA, comfortable and successful with your knowledge of how to keep an Oracle database up and running. One day, you find out you’ll now be supporting a popular MySQL database application. No one in your team has MySQL expertise and you have no budget to hire.
This slides covers the different use cases for MySQL and Oracle Database, as well as the tools to manage both databases. Additionally, the presentation spotlights top MySQL solutions for high availability, disaster recovery, and high-level security to protect your databases and business. You’ll also see the advantages of managing a MySQL database side by side with an Oracle database in the Oracle Public Cloud with the push-button ease of the MySQL Cloud Service.
The presentation today is ‘MySQL Overview for the Oracle DBA’. Chatter, mention q&a box
Safe Harbor statement - Any information such as features or functionality and timing of these features remains at the sole discretion of Oracle.
Hello everyone. My name is Kathy Forte. I'm a Solutions architect helping customers at Oracle with the MySQL team.One of my first projects in the rdbms world was building a virtual Oracle DBA into an object-oriented database. Just a simple project!. From that experience as a developer, I learned a great deal about the skills you as Oracle DBA bring everyday to your business.
When I visit customers, I see many Oracle DBAs inheriting MySQL databases. In fact, 70% of Oracle shops have MySQL instances as well.
What to do? You’ve come to the right place!
Throughout the presentation there are hints and guidance. There are links in each section which
after you download presentation,
you will have at your fingertips.
Please type your questions in the QA section as we go along, and I will either answer you now or
later, as time permits.
After first sentence - With over 70,000 downloads every day and over 12 million installations
After second sentence - Lamp – web platform to run dynamic web sites and servers.
First release – 1995
MySQL was Acquired by Sun Microsystems in 2008. In 2010, Oracle Corporation
acquired Sun
(and MySQL)
$1 billion in company valuation
MySQL is well known as the #1 database for the Web, used by 9 of the top 10 Web properties, including Facebook.
Booking.com processes 2 billion events/day relying on MySQL.
Facebook started out with MySQL, and scaled to 1.7 billion monthly active users.
MySQL is an OLTP database.
Oracle has more analytic areas such as window functions and common table expression than Mysql.
Oracle is #1 rdbms
2nd most widely used RDBMS
Simple and efficient
Low cost
NoSQL solution –JSON. For unstructured data. Document stores, also called document-oriented database systems, are characterized by their schema-free organization of data.That means:
Rows do not need to have a uniform structure, i.e. different rows may havedifferent columns.
The types of the values of individual columns can be different for each rows.
Columns can have more than one value (arrays).
Rows can have a nested structure.
Easy to make schema changes, retDocument storeThis makes document stores attractive
for programming web applications, which are subject to continual change in place, and
where speed of deployment is an important issue. Hybrid Database
No trade-offs, best of both worlds. ACID properties & reliability of RDMS + flexible
document management
How improved optimizer – fewer temp tables
(reducing disk I/))
for sorting, and for
UNION ALL,explain plans for a particular connection
from a new connection to help isolate information.
Oracle-style hints /* */, more costing mechanism
built into the 5.7 optimizer
For both, A schema is collection of database objects, including logical structures such as tables, views,
sequences, stored procedures, synonyms, indexes, clusters, and database links.
Oracle's schema is basically the set of all tables and other objects owned by a user account, so
roughly equivalent to a user account
So, The Oracle CREATE USER command creates a user. It also automatically creates a schema for that user.
Not so for the MySQL CREATE USER.
The command line tool – both oracle and mysql
Click and it takes you to your MySQL server instance. MySQL Workbench is a GUI tool where you can
import a database, design new databases, add users and query your database
in user-friendly way.
Handy link to give you equivalent commands
https://docs.oracle.com/cd/E12151_01/doc.150/e12155/oracle_mysql_compared.htm#CHDIIBJH
MySQL runs on many platforms.
Runs on these Linux platforms: Oracle linux, red hat centos, Ubuntu, debian, Pc and macs
Yum (yellowdog updater modified) using the rpm package manager
You can set up backup role, administrator role, monitoring role.
Administering your server: Contains information – file placements, configuration files, data dictionary, logs how to set variables, server daemon
and more
Utilities: Simplify MySQL administration, replication, and much more. Single command to do multiple tasks.
Clone, diff between two database, or two object within a database. Every DBA manages disk space with
diskusage, - disk space for one or more databases. Additionally, diskusage can check individual logs
It creates a *.sql file with DROP table,CREATE table and INSERT intosql-statements
of the source database. It stores the data as well as the structure of your database objects. To restore
the database, execute the *.sql file on destination database. Using mysqldump, you can backup a local
database and restore it on a remote database at the same time, using a single command.
Master /slave asynchronous replication. Scale out – spread queries to many servers Also scale out as multiple copies of db to direct queries to – send reads to slaves, and writes to master
Like Active Data Guard
Gives us ability to mirror database to a 1 or more slaves, basis for HA
MySQL Router acts as a load balancer to distribute queries to slaves in a round robin algorithm You saw the benefit of failover from master-slave design (uptime)
You saw the benefit of query performance improvement with master-slave design (performance)
Additional benefits: Gives us ability to mirror database to a 1 or more slaves, basis for HA
The slave acts as a backup of your data (durability)
A slave can be placed at a different location (disaster recovery)
We also have semi-sync part of master-slave where a master
can receive an acknolegedment from slave that ‘yes’, received data’
Similar to Data Guard. There is a primary node that takes writes. The secondary nodes get updates as they are committed to the primary nodes. You can scale-out your reads to the secondary nodes. The MySQL Router can do automatic failover if the primary node fails (one of the secondaries becomes the primary). The MySQL Shell is your tool to administer the InnoDB Cluster (can bring nodes up or down, add nodes to the group).
Advanced set of DBA tools For the way you work today.
Audit, works with firewall,
Regulations
PCI – DSS: Payment Card Data
HIPAA: Privacy of Health Data
Sarbanes Oxley: Accuracy of Financial Data
EU Data Protection Directive: Protection of Personal Data
Data Protection Act (UK): Protection of Personal Data
Requirements
Continuous Monitoring (Users, Schema, Backups, etc)
Data Protection (Encryption, Privilege Management, etc.)
Data Retention (Backups, User Activity, etc.)
Data Auditing (User activity, etc.)
Pam – pluggable authentication modeuls Key note is the link on the bottom
Usual discussion
Usual discussion
OEM shows you all you systems in this dashboard, giving you a single point of management. You can
administer,
diagnose and tune multiple database with this one tool.
When I visit customers, I notice some have giant television screens with different monitors. One could run both the Oracle Enterprise Montor and the MySQL Enterprise Monitor on different screens at the same time. If you see critical warnings of a slow query for a MySQL server with OEM, you can switch to the MySQL Enterprise Monitor to drill down to the slow query.
Please note that one week from today there is part 2 of this webinar series that covers in depth more details of the OEM plugin and MySQL Enterprise Monitor.
Direct Cloud storage backups (S3, etc.)
Incremental backups
Point-in-time recovery
Unlimited incidents
Consultative support
Global scale and reach
The best of both worlds
If you move your existing MySQL database to MySQL Cloud Service, you can tune the database in the cloud just as you tune your on-premise database. With the ‘ssh’ access, you can logon with a private key to your MySQL service instance. You can change the options in your config file. You can install your favorite open-source tools right on your VM.
Please note on the slide that we have separated the backups, transaction logs, and data to different volumes. Therefore, disk writes are not going to the same disk, helping performance. Customers have told us they are happy with the performance with this division of labor.
YOU don’t have to learn all of the MySQL commands.
And you can have the Enterprise tools
Installing software can be a time-consuming and confusing task. With MySQLCS, the MySQL software is installed for you, making the provisioning of MySQL service instances easy.
First, integrated
Integrated with application container, oem, golden gate cloud and storage for backup, snapshot storage
Same user interface. Here’s the Dashboard to the Oracle Public Cloud. You have access to MySQL Cloud Server,
The Oracle database service, Storage (for you backups), and Applications. Most customers not only port their database but also their application to the cloud.
Oracle is the only Public Cloud vendor who provides MySQL database integrated with MySQL Enterprise Edition.
All the enterprise edition security features, minus TDE, which is coming soon.
We have access rules which allows you to grant access to your service
You can set up your IP networks.
Customers can manage their MySQL Cloud Service instances in multiple different ways:
Oracle Cloud Console – Oracle Cloud Console is a web-based console that provides a user friendly and simple user interface for customer to manage and monitor their instances
MySQL Enterprise Edition Management Tools – MySQL Cloud Service supports all MySQL Enterprise Edition Management tools. Customers who are already familiar with existing MySQL tools such MySQL Enterprise Monitor and MySQL Workbench can use the same tools to manage and monitor performance and availability of their MySQL instances in real-time.
Oracle Enterprise Manager - Oracle customers can use Oracle Enterprise manager to monitor their MySQL instances
Host Access via SSH –Customers also have full administrative rights to the underlying virtual machine and can remote access to the VM securely via SSH
REST API and CLI – For administrators who are more programming/script-savvy, they can use REST API or command line interface to manage their MySQL instances
We also have the Oracle Stack Manager for writing templates that gives you some blah blah
We’ve identified a set of five use cases you may want to consider to use Oracle MySQL Cloud Service. And, we’ll briefly go through these.
You can, also, have a MySQL Replication, to replicate data from your on premise Master to its replica on cloud.
By setting up master-slave replication, the slave itself can be a backup or part of your Disaster Recovery Solution since the slave is in the cloud data center while the master is on your site..
We have a customer, who are an Oracle DBA and doesn’t know MySQL well, who received an edict from his management to set up disaster recovery and backup for his MySQL application on a three months time frame. MySQL Cloud Service was able to provide exactly what he was looking for.
Dilbert who doesn’t have a disaster recovery plan.
With MySQL Cloud Service, you can avoid single point of failure, Prevent data loss, Reduce downtime cost & revenue impact for planned & unplanned outages, and also has Disaster and data protection for compliance & regulatory purposes.
We write the MySQL code! We have consultative support! Additionally, this gives you an one-stop support solution for both cloud infrastructure and MySQL. You can count with Oracle Premier Support to support your Cloud infrastructure, Oracle Linux, and any MySQL related issues that you may have.
Largest MySQL engineering and support organization
Backed by the MySQL developers
World-class support, in 29 languages
Hot fixes & maintenance releases
24x7x365
Unlimited incidents
Global scale and reach
Consultative support
We write the MySQL code, we know how it works.
Enterprise Edtion. And now, in the cloud!
And don’t forget to sign up for the upcoming webinar for more details of the MySQL Enterprise Monitor and the OEM Manager.