SlideShare a Scribd company logo
Migration to Open Source
Databases
Jutta Horstmann
www.osdbmigration.org
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 2
whoami
● Unix/Linux sysadmin
● DBA, developer (Informix)
● DB developer (Oracle)
● Web stuff (MySQL, PostgreSQL)
● Claim to Fame: OpenUsability.org
● Comp Sci Diploma Thesis:
Migration to Open Source Databases
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 3
Agenda
● What's this?
● Why migrate?
● Where to migrate?
● How to migrate?
● What to migrate?
➔ About
➔ Pros and Cons
➔ Open Source Databases
➔ Workflow: Activities
➔ Workflow: Assets
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 4
Migration?
"The process of changing from the use of one platform,
environment, IT system, etc., to another, esp. in such a
way as to avoid interruptions in service."
(Oxford English Dictionary)
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 5
Migration: Objectives
The target system:
● same functionality
● extendable
● incorporate all data
● modern hardware,
software, architecture
The migration workflow:
● Minimize risk
● Stay on budget
● Deliver in due time
● Minimize downtime
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 6
OSDB Migration:Pros and Cons
YesNo
● Cost? Time? Effort?
● Lack of roadmap
● Licensing
● ISV Support
● Maintenance
● Accountability
● Features
● Features?
● TCO
● Open Source
– Code
– Community
● Standards
● Security
● Independence
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 7
Where to migrate?
Firebird MaxDB Ingres
MySQLPostgreSQL
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 8
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 9
Enterprise-Level?
Requirements:
● Advanced data integrity mechanisms
● Advanced database objects
● Advanced SQL features
● Advanced features, tools, support for
– Performance and scalability
– (High) Availability
– Security
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 10
OSDB Features
Firebird
1.5
Ingres
r3
MySQL
4.1
MaxDB
7.5
PostgreSQL
8.0
Advanced
Indexing
GIS support
MVCC
Two phase
commit
UD Functions
UD data types
Updatable Views
MyISAM
MyISAM
InnoDB
v.5.0v.7.6
v.5.0
v.8.1v.5.0
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 11
Performance / Scalability
Firebird
1.5
Ingres
r3
MySQL
4.1
MaxDB
7.5
PostgreSQL
8.0
Tablespaces
Table
Partitioning
Parallelization
Built-In
Clustering
Built-In
Load Balancing
v.8.1
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 12
How to migrate?
Database Migration Workflow
● Activity-Centered?
● Asset-Centered?
● Proposal: Mixed-Model Workflow
● Walk-Through
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 13
Activity-Centered Workflow
Analysis
Data
SQL
Schema
Infra-
structure
DBMS
Data
SQL
Schema
DBMS
Data
SQL
Schema
DBMS
Data
SQL
Schema
DBMS
Design Implementation Test
Source System Source vs. Target
System
Target System Target System
Infra-
structure
Infra-
structure
Infra-
structure
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 14
Asset-Centered Workflow
Analysis
Desig
n
DBMS
Analysis
Design
Implementation
Test
Analysis
Desig
n
Analysis
Design
Implementation
Test
Analysis
Desig
n
Analysis
Design
Implementation
Test
Analysis
Desig
n
Analysis
Design
Implementation
Test
Analysis
Desig
n
Analysis
Design
Implementation
Test
Schema Data SQL
Infra-
structure
Source
System
Source
vs. Target
System
Target
System
Target
System
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 15
Mixed-Model Workflow
1. Analyze the whole source system (all assets).
2. Migrate the DBMS software (design, implement, test).
3. Migrate the schema(s) (design, implement).
4. Migrate test data (design, implement, test).
5. Test the migrated schema(s) with the test data.
6. Migrate the client SQL (design, implement, test).
7. Migrate the database system's infrastructure (d, i, t).
8. Cut-over: Full data migration.
9. Final testing and evaluation.
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 16
Analyze the whole system
Analysis
Data
SQL
Schema
Infra-
structure
DBMS ● How is the software configured?
● Complexity, quality of database design?
● How much data? Which condition?
● SQL isolated? Standard compliant?
● Tools, Policies, Tuning ...?
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 17
Where to look? Who to ask?
?
Application
Data
Processes
Documentation
Data Dictionary
History
Data Flows
Data Dictionary
Developers, Admins, Users
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 18
Migrate the DBMS software
1. Choose Open Source DBMS
2. Devise mappings for configurations
3. Install & configure new software
4. Validate the working of the DBMS by
using test databases and tools
Design
Implemen-
tation
Test
DBMS
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 19
Migrate the schema(s)
Design
Implemen-
tation
Schema
Test
1. Provide abstraction (logical, conceptual?)
2. Devise mappings to target system
3. Implement by loading converted schema
into target system
4.Validate the schema's correctness based
on loading and querying test data.
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 20
Migrate Test Data
1. Correction and “cleansing” of “dirty data”
2. Devise conversions and mappings
3. Transfer some test data:
a) Extraction
b)Transformation
c) Load
4. Test: Errors at load? Query data!
Design
Implement
Test Data
Test
Data
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 21
Migrate Client SQL
Database connectivity
● Change ODBC/JDBC driver
● Switch client
● Client source available: Migrate!
1. Provide abstraction (Standard SQL) OR
2. Convert directly to target SQL syntax
3. Test statements against schema and
test data
Design
Implemen-
tation
Test
SQL
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 22
Migrate Infrastructure
Design
Infra-
structure
Test
● Tools: Administration, Development,
Design
● Change ODBC/JDBC driver
● Switch client
● Administrative Tasks
– Gather policies and jobs
– Implement them in the target system way
Implementation
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 23
Full Data Migration (Cut-Over)
1. Strategy:
a) Cold Turkey?
b) Chicken Little?
c) Butterfly?
2. Data Transfer:
Extraction, Transformation, Load
3. Test: Errors at load? Query data!
Design
Test
Data
Implementation
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 24
“Cold Turkey”
● Take source system offline
● Extract data
● Transform data
● Load data into target system
● Take target system online
Problems:
● How long offline? How much data?
● Fallback?
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 25
“Chicken Little”
● Source and target system operate in parallel
● “Gateway” coordinates and maps queries
● Incremental data migration
Problem:
● Complex implementation
● Update consistency?
Gateway
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 26
“Butterfly”
● Only source system online
● Data gets frozen read-only
● Store manipulation results in “Temp Store 0”
● Transfer frozen data
● Freeze TS0, store manipulation results in TS1
● Transfer frozen data ... and so on
● “Data Access Allocator coordinates and maps
queries
● Problem: Complex implementation!
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 27
“Butterfly”
Data Access Allocator
Temp
Store 1 TS 2 TS n
Read-only
TS n+1
Data
Transformer
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 28
Summary: Problems
● Different SQL implementations
● User-defined data types/functions
● Stored Procedures
● Proprietary interfaces
● Flawed schema design
● Differences in Data Types
● “Dirty Data”
● Reserved Words
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 29
Help! - Migration Tools
● Automatization
● Integrity violation detection
● Re-Use
● Knowledge on source and target system
● Documentation
● Code Generation
● Script Scheduling
● Validation
● Speed!
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 30
Migration Tools, Examples
● Closed Source:
– SQLWays (Ispirer). Only Windows.
● Source: any, Target: MySQL, PostgreSQL
– ProgressionDB (Versora). Linux, Windows.
● MSSQL -> MySQL, PostgreSQL, Ingres
● Open Source:
– Ingres Mio. $ Challenge (CA): shift2ingres
– MySQL Migration Toolkit (MySQL AB)
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 31
Summary
Migration to Open Source Databases ?
● Several Open Source options
● Migration is an ambitious project
● Workflow and results depending on state
of source system
● Automatize the process, where possible!
Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 32
Questions?

More Related Content

PDF
2005 | Migration to Open Source Databases | O'Reilly Euro OSCon
Jutta Horstmann
 
PDF
Oracle 12c revealed Demonstration
Getting value from IoT, Integration and Data Analytics
 
PPTX
Storage Engine Wars at Parse
MongoDB
 
PDF
MySQL Workbench and Visual Explain -- RMUG Feb 19th 2015
Dave Stokes
 
PPTX
Mongo db nosql (1)
Bhavesh Sarvaiya
 
PDF
RocksDB storage engine for MySQL and MongoDB
Igor Canadi
 
PPTX
ELK - Stack - Munich .net UG
Steve Behrendt
 
PDF
BlackRay - The open Source Data Engine
fschupp
 
2005 | Migration to Open Source Databases | O'Reilly Euro OSCon
Jutta Horstmann
 
Storage Engine Wars at Parse
MongoDB
 
MySQL Workbench and Visual Explain -- RMUG Feb 19th 2015
Dave Stokes
 
Mongo db nosql (1)
Bhavesh Sarvaiya
 
RocksDB storage engine for MySQL and MongoDB
Igor Canadi
 
ELK - Stack - Munich .net UG
Steve Behrendt
 
BlackRay - The open Source Data Engine
fschupp
 

What's hot (16)

PDF
RocksDB meetup
Javier González
 
PPTX
Is It Fast? : Measuring MongoDB Performance
Tim Callaghan
 
PDF
Enterprise class deployment for GeoServer and GeoWebcache Optimizing perform...
GeoSolutions
 
PDF
MySQL Workbench for DFW Unix Users Group
Dave Stokes
 
PDF
OSDC 2013 | Distributed Storage with GlusterFS by Dr. Udo Seidel
NETWAYS
 
PPTX
Level 101 for Presto: What is PrestoDB?
Ali LeClerc
 
PDF
Electron, databases, and RxDB
Ben Gotow
 
PDF
Introducing Infinispan
PT.JUG
 
PDF
Ceph and RocksDB
Sage Weil
 
ODP
Dedupe nmamit
Gluster.org
 
PPTX
The Hive Think Tank: Rocking the Database World with RocksDB
The Hive
 
PPTX
Collo -01 , en
지현 이
 
PPTX
Session 2 deploy and run Mtech 1st lab question Blob and Clob using java
Pratik Thakkar
 
PPTX
The Hive Think Tank: Rocking the Database World with RocksDB
The Hive
 
KEY
An introduction to Pincaster
Frank Denis
 
PDF
Postgres-XC as a Key Value Store Compared To MongoDB
Mason Sharp
 
RocksDB meetup
Javier González
 
Is It Fast? : Measuring MongoDB Performance
Tim Callaghan
 
Enterprise class deployment for GeoServer and GeoWebcache Optimizing perform...
GeoSolutions
 
MySQL Workbench for DFW Unix Users Group
Dave Stokes
 
OSDC 2013 | Distributed Storage with GlusterFS by Dr. Udo Seidel
NETWAYS
 
Level 101 for Presto: What is PrestoDB?
Ali LeClerc
 
Electron, databases, and RxDB
Ben Gotow
 
Introducing Infinispan
PT.JUG
 
Ceph and RocksDB
Sage Weil
 
Dedupe nmamit
Gluster.org
 
The Hive Think Tank: Rocking the Database World with RocksDB
The Hive
 
Collo -01 , en
지현 이
 
Session 2 deploy and run Mtech 1st lab question Blob and Clob using java
Pratik Thakkar
 
The Hive Think Tank: Rocking the Database World with RocksDB
The Hive
 
An introduction to Pincaster
Frank Denis
 
Postgres-XC as a Key Value Store Compared To MongoDB
Mason Sharp
 
Ad

Similar to 2005 | Migration to Open Source Databases | Open Source Database Conference (20)

PDF
Presentation sql server to oracle a database migration roadmap
xKinAnx
 
PDF
All the DataOps, all the paradigms .
Lars Albertsson
 
PDF
WhereHows: Taming Metadata for 150K Datasets Over 9 Data Platforms
Mars Lan
 
PPTX
ApacheCon 2022_ Large scale unification of file format.pptx
XinliShang1
 
PDF
Apache airflow
Purna Chander
 
PPTX
Ledingkart Meetup #2: Scaling Search @Lendingkart
Mukesh Singh
 
PDF
A Day in the Life of a Druid Implementor and Druid's Roadmap
Itai Yaffe
 
PDF
2022-06-23 Apache Arrow and DataFusion_ Changing the Game for implementing Da...
Andrew Lamb
 
PDF
Hadoop-2.6.0 Slides
kul prasad subedi
 
PDF
Realtime Indexing for Fast Queries on Massive Semi-Structured Data
ScyllaDB
 
PDF
Softshake 2013: Introduction to NoSQL with Couchbase
Tugdual Grall
 
PDF
Relational vs. Non-Relational
PostgreSQL Experts, Inc.
 
PDF
Doctrine Project
Daniel Lima
 
PDF
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Gabriele Bartolini
 
PDF
20160922 Materials Data Facility TMS Webinar
Ben Blaiszik
 
PDF
Distributed real time stream processing- why and how
Petr Zapletal
 
PDF
[214]유연하고 확장성 있는 빅데이터 처리
NAVER D2
 
PDF
Build an Open Source Data Lake For Data Scientists
Shawn Zhu
 
PPTX
5 Steps for Migrating Relational Databases to Next-Gen Architectures
NuoDB
 
PDF
CDC patterns in Apache Kafka®
confluent
 
Presentation sql server to oracle a database migration roadmap
xKinAnx
 
All the DataOps, all the paradigms .
Lars Albertsson
 
WhereHows: Taming Metadata for 150K Datasets Over 9 Data Platforms
Mars Lan
 
ApacheCon 2022_ Large scale unification of file format.pptx
XinliShang1
 
Apache airflow
Purna Chander
 
Ledingkart Meetup #2: Scaling Search @Lendingkart
Mukesh Singh
 
A Day in the Life of a Druid Implementor and Druid's Roadmap
Itai Yaffe
 
2022-06-23 Apache Arrow and DataFusion_ Changing the Game for implementing Da...
Andrew Lamb
 
Hadoop-2.6.0 Slides
kul prasad subedi
 
Realtime Indexing for Fast Queries on Massive Semi-Structured Data
ScyllaDB
 
Softshake 2013: Introduction to NoSQL with Couchbase
Tugdual Grall
 
Relational vs. Non-Relational
PostgreSQL Experts, Inc.
 
Doctrine Project
Daniel Lima
 
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Gabriele Bartolini
 
20160922 Materials Data Facility TMS Webinar
Ben Blaiszik
 
Distributed real time stream processing- why and how
Petr Zapletal
 
[214]유연하고 확장성 있는 빅데이터 처리
NAVER D2
 
Build an Open Source Data Lake For Data Scientists
Shawn Zhu
 
5 Steps for Migrating Relational Databases to Next-Gen Architectures
NuoDB
 
CDC patterns in Apache Kafka®
confluent
 
Ad

More from Jutta Horstmann (20)

PDF
WeAreDevelopers, Berlin, Germany (2019): Same, same but different - Upscaling...
Jutta Horstmann
 
PDF
2017 | To the moon and back Customer Identity and Access Management in a glob...
Jutta Horstmann
 
PDF
2015 | Neues für Redakteure - Usability-Verbesserungen in Drupal 8
Jutta Horstmann
 
PDF
2015 | Nutzerzentrierte Architektur großer Websites - Anti-Patterns und Best ...
Jutta Horstmann
 
PDF
2015 | Moderne Informationsarchitektur mit Drupal
Jutta Horstmann
 
PDF
2013 | 10 Jahre Open Usability - “Where Open Source meets Usability”
Jutta Horstmann
 
PDF
2011 | Drupal Business: $title, $thesen, $temperamente - Eine Fishbowl-Debatte
Jutta Horstmann
 
PDF
2010 | Khairn - Requirement-Driven Project Management
Jutta Horstmann
 
PDF
2010 | mein!KI.KA – Die Kinderkanal-Community | Drupal Dev Days München
Jutta Horstmann
 
PDF
2010 | Khairn - Projekte managen mit Drupal | Drupal Dev Days München
Jutta Horstmann
 
PDF
2010 | Khairn - Projekte managen mit Drupal
Jutta Horstmann
 
PDF
2010 | Projekte managen mit Drupal | DrupalCamp Essen
Jutta Horstmann
 
PDF
2010 | mein!KI.KA – Die Kinderkanal-Community | DrupalCamp Essen
Jutta Horstmann
 
PDF
2009 | Formulare mit Drupal
Jutta Horstmann
 
PDF
2008 | Grundlagen der Linux­-Systemadministration
Jutta Horstmann
 
PDF
2007 | Open Source CMS - Ein Wegweiser durch die große Unübersichtlichkeit
Jutta Horstmann
 
PDF
2007 | Drupal in der Praxis - Erfahrungsberichte
Jutta Horstmann
 
PDF
2007 | Open Source CMS - Ein Wegweiser durch die große Unübersichtlichkeit | ...
Jutta Horstmann
 
PDF
2006 | Kollaboratives Wissensmanagement mit Plone
Jutta Horstmann
 
PDF
2004 | Kryptographie in Theorie und Praxis: Only the Paranoids Survive
Jutta Horstmann
 
WeAreDevelopers, Berlin, Germany (2019): Same, same but different - Upscaling...
Jutta Horstmann
 
2017 | To the moon and back Customer Identity and Access Management in a glob...
Jutta Horstmann
 
2015 | Neues für Redakteure - Usability-Verbesserungen in Drupal 8
Jutta Horstmann
 
2015 | Nutzerzentrierte Architektur großer Websites - Anti-Patterns und Best ...
Jutta Horstmann
 
2015 | Moderne Informationsarchitektur mit Drupal
Jutta Horstmann
 
2013 | 10 Jahre Open Usability - “Where Open Source meets Usability”
Jutta Horstmann
 
2011 | Drupal Business: $title, $thesen, $temperamente - Eine Fishbowl-Debatte
Jutta Horstmann
 
2010 | Khairn - Requirement-Driven Project Management
Jutta Horstmann
 
2010 | mein!KI.KA – Die Kinderkanal-Community | Drupal Dev Days München
Jutta Horstmann
 
2010 | Khairn - Projekte managen mit Drupal | Drupal Dev Days München
Jutta Horstmann
 
2010 | Khairn - Projekte managen mit Drupal
Jutta Horstmann
 
2010 | Projekte managen mit Drupal | DrupalCamp Essen
Jutta Horstmann
 
2010 | mein!KI.KA – Die Kinderkanal-Community | DrupalCamp Essen
Jutta Horstmann
 
2009 | Formulare mit Drupal
Jutta Horstmann
 
2008 | Grundlagen der Linux­-Systemadministration
Jutta Horstmann
 
2007 | Open Source CMS - Ein Wegweiser durch die große Unübersichtlichkeit
Jutta Horstmann
 
2007 | Drupal in der Praxis - Erfahrungsberichte
Jutta Horstmann
 
2007 | Open Source CMS - Ein Wegweiser durch die große Unübersichtlichkeit | ...
Jutta Horstmann
 
2006 | Kollaboratives Wissensmanagement mit Plone
Jutta Horstmann
 
2004 | Kryptographie in Theorie und Praxis: Only the Paranoids Survive
Jutta Horstmann
 

Recently uploaded (20)

PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Automating ArcGIS Content Discovery with FME: A Real World Use Case
Safe Software
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 

2005 | Migration to Open Source Databases | Open Source Database Conference

  • 1. Migration to Open Source Databases Jutta Horstmann www.osdbmigration.org
  • 2. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 2 whoami ● Unix/Linux sysadmin ● DBA, developer (Informix) ● DB developer (Oracle) ● Web stuff (MySQL, PostgreSQL) ● Claim to Fame: OpenUsability.org ● Comp Sci Diploma Thesis: Migration to Open Source Databases
  • 3. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 3 Agenda ● What's this? ● Why migrate? ● Where to migrate? ● How to migrate? ● What to migrate? ➔ About ➔ Pros and Cons ➔ Open Source Databases ➔ Workflow: Activities ➔ Workflow: Assets
  • 4. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 4 Migration? "The process of changing from the use of one platform, environment, IT system, etc., to another, esp. in such a way as to avoid interruptions in service." (Oxford English Dictionary)
  • 5. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 5 Migration: Objectives The target system: ● same functionality ● extendable ● incorporate all data ● modern hardware, software, architecture The migration workflow: ● Minimize risk ● Stay on budget ● Deliver in due time ● Minimize downtime
  • 6. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 6 OSDB Migration:Pros and Cons YesNo ● Cost? Time? Effort? ● Lack of roadmap ● Licensing ● ISV Support ● Maintenance ● Accountability ● Features ● Features? ● TCO ● Open Source – Code – Community ● Standards ● Security ● Independence
  • 7. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 7 Where to migrate? Firebird MaxDB Ingres MySQLPostgreSQL
  • 8. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 8
  • 9. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 9 Enterprise-Level? Requirements: ● Advanced data integrity mechanisms ● Advanced database objects ● Advanced SQL features ● Advanced features, tools, support for – Performance and scalability – (High) Availability – Security
  • 10. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 10 OSDB Features Firebird 1.5 Ingres r3 MySQL 4.1 MaxDB 7.5 PostgreSQL 8.0 Advanced Indexing GIS support MVCC Two phase commit UD Functions UD data types Updatable Views MyISAM MyISAM InnoDB v.5.0v.7.6 v.5.0 v.8.1v.5.0
  • 11. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 11 Performance / Scalability Firebird 1.5 Ingres r3 MySQL 4.1 MaxDB 7.5 PostgreSQL 8.0 Tablespaces Table Partitioning Parallelization Built-In Clustering Built-In Load Balancing v.8.1
  • 12. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 12 How to migrate? Database Migration Workflow ● Activity-Centered? ● Asset-Centered? ● Proposal: Mixed-Model Workflow ● Walk-Through
  • 13. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 13 Activity-Centered Workflow Analysis Data SQL Schema Infra- structure DBMS Data SQL Schema DBMS Data SQL Schema DBMS Data SQL Schema DBMS Design Implementation Test Source System Source vs. Target System Target System Target System Infra- structure Infra- structure Infra- structure
  • 14. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 14 Asset-Centered Workflow Analysis Desig n DBMS Analysis Design Implementation Test Analysis Desig n Analysis Design Implementation Test Analysis Desig n Analysis Design Implementation Test Analysis Desig n Analysis Design Implementation Test Analysis Desig n Analysis Design Implementation Test Schema Data SQL Infra- structure Source System Source vs. Target System Target System Target System
  • 15. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 15 Mixed-Model Workflow 1. Analyze the whole source system (all assets). 2. Migrate the DBMS software (design, implement, test). 3. Migrate the schema(s) (design, implement). 4. Migrate test data (design, implement, test). 5. Test the migrated schema(s) with the test data. 6. Migrate the client SQL (design, implement, test). 7. Migrate the database system's infrastructure (d, i, t). 8. Cut-over: Full data migration. 9. Final testing and evaluation.
  • 16. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 16 Analyze the whole system Analysis Data SQL Schema Infra- structure DBMS ● How is the software configured? ● Complexity, quality of database design? ● How much data? Which condition? ● SQL isolated? Standard compliant? ● Tools, Policies, Tuning ...?
  • 17. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 17 Where to look? Who to ask? ? Application Data Processes Documentation Data Dictionary History Data Flows Data Dictionary Developers, Admins, Users
  • 18. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 18 Migrate the DBMS software 1. Choose Open Source DBMS 2. Devise mappings for configurations 3. Install & configure new software 4. Validate the working of the DBMS by using test databases and tools Design Implemen- tation Test DBMS
  • 19. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 19 Migrate the schema(s) Design Implemen- tation Schema Test 1. Provide abstraction (logical, conceptual?) 2. Devise mappings to target system 3. Implement by loading converted schema into target system 4.Validate the schema's correctness based on loading and querying test data.
  • 20. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 20 Migrate Test Data 1. Correction and “cleansing” of “dirty data” 2. Devise conversions and mappings 3. Transfer some test data: a) Extraction b)Transformation c) Load 4. Test: Errors at load? Query data! Design Implement Test Data Test Data
  • 21. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 21 Migrate Client SQL Database connectivity ● Change ODBC/JDBC driver ● Switch client ● Client source available: Migrate! 1. Provide abstraction (Standard SQL) OR 2. Convert directly to target SQL syntax 3. Test statements against schema and test data Design Implemen- tation Test SQL
  • 22. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 22 Migrate Infrastructure Design Infra- structure Test ● Tools: Administration, Development, Design ● Change ODBC/JDBC driver ● Switch client ● Administrative Tasks – Gather policies and jobs – Implement them in the target system way Implementation
  • 23. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 23 Full Data Migration (Cut-Over) 1. Strategy: a) Cold Turkey? b) Chicken Little? c) Butterfly? 2. Data Transfer: Extraction, Transformation, Load 3. Test: Errors at load? Query data! Design Test Data Implementation
  • 24. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 24 “Cold Turkey” ● Take source system offline ● Extract data ● Transform data ● Load data into target system ● Take target system online Problems: ● How long offline? How much data? ● Fallback?
  • 25. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 25 “Chicken Little” ● Source and target system operate in parallel ● “Gateway” coordinates and maps queries ● Incremental data migration Problem: ● Complex implementation ● Update consistency? Gateway
  • 26. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 26 “Butterfly” ● Only source system online ● Data gets frozen read-only ● Store manipulation results in “Temp Store 0” ● Transfer frozen data ● Freeze TS0, store manipulation results in TS1 ● Transfer frozen data ... and so on ● “Data Access Allocator coordinates and maps queries ● Problem: Complex implementation!
  • 27. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 27 “Butterfly” Data Access Allocator Temp Store 1 TS 2 TS n Read-only TS n+1 Data Transformer
  • 28. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 28 Summary: Problems ● Different SQL implementations ● User-defined data types/functions ● Stored Procedures ● Proprietary interfaces ● Flawed schema design ● Differences in Data Types ● “Dirty Data” ● Reserved Words
  • 29. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 29 Help! - Migration Tools ● Automatization ● Integrity violation detection ● Re-Use ● Knowledge on source and target system ● Documentation ● Code Generation ● Script Scheduling ● Validation ● Speed!
  • 30. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 30 Migration Tools, Examples ● Closed Source: – SQLWays (Ispirer). Only Windows. ● Source: any, Target: MySQL, PostgreSQL – ProgressionDB (Versora). Linux, Windows. ● MSSQL -> MySQL, PostgreSQL, Ingres ● Open Source: – Ingres Mio. $ Challenge (CA): shift2ingres – MySQL Migration Toolkit (MySQL AB)
  • 31. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 31 Summary Migration to Open Source Databases ? ● Several Open Source options ● Migration is an ambitious project ● Workflow and results depending on state of source system ● Automatize the process, where possible!
  • 32. Jutta Horstmann, OpenDB Con, Nov 8 2005. http://www.osdbmigration.org 32 Questions?