key methodologies for migrating from oracle to postgres

38
© 2016 EnterpriseDB Corporation. All rights reserved. 1 Migrating from Oracle to Postgres For more information on how your organization can migrate existing applications to Postgres please contact EDB at [email protected]

Upload: enterprisedb

Post on 14-Jan-2017

773 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 1

Migrating from Oracle to Postgres

For more information on how your organization can migrate existing applications to Postgres please contact EDB at [email protected]

Page 2: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 2

Agenda

•  Who is EDB? •  Why migrate? •  Finding the money to migrate

•  How to get started •  Steps to migrate •  How EDB can help

•  Summary •  Q&A

Page 3: Key Methodologies for Migrating from Oracle to Postgres

© 2013 EDB All rights reserved 8.1. 3

Who is EDB?

Page 4: Key Methodologies for Migrating from Oracle to Postgres

© 2016 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

Page 5: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 5

EDB is a Market Leader

The Gartner report, Magic Quadrant for Operational Database Management Systems, by Donald Feinberg, Merv Adrian, Nick Heudecker, Adam Ronthal, and Terilyn Palanca was published October 12, 2015.

Page 6: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 6

EDB is an Open Source Leader

Amit Kapila

Ashesh Vashi

Bruce Momjian

Dave Page

Devrim Gunduz

Jan Wieck

Kevin Grittner

Korry Douglas

Muhammad Usama

Robert M Haas

Thom Brown

Page 7: Key Methodologies for Migrating from Oracle to Postgres

© 2013 EDB All rights reserved 8.1. 7

Why Migrate?

Page 8: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 8

Is keeping the “IT Lights” on costing you business and your future?

Change the “IT” Lights

Page 9: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 9

Little Money For New Initiatives

Competitive Disadvantage

$ t

$

Revenue

DBMS

Customer Engagement

Page 10: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 10

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

Page 11: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 11

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

+

Page 12: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 12

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

Page 13: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 13

t

Transform DBMS

Revenue

DBMS

Customer Engagement

Revenue

DBMS

Customer Engagement

$

t $ $

$

Transform

You Have The Money!

Page 14: Key Methodologies for Migrating from Oracle to Postgres

•  “Nothing beats the reliability of Solaris.”

•  “We will lose customers if we move off Solaris.”

•  “I could not sleep at night if we moved off Solaris.”

•  “We cannot run our business on Linux. We have invested too much in Solaris to move now.”

•  “I built my career and this organization on Solaris!”

You’ve Been Here Before

Page 15: Key Methodologies for Migrating from Oracle to Postgres

© 2013 EDB All rights reserved 8.1. 15

The Key to Unlocking the Money: EDB Postgres Advanced Server

Page 16: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 16

Security

Tools

Performance

Compatibility

EDB POSTGRES

ENTERPRISE

Page 17: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 17

Database Compatibility with Oracle®

Compatible with:

Your Business Your Apps Your People

Everything works On EDB Postgres

Applications Running on Oracle

Oracle Developers

Page 18: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 18

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

Page 19: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 19

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

Page 20: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 20

EDB Migration Toolkit

Page 21: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 21

Survey: Ease of Migration

51% had slight to no modifications

Organizations that migrated Oracle-based applications to EDB Postgres Advanced Server stated the degree to which they had to modify these applications:

We were able to migrate all of our apps from Oracle to PPAS with little to no modifications. Besides saving on annual licensing fees, Database compatibility was our number one priority.

Page 22: Key Methodologies for Migrating from Oracle to Postgres

© 2013 EDB All rights reserved 8.1. 22

How to get started

Page 23: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 23

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

Page 24: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 24

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%

Page 25: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 25

Iterative and Agile Motion Approach

Find the Sweet Spot

Prioritize and Plan Migration

Build the Team

Migrate Deploy

Page 26: Key Methodologies for Migrating from Oracle to Postgres

© 2013 EDB All rights reserved 8.1. 26

Steps to Migrate

Page 27: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 27

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 EDB Postgres 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

Page 28: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 28

Steps to Migrate con’t

28

•  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 EDB

Postgres Advanced Server

•  Rollout −  System becomes production

Page 29: Key Methodologies for Migrating from Oracle to Postgres

© 2013 EDB All rights reserved 8.1. 29

How EDB can help

Page 30: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 30

EDB can help you unlock money in your IT stack to enable you to innovate and compete

Page 31: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 31

Migration Process

Find the Sweet Spot

Migration Assessments

Migration Plans

Migrate Deploy

Page 32: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 32

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

Page 33: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 33

Database Migration Assessment

33

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

Page 34: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 34

•  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

•  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

Global Training Services

Page 35: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 35

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

Sol

utio

n C

ost

Postgres Deployment Pre-Deployment Post-Deployment

Page 36: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 36

•  DBMS Migrations to Open Source are the Next Wave −  Migrations are no longer impossible −  Others have done – you can do it too!

•  Compatibility tools are key −  Faster −  Cheaper −  Less risk

•  EnterpriseDB provides −  Oracle compatibility −  Automated tools to migrate from Oracle

(data, schema, stored procedures) −  Automated tools to migrate from MySQL, Sybase, SQL Server

(data, schema) −  Migration Expertise

Summary

Page 37: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 37

The Time is Now Transform your IT Core to Fund Customer Engagement Innovation

“With EDB Postgres Advanced Server, we found a solution that not only provided exceptional performance, but made it easy to migrate existing data ... we were better able to control software costs.” Steve Akers, CIO, Genscape

“Open-source relational DBMSs (RDBMSs) have matured and today can be considered by information leaders, DBAs and application development management as a standard infrastructure choice for a large majority of new enterprise applications.” Gartner Report , The State of Relational Open Source DBMSes, 2015

Page 38: Key Methodologies for Migrating from Oracle to Postgres

© 2016 EnterpriseDB Corporation. All rights reserved. 38