Successfully reported this slideshow.

Migrating from Oracle to Postgres

2,462 views

Published on

This presentation reviews the key methodologies that all the member of the team should consider such as:

- How to prioritize the right application or project for your first Oracle
- Tips to execute a well-defined, phased migration process to minimize risk and increase time to value
- Handling the common concerns and pitfalls related to a migration project
- What resources you can leverage before, during and after your migration
- Suggestions on how you can achieve independence from an Oracle database – without sacrificing performance.

Target audience: This presentation is intended for IT Decision-Makers and Leaders on the team involved in Database decisions and execution.

For more information, please email sales@enterprisedb.com

Published in: Software

Migrating from Oracle to Postgres

  1. 1. © 2015 EnterpriseDB Corporation. All rights reserved. 1 Getting a Head Start: Migrating Oracle to Postgres To hear the recording of this presentation please visit Enterprisedb.com > Resources > Webcasts > On- Demand Webcasts
  2. 2. © 2015 EnterpriseDB Corporation. All rights reserved. 2 Agenda •  Company Overview •  Why Migrate? •  Finding the money to migrate •  How to get started •  Steps to Migrate •  How EnterpriseDB can help •  Summary •  Q&A
  3. 3. © 2013 EDB All rights reserved 8.1. 3 Who is EDB?
  4. 4. © 2015 EnterpriseDB Corporation. All rights reserved. 4 POSTGRES innovation ENTERPRISE reliability 24/7 support Services & training Enterprise-class features, tools & compatibility Certifications Product road-map Control Thousands of developers Fast development cycles Low cost No vendor lock-in Advanced features Enabling commercial adoption of Postgres
  5. 5. © 2013 EDB All rights reserved 8.1. 5 Why Migrate?
  6. 6. © 2015 EnterpriseDB Corporation. All rights reserved. 6 Is keeping the “IT Lights” on costing you business and your future? Change the “IT” Lights
  7. 7. © 2015 EnterpriseDB Corporation. All rights reserved. 7 Little Money For New Initiatives Competitive Disadvantage $ t $ Revenue DBMS Customer Engagement
  8. 8. © 2015 EnterpriseDB Corporation. All rights reserved. 8 Finding Money in IT Relative Cost for IT Stack Components Analytics High Value Invest for Brand Mobile Applications Middle-ware $ Database Bloat $ Virtual Machine Operating System Commodity Rationalize for Stability
  9. 9. © 2015 EnterpriseDB Corporation. All rights reserved. 9 Finding Money in IT 35% 80% 70 % Software Infrastructure Budget on DBMS (1) In House DBMS Apps Candidates to Move Off Expensive DBMS (2) Cost Savings (3) (1) Gartner, Forrester and EDB analysis (2) The State of Open-Source RDBMS, 2015, Gartner, April 2015 (3) The State of Open-Source RDBMS, 2015, Gartner, April 2015; EDB analysis of customer experiences and market prices +
  10. 10. © 2015 EnterpriseDB Corporation. All rights reserved. 10 Getting Money in IT Gartner: Relational OSDBMS has matured and today can be considered as a standard infrastructure choice for a large majority for new enterprise applications. 2009 Figure 1 Relational Open-Source DBMS Maturity Evaluation, 2015 Source: Gartner (April 2015) Figure 2 Relational Open-Source DBMS Maturity Evaluation,2015 Source: Gartner (April 2015) 2015 Open-Source DBMS Commercial Non-Mission Critical Applications Non-Mission Critical Applications Mission Critical Applications Mission Critical Applications Total Cost of Ownership Total Cost of Ownership DBMS Functionality DBMS Functionality DBA Tools DBA Tools Availability of DBA Resources Availability of DBA Resources
  11. 11. © 2015 EnterpriseDB Corporation. All rights reserved. 11 t Transform DBMS Revenue DBMS Customer Engagement Revenue DBMS Customer Engagement $ t $ $ $ Transform You Have The Money!
  12. 12. © 2013 EDB All rights reserved 8.1. 12 The Key to Unlocking the Money: Postgres Plus Advanced Server
  13. 13. © 2015 EnterpriseDB Corporation. All rights reserved. 13 Security Tools Performance Compatibility ADVANCED SERVER POSTGRES PLUS
  14. 14. © 2015 EnterpriseDB Corporation. All rights reserved. 14 Database Compatibility with Oracle® Compatible with: Your BusinessYour AppsYour People Everything works On EDB Postgres Applications Running on Oracle Oracle Developers
  15. 15. © 2015 EnterpriseDB Corporation. All rights reserved. 15 Database Compatibility for Oracle includes: •  SQL extension support −  Decode, NVL, Substr, NVL2 −  Date/time functions: add_months, extract, next_day •  PL/SQL support −  REF Cursors, Implicit and explicit cursors −  Looping, variable declarations, conditional statements −  Collections: Associative Arrays, Varrays, Nested tables −  Bulk binding −  Named parameters −  User Defined Exceptions −  Explicit Transaction Control −  within a stored procedure •  Tools −  EDB*Plus – SQL*Plus look-a-like −  EDB*Loader – SQL*Loader equivalent −  EDB*Wrap – similar to the PL/SQL wrapper •  Features −  Packages −  Stored procedures −  Functions −  Triggers −  Hints −  Database Links −  Hierarchical Queries −  Synonyms – Public and Private −  Sequences −  Rownum −  Object types −  Create type … as object −  Create type … as table −  Create type …as varray −  Constructor and collection methods −  Users/Roles −  Dynamic SQL
  16. 16. © 2015 EnterpriseDB Corporation. All rights reserved. 16 Database Compatibility (cont.) •  Data Types −  Integer, number, char, double precision, float, varchar2, blob, clob, xmltype, rowid •  Oracle-like Data Dictionary −  ALL_, DBA_, USER_ views −  Most commonly accessed views •  Diagnostics - DRITA −  System and session waits −  Not exposed in PostgreSQL −  Part of Advanced Server −  Statspack-like reporting •  Support for Functions: −  REGEXP_INSTR −  REGEXP_COUNT −  REGEXP_SUBSTR •  Oracle compatible partitioning syntax •  Oracle compatible Materialized Views © 2013 EnterpriseDB. All rights reserved. •  Package Support for: −  DBMS_ALERT −  DBMS_CRYPTO −  DBMS_JOB −  DBMS_LOB −  DBMS_LOCK.sleep −  DBMS_MVIEW −  DBMS_OUTPUT −  DBMS_PIPE −  DBMS_PROFILER −  DBMS_RANDOM −  DBMS_RLS −  DBMS_SCHEDULER −  DBMS_SQL −  DBMS_UTILITY •  Package Support for: −  UTL_HTTP for web server communications −  UTL_URL −  UTL_TCP −  UTL_FILE −  UTL_MAIL −  UTL_SMTP −  UTL_ENCODE
  17. 17. © 2015 EnterpriseDB Corporation. All rights reserved. 17 EDBMigration Toolkit
  18. 18. © 2015 EnterpriseDB Corporation. All rights reserved. 18 Postgres Plus Deployment Strategies Strategy Benefits New LOB Applications • Significant cost savings for non mission critical systems • Leverages all existing Oracle skills • Very low risk Oracle Replication Server • Significant cost savings • Leverages Postgres Plus Replication Server • Leverages all existing Oracle skills • Improves transaction and query performance Migrate / Rewrite non- Mission Critical Apps • Significant cost savings • Leverages all existing Oracle skills • Very low risk Migrate / Rewrite Mission Critical Apps • Biggest cost savings • Leverages all existing Oracle skills • Greatest deployment flexibility
  19. 19. © 2013 EDB All rights reserved 8.1. 19 How to get started
  20. 20. © 2015 EnterpriseDB Corporation. All rights reserved. 20 Applications Inventory Apps of Innovation 20% of all Apps Application of Differentiation 60% of all Apps Application of Record 20% of all Apps Initial Target: 50 Custom Apps Web & Mobile Custom Apps Custom Apps Oracle, SAP, MS Prop. Apps ISV Apps
  21. 21. © 2015 EnterpriseDB Corporation. All rights reserved. 21 Staged Application Migration Process 50 Apps Pool Days/App # of Apps Net Savings 3yr (Net) ROI 50% 30% 20% 20 Days 40 Days 60 Days 25 Apps 15 Apps 10 Apps $3.7 Million $2.0 Million $1.2 Million 140% 109% 84%
  22. 22. © 2015 EnterpriseDB Corporation. All rights reserved. 22 Iterative and Agile Motion Approach Find the Sweet Spot Prioritize and Plan Migration Build the Team Migrate Deploy
  23. 23. © 2013 EDB All rights reserved 8.1. 23 Steps to Migrate
  24. 24. © 2015 EnterpriseDB Corporation. All rights reserved. 24 Steps to Migrate •  Prepare Environment −  Obtain and install necessary software −  Establish connectivity between systems −  Copy the Oracle JDBC jar file to jre/lib/ext directory in Postgres Plus Advanced Server Installation •  Migrate Schema −  Use Migration Toolkit in schema only mode −  Resolve issues here before going to next phase •  Migrate Data −  Use command line MTK −  Use –copyViaDBLinkOra −  Uses OCI to connect to Oracle −  Use parallel threads −  Use dblink_ora_copy function directly to bypass logging −  Export Oracle data to flat files, load using EDB*Loader
  25. 25. © 2015 EnterpriseDB Corporation. All rights reserved. 25 Steps to Migrate con’t 25 •  Port Application −  Change connection information −  Recompile /Link application (OCI or Pro*C) •  Test −  Verify application functionality −  Address issues −  Test performance −  Tune •  Integration −  Establish co-existence strategy −  Setup database links to other databases −  Setup replication between Oracle or SQL Server and Postgres Plus Advanced Server •  Rollout −  System becomes production
  26. 26. © 2013 EDB All rights reserved 8.1. 26 How EDB can help
  27. 27. © 2015 EnterpriseDB Corporation. All rights reserved. 27 EDB can help you unlock money in your IT stack to enable you to innovate and compete
  28. 28. © 2015 EnterpriseDB Corporation. All rights reserved. 28 Build a Migration Baseline Migration Services Migration Opportunity Assessment Migration Assessments Migration Plans Training Classes Migration Assistance
  29. 29. © 2015 EnterpriseDB Corporation. All rights reserved. 29 Applications Inventory $5B company – Example •  100 - 150 total applications inventory •  60 - 90 Apps are Custom Apps Custom application footprint •  2 dual socket, quad core servers •  16 cores •  16 cores/app x ~ 50apps = 800 cores Apps of Innovation 20% of all Apps Application of Differentiation 60% of all Apps Application of Record 20% of all Apps Initial Target: 50 Apps Web & Mobile Custom Apps Custom Apps Oracle, SAP, MS Prop. Apps ISV Apps
  30. 30. © 2015 EnterpriseDB Corporation. All rights reserved. 30 Database Migration Assessment 30 Oracle 1. Analyze Oracle schema layout for supported features in PPAS 2. Review features used in Oracle client application 3. Supported features and recommended fixes Difficult Easy 4. Overall composite score and migration plan with workarounds and time estimates
  31. 31. © 2015 EnterpriseDB Corporation. All rights reserved. 31 EDB Postgres Deployment Services Postgres Eval Support Kit Postgres Kick Start • w. Developer Subscription Postgres Team Success Postgres Team Success • w. RDBA Postgres Enterprise Enablement • w. RDBA SolutionCost Postgres Deployment Pre-Deployment Post-Deployment
  32. 32. © 2015 EnterpriseDB Corporation. All rights reserved. 32 Global Training Services •  Online −  Live and interactive training delivered to remote participants by trained EDB personnel (or a contractor) −  1-5 days −  Scheduled in advance; schedules are published at EnterpriseDB.com •  On-Demand −  Pre-recorded training sessions −  4-14 hours −  Available at EnterpriseDB.com •  Off-site Open Enrollment −  Marketed, sold and delivered by EDB Certified Training Partner −  Currently available in EMEA and Asean •  Onsite −  Delivered at the customer site by EDB trained personnel −  Marketed and sold by EDB or EDB Partner (licenses EDB materials) −  1-5 days scheduled as needed
  33. 33. © 2015 EnterpriseDB Corporation. All rights reserved. 33 Summary •  Migrations are no longer impossible •  Compatibility provides −  Lower cost of migrations −  Shorter migration timelines −  Lower risk (you can always go back) •  EnterpriseDB provides −  Oracle compatibility −  Automated tools to migrate from Oracle −  And others: MySQL, Sybase, SQL Server (data & schema) •  Migration Expertise for: −  Planning −  Performing migration −  Testing −  Rollout http://www.enterprisedb.com/solutions/oracle-compatibility
  34. 34. © 2015 EnterpriseDB Corporation. All rights reserved. 34

×