Slide 1

Slide 1 text

Best Practices for Migrating your workloads to Azure PostgreSQL and MySQL Arun Kumar Thiagarajan Principal Program Manager Microsoft Sunil Agarwal Principal PM Manager Microsoft

Slide 2

Slide 2 text

Agenda • Why Migrate to Azure Cloud • Migrate to Azure Database for MySQL • Migrate to Azure Database for PostgreSQL • Migrate Oracle to Azure Database for PostgreSQL

Slide 3

Slide 3 text

WHY MIGRATE TO

Slide 4

Slide 4 text

Rich feature set Proven resilience & stability Open source Azure is the best place to run your Open-Source Relational Databases

Slide 5

Slide 5 text

Azure is the best place to run your Open-Source Relational Databases Rich feature set Proven resilience & stability Open source Fully managed Highly scalable Security & Compliance Intelligent performance

Slide 6

Slide 6 text

Rich feature set Proven resilience & stability Open source Fully managed Highly scalable Security & Compliance Intelligent performance Azure is the best place to run your Open-Source Relational Databases

Slide 7

Slide 7 text

Azure is the best place to run your Open-Source Relational Databases Available on Microsoft Azure Rich feature set Proven resilience & stability Open source Fully managed Highly scalable Security & Compliance Intelligent performance

Slide 8

Slide 8 text

MIGRATING TO A ZURE CLOUD Data Center/hardware Upgrades Backup/HADR Security Monitoring/Troubleshooting Managing at scale Application Scaling Data Center/hardware Upgrades Backup/HADR Security Monitoring/Troubleshooting Managing at scale Application Scaling Data Center/hardware Upgrades Backup/HADR Security Monitoring/Troubleshooting Managing at scale Application Scaling Data Center/hardware Upgrades Backup/HADR Security Monitoring/Troubleshooting Managing at scale Application Scaling

Slide 9

Slide 9 text

Migration Types: Homogeneous and Heterogeneous Homogeneous Migration – PostgreSQL (On-premises/IaaS) à Azure PostgreSQL (PaaS) – PostgreSQL (AWS/GCP) à Azure PostgreSQL (PaaS) – MySQL (On-premises/IaaS) à Azure MySQL (PaaS) – MySQL (AWS/GCP) à Azure MySQL (PaaS) Heterogeneous Migration – Oracle to Azure PostgreSQL (PaaS)

Slide 10

Slide 10 text

Why Migrate from Oracle to Azure PostgreSQL?

Slide 11

Slide 11 text

SHOW IT TO ME!

Slide 12

Slide 12 text

Pre-migration Discover Assess Migrating to OSS databases on Azure Migrate Schema

Slide 13

Slide 13 text

Migration Pre-migration Discover Assess Migrate Schema Migrating to OSS databases on Azure Dump & restore – offline

Slide 14

Slide 14 text

Migration Pre-migration Discover Assess Migrate Schema Migrating to OSS databases on Azure Dump & restore – offline Native logical replication – online OR

Slide 15

Slide 15 text

Migration Pre-migration Discover Assess Migrate Schema Migrating to OSS databases on Azure Dump & restore – offline Native logical replication – online Azure Database Migration Service – online OR OR

Slide 16

Slide 16 text

Migration Pre-migration Discover Assess Migrate Schema Migrating to OSS databases on Azure Dump & restore – offline Native logical replication – online Azure Database Migration Service – online OR OR Post-migration Remediate applications Optimize Run functional & performance tests

Slide 17

Slide 17 text

Azure Database Migration Service On-premises Migration Azure Database Migration Service Microsoft Azure

Slide 18

Slide 18 text

MIGRATING TO AZURE DATABASE FOR MYSQL

Slide 19

Slide 19 text

MySQL to MySQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service DMS Continuous Sync

Slide 20

Slide 20 text

MySQL to MySQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service DMS Continuous Sync X Remediate apps Optimize Test

Slide 21

Slide 21 text

MySQL to MySQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service DMS Continuous Sync X Remediate apps Optimize Test Data-in replication

Slide 22

Slide 22 text

MySQL to MySQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service Dump and restore DMS Continuous Sync X Remediate apps Optimize Test Data-in replication Azure Data Factory can also be used

Slide 23

Slide 23 text

The MySQL Migration Guide Has Landed! Application & DB experts Migration Framework Community and in-house tools Pre-migration Migration Post- migration Planning/assessments DB storage/code object migrations Data migrations (Offline vs. online) Experts to engage? Checklists? Tools? + + ENABLING SUCCESSFUL MIGRATIONS MYSQL MIGRATION GUIDE • Scenario-based learning approach with labs deployable via ARM templates • Assessment/planning approaches • Migration best practices • Testing and validation best practices • Post-migration to-dos for success GitHub Link

Slide 24

Slide 24 text

DEMO: MIGRATING AN RDS FOR MYSQL DB TO AZURE DATABASE FOR MYSQL

Slide 25

Slide 25 text

MIGRATING TO AZURE DATABASE FOR POSTGRESQL

Slide 26

Slide 26 text

PostgreSQL to PostgreSQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service DMS Continuous Sync

Slide 27

Slide 27 text

PostgreSQL to PostgreSQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service DMS Continuous Sync X Remediate apps Optimize Test

Slide 28

Slide 28 text

PostgreSQL to PostgreSQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service Logical replication* DMS Continuous Sync X Remediate apps Optimize Test *Only for migrations into flexible server

Slide 29

Slide 29 text

PostgreSQL to PostgreSQL migration options Discover and assess Connect to Azure with your favorite tool Migrate schema and data Azure Database Migration Service Logical replication* Dump and restore DMS Continuous Sync X Remediate apps Optimize Test *Only for migrations into flexible server Azure Data Factory can also be used

Slide 30

Slide 30 text

DEMO: MIGRATING A POSTGRESQL DB TO AZURE DB FOR POSTGRESQL

Slide 31

Slide 31 text

MIGRATING FROM ORACLE TO AZURE DATABASE FOR POSTGRESQL

Slide 32

Slide 32 text

Oracle to PostgreSQL - Migration Journey Map EVALUATE DISCOVER ASSESS & PLAN CONVERT VALIDATE & TEST CONVERSION MIGRATE VALIDATE DATA & TEST FULL STACK CUTOVER & OPERATE

Slide 33

Slide 33 text

Oracle to PostgreSQL migration process 1. Pre-migration 2. Data Migration 3. Optimize, cutover and operate Pre-migration + Migration + Post-Migration made easy https://datamigration.microsoft.com/ Discover Convert Assess • Discover • Evaluate • Assess • Plan • Convert • Test conversion Azure DMS Initial bulk load Change replication Remediate applications Iteratively make any necessary changes to your applications Run functional & performance tests Iteratively run functional and performance tests Optimize Based on the tests you performed, address any performance issues, and then retest to confirm the performance improvements App • Set up migration infrastructure • Set up migration • Replicate ongoing changes • Cutover and test

Slide 34

Slide 34 text

Oracle to PostgreSQL Migration Guide • Oracle conversion best practices in one place • Topic-by-topic overview of how each feature in Oracle maps to PostgreSQL. • 300+ pages of details showing – § General compatibility level of an Oracle feature in PostgreSQL § Ora2pg automation capability § Summary of differences with code snippets explaining the feature § Comparison of how the feature will work in PostgreSQL 11 vs. 12 vs. 13 EXAMPLES: NOTE: Users spend ~50% of the time in the entire migration project on converting Oracle DB objects and embedded SQL in apps to PostgreSQL!

Slide 35

Slide 35 text

aka.ms/postgresql [email protected] [email protected] aka.ms/postgres-cloud9 aka.ms/mysql aka.ms/postgres-flexible-blog aka.ms/mysql-flexible-blog aka.ms/mysql-tenthline

Slide 36

Slide 36 text

Three Ways to Win Prizes Post your selfie with hash tag #DPS2020 Give Session & Conference Feedback Visit our Sponsors & Exhibitors Thank You Follow us on Twitter @TheDataGeeks @DataAISummit

Slide 37

Slide 37 text

Data Platform Virtual Summit 2020 is a community initiative by DataPlatformGeeks RESOURCES

Slide 38

Slide 38 text

Go Deeper Into Postgres & Hyperscale (Citus) • https://www.citusdata.com/ • http://docs.citusdata.com/en/v9.5/ Why Scale Out Postgres? https://youtu.be/g3H4nGsJsl0 DEMO - High performance HTAP with Postgres & Hyperscale (Citus) https://youtu.be/W_3e07nGFxY DEMO – Building HTAP Applications with Python & Postgres on Azurehttps://youtu.be/YDT8_riLLs0

Slide 39

Slide 39 text

Special Thanks To for supporting DataPlatformGeeks & SQLServerGeeks Community Initiatives

Slide 40

Slide 40 text

DELETE BEFORE PUBLISHING

Slide 41

Slide 41 text

Why Migrate from Oracle to Azure PostgreSQL? Key Drivers PostgreSQL enterprise grade database – OLTP (On-Line Transaction Processing), Geospatial, Analytical, Federated hub – LAPP Stack (Linux, Apache, PostgreSQL, PHP, Python and Perl) – Rich capabilities: Multi-Version Concurrency Control (MVCC), asynchronous replication, nested transactions, online backups, a refined query planner/optimizer – I18N enabled. Supports international character sets, multi-byte character encodings, Unicode, and it is locale-aware for sorting – And more High compatibility between PL/SQL and PL/PGSQL (typically 80%+). Lowers the risk – Migrate Oracle PL/SQL stored procedures, queries, datatypes, packages, sequences etc. to PostgreSQL with little or no code changes – Although incompatibilities exist, experts say migrating from Oracle to PostgreSQL is no costlier than upgrading from one major version of Oracle to the next major version of Oracle TCO (1/5th cost) Open-Source Platform. Freedom to migrate to any public cloud Rich Azure Ecosystem

Slide 42

Slide 42 text

A P P L I C AT I O N M O D E R N I Z AT I O N J O U R N E Y - S A A S • sdfr