SlideShare a Scribd company logo
EQUNIX PostgreSQL Professional Gathering
Plaza Semanggi 9 Fl, Unit 9
Jl. Jend Sudirman Kav 50, Jakarta - 12930 Indonesia
8 Eu Tong Street, #14-94, THE CENTRAL Singapore
+6221-22866662 | info@equnix.asia
Oracle to PostgreSQL,
A Challenge or Opportunity?
Copyright Notice
This document is owned by Equnix Business Solutions PTE LTD. This document contains
confidential information, which is protected by law. No part of this publication could be
photocopied, reproduced or translated into another language without permitted or the
express written consent of Equnix Business Solutions PTE LTD.
Data and information regarding the proposal and its offer is for limited use and are not
disclosed. The information contained in this document is subject to change at any time
without prior notice.
All rights reserved, © Copyright 2019
Equnix Business Solutions, PT
Equnix Business Solutions, PTE Ltd
We are EQUNIX.ASIA, we are:
info@equnix.asia | http://equnix.asia
Mission
Critical
Services
World Class
Software
Development
System
Optimization
Expertise
Open Source is the New Enterprise
RDBMS Trend from time to time
What is the real
“MONSTER” we are facing?
RDBMS - L'histoire de development
A relational database management system (RDBMS) is a database management
system (DBMS) that is based on the relational model as introduced by E. F. Codd in
1970, of IBM's San Jose Research Laboratory. Many popular databases currently in
use are based on the relational database model.
RDBMS - A.C.I.D
Atomicity
Either all of transaction happens or nothing
Consistency
Database is brought from one consistent state to
another
Durability
After commit, the transaction is permanent/durable.
No data lost potential
Isolation
The effects of transaction may not be visible to other
transactions until the transaction committed
Oracle to PostgreSQL, Challenges to Opportunity.pdf
PostgreSQL is ENTERPRISE
PostgreSQL is an ENTERPRISE
Level database
(does not even require commercial license)
The Compatibility
SQL ANSI Coverage
Full Core conformance = 179 features on Core SQL 2011 (and 2008)
PostgreSQL conforms to at least 160.
Features Oracle PostgreSQL
Parallelism Requires Hint Automatically Loaded on
SELECT
Table Partitioning Supported Supported
Tablespace Supported Supported
Stored Procedures &
Functions
Supported Supported
Online Backup Active
DataGuard/GoldenGate
Natively
PostgreSQL ENTERPRISE Features
Reliability:
Secure Data Access;
Financial Cryptography;
100% Ensure Durability
Availability:
Replication;
Advanced Recovery;
High Availability;
Uptime warranty up to: 99,99%
Scalability:
Hi Perf Tuning;
Scale Up/Scale Out;
Clustering;
Big Machine VS BIG Machine
EXADATA to PostgreSQL?
7 times faster than Oracle.
PostgreSQL Native Mirroring
Write-Ahead Log
1. Cold Backup (Offline mode)
Stores data into a offline mode (file dump). There are 2 kinds of cold backup:
a. Full Backup,
Use SQL dump, or just copy the whole datadir
b. Incremental Backup.
Logs the archive and play back later.
2. Warm Backup
The backup machine is up and running, but the service is not ready yet, usually
caused by the disk synchronization (PPRC service or DRBD). So the backup is done by 3rd party other than
database itself.
3. Hot Backup
The backup is on-line, and the service is also ready to serve. It is already hot, as hot as the Master / Main
server. There are some kind of Hot backup:
a. Synchronous Replication,
b. Asynchronous Replication,
c. Multi Master Replication
Multi-tier Backup Features
A Backup is not a “backup” if cannot be restored
Point-in-Time Recovery mechanism, allows you to go “Back to the Future” to timeline you
decide
Recovering an accidentally dropped data? Auditing a suspicious event on your database?
Can be used to replay transactions from last week until a specific day.
Point-in-Time Recovery
High Availability amongst PostgreSQL
Enterprise Level High Availability
configuration without hassle
Keep It Simple, SUCCESS!
Winning Stories - EDII
Oracle Migration
From 4 Servers Oracle RAC
System
Into 1 Server Intel
PostgreSQL
EDII - Current Topology
Jumping over the
“Rainbow”
Migration STAGES
Migration Stages
A. Migration Assessment
a. Preliminary
b. Comprehensive
B. Report and Brainstorming
C. Migration Preparation
a. Schematic Migration
b. Data Migration (Test and clean up)
c. Logic Migration
~To win the battle, you must understand your
enemy~ Sun Tzu.
D. System Migration
a. Finalization Rundown
b. 1st Rehearsal
c. Evaluation
d. 2nd Rehearsal (if needed)
e. Evaluation
f. Migration!
Migration Assessment
Preliminary Assessment
Given a couple of days (2 days) to
analyze all the database Objects briefly
to get some ideas on how long it take to
do such Comprehensive Assessment.
Look for potential Stopper: System
Functions, Customization possibility,
Specific Function/Datatype, Allowable
Downtime, Any potential copyright
infringement, etc. Develop Mitigation,
solution and possibility workaround.
Comprehensive Assessment
Assess all the object mentioned in the
scope of work, very detailed. Produce
Comprehensive Assessment Report,
consist:
1. Level of Difficulties
2. How many Mandays Effort
3. Migration Schedules
4. Proposed Migration Rundown
5. Analysis Report
(This is Commercial Effort)
Schematic Migration
Most of the Structures are compatible with PostgreSQL (even not 100%).
Prepare the “bucket” first, then the “water”
❖ Dump all database object structures (tables, sequences, views, etc.)
❖ Check whether specific data types should be converted
❖ User Defined Types should be deeply examined
❖ Constraints (PK, FK, Uniqueness, Indices) will be recreated in
PostgreSQL, as long as Database Object Relationship is kept consistent
Data Migration - Analysis
Migration Data from Oracle to PostgreSQL is dealing with downtime and
ETL, and somehow it needs very fast.
❖ How much is the Downtime tolerance
❖ Housekeep data from Oracle Source Database
❖ Doing Stress Test to the pre-migrated data
❖ Using FDW/ETL Tools, it is possible to start synchronizing data without
interrupting current Transactional Process on Source Database
Logic Migration - Analysis
Logic conversion is the PAIN, when doing migration.
Requires a deep understanding on how the function works.
❖ Streamline the Logic
❖ How many total line of codes used on Stored
Procedures/Functions/Packages
❖ Is there any Oracle specific functions used?
❖ Create a mimic for called functions, as long as output is the same
❖ PostgreSQL is highly extensible platform, if not supported yet, we can
create it as long as we have the expertise
❖ Do System Integration and Regression Test with application
System Migration - Analysis
1. How long downtime can be tolerate by
Management?
2. Based on the finding from Data
Migration, we can understand how long
it take to migration the live data, this is
the main consideration to develop
Rundown System Migration
3. How many Instance Application involve
in the System Migration?
4. How many party involved in System
Migration?
Goal:
1. Develop Rundown System Migration
2. Develop fallback scenario
3. Rehearse Rundown System
Migration smoothly
4. Develop rock solid Rundown and its
fallback plan.
5. Ensure it can be run within
constraints
6. RUN SYSTEM MIGRATION
Case Study 1 (by Chris Travers)
Bioprospecting platform by a Danish biotech company
❖ 12TB of genome and protein data
❖ 100 million transactions a day
❖ 12TB of genome and protein data
❖ 100 million transactions a day or more
❖ Main workload similar to most line of business or financial applications
❖ Single PostgreSQL server backing 1000 core scientific computing cluster
running 24x7
Case Study 2 (by Chris Travers)
Advertising Analytics Platform by German Ad
❖ 1PB of mobile event data
❖ 1-300000 requests a second
❖ Near-real-time analytics
❖ Queries similar to data warehouses
❖ Distributed, “Big Data” environment
Technology - Foreign Data Wrapper (FDW)
PostgreSQL has a useful feature called Foreign Data Wrapper, which lets you
create foreign tables in a PostgreSQL database from other data source.
When you make a query against a foreign table, the Foreign Data Wrapper
will query the external data source and return the results as if they were
coming from a table in your database.
FDW - High Integration
Enterprise ETL Tools
DATABASE AGGREGATION
Head Office
TABLE A
(Subscriber)
DATABASE
Medan
TABLE A
(Publisher)
DATABASE
Bandung
TABLE A
(Publisher)
TABLE C
(Subscriber)
TABLE D
(Subscriber)
TABLE B
(Subscriber)
DATABASE
Surabaya
TABLE A
(Publisher)
DATABASE
Jakarta
TABLE A
(Publisher)
Table Replication (Realtime)
Geographic Information System
JSON = NoSQL in PostgreSQL
PostgreSQL Ecosystem
Financial
Services
Factory Oil & Gas Retail Insurance
Training Research
Contributor Developer Professional
Industries
Education
Certification
Community
Provider
PostgreSQL World Conference - Ottawa
PostgreSQL World Conference - Ottawa
PGDay ASIA in Singapore - 2017
PGDay ASIA in Singapore - 2017
PGConf ASIA - Japan - 2014
PGConf ASIA - Japan - 2015
PGConf ASIA - Japan - 2017
PostgreSQL Meetup Indonesia
Equnix Campus Campaign
Equnix Campus Campaign Semarang
Equnix Campus Campaign Bali
PGConf ASIA - Indonesia Bali 2019
We will held an International Event in Sept
2019, it is PostgreSQL Conference Asia in Bali
2019.
Please come there, meet and greet with
Developers, Architects, Geeks, Hackers,
Beaches, Suns, etc
Oracle to PostgreSQL, Challenges to Opportunity.pdf

More Related Content

PDF
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
PPTX
Migration from Oracle to PostgreSQL: NEED vs REALITY
PDF
Migration From Oracle to PostgreSQL
PDF
TechEvent 2019: Oracle to PostgreSQL - a Travel Guide from Practice; Roland S...
PDF
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
PPTX
Migrate to platform of your choice
PDF
Reducing Database Pain & Costs with Postgres
 
PPTX
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
 
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
Migration from Oracle to PostgreSQL: NEED vs REALITY
Migration From Oracle to PostgreSQL
TechEvent 2019: Oracle to PostgreSQL - a Travel Guide from Practice; Roland S...
Agile Oracle to PostgreSQL migrations (PGConf.EU 2013)
Migrate to platform of your choice
Reducing Database Pain & Costs with Postgres
 
Ein Expertenleitfaden für die Migration von Legacy-Datenbanken zu PostgreSQL
 

Similar to Oracle to PostgreSQL, Challenges to Opportunity.pdf (20)

PPTX
EDB's Migration Portal - Migrate from Oracle to Postgres
 
PDF
A Journey from Oracle to PostgreSQL
 
PPTX
Oracle to Postgres Schema Migration Hustle
 
PDF
Conquering Data Migration from Oracle to Postgres
 
PDF
The Real Scoop on Migrating from Oracle Databases
 
PPT
Manager's Guide To Oracle Cost Containment
 
PPTX
Migrating from legacy Database to Postgres
PPTX
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
 
PDF
Sponsored Talk @ PGConf APAC 2018 - Migrating Oracle to EDB Postgres Approach...
PPTX
How to Migrate from Oracle to EDB Postgres
PPTX
How to migrate from Oracle to EDB Postgres
PDF
EPAS + Cloud = Oracle Compatible Postgres in Minutes
 
PDF
Stumbling stones when migrating from Oracle
 
PPTX
Transform your DBMS to drive engagement innovation with Big Data
PDF
Migrating from Oracle to Postgres
 
PDF
Elephants vs. Dolphins: Comparing PostgreSQL and MySQL for use in the DoD
PPTX
Expert Guide to Migrating Legacy Databases to Postgres
 
PPTX
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
PDF
Which postgres is_right_for_me_20130517
 
PDF
Key Methodologies for Migrating from Oracle to Postgres
 
EDB's Migration Portal - Migrate from Oracle to Postgres
 
A Journey from Oracle to PostgreSQL
 
Oracle to Postgres Schema Migration Hustle
 
Conquering Data Migration from Oracle to Postgres
 
The Real Scoop on Migrating from Oracle Databases
 
Manager's Guide To Oracle Cost Containment
 
Migrating from legacy Database to Postgres
Un guide complet pour la migration de bases de données héritées vers PostgreSQL
 
Sponsored Talk @ PGConf APAC 2018 - Migrating Oracle to EDB Postgres Approach...
How to Migrate from Oracle to EDB Postgres
How to migrate from Oracle to EDB Postgres
EPAS + Cloud = Oracle Compatible Postgres in Minutes
 
Stumbling stones when migrating from Oracle
 
Transform your DBMS to drive engagement innovation with Big Data
Migrating from Oracle to Postgres
 
Elephants vs. Dolphins: Comparing PostgreSQL and MySQL for use in the DoD
Expert Guide to Migrating Legacy Databases to Postgres
 
An Expert Guide to Migrating Legacy Databases to PostgreSQL
 
Which postgres is_right_for_me_20130517
 
Key Methodologies for Migrating from Oracle to Postgres
 

More from Equnix Business Solutions (20)

PDF
Yang perlu kita ketahui Untuk memahami aspek utama IT dalam bisnis_.pdf
PDF
Kebocoran Data_ Tindakan Hacker atau Kriminal_ Bagaimana kita mengantisipasi...
PDF
Kuliah Tamu - Dari Proses Bisnis Menuju Struktur Data.pdf
PDF
EWTT22_ Apakah Open Source Cocok digunakan dalam Korporasi_.pdf
PDF
[EWTT2022] Strategi Implementasi Database dalam Microservice Architecture.pdf
PDF
PostgreSQL as Enterprise Solution v1.1.pdf
PDF
Webinar2021 - Does HA Can Help You Balance Your Load-.pdf
PDF
Webinar2021 - In-Memory Database, is it really faster-.pdf
PDF
EQUNIX - PPT 11DB-Postgres™.pdf
PPTX
equpos - General Presentation v20230420.pptx
PDF
Equnix Appliance- Jawaban terbaik untuk kebutuhan komputasi yang mumpuni.pdf
PDF
OSPX - Professional PostgreSQL Certification Scheme v20201111.pdf
PDF
Equnix Company Profile v20230329.pdf
PDF
PGConf.ASIA 2019 - The Future of TDEforPG - Taiki Kondo
PDF
PGConf.ASIA 2019 - PGSpider High Performance Cluster Engine - Shigeo Hirose
PDF
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
PDF
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 3 - Kohei KaiGai
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
PDF
PGConf.ASIA 2019 Bali - Keynote Speech 1 - Bruce Momjian
Yang perlu kita ketahui Untuk memahami aspek utama IT dalam bisnis_.pdf
Kebocoran Data_ Tindakan Hacker atau Kriminal_ Bagaimana kita mengantisipasi...
Kuliah Tamu - Dari Proses Bisnis Menuju Struktur Data.pdf
EWTT22_ Apakah Open Source Cocok digunakan dalam Korporasi_.pdf
[EWTT2022] Strategi Implementasi Database dalam Microservice Architecture.pdf
PostgreSQL as Enterprise Solution v1.1.pdf
Webinar2021 - Does HA Can Help You Balance Your Load-.pdf
Webinar2021 - In-Memory Database, is it really faster-.pdf
EQUNIX - PPT 11DB-Postgres™.pdf
equpos - General Presentation v20230420.pptx
Equnix Appliance- Jawaban terbaik untuk kebutuhan komputasi yang mumpuni.pdf
OSPX - Professional PostgreSQL Certification Scheme v20201111.pdf
Equnix Company Profile v20230329.pdf
PGConf.ASIA 2019 - The Future of TDEforPG - Taiki Kondo
PGConf.ASIA 2019 - PGSpider High Performance Cluster Engine - Shigeo Hirose
PGConf.ASIA 2019 - High Availability, 10 Seconds Failover - Lucky Haryadi
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Keynote Speech 3 - Kohei KaiGai
PGConf.ASIA 2019 Bali - Keynote Speech 2 - Ivan Pachenko
PGConf.ASIA 2019 Bali - Keynote Speech 1 - Bruce Momjian

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Cloud computing and distributed systems.
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Understanding_Digital_Forensics_Presentation.pptx
Cloud computing and distributed systems.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Network Security Unit 5.pdf for BCA BBA.
20250228 LYD VKU AI Blended-Learning.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Big Data Technologies - Introduction.pptx
Empathic Computing: Creating Shared Understanding
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Oracle to PostgreSQL, Challenges to Opportunity.pdf

  • 1. EQUNIX PostgreSQL Professional Gathering Plaza Semanggi 9 Fl, Unit 9 Jl. Jend Sudirman Kav 50, Jakarta - 12930 Indonesia 8 Eu Tong Street, #14-94, THE CENTRAL Singapore +6221-22866662 | info@equnix.asia Oracle to PostgreSQL, A Challenge or Opportunity?
  • 2. Copyright Notice This document is owned by Equnix Business Solutions PTE LTD. This document contains confidential information, which is protected by law. No part of this publication could be photocopied, reproduced or translated into another language without permitted or the express written consent of Equnix Business Solutions PTE LTD. Data and information regarding the proposal and its offer is for limited use and are not disclosed. The information contained in this document is subject to change at any time without prior notice. All rights reserved, © Copyright 2019 Equnix Business Solutions, PT Equnix Business Solutions, PTE Ltd
  • 3. We are EQUNIX.ASIA, we are: info@equnix.asia | http://equnix.asia Mission Critical Services World Class Software Development System Optimization Expertise
  • 4. Open Source is the New Enterprise
  • 5. RDBMS Trend from time to time
  • 6. What is the real “MONSTER” we are facing?
  • 7. RDBMS - L'histoire de development A relational database management system (RDBMS) is a database management system (DBMS) that is based on the relational model as introduced by E. F. Codd in 1970, of IBM's San Jose Research Laboratory. Many popular databases currently in use are based on the relational database model.
  • 8. RDBMS - A.C.I.D Atomicity Either all of transaction happens or nothing Consistency Database is brought from one consistent state to another Durability After commit, the transaction is permanent/durable. No data lost potential Isolation The effects of transaction may not be visible to other transactions until the transaction committed
  • 10. PostgreSQL is ENTERPRISE PostgreSQL is an ENTERPRISE Level database (does not even require commercial license)
  • 11. The Compatibility SQL ANSI Coverage Full Core conformance = 179 features on Core SQL 2011 (and 2008) PostgreSQL conforms to at least 160. Features Oracle PostgreSQL Parallelism Requires Hint Automatically Loaded on SELECT Table Partitioning Supported Supported Tablespace Supported Supported Stored Procedures & Functions Supported Supported Online Backup Active DataGuard/GoldenGate Natively
  • 12. PostgreSQL ENTERPRISE Features Reliability: Secure Data Access; Financial Cryptography; 100% Ensure Durability Availability: Replication; Advanced Recovery; High Availability; Uptime warranty up to: 99,99% Scalability: Hi Perf Tuning; Scale Up/Scale Out; Clustering;
  • 13. Big Machine VS BIG Machine
  • 15. 7 times faster than Oracle.
  • 17. 1. Cold Backup (Offline mode) Stores data into a offline mode (file dump). There are 2 kinds of cold backup: a. Full Backup, Use SQL dump, or just copy the whole datadir b. Incremental Backup. Logs the archive and play back later. 2. Warm Backup The backup machine is up and running, but the service is not ready yet, usually caused by the disk synchronization (PPRC service or DRBD). So the backup is done by 3rd party other than database itself. 3. Hot Backup The backup is on-line, and the service is also ready to serve. It is already hot, as hot as the Master / Main server. There are some kind of Hot backup: a. Synchronous Replication, b. Asynchronous Replication, c. Multi Master Replication Multi-tier Backup Features
  • 18. A Backup is not a “backup” if cannot be restored Point-in-Time Recovery mechanism, allows you to go “Back to the Future” to timeline you decide Recovering an accidentally dropped data? Auditing a suspicious event on your database? Can be used to replay transactions from last week until a specific day. Point-in-Time Recovery
  • 19. High Availability amongst PostgreSQL Enterprise Level High Availability configuration without hassle Keep It Simple, SUCCESS!
  • 20. Winning Stories - EDII Oracle Migration From 4 Servers Oracle RAC System Into 1 Server Intel PostgreSQL
  • 21. EDII - Current Topology
  • 23. Migration STAGES Migration Stages A. Migration Assessment a. Preliminary b. Comprehensive B. Report and Brainstorming C. Migration Preparation a. Schematic Migration b. Data Migration (Test and clean up) c. Logic Migration ~To win the battle, you must understand your enemy~ Sun Tzu. D. System Migration a. Finalization Rundown b. 1st Rehearsal c. Evaluation d. 2nd Rehearsal (if needed) e. Evaluation f. Migration!
  • 24. Migration Assessment Preliminary Assessment Given a couple of days (2 days) to analyze all the database Objects briefly to get some ideas on how long it take to do such Comprehensive Assessment. Look for potential Stopper: System Functions, Customization possibility, Specific Function/Datatype, Allowable Downtime, Any potential copyright infringement, etc. Develop Mitigation, solution and possibility workaround. Comprehensive Assessment Assess all the object mentioned in the scope of work, very detailed. Produce Comprehensive Assessment Report, consist: 1. Level of Difficulties 2. How many Mandays Effort 3. Migration Schedules 4. Proposed Migration Rundown 5. Analysis Report (This is Commercial Effort)
  • 25. Schematic Migration Most of the Structures are compatible with PostgreSQL (even not 100%). Prepare the “bucket” first, then the “water” ❖ Dump all database object structures (tables, sequences, views, etc.) ❖ Check whether specific data types should be converted ❖ User Defined Types should be deeply examined ❖ Constraints (PK, FK, Uniqueness, Indices) will be recreated in PostgreSQL, as long as Database Object Relationship is kept consistent
  • 26. Data Migration - Analysis Migration Data from Oracle to PostgreSQL is dealing with downtime and ETL, and somehow it needs very fast. ❖ How much is the Downtime tolerance ❖ Housekeep data from Oracle Source Database ❖ Doing Stress Test to the pre-migrated data ❖ Using FDW/ETL Tools, it is possible to start synchronizing data without interrupting current Transactional Process on Source Database
  • 27. Logic Migration - Analysis Logic conversion is the PAIN, when doing migration. Requires a deep understanding on how the function works. ❖ Streamline the Logic ❖ How many total line of codes used on Stored Procedures/Functions/Packages ❖ Is there any Oracle specific functions used? ❖ Create a mimic for called functions, as long as output is the same ❖ PostgreSQL is highly extensible platform, if not supported yet, we can create it as long as we have the expertise ❖ Do System Integration and Regression Test with application
  • 28. System Migration - Analysis 1. How long downtime can be tolerate by Management? 2. Based on the finding from Data Migration, we can understand how long it take to migration the live data, this is the main consideration to develop Rundown System Migration 3. How many Instance Application involve in the System Migration? 4. How many party involved in System Migration? Goal: 1. Develop Rundown System Migration 2. Develop fallback scenario 3. Rehearse Rundown System Migration smoothly 4. Develop rock solid Rundown and its fallback plan. 5. Ensure it can be run within constraints 6. RUN SYSTEM MIGRATION
  • 29. Case Study 1 (by Chris Travers) Bioprospecting platform by a Danish biotech company ❖ 12TB of genome and protein data ❖ 100 million transactions a day ❖ 12TB of genome and protein data ❖ 100 million transactions a day or more ❖ Main workload similar to most line of business or financial applications ❖ Single PostgreSQL server backing 1000 core scientific computing cluster running 24x7
  • 30. Case Study 2 (by Chris Travers) Advertising Analytics Platform by German Ad ❖ 1PB of mobile event data ❖ 1-300000 requests a second ❖ Near-real-time analytics ❖ Queries similar to data warehouses ❖ Distributed, “Big Data” environment
  • 31. Technology - Foreign Data Wrapper (FDW) PostgreSQL has a useful feature called Foreign Data Wrapper, which lets you create foreign tables in a PostgreSQL database from other data source. When you make a query against a foreign table, the Foreign Data Wrapper will query the external data source and return the results as if they were coming from a table in your database.
  • 32. FDW - High Integration
  • 34. DATABASE AGGREGATION Head Office TABLE A (Subscriber) DATABASE Medan TABLE A (Publisher) DATABASE Bandung TABLE A (Publisher) TABLE C (Subscriber) TABLE D (Subscriber) TABLE B (Subscriber) DATABASE Surabaya TABLE A (Publisher) DATABASE Jakarta TABLE A (Publisher) Table Replication (Realtime)
  • 36. JSON = NoSQL in PostgreSQL
  • 38. Financial Services Factory Oil & Gas Retail Insurance Training Research Contributor Developer Professional Industries Education Certification Community Provider
  • 41. PGDay ASIA in Singapore - 2017
  • 42. PGDay ASIA in Singapore - 2017
  • 43. PGConf ASIA - Japan - 2014
  • 44. PGConf ASIA - Japan - 2015
  • 45. PGConf ASIA - Japan - 2017
  • 50. PGConf ASIA - Indonesia Bali 2019 We will held an International Event in Sept 2019, it is PostgreSQL Conference Asia in Bali 2019. Please come there, meet and greet with Developers, Architects, Geeks, Hackers, Beaches, Suns, etc