SlideShare une entreprise Scribd logo
1  sur  34
New Data Dictionary: 
An Internal Server API 
That Matters 
Alexander Nozdrin, Principle Software Developer 
Copyright Copyright © © 2014, 2014, Oracle Oracle and/and/or or its its affiliates. affiliates. All All rights rights reserved. reserved. 
|
Safe Harbor Statement 
The following 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. 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
2
MySQL Community Reception @ Oracle OpenWorld 
Mingle with the MySQL community and the MySQL team from Oracle for 
a fun and informative evening! 
• Time: September 30 (Tue) @ 7pm 
• Jillian’s at Metreon 
175 Fourth Street, San Francisco, CA 
At the corner of Howard and 4th st.; only 2-min walk from Moscone Center 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Agenda 
What is a Data Dictionary? 
The MySQL Traditional Data Dictionary 
New Data Dictionary 
Benefits for users 
Q & A 
1 
2 
3 
4 
5
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
What is it
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
Definition 
• Metadata is information about user data 
– User table structure 
– Column definitions 
– Index definitions 
– Foreign key definitions 
– Stored program definitions 
... 
• Data Dictionary collects all metadata in RDBMS
CREATE PROCEDURE p1(v INT) 
SQL SECURITY INVOKER 
BEGIN 
... 
END 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
Overview 
Data Dictionary 
Table Definitions SP Definitions 
View Definitions Plugins 
Time zones 
Privileges 
CREATE TABLE customers( 
id INT AUTO_INCREMENT 
... 
PRIMARY KEY (id), 
INDEX ... 
FOREIGN KEY ... 
)
SE InnoDB 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
MySQL Server 
Data Dictionary Definition 
8 
The ecosystem 
Query Executor 
Optimizer 
Performance 
Schema 
SQL 
statement 
Client 
Parser 
Result 
Information 
Schema 
Data 
Dictionary
The MySQL Traditional Data Dictionary 
MySQL 5.6 and earlier 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
The MySQL Traditional Data Dictionary 
• A mix of files and tables: 
– File based 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
• Tables: FRM 
• Triggers: TRN, TRG 
... 
– Table based 
• mysql.time_zone 
... 
• InnoDB has a separate data dictionary
The MySQL Traditional Data Dictionary 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
11 
Data Dictionary 
Files 
FRM TRG OPT 
System tables (mysql.) 
user time_zone proc 
InnoDB internal data dictionary 
Archive 
CSV 
InnoDB 
INFORMATION_SCHEMA 
File 
Scan 
Table 
Scan 
Intern. 
Access
The MySQL Traditional Data Dictionary 
• Poor INFORMATION_SCHEMA performance 
• Makes crash-safe / transactional DDL impossible 
• Inconsistencies between files and tables 
• Inconsistencies between DD in InnoDB and the server 
• File-system dependency (lower-case-table-names) 
• Makes replication of DDL statements difficult 
• Too difficult to extend 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
12 
Problems
New Data Dictionary 
A great leap forward 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
New Data Dictionary : Main Features 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
• Stored in InnoDB tables 
• Reliable & crash-safe 
• Single repository of metadata 
– for the MySQL server 
– for Storage Engines 
– for Plugins 
• Redundancy 
• Data Dictionary API 
• INFORMATION_SCHEMA SQL VIEWs 
– Queries can be optimized 
– Improved performance 
• Metadata versioning 
• Extendable 
– Simplify metadata upgrades 
– Designed with plugins in mind
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
15 
Transition 
Data Dictionary 
Files 
FRM TRG OPT 
System tables (mysql.) 
user time_zone proc 
InnoDB internal dictionary 
Archive 
CSV 
InnoDB 
INFORMATION_SCHEMA 
File 
Scan 
SQL DD Table 
VIEW 
Table 
Scan 
Intern. 
Access
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
16 
Overview 
InnoDB 
Data Dictionary 
DD Table User Table 
INFORMATION 
SCHEMA 
Views 
Archive 
User Table 
CSV 
User Table
Plugin Plugin Plugin 
Tablespace User Table Storage 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
InnoDB 
17 
Architecture 
Query Executor 
Parser Optimizer 
Data 
Dictionary 
Tablespace 
Data Dictionary Internal API 
Data Dictionary External API 
Plugin Plugin 
Archive 
Engine 
Storage 
Engine
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
• WL#6379: Schema definitions for new DD 
• InnoDB Data Dictionary Tablespace 
• Designed with INFORMATION_SCHEMA in mind 
• Ability to store SE-specific data 
• Use PK / FK to ensure consistency 
18 
Data Dictionary tables
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary API 
• The only way to access Data Dictionary 
– For the server core 
– For Storage Engines 
– For plugins 
• Hard to misuse 
• Internal API (non-stable) and external API (stable) 
• Provide a way to handle SE specific data 
19 
Design goals
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
SDI : Serialized Dictionary Information 
20 
Redundancy 
InnoDB 
Single User TS 
User Table 
SDI 
General TS 
User Table 
SDI 
System TS 
User Table 
SDI 
Data Dictionary 
Privileges 
User Table 
Definition 
Stored 
Program
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
21 
FRM shipping for MySQL Cluster? 
SELECT ... FROM t1 
FSRDMI
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
• No FRM files 
• New INFORMATION_SCHEMA 
• Migrated to InnoDB: 
– time zone tables 
– help tables 
–mysql.plugins 
–mysql.servers 
• Draft of Data Dictionary API 
• http://labs.mysql.com 
– Do NOT use it in production 
– Install on a spare server 
• MTR can be run 
22 
New Data Dictionary : Labs Release
New Data Dictionary 
Why does it matter for YOU? 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
INFORMATION_SCHEMA performance improvements 
Get per table size 
Blog post by Shlomi Noach: http://tinyurl.com/y8cnj7o 
SELECT TABLE_SCHEMA, TABLE_NAME, ENGINE, 
SUM(DATA_LENGTH+INDEX_LENGTH) AS size, 
SUM(INDEX_LENGTH) AS index_size 
FROM INFORMATION_SCHEMA.TABLES 
WHERE TABLE_SCHEMA NOT IN ('mysql', 'INFORMATION_SCHEMA') AND ENGINE IS NOT NULL 
GROUP BY TABLE_SCHEMA, TABLE_NAME; 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
24 
Version Time 
5.7.5-m15 0.38 sec 
Labs Release 0.08 sec
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Case: server crash 
• There are some data files 
• No / outdated backup 
• FRM files lost 
• How to use those data files? 
25 
The problem
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Traditional Data Dictionary 
• “Move FRM files around” 
• CREATE TABLE t1 (...) 
• ALTER TABLE t1 
DISCARD TABLESPACE 
• ALTER TABLE t1 
IMPORT TABLESPACE ... 
• Easy to make mistakes 
New Data Dictionary 
• Self-descriptive tablespaces (SDI) 
• Dedicated IMPORT statement 
• Goal: error-proof procedure 
26 
Case: server crash
For Plugin Developers 
• A way to access Data Dictionary 
• Persistent Storage for plugins 
– Store/restore custom data 
• Plugins can extend INFORMATION_SCHEMA & PERFORMANCE_SCHEMA 
– Add new tables 
– Add new columns to existing tables 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
27
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
Summary
Data Dictionary : Takeaways 
• Fundamental component in RDBMS 
• Critical for performance 
• Critical for reliability 
• Critical for scalability 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
29
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
The MySQL Traditional 
Data Dictionary 
• Mix of files and tables 
• Server DD and InnoDB DD 
• Inefficient INFORMATION_SCHEMA 
• Difficult to extend 
New Data Dictionary 
• Crash-safe InnoDB tables 
• Single repository 
• INFORMATION_SCHEMA as VIEWs 
• Designed to be extendable 
• Aims for backward compatibility 
• Huge reengineering 
Data Dictionary : Takeaways
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Questions?
MySQL Community Reception @ Oracle OpenWorld 
Mingle with the MySQL community and the MySQL team from Oracle for 
a fun and informative evening! 
• Time: September 30 (Tue) @ 7pm 
• Jillian’s at Metreon 
175 Fourth Street, San Francisco, CA 
At the corner of Howard and 4th st.; only 2-min walk from Moscone Center 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle University MySQL Training Services 
Prepare Your Organization to Enable Reliable and High-Performance Web-Based Database Applications 
Top Courses for Administrators and Developers 
Top Certifications 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
“Training and team skill have the most significant impact 
on overall performance of technology and success of 
technology projects.” - IDC, 2013 
Premier Support customers eligible to 
save 20% on learning credits. 
Benefits 
 Expert-led training to support your MySQL learning needs 
 Flexibility to train in the classroom or online 
 Hands-on experience to gain real world experience 
 Key skills needed for database administrators and developers 
• MySQL for Beginners 
MySQL for Database Administrators 
MySQL Performance Tuning 
MySQL Cluster – NEW - Register Your Interest! 
MySQL and PHP - Developing Dynamic Web Applications 
MySQL for Developers 
MySQL Developer Techniques 
MySQL 5.6 Database Administrator 
MySQL 5.6 Developer 
To find out more about available MySQL Training & Certification 
offerings, go to: education.oracle.com/mysql 
RECENTLY RELEASED 
ALL NEW! MySQL Cluster Training 
To Register your interest to influence the 
schedule on this newly released course – go to 
education.oracle.com/mysql and click on the 
MySQL Cluster Course
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Thank You! 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Contenu connexe

Tendances

Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7MarketingArrowECS_CZ
 
PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPeter Doolan
 
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Dave Segleau
 
Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0Anuj Sahni
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise MonitorTed Wennmark
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseJeff Smith
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Fran Navarro
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News Ted Wennmark
 
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...DataWorks Summit
 
veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)aioughydchapter
 
Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7MarketingArrowECS_CZ
 
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahTurning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahData Con LA
 
Oracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewOracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewKris Rice
 
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
 Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nubeavanttic Consultoría Tecnológica
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOTN Systems Hub
 
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAPřehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAMarketingArrowECS_CZ
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaSArush Jain
 

Tendances (20)

Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7
 
PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT Version
 
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
 
Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
Developer day v2
Developer day v2Developer day v2
Developer day v2
 
Oracle SPARC T7 a M7 servery
Oracle SPARC T7 a M7 serveryOracle SPARC T7 a M7 servery
Oracle SPARC T7 a M7 servery
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle Database
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News
 
Security a SPARC M7 CPU
Security a SPARC M7 CPUSecurity a SPARC M7 CPU
Security a SPARC M7 CPU
 
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
 
veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)
 
Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7
 
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahTurning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
 
Oracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewOracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ Overview
 
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
 Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
 
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAPřehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 

En vedette

Building a Cloud API Server using Play(SCALA) & Riak
Building a Cloud API Server using  Play(SCALA) & Riak Building a Cloud API Server using  Play(SCALA) & Riak
Building a Cloud API Server using Play(SCALA) & Riak RajthilakMCA
 
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050Mochammad Dikra Prasetya
 
Leveraging federation capabilities of identity server for api gateway
Leveraging federation capabilities  of identity server for api gatewayLeveraging federation capabilities  of identity server for api gateway
Leveraging federation capabilities of identity server for api gatewayPushpalanka Jayawardhana
 
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...WSO2
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data DictionaryKimberly Coquilla
 
Internet Of Things in Automobile Industry
Internet Of Things in Automobile IndustryInternet Of Things in Automobile Industry
Internet Of Things in Automobile IndustryIEI GSC
 

En vedette (8)

Building a Cloud API Server using Play(SCALA) & Riak
Building a Cloud API Server using  Play(SCALA) & Riak Building a Cloud API Server using  Play(SCALA) & Riak
Building a Cloud API Server using Play(SCALA) & Riak
 
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
 
Leveraging federation capabilities of identity server for api gateway
Leveraging federation capabilities  of identity server for api gatewayLeveraging federation capabilities  of identity server for api gateway
Leveraging federation capabilities of identity server for api gateway
 
What is a DATA DICTIONARY?
What is a DATA DICTIONARY?What is a DATA DICTIONARY?
What is a DATA DICTIONARY?
 
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
 
Internet Of Things in Automobile Industry
Internet Of Things in Automobile IndustryInternet Of Things in Automobile Industry
Internet Of Things in Automobile Industry
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
 

Similaire à New data dictionary an internal server api that matters

NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLNoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLAndrew Morgan
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cAiougVizagChapter
 
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worldsOUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worldsAndrew Morgan
 
Tame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationTame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationMichael Rainey
 
20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech UpdatesRyusuke Kajiyama
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAsMario Beck
 
MySQL Enterprise Portfolio
MySQL Enterprise PortfolioMySQL Enterprise Portfolio
MySQL Enterprise PortfolioAbel Flórez
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQLTed Wennmark
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementMark Matthews
 
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...jdijcks
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMark Swarbrick
 
Data dictionary pl17
Data dictionary pl17Data dictionary pl17
Data dictionary pl17Ståle Deraas
 
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 2014Manuel Contreras
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschemaIvan Ma
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLTed Wennmark
 
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
 
Unlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQLUnlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQLMatt Lord
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSOracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSDoug Gault
 

Similaire à New data dictionary an internal server api that matters (20)

NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLNoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
 
Oracle Database Cloud Service
Oracle Database Cloud ServiceOracle Database Cloud Service
Oracle Database Cloud Service
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18c
 
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worldsOUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
 
Tame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationTame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data Integration
 
20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Enterprise Portfolio
MySQL Enterprise PortfolioMySQL Enterprise Portfolio
MySQL Enterprise Portfolio
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance Improvement
 
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of Choice
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
 
Data dictionary pl17
Data dictionary pl17Data dictionary pl17
Data dictionary pl17
 
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
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding 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
 
Unlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQLUnlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQL
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSOracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDS
 

Dernier

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 

Dernier (20)

Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 

New data dictionary an internal server api that matters

  • 1. New Data Dictionary: An Internal Server API That Matters Alexander Nozdrin, Principle Software Developer Copyright Copyright © © 2014, 2014, Oracle Oracle and/and/or or its its affiliates. affiliates. All All rights rights reserved. reserved. |
  • 2. Safe Harbor Statement The following 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. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 2
  • 3. MySQL Community Reception @ Oracle OpenWorld Mingle with the MySQL community and the MySQL team from Oracle for a fun and informative evening! • Time: September 30 (Tue) @ 7pm • Jillian’s at Metreon 175 Fourth Street, San Francisco, CA At the corner of Howard and 4th st.; only 2-min walk from Moscone Center Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 4. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda What is a Data Dictionary? The MySQL Traditional Data Dictionary New Data Dictionary Benefits for users Q & A 1 2 3 4 5
  • 5. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary What is it
  • 6. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary Definition • Metadata is information about user data – User table structure – Column definitions – Index definitions – Foreign key definitions – Stored program definitions ... • Data Dictionary collects all metadata in RDBMS
  • 7. CREATE PROCEDURE p1(v INT) SQL SECURITY INVOKER BEGIN ... END Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary Overview Data Dictionary Table Definitions SP Definitions View Definitions Plugins Time zones Privileges CREATE TABLE customers( id INT AUTO_INCREMENT ... PRIMARY KEY (id), INDEX ... FOREIGN KEY ... )
  • 8. SE InnoDB Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Server Data Dictionary Definition 8 The ecosystem Query Executor Optimizer Performance Schema SQL statement Client Parser Result Information Schema Data Dictionary
  • 9. The MySQL Traditional Data Dictionary MySQL 5.6 and earlier Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 10. The MySQL Traditional Data Dictionary • A mix of files and tables: – File based Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • Tables: FRM • Triggers: TRN, TRG ... – Table based • mysql.time_zone ... • InnoDB has a separate data dictionary
  • 11. The MySQL Traditional Data Dictionary Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 11 Data Dictionary Files FRM TRG OPT System tables (mysql.) user time_zone proc InnoDB internal data dictionary Archive CSV InnoDB INFORMATION_SCHEMA File Scan Table Scan Intern. Access
  • 12. The MySQL Traditional Data Dictionary • Poor INFORMATION_SCHEMA performance • Makes crash-safe / transactional DDL impossible • Inconsistencies between files and tables • Inconsistencies between DD in InnoDB and the server • File-system dependency (lower-case-table-names) • Makes replication of DDL statements difficult • Too difficult to extend Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12 Problems
  • 13. New Data Dictionary A great leap forward Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 14. New Data Dictionary : Main Features Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • Stored in InnoDB tables • Reliable & crash-safe • Single repository of metadata – for the MySQL server – for Storage Engines – for Plugins • Redundancy • Data Dictionary API • INFORMATION_SCHEMA SQL VIEWs – Queries can be optimized – Improved performance • Metadata versioning • Extendable – Simplify metadata upgrades – Designed with plugins in mind
  • 15. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary 15 Transition Data Dictionary Files FRM TRG OPT System tables (mysql.) user time_zone proc InnoDB internal dictionary Archive CSV InnoDB INFORMATION_SCHEMA File Scan SQL DD Table VIEW Table Scan Intern. Access
  • 16. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary 16 Overview InnoDB Data Dictionary DD Table User Table INFORMATION SCHEMA Views Archive User Table CSV User Table
  • 17. Plugin Plugin Plugin Tablespace User Table Storage Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary InnoDB 17 Architecture Query Executor Parser Optimizer Data Dictionary Tablespace Data Dictionary Internal API Data Dictionary External API Plugin Plugin Archive Engine Storage Engine
  • 18. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary • WL#6379: Schema definitions for new DD • InnoDB Data Dictionary Tablespace • Designed with INFORMATION_SCHEMA in mind • Ability to store SE-specific data • Use PK / FK to ensure consistency 18 Data Dictionary tables
  • 19. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary API • The only way to access Data Dictionary – For the server core – For Storage Engines – For plugins • Hard to misuse • Internal API (non-stable) and external API (stable) • Provide a way to handle SE specific data 19 Design goals
  • 20. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary SDI : Serialized Dictionary Information 20 Redundancy InnoDB Single User TS User Table SDI General TS User Table SDI System TS User Table SDI Data Dictionary Privileges User Table Definition Stored Program
  • 21. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary 21 FRM shipping for MySQL Cluster? SELECT ... FROM t1 FSRDMI
  • 22. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • No FRM files • New INFORMATION_SCHEMA • Migrated to InnoDB: – time zone tables – help tables –mysql.plugins –mysql.servers • Draft of Data Dictionary API • http://labs.mysql.com – Do NOT use it in production – Install on a spare server • MTR can be run 22 New Data Dictionary : Labs Release
  • 23. New Data Dictionary Why does it matter for YOU? Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 24. INFORMATION_SCHEMA performance improvements Get per table size Blog post by Shlomi Noach: http://tinyurl.com/y8cnj7o SELECT TABLE_SCHEMA, TABLE_NAME, ENGINE, SUM(DATA_LENGTH+INDEX_LENGTH) AS size, SUM(INDEX_LENGTH) AS index_size FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA NOT IN ('mysql', 'INFORMATION_SCHEMA') AND ENGINE IS NOT NULL GROUP BY TABLE_SCHEMA, TABLE_NAME; Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 24 Version Time 5.7.5-m15 0.38 sec Labs Release 0.08 sec
  • 25. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Case: server crash • There are some data files • No / outdated backup • FRM files lost • How to use those data files? 25 The problem
  • 26. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Traditional Data Dictionary • “Move FRM files around” • CREATE TABLE t1 (...) • ALTER TABLE t1 DISCARD TABLESPACE • ALTER TABLE t1 IMPORT TABLESPACE ... • Easy to make mistakes New Data Dictionary • Self-descriptive tablespaces (SDI) • Dedicated IMPORT statement • Goal: error-proof procedure 26 Case: server crash
  • 27. For Plugin Developers • A way to access Data Dictionary • Persistent Storage for plugins – Store/restore custom data • Plugins can extend INFORMATION_SCHEMA & PERFORMANCE_SCHEMA – Add new tables – Add new columns to existing tables Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 27
  • 28. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary Summary
  • 29. Data Dictionary : Takeaways • Fundamental component in RDBMS • Critical for performance • Critical for reliability • Critical for scalability Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 29
  • 30. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | The MySQL Traditional Data Dictionary • Mix of files and tables • Server DD and InnoDB DD • Inefficient INFORMATION_SCHEMA • Difficult to extend New Data Dictionary • Crash-safe InnoDB tables • Single repository • INFORMATION_SCHEMA as VIEWs • Designed to be extendable • Aims for backward compatibility • Huge reengineering Data Dictionary : Takeaways
  • 31. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Questions?
  • 32. MySQL Community Reception @ Oracle OpenWorld Mingle with the MySQL community and the MySQL team from Oracle for a fun and informative evening! • Time: September 30 (Tue) @ 7pm • Jillian’s at Metreon 175 Fourth Street, San Francisco, CA At the corner of Howard and 4th st.; only 2-min walk from Moscone Center Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 33. Oracle University MySQL Training Services Prepare Your Organization to Enable Reliable and High-Performance Web-Based Database Applications Top Courses for Administrators and Developers Top Certifications Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | “Training and team skill have the most significant impact on overall performance of technology and success of technology projects.” - IDC, 2013 Premier Support customers eligible to save 20% on learning credits. Benefits  Expert-led training to support your MySQL learning needs  Flexibility to train in the classroom or online  Hands-on experience to gain real world experience  Key skills needed for database administrators and developers • MySQL for Beginners MySQL for Database Administrators MySQL Performance Tuning MySQL Cluster – NEW - Register Your Interest! MySQL and PHP - Developing Dynamic Web Applications MySQL for Developers MySQL Developer Techniques MySQL 5.6 Database Administrator MySQL 5.6 Developer To find out more about available MySQL Training & Certification offerings, go to: education.oracle.com/mysql RECENTLY RELEASED ALL NEW! MySQL Cluster Training To Register your interest to influence the schedule on this newly released course – go to education.oracle.com/mysql and click on the MySQL Cluster Course
  • 34. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Thank You! Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Notes de l'éditeur

  1. 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.
  2. This is a sample Picture with Caption Layout slide ideal for including a picture with a brief descriptive statement. To Replace the Picture on this Sample Slide (this applies to all slides in this template that contain replaceable pictures) Select the sample picture and press Delete. Click the icon inside the shape to open the Insert Picture dialog box. Navigate to the location where the picture is stored, select desired picture and click on the Insert button to fit the image proportionally within the shape. Note: Do not right-click the image to change the picture inside the picture placeholder. This will change the frame size of the picture placeholder. Instead, follow the steps outlined above.