migrating from oracle to postgres
TRANSCRIPT
© 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
© 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
© 2013 EDB All rights reserved 8.1. 3
Who is EDB?
© 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
© 2013 EDB All rights reserved 8.1. 5
Why Migrate?
© 2015 EnterpriseDB Corporation. All rights reserved. 6
Is keeping the “IT Lights” on costing you business and your future?
Change the “IT” Lights
© 2015 EnterpriseDB Corporation. All rights reserved. 7
Little Money For New Initiatives
Competitive Disadvantage
$ t
$
Revenue
DBMS
Customer Engagement
© 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
© 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
+
© 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
© 2015 EnterpriseDB Corporation. All rights reserved. 11
t
Transform DBMS
Revenue
DBMS
Customer Engagement
Revenue
DBMS
Customer Engagement
$
t $ $
$
Transform
You Have The Money!
© 2013 EDB All rights reserved 8.1. 12
The Key to Unlocking the Money: Postgres Plus Advanced Server
© 2015 EnterpriseDB Corporation. All rights reserved. 13
Security
Tools
Performance
Compatibility
ADVANCED SERVER
POSTGRES
PLUS
© 2015 EnterpriseDB Corporation. All rights reserved. 14
Database Compatibility with Oracle®
Compatible with:
Your Business Your Apps Your People
Everything works On EDB Postgres
Applications Running on Oracle
Oracle Developers
© 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
© 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
© 2015 EnterpriseDB Corporation. All rights reserved. 17
EDB Migration Toolkit
© 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
© 2013 EDB All rights reserved 8.1. 19
How to get started
© 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
© 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%
© 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
© 2013 EDB All rights reserved 8.1. 23
Steps to Migrate
© 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
© 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
© 2013 EDB All rights reserved 8.1. 26
How EDB can help
© 2015 EnterpriseDB Corporation. All rights reserved. 27
EDB can help you unlock money in your IT stack to enable you to innovate and compete
© 2015 EnterpriseDB Corporation. All rights reserved. 28
Build a Migration Baseline Migration Services
Migration Opportunity Assessment
Migration Assessments
Migration Plans
Training Classes Migration Assistance
© 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
© 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
© 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
Sol
utio
n C
ost
Postgres Deployment Pre-Deployment Post-Deployment
© 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
© 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
© 2015 EnterpriseDB Corporation. All rights reserved. 34