optimizing with open source technology postgres - daseq · providing enterprises with the...

16
© 2013 EDB All rights reserved 8.1. 1 Optimizing with Open Source Technology Postgres Mark Jones [email protected] Sales Engineering, EMEA

Upload: trankhue

Post on 25-Nov-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 1

Optimizing with Open Source Technology Postgres

Mark Jones

[email protected]

Sales Engineering, EMEA

Page 2: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 2

Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability required for high-level commercial applications.

•170+ employees

•2,500+ customers across all market segments

•Global presence with offices in North America, Europe, Asia

•Fast growing: over 60% YOY sales growth in 2013

•Strong financial banking:

© 2013 EnterpriseDB. All rights reserved.

Page 3: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 3

POSTGRESinnovation

ENTERPRISE reliability

24/7 support

Services & training

Enterprise-class features & tools

Indemnification

Product road-map

Responsive, dependable & controlled

Thousands of developers

Fast development

cycles

Low cost

No vendor lock-in

Advanced features

POSTGRES

PLUS ADVANCED SERVER

Get The Best Of Both Worlds

Page 4: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 4

Synchronized with and contributing to the PostgreSQL community

Postgres Plus: A Super-Set of Features

Postgres PlusAdvanced Server

EDB DEVELOPMENT

Community Needs

Enterprise Needs

PostgreSQL

Contributions

Page 5: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 5

Postgres Plus: everything in PostgreSQL PLUS...

5

Security:• Fine Grained Audit Logging• Row Level Security (VPD)• SQL Injection attack guard• Server-side code protection• EAL2 certification

Bundled Tools:• Oracle & SQL Server to

Postgres replication • Enterprise management,

monitoring, and tuning• Oracle & SQL Server to

Postgres Migration Tools• Update Monitor

Oracle Compatibility:• 60% of customers migrate

in <2 weeks• PL/SQL, OCI support• Oracle SQL extensions• User defined objects• Function packages• Database links• Oracle-like tools:

EDB*Loader, EDB*Plus, EDB*Wrap

Performance:• Partitioning:

-400x faster writes -76x faster selects

• SQL Profiler--find / fix slow SQL workloads

• Bulk Data Loader--2x faster• Index Advisor—speeds up

slow queries• Query Hints--optimizer control• DynaTune—auto-tunes for memory upgrades• Bulk Collect/Fetch/Binding of arrays• Dynamic runtime statistics reveals SQL wait bottlenecks

ORACLE COMPATIBILITYPostgres Plus

Advanced Server PostgreSQLPERFORMANCE

Page 6: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 6

Oracle Compatibility

Page 7: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 7

• Run applications written for Oracle virtually unchanged

• No need to re-train Oracle DBAs and developers • Support for PL/SQL language and OCI interoperability• Replication for easy sharing of data

7

Oracle Compatibility

Page 8: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 8

Survey: Re-Use of Oracle DBA Skills

Page 9: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 9

Compatibility Means:• 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− (not supported by PostgreSQL)

• Tools− EDB*Plus – SQL*Plus look-a-like− EDB*Loader – SQL*Loader equivalent− EDB*Wrap – similar to the PL/SQL wrapper

9CONFIDENTIAL© 2011 EnterpriseDB. All rights reserved.

Page 10: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 10

Compatibility (continued)• 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

10CONFIDENTIAL© 2011 EnterpriseDB. All rights reserved.

Page 11: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 11

Compatibility (continued)• Data Types

− Integer, number, char, double precision, float, varchar2, blob, clob, xmltype, rowid

• Built-in Packages− DBMS_:

− SQL, LOB, JOB, PIPE, ALERT, OUTPUT, UTILITY, PROFILER

− UTL_:− FILE, MAIL, SMTP, ENCODE, TCP

• 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 11CONFIDENTIAL© 2011 EnterpriseDB. All rights reserved.

Page 12: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 12

Oracle Migration Assessment

Page 13: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 13

Assessing Ease of Migration

13

Analyze Oracle Schema Layout:1

Static Analysis of Oracle Schemaand database layout

2 Review features used in Oracle client application:

Static Analysis of Source Code

Developer Interviews

Supported features in PPAS & required work-arounds (database)

Supported features in PPAS & required work-arounds (database)

Supported features in PPAS & required work-arounds (application)

Supported features in PPAS & required work-arounds (application)

Page 14: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 14

Assessing Ease of Migration (con’t)

14

• Score of 1 – 10 assigned based on analysis of steps 1 and 2

− 1 difficult – 10 minimal effort

• Work arounds for identified missing features

• Time estimates given in person weeks

4 Migration Plan

Detailed report describing supported features along with elaboration of issues and recommended fixes to ensure seamless migration of production database. (database & application)

Detailed report describing supported features along with elaboration of issues and recommended fixes to ensure seamless migration of production database. (database & application)

3 Evaluate results along 5 axis using proven algorithms:

Page 15: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 15

Database Migration Toolkit

• Online Migration Toolkit enables point and click migration from Oracle

• Automatically Migrates:

Data Schemas Stored Procedures Triggers Functions

Sequences Packages Views Database Links Synonyms

Page 16: Optimizing with Open Source Technology Postgres - DASEQ · Providing enterprises with the cost-performance benefits of Postgres by offering the products, resources, support and dependability

© 2013 EDB All rights reserved 8.1. 16

Migration Example