SlideShare ist ein Scribd-Unternehmen logo
1 von 26
DIY MIGRATIE NAAR POSTGRES
1
EDB Postgres migratie hulpmiddelen
Gaby Schilders, Sales Engineer
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
THE DATABASE PLATFORM COMPANY
FOR DIGITAL BUSINESS
EnterpriseDB (EDB) delivers the premier open source-based, multi-model data platform for
new applications, cloud re-platforming, application modernization, and legacy migration.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.2
ENIGE OP OPEN
SOURCE
GEBOUWDE
RDBMS IN HET
GARTNER MQ
EDB wordt al 6 7 jaar op
rij genoemd in Gartner’s
Magic Quadrant
3 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
EDB OPEN SOURCE LEIDERS
EDB OPEN SOURCE COMMITTERS EN CONTRIBUTORS
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.4
• CORE TEAM • MAJOR CONTRIBUTORS • CONTRIBUTORS
Akshay
Joshi
Amul
Sul
Ashesh
Vashi
Dilip
Kumar
Jeevan
Ladhe
Mithun
Cy
Devrim
Gündüz
Amit
Kapila
Bruce
Momjian
Dave
Page
Robert
Haas
Ashutosh
Sharma
Rushabh
Lathia
- designates committers
MIGRATIE
WAAROM ZOU U UW
KOSTBARE DATA MIGREREN?
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.5
WAAROM MIGREREN?
6
• Hoge lopende kosten van het
huidige platform
• Software/licentie audits (en
boetes)
• (CapEx) initiële investeringen
• Licentieportabiliteit
• Platformconsolidatie
• Nieuwe ontwikkelingen
• Toekomstbestendig
Economische overwegingen (Bewegings)vrijheid
WAAROM NAAR POSTGRESQL?
7
• Meest volwassen en complete
Open Source RDBMS
• Vitale en robuuste Open Source
community
• Regelmatig nieuwe versies
• Marktgedreven ontwikkeling van
nuttige nieuwe features
• ACID
• Multi-model
• Sterke integratie
• Replicatie en hoge
beschikbaarheid
• Uitbreidbaarheid
Platform Features
EDB POSTGRES PLATFORM
8 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
Migratie:
doelen en
stappen
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.9
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.10
• Data & datastructuren – 5%
• Logica – 60%
• Testen – 35%
• Interfaces (OCI, JDBC,…)
• Management & Compliance
• Omschakelen (wanneer en hoe?)
STAPPEN
Bron: Gartner Group, November 2018
BESLISFACTOREN
• ORM (Hibernate, Spring, …)
• Logica geschreven in PL/SQL
• Applicatie broncode beschikbaar
• Geen of weinig RAC
• Geen gebruik van Flashback query
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.11
• Spatial en XML
• Oracle extensies
• .NET, ODBC, Pro*C en OCI
• Java Stored Objects
• RAC of Flashback absoluut
noodzakelijk
EENVOUDIG COMPLEXER
DE TOOLS
Gereedschap op maat
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.12
MIGREREN ZONDER STANDAARD
TOOLS IS VEEL WERK
• Data migratie met behulp van Python
https://slides.com/thesharpgeek/09_2019_utoug_data-migration-using-python#/
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.13
“Automating a full migration using Python as your core
tool is a lot of work and could easily require more time
than most DBAs have.”
- Jessica Sharp, Senior consultant, EnterpriseDB.
EDB POSTGRES
ADVANCED SERVER
(EPAS)
• Uitgebreide versie van open source
PostgreSQL met enterprise mogelijkheden
• Geen fork!
• Inbegrepen bij het EDB Postgres Platform:
tools voor
• Hoge beschikbaarheid
• Disaster Recovery
• Database Management
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14
Enterprise Security
Developer Productivity
DBA Productivity
Performance Diagnostics
Oracle Compatibility
EPAS - ORACLE
COMPATIBILITEIT
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.15
Eigenschappen
• Begrijpt Oracle PL/SQL en voert het ‘native’ uit
• Compatible met schemas, data types, indexen,
gebruikers/rollen, partitionering, packages,
views, PL/SQL triggers, stored procedures, functies
en hulpmiddelen
• Integreert met Oracle omgevinge met heterogene
replicatie of database links
Voordelen
• Migreer database applicaties sneller en met minder
herschrijven van code (en problemen)
• Wees sneller productief, zonder lange aanloop
• Zet Oracle compatible tools in voor (PL/)SQL
(batch) scripts, het laden van data en CLI gebruik
MIGRATIE PORTAAL
• Download de meest recente DDL extractor
• Voer extractor uit op Oracle schema
• Upload gegenereerde bestand
• bevat schema definities en logica
• Bevat geen data
• Toon resultaten van migration
• interactieve beoordeling
• Download SQL-file met EPAS-geschikte code
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.16
https://www.enterprisedb.com/edb-postgres-migration-portal
MIGRATIE TOOLKIT
• Command line tool
• Eenmalige migratieslag
• Configureer aantal threads
• Volgorde:
• tables, data, indexes, constraints, logic
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.17
https://www.enterprisedb.com/edb-docs/p/edb-postgres-migration-toolkit
Source Target
Migration Toolkit CLI
Oracle
MySQL
SQL Server
Sybase
PostgreSQL
PostgreSQL
EPAS
500GB: 1-2 days
HANDVATEN
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.18
WELKE TOOL WANNEER?
Snelle beoordeling van
schemas
Single-user, interactieve
‘schema-only’ migratie
Schema extractie en
conversie
Lage eisen aan
vertrouwelijkheid
First-shot migratie POC
Opzetten van test databases
Kleinere databases
Schema extractie en conversie
Offline
Abonnement of 60-dagen trial
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
Migratie Portaal Migratie Toolkit
19
• Doe ervaring op met ‘laaghangend fruit’
• Voor een eenmalige,”wat kan ons gebeuren” migratie: gebruik MTK
• Voor het zwaardere werk:
• Migratie Toolkit of het Migratie Portaal voor schema migratie
• MTK voor het overzetten van data
• xDB (for data replication)
• Extraheer SQL, splits in functionele delen onder version control
• Script, script, script zo veel mogelijk van je stappen
• Migratie vergt team-inzet: Devs, DBAs, infrastructure, security, …
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.20
MIGRATIE PLANNING & VERKENNING
WANNEER GEEN “DIY”?
• Kennis en kunde ontbreekt
• Geen beschikbare capaciteit
• Complexe situaties
• Tijdsdruk op project of overschakelingsmoment
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.21
MAAR WAT DAN WEL?
• Wanhoop niet! Vaak is migratie mogelijk
• Professional services van EDB of partner
• Replicatieserver
• Andere architectuur/herontwikkeling
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.22
REPLICATIE SERVER
• Snapshot, ‘scheduled’ of continue
replicatie
• Asynchroon
• Een tabel – alle schemas
• Filteren mogelijk, sub-set data naar
test-database.
• Data replicatie
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.23
https://www.enterprisedb.com/edb-docs/p/edb-postgres-replication-server
Version 6.x
• EDB replicatieserver repliceert alleen data, niet het schema of de logica
• Elk schema en elke applicatie is uniek
• Draai ten minste één keer proef
• Maak een dump van de database en laadt deze in
• Pas alle indexen en constraints toe
• Pas stored database logica (functions, procedures, packages, …) toe
• Verbind en test applicaties
• Pas de laatste wijzigingen toe
• Restore en hervat replicatie
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.24
OMSCHAKELEN
QUESTIONS & DISCUSSION
25 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
THANK YOU
info@enterprisedb.com
www.enterprisedb.com
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.

Weitere ähnliche Inhalte

Ähnlich wie 2019 diy migration webinar gs nl

Open IT-architectuur zet beheer publieke&private buitenruimte weer op de kaart
Open IT-architectuur zet beheer publieke&private buitenruimte weer op de kaartOpen IT-architectuur zet beheer publieke&private buitenruimte weer op de kaart
Open IT-architectuur zet beheer publieke&private buitenruimte weer op de kaartAdrie Tepas
 
Web applicatie van scratch
Web applicatie van scratchWeb applicatie van scratch
Web applicatie van scratchHanzehogeschool
 
Sitecore - Onder de motorkop van ParTechIT.nl
Sitecore - Onder de motorkop van ParTechIT.nlSitecore - Onder de motorkop van ParTechIT.nl
Sitecore - Onder de motorkop van ParTechIT.nlRuud van Falier
 
Centennium antoine stelma
Centennium antoine stelmaCentennium antoine stelma
Centennium antoine stelmaBigDataExpo
 
Saa s4channel 24 november 2010l waarom nu
Saa s4channel 24 november 2010l waarom nuSaa s4channel 24 november 2010l waarom nu
Saa s4channel 24 november 2010l waarom nuRuud Ramakers
 
EMS Ehsal - production in a digital world 2013
EMS Ehsal - production in a digital world 2013EMS Ehsal - production in a digital world 2013
EMS Ehsal - production in a digital world 2013Hans Palmers
 
Presentatie elmos 2012 noëmi
Presentatie elmos 2012 noëmiPresentatie elmos 2012 noëmi
Presentatie elmos 2012 noëmiElmos010
 
Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...
Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...
Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...Adlib_gebruikersgroep
 
Waarom 42windmills
Waarom 42windmillsWaarom 42windmills
Waarom 42windmills42windmills
 
Infosessie Smals Research - Application platform as a Service - 12/2013
Infosessie Smals Research - Application platform as a Service - 12/2013Infosessie Smals Research - Application platform as a Service - 12/2013
Infosessie Smals Research - Application platform as a Service - 12/2013Smals
 
VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....
VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....
VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....webwinkelvakdag
 
DSD-NL 2019 Cloud services in onze waterwereld - Schotmeijer
DSD-NL 2019 Cloud services in onze waterwereld - SchotmeijerDSD-NL 2019 Cloud services in onze waterwereld - Schotmeijer
DSD-NL 2019 Cloud services in onze waterwereld - SchotmeijerDeltares
 
Profiel thymos rudi respen
Profiel thymos   rudi respenProfiel thymos   rudi respen
Profiel thymos rudi respenRudi Respen
 
Business Mashups - Building on the Shoulders of Giants (Dutch)
Business Mashups - Building on the Shoulders of Giants (Dutch)Business Mashups - Building on the Shoulders of Giants (Dutch)
Business Mashups - Building on the Shoulders of Giants (Dutch)Sander van der Kolk
 

Ähnlich wie 2019 diy migration webinar gs nl (20)

Open IT-architectuur zet beheer publieke&private buitenruimte weer op de kaart
Open IT-architectuur zet beheer publieke&private buitenruimte weer op de kaartOpen IT-architectuur zet beheer publieke&private buitenruimte weer op de kaart
Open IT-architectuur zet beheer publieke&private buitenruimte weer op de kaart
 
Web applicatie van scratch
Web applicatie van scratchWeb applicatie van scratch
Web applicatie van scratch
 
PaaS: Platform as a Service
PaaS: Platform as a ServicePaaS: Platform as a Service
PaaS: Platform as a Service
 
Starlogic Framework
Starlogic FrameworkStarlogic Framework
Starlogic Framework
 
Sitecore - Onder de motorkop van ParTechIT.nl
Sitecore - Onder de motorkop van ParTechIT.nlSitecore - Onder de motorkop van ParTechIT.nl
Sitecore - Onder de motorkop van ParTechIT.nl
 
Centennium antoine stelma
Centennium antoine stelmaCentennium antoine stelma
Centennium antoine stelma
 
Saa s4channel 24 november 2010l waarom nu
Saa s4channel 24 november 2010l waarom nuSaa s4channel 24 november 2010l waarom nu
Saa s4channel 24 november 2010l waarom nu
 
About Node.js
About Node.jsAbout Node.js
About Node.js
 
EMS Ehsal - production in a digital world 2013
EMS Ehsal - production in a digital world 2013EMS Ehsal - production in a digital world 2013
EMS Ehsal - production in a digital world 2013
 
Presentatie elmos 2012 noëmi
Presentatie elmos 2012 noëmiPresentatie elmos 2012 noëmi
Presentatie elmos 2012 noëmi
 
Oracle database security voor het voetlicht
Oracle database security voor het voetlichtOracle database security voor het voetlicht
Oracle database security voor het voetlicht
 
Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...
Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...
Adlib gebruikersgroep - voorjaarsbijeenkomst 2019 - Wouter de Voogd - Datamig...
 
Waarom 42windmills
Waarom 42windmillsWaarom 42windmills
Waarom 42windmills
 
Infosessie Smals Research - Application platform as a Service - 12/2013
Infosessie Smals Research - Application platform as a Service - 12/2013Infosessie Smals Research - Application platform as a Service - 12/2013
Infosessie Smals Research - Application platform as a Service - 12/2013
 
Drupal 7 Architectuur
Drupal 7 ArchitectuurDrupal 7 Architectuur
Drupal 7 Architectuur
 
VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....
VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....
VAN DATACENTER NAAR CLOUD; RANDSTAD GROEP NEDERLAND VERNIEUWT DATA FUNDAMENT....
 
Starlogic Framework
Starlogic FrameworkStarlogic Framework
Starlogic Framework
 
DSD-NL 2019 Cloud services in onze waterwereld - Schotmeijer
DSD-NL 2019 Cloud services in onze waterwereld - SchotmeijerDSD-NL 2019 Cloud services in onze waterwereld - Schotmeijer
DSD-NL 2019 Cloud services in onze waterwereld - Schotmeijer
 
Profiel thymos rudi respen
Profiel thymos   rudi respenProfiel thymos   rudi respen
Profiel thymos rudi respen
 
Business Mashups - Building on the Shoulders of Giants (Dutch)
Business Mashups - Building on the Shoulders of Giants (Dutch)Business Mashups - Building on the Shoulders of Giants (Dutch)
Business Mashups - Building on the Shoulders of Giants (Dutch)
 

Mehr von EDB

Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSCloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSEDB
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr UnternehmenDie 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr UnternehmenEDB
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube EDB
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021EDB
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQLBenchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQLEDB
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQLLas Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQLEDB
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLNoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLEDB
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?EDB
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQLData Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQLEDB
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with PostgresPractical Partitioning in Production with Postgres
Practical Partitioning in Production with PostgresEDB
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAINA Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAINEDB
 
IOT with PostgreSQL
IOT with PostgreSQLIOT with PostgreSQL
IOT with PostgreSQLEDB
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLA Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLEDB
 
Psql is awesome!
Psql is awesome!Psql is awesome!
Psql is awesome!EDB
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJEDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJEDB
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos donnéesComment sauvegarder correctement vos données
Comment sauvegarder correctement vos donnéesEDB
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - ItalianoCloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - ItalianoEDB
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13EDB
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQLBest Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQLEDB
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJCloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJEDB
 

Mehr von EDB (20)

Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaSCloud Migration Paths: Kubernetes, IaaS, or DBaaS
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr UnternehmenDie 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube Migre sus bases de datos Oracle a la nube
Migre sus bases de datos Oracle a la nube
 
EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021EFM Office Hours - APJ - July 29, 2021
EFM Office Hours - APJ - July 29, 2021
 
Benchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQLBenchmarking Cloud Native PostgreSQL
Benchmarking Cloud Native PostgreSQL
 
Las Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQLLas Variaciones de la Replicación de PostgreSQL
Las Variaciones de la Replicación de PostgreSQL
 
NoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQLNoSQL and Spatial Database Capabilities using PostgreSQL
NoSQL and Spatial Database Capabilities using PostgreSQL
 
Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?Is There Anything PgBouncer Can’t Do?
Is There Anything PgBouncer Can’t Do?
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQLData Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
 
Practical Partitioning in Production with Postgres
Practical Partitioning in Production with PostgresPractical Partitioning in Production with Postgres
Practical Partitioning in Production with Postgres
 
A Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAINA Deeper Dive into EXPLAIN
A Deeper Dive into EXPLAIN
 
IOT with PostgreSQL
IOT with PostgreSQLIOT with PostgreSQL
IOT with PostgreSQL
 
A Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQLA Journey from Oracle to PostgreSQL
A Journey from Oracle to PostgreSQL
 
Psql is awesome!
Psql is awesome!Psql is awesome!
Psql is awesome!
 
EDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJEDB 13 - New Enhancements for Security and Usability - APJ
EDB 13 - New Enhancements for Security and Usability - APJ
 
Comment sauvegarder correctement vos données
Comment sauvegarder correctement vos donnéesComment sauvegarder correctement vos données
Comment sauvegarder correctement vos données
 
Cloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - ItalianoCloud Native PostgreSQL - Italiano
Cloud Native PostgreSQL - Italiano
 
New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13New enhancements for security and usability in EDB 13
New enhancements for security and usability in EDB 13
 
Best Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQLBest Practices in Security with PostgreSQL
Best Practices in Security with PostgreSQL
 
Cloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJCloud Native PostgreSQL - APJ
Cloud Native PostgreSQL - APJ
 

2019 diy migration webinar gs nl

  • 1. DIY MIGRATIE NAAR POSTGRES 1 EDB Postgres migratie hulpmiddelen Gaby Schilders, Sales Engineer CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
  • 2. THE DATABASE PLATFORM COMPANY FOR DIGITAL BUSINESS EnterpriseDB (EDB) delivers the premier open source-based, multi-model data platform for new applications, cloud re-platforming, application modernization, and legacy migration. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.2
  • 3. ENIGE OP OPEN SOURCE GEBOUWDE RDBMS IN HET GARTNER MQ EDB wordt al 6 7 jaar op rij genoemd in Gartner’s Magic Quadrant 3 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
  • 4. EDB OPEN SOURCE LEIDERS EDB OPEN SOURCE COMMITTERS EN CONTRIBUTORS CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.4 • CORE TEAM • MAJOR CONTRIBUTORS • CONTRIBUTORS Akshay Joshi Amul Sul Ashesh Vashi Dilip Kumar Jeevan Ladhe Mithun Cy Devrim Gündüz Amit Kapila Bruce Momjian Dave Page Robert Haas Ashutosh Sharma Rushabh Lathia - designates committers
  • 5. MIGRATIE WAAROM ZOU U UW KOSTBARE DATA MIGREREN? CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.5
  • 6. WAAROM MIGREREN? 6 • Hoge lopende kosten van het huidige platform • Software/licentie audits (en boetes) • (CapEx) initiële investeringen • Licentieportabiliteit • Platformconsolidatie • Nieuwe ontwikkelingen • Toekomstbestendig Economische overwegingen (Bewegings)vrijheid
  • 7. WAAROM NAAR POSTGRESQL? 7 • Meest volwassen en complete Open Source RDBMS • Vitale en robuuste Open Source community • Regelmatig nieuwe versies • Marktgedreven ontwikkeling van nuttige nieuwe features • ACID • Multi-model • Sterke integratie • Replicatie en hoge beschikbaarheid • Uitbreidbaarheid Platform Features
  • 8. EDB POSTGRES PLATFORM 8 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
  • 9. Migratie: doelen en stappen CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.9
  • 10. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.10 • Data & datastructuren – 5% • Logica – 60% • Testen – 35% • Interfaces (OCI, JDBC,…) • Management & Compliance • Omschakelen (wanneer en hoe?) STAPPEN Bron: Gartner Group, November 2018
  • 11. BESLISFACTOREN • ORM (Hibernate, Spring, …) • Logica geschreven in PL/SQL • Applicatie broncode beschikbaar • Geen of weinig RAC • Geen gebruik van Flashback query CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.11 • Spatial en XML • Oracle extensies • .NET, ODBC, Pro*C en OCI • Java Stored Objects • RAC of Flashback absoluut noodzakelijk EENVOUDIG COMPLEXER
  • 12. DE TOOLS Gereedschap op maat CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.12
  • 13. MIGREREN ZONDER STANDAARD TOOLS IS VEEL WERK • Data migratie met behulp van Python https://slides.com/thesharpgeek/09_2019_utoug_data-migration-using-python#/ CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.13 “Automating a full migration using Python as your core tool is a lot of work and could easily require more time than most DBAs have.” - Jessica Sharp, Senior consultant, EnterpriseDB.
  • 14. EDB POSTGRES ADVANCED SERVER (EPAS) • Uitgebreide versie van open source PostgreSQL met enterprise mogelijkheden • Geen fork! • Inbegrepen bij het EDB Postgres Platform: tools voor • Hoge beschikbaarheid • Disaster Recovery • Database Management CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14 Enterprise Security Developer Productivity DBA Productivity Performance Diagnostics Oracle Compatibility
  • 15. EPAS - ORACLE COMPATIBILITEIT CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.15 Eigenschappen • Begrijpt Oracle PL/SQL en voert het ‘native’ uit • Compatible met schemas, data types, indexen, gebruikers/rollen, partitionering, packages, views, PL/SQL triggers, stored procedures, functies en hulpmiddelen • Integreert met Oracle omgevinge met heterogene replicatie of database links Voordelen • Migreer database applicaties sneller en met minder herschrijven van code (en problemen) • Wees sneller productief, zonder lange aanloop • Zet Oracle compatible tools in voor (PL/)SQL (batch) scripts, het laden van data en CLI gebruik
  • 16. MIGRATIE PORTAAL • Download de meest recente DDL extractor • Voer extractor uit op Oracle schema • Upload gegenereerde bestand • bevat schema definities en logica • Bevat geen data • Toon resultaten van migration • interactieve beoordeling • Download SQL-file met EPAS-geschikte code CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.16 https://www.enterprisedb.com/edb-postgres-migration-portal
  • 17. MIGRATIE TOOLKIT • Command line tool • Eenmalige migratieslag • Configureer aantal threads • Volgorde: • tables, data, indexes, constraints, logic CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.17 https://www.enterprisedb.com/edb-docs/p/edb-postgres-migration-toolkit Source Target Migration Toolkit CLI Oracle MySQL SQL Server Sybase PostgreSQL PostgreSQL EPAS 500GB: 1-2 days
  • 18. HANDVATEN CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.18
  • 19. WELKE TOOL WANNEER? Snelle beoordeling van schemas Single-user, interactieve ‘schema-only’ migratie Schema extractie en conversie Lage eisen aan vertrouwelijkheid First-shot migratie POC Opzetten van test databases Kleinere databases Schema extractie en conversie Offline Abonnement of 60-dagen trial CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved. Migratie Portaal Migratie Toolkit 19
  • 20. • Doe ervaring op met ‘laaghangend fruit’ • Voor een eenmalige,”wat kan ons gebeuren” migratie: gebruik MTK • Voor het zwaardere werk: • Migratie Toolkit of het Migratie Portaal voor schema migratie • MTK voor het overzetten van data • xDB (for data replication) • Extraheer SQL, splits in functionele delen onder version control • Script, script, script zo veel mogelijk van je stappen • Migratie vergt team-inzet: Devs, DBAs, infrastructure, security, … CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.20 MIGRATIE PLANNING & VERKENNING
  • 21. WANNEER GEEN “DIY”? • Kennis en kunde ontbreekt • Geen beschikbare capaciteit • Complexe situaties • Tijdsdruk op project of overschakelingsmoment CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.21
  • 22. MAAR WAT DAN WEL? • Wanhoop niet! Vaak is migratie mogelijk • Professional services van EDB of partner • Replicatieserver • Andere architectuur/herontwikkeling CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.22
  • 23. REPLICATIE SERVER • Snapshot, ‘scheduled’ of continue replicatie • Asynchroon • Een tabel – alle schemas • Filteren mogelijk, sub-set data naar test-database. • Data replicatie CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.23 https://www.enterprisedb.com/edb-docs/p/edb-postgres-replication-server Version 6.x
  • 24. • EDB replicatieserver repliceert alleen data, niet het schema of de logica • Elk schema en elke applicatie is uniek • Draai ten minste één keer proef • Maak een dump van de database en laadt deze in • Pas alle indexen en constraints toe • Pas stored database logica (functions, procedures, packages, …) toe • Verbind en test applicaties • Pas de laatste wijzigingen toe • Restore en hervat replicatie CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.24 OMSCHAKELEN
  • 25. QUESTIONS & DISCUSSION 25 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
  • 26. THANK YOU info@enterprisedb.com www.enterprisedb.com CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.