CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
Migrate from Oracle
to Postgres
Why Wait?
Marc Linster – SVP
Product Development
EnterpriseDB
1
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.2
TAKE AWAYS
• 50%+ of migrations are easy – how do I identify those?
• Why is a Oracle-compatible version of Postgres and the
Postgres drivers so important?
• If its not just about the database … what else do I need?
• Step by step – how do I go about it?
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.3
AGENDA
• EDB Overview
• Why migrate?
• Components of a successful migration project
• What does EDB bring to the table?
• Pick your battles
• Demo
• Next steps
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
4
THE ENTERPRISE POSTGRES COMPANY
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, 2018. All rights reserved.
ONLY OPEN SOURCE
RDBMS IN
GARTNER MQ
EDB Recognized
In a Row on Gartner’s
Magic Quadrant
5
Plus, The Forrester Wave™ Document Stores Q3 2016 - Strong Performer
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.6
EDB OPEN SOURCE LEADERSHIP
Named EDB open source committers and contributors
Akshay Joshi Amit Kapila Amul Sul Andres Freund Ashesh Vashi Ashutosh Sharma
Bruce Momjian Dave Page Devrim Gunduz Dilip Kumar Jeevan Ladhe Mithun Cy
M. Usama Robert Haas Rushabh Lathia Thom Brown Thomas Munro
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
EDB POSTGRES PLATFORM
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.8
WHY MIGRATE?
• Economic reasons
• Flexibility of deployment - one Postgres everywhere
• Innovation (JSONB, PostGIS, interval data types, …)
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
ECONOMIC REASONS
Source: IDC: The Economic and Business Advantages
of EnterpriseDB Postgres Database Solutions, 2016
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.10
FLEXIBILITY: SAME POSTGRES EVERYWHERE
• Bare metal
• Virtualized deployments
• Container deployments
• Public cloud deployments
 Interchangeable software and license
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.11
INNOVATION LEADER
• Vibrant community
• ACID Compliant
• SQL + JSONB + KVP + GIS
• Many data types
• Foreign data wrappers
• Native streaming and logical replication
• …
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.12
COMPONENTS OF A MIGRATION
• Data and data structures
are easy
• Code (queries and stored
procedures look easy)
• Interfaces (OCI, JDBC, …)
are hard
• Management and
compliance requirements
are even harder
• Don’t forget about
downtime!
Source: Gartner, November 2016
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.13
EDB’S CONTRIBUTION
• EDB Advanced Server: Oracle compatible Postgres
• Migration tools:
• EDB Migration Portal: Cloud-based migration for schemas and stored
procedures
• EDB Migration Toolkit: One-time data migration
• EDB Replication Server: Change data capture for large migrations with minimal
downtime
• Application drivers: OCL, JDBC, ODBC, .NET, ECPG*Plus
• Management Tools
• EDB Postgres Enterprise Manager
• EDB Failover Manager
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
DATABASE COMPATIBILITY FOR ORACLE
• SQL extension support
• Decode, NVL, Substr, NVL2, Date/time
functions
• DDL syntax support
• PL/SQL support – native language
• REF Cursors, Implicit and explicit cursors
• Looping, variable declarations, conditional
statements
• Collections: Associative Arrays, Varrays,
Nested tables
• Pragmas
• Named parameters
• User Defined Exceptions
• Explicit Transaction Control(within sp)
• Tools
• EDB*Plus – SQL*Plus look-a-like
• EDB*Loader – SQL*Loader equivalent
• Oracle-like Data Dictionary
• ALL_, DBA_, USER_ views
• Wait Events
• System and session waits
• Statspack-like reporting
• Features
• Packages
• Stored procedures
• Functions
• Triggers
• Hints
• Hierarchical Queries
• Synonyms – Public and Private
• Sequences
• Rownum
• Users/Roles
• Dynamic SQL
• Materialized Views
• Partitioning
• PL/SQL supplied packages
• 16 DBMS
• 8 UTL
• Data types
• Blobs, Clobs, XMLTYPE, VARCHAR2, NUMBER, CHAR, Integer
• Drivers
• JDBC, ODBC, .NET with Oracle extensions
• OCI & ProC compatible drivers
EPAS 11 (Q4 2018): Pragma Autonomous Transaction!
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
DATABASE DRIVERS
15
Oracle Compatibility Feature JDBC ODBC .NET OCI
PL/SQL Support
REF_CURSOR - OracleTypes.CURSOR
User-defined Exceptions - vendor code
Named Parameters - parameter names
Data Types- VARCHAR2 , STRUCT, ARRAYS
STRUCT - Enhanced Manipulation
Upper Column Names - (OPTIONAL)
Multiple INOUT/OUT parameters
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
PICK YOUR BATTLES
50%+ of migrations are easy …
30% involve more work …
20% are difficult
51% had slight to
no modifications
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.17
WHAT MAKES A GOOD CANDIDATE?
• ORM (Hibernate, Spring, etc. )
• Procedures, Functions, Packages written in PL/SQL
• Ability to modify source code
• Availability of Application Developers
• No use of RAC for scalability
• No need for Flashback
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.18
TYPICALLY MORE DIFFICULT TARGETS
• Moderate candidates
• OCI interface
• Spatial/XML
• Oracle extensions of .NET and ODBC
• Typically difficult candidates:
• ProC interface
• Transaction management control inside PL/SQL
(Commit/rollback/savepoint/exceptions)
• Stored procedures written in Java
• Must have RAC capabilities and Flashback
• Other Oracle proprietary extensions
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.19
DEMO
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.20
DEMO SETUP
Toad for Oracle Toad Edge for
EDB Postgres
(1) Download DDL Extractor
(2) Run
DDL Extractor
(3) Upload Oracle
schema definition
(4) Analyze
schema
(5) Download converted schema
(6) Create schema
(7) Migrate the data
using EDB MTK
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.21
CLOUD OR WHAT?
• EDB Postgres – Same Postgres Everywhere
• Bare metal (Windows, RHEL, CentOS, Linux on Power, SLES, Debian)
• Virtualized deployments (VM Ware)
• Container deployments (OpenShift, Kubernetes)
• Public cloud deployments (AWS, Azure, Alibaba)
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.22
NEXT STEPS
• Sign up for free training:
https://www.enterprisedb.com/free-postgres-training
• Download EDB Postgres Advanced Server (60 day trial)
https://www.enterprisedb.com/software-downloads-
postgres
• Try the EDB Migration Portal
https://migration.enterprisedb.com
• Get in touch info@enterprisedb.com
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
QUESTIONS & DISCUSSION
23
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2018. All rights reserved.
THANK YOU
info@enterprisedb.com
www.enterprisedb.com
24

EDB's Migration Portal - Migrate from Oracle to Postgres

  • 1.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. Migrate from Oracle to Postgres Why Wait? Marc Linster – SVP Product Development EnterpriseDB 1
  • 2.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.2 TAKE AWAYS • 50%+ of migrations are easy – how do I identify those? • Why is a Oracle-compatible version of Postgres and the Postgres drivers so important? • If its not just about the database … what else do I need? • Step by step – how do I go about it?
  • 3.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.3 AGENDA • EDB Overview • Why migrate? • Components of a successful migration project • What does EDB bring to the table? • Pick your battles • Demo • Next steps
  • 4.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. 4 THE ENTERPRISE POSTGRES COMPANY EnterpriseDB (EDB) delivers the premier open source-based, multi-model data platform for new applications, cloud re-platforming, application modernization, and legacy migration.
  • 5.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. ONLY OPEN SOURCE RDBMS IN GARTNER MQ EDB Recognized In a Row on Gartner’s Magic Quadrant 5 Plus, The Forrester Wave™ Document Stores Q3 2016 - Strong Performer
  • 6.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.6 EDB OPEN SOURCE LEADERSHIP Named EDB open source committers and contributors Akshay Joshi Amit Kapila Amul Sul Andres Freund Ashesh Vashi Ashutosh Sharma Bruce Momjian Dave Page Devrim Gunduz Dilip Kumar Jeevan Ladhe Mithun Cy M. Usama Robert Haas Rushabh Lathia Thom Brown Thomas Munro
  • 7.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. EDB POSTGRES PLATFORM
  • 8.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.8 WHY MIGRATE? • Economic reasons • Flexibility of deployment - one Postgres everywhere • Innovation (JSONB, PostGIS, interval data types, …)
  • 9.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. ECONOMIC REASONS Source: IDC: The Economic and Business Advantages of EnterpriseDB Postgres Database Solutions, 2016
  • 10.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.10 FLEXIBILITY: SAME POSTGRES EVERYWHERE • Bare metal • Virtualized deployments • Container deployments • Public cloud deployments  Interchangeable software and license
  • 11.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.11 INNOVATION LEADER • Vibrant community • ACID Compliant • SQL + JSONB + KVP + GIS • Many data types • Foreign data wrappers • Native streaming and logical replication • …
  • 12.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.12 COMPONENTS OF A MIGRATION • Data and data structures are easy • Code (queries and stored procedures look easy) • Interfaces (OCI, JDBC, …) are hard • Management and compliance requirements are even harder • Don’t forget about downtime! Source: Gartner, November 2016
  • 13.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.13 EDB’S CONTRIBUTION • EDB Advanced Server: Oracle compatible Postgres • Migration tools: • EDB Migration Portal: Cloud-based migration for schemas and stored procedures • EDB Migration Toolkit: One-time data migration • EDB Replication Server: Change data capture for large migrations with minimal downtime • Application drivers: OCL, JDBC, ODBC, .NET, ECPG*Plus • Management Tools • EDB Postgres Enterprise Manager • EDB Failover Manager
  • 14.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. DATABASE COMPATIBILITY FOR ORACLE • SQL extension support • Decode, NVL, Substr, NVL2, Date/time functions • DDL syntax support • PL/SQL support – native language • REF Cursors, Implicit and explicit cursors • Looping, variable declarations, conditional statements • Collections: Associative Arrays, Varrays, Nested tables • Pragmas • Named parameters • User Defined Exceptions • Explicit Transaction Control(within sp) • Tools • EDB*Plus – SQL*Plus look-a-like • EDB*Loader – SQL*Loader equivalent • Oracle-like Data Dictionary • ALL_, DBA_, USER_ views • Wait Events • System and session waits • Statspack-like reporting • Features • Packages • Stored procedures • Functions • Triggers • Hints • Hierarchical Queries • Synonyms – Public and Private • Sequences • Rownum • Users/Roles • Dynamic SQL • Materialized Views • Partitioning • PL/SQL supplied packages • 16 DBMS • 8 UTL • Data types • Blobs, Clobs, XMLTYPE, VARCHAR2, NUMBER, CHAR, Integer • Drivers • JDBC, ODBC, .NET with Oracle extensions • OCI & ProC compatible drivers EPAS 11 (Q4 2018): Pragma Autonomous Transaction!
  • 15.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. DATABASE DRIVERS 15 Oracle Compatibility Feature JDBC ODBC .NET OCI PL/SQL Support REF_CURSOR - OracleTypes.CURSOR User-defined Exceptions - vendor code Named Parameters - parameter names Data Types- VARCHAR2 , STRUCT, ARRAYS STRUCT - Enhanced Manipulation Upper Column Names - (OPTIONAL) Multiple INOUT/OUT parameters
  • 16.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. PICK YOUR BATTLES 50%+ of migrations are easy … 30% involve more work … 20% are difficult 51% had slight to no modifications
  • 17.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.17 WHAT MAKES A GOOD CANDIDATE? • ORM (Hibernate, Spring, etc. ) • Procedures, Functions, Packages written in PL/SQL • Ability to modify source code • Availability of Application Developers • No use of RAC for scalability • No need for Flashback
  • 18.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.18 TYPICALLY MORE DIFFICULT TARGETS • Moderate candidates • OCI interface • Spatial/XML • Oracle extensions of .NET and ODBC • Typically difficult candidates: • ProC interface • Transaction management control inside PL/SQL (Commit/rollback/savepoint/exceptions) • Stored procedures written in Java • Must have RAC capabilities and Flashback • Other Oracle proprietary extensions
  • 19.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.19 DEMO
  • 20.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.20 DEMO SETUP Toad for Oracle Toad Edge for EDB Postgres (1) Download DDL Extractor (2) Run DDL Extractor (3) Upload Oracle schema definition (4) Analyze schema (5) Download converted schema (6) Create schema (7) Migrate the data using EDB MTK
  • 21.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.21 CLOUD OR WHAT? • EDB Postgres – Same Postgres Everywhere • Bare metal (Windows, RHEL, CentOS, Linux on Power, SLES, Debian) • Virtualized deployments (VM Ware) • Container deployments (OpenShift, Kubernetes) • Public cloud deployments (AWS, Azure, Alibaba)
  • 22.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved.22 NEXT STEPS • Sign up for free training: https://www.enterprisedb.com/free-postgres-training • Download EDB Postgres Advanced Server (60 day trial) https://www.enterprisedb.com/software-downloads- postgres • Try the EDB Migration Portal https://migration.enterprisedb.com • Get in touch info@enterprisedb.com
  • 23.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. QUESTIONS & DISCUSSION 23
  • 24.
    CONFIDENTIAL © CopyrightEnterpriseDB Corporation, 2018. All rights reserved. THANK YOU info@enterprisedb.com www.enterprisedb.com 24

Editor's Notes

  • #5  EnterpriseDB® (EDB™), the database platform company for digital business Delivers a leading open source-based data platform for - New applications - Cloud re-platforming - Application modernization - Legacy migration We sell the only complete database platform based on the open source Postgres. The platform includes server software, enterprise management tools, training, services and support.
  • #6 So, it is no surprise that EDB continues, for the fifth consecutive year, to be recognized among elite database vendors in Gartner Magic Quadrant for OPDBMS. The power of EDB Postgres comes from its technologies and capabilities that offer interoperability, flexibility, and greater control for enterprise customers. The EDB Postgres Platform rivals traditional vendor offerings for features and performance; yet as an open source-based provider, offers dramatic cost savings and greater flexibility. EDB is now the only open source-based relational database vendor in the Gartner Magic Quadrant.
  • #10 IDC Report talking points “Help you Sleep at Night” concept Speed Security Performance Agility Flexibility Lower TCO Worldwide support & services
  • #18  1. Good candidates 1. Connects via JDBC 2. The app uses an ORM, such as Spring or Hybernate 3. The stored procedures are written in PL/SQL, not in Java or PL/C 4. # of concurrent active connections to the database < 1000 5. DB Size < 5 TB 6. Limited use of XML (XPATH, XMLDOM) 7. Application source code and application developers are available 8. No use of RAC for scalability 9. No need for Flashback 2. Really bad migration candidates: 1. ProC interface 2. Stored procedures written in Java 3. Must have RAC capabilities and Flashback 3. Moderate candidates 1. OCI interface 2. Oracle extensions of .NET and ODBC
  • #19 Often RAC is used on older 2 socket servers. Increased # of cores and flash storage have made migrations off of RAC onto single servers possible