
Migration Life Cycle from Oracle & DB2 to PostgreSQL Data Platforms
Explore the comprehensive life cycle stages, reasons, methods, and considerations for migrating data from Oracle and DB2 to PostgreSQL. Learn why, what, how, and when to migrate, along with insights on data types, volume compatibility, and migration assessment.
Download Presentation

Please find below an Image/Link to download the presentation.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.
You are allowed to download the files provided on this website for personal or commercial use, subject to the condition that they are used lawfully. All files are the property of their respective owners.
The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author.
E N D
Presentation Transcript
Life Cycle of Migration from Oracle DB2 to PostgreSQL Abhinav Sagar Premnath Jangam
WHY ? WHAT ? HOW ? WHEN ?
Why to Migrate? Profit Profit Cost of the Product Product enhancement
How to Migrate? Oracle /DB2 PostgreSQL Data Conversion/Loading
When to Migrate ? Enough time to migrate and validate Less business impact due to downtime. After data purge retention.
Product/Application Categorization Application Categorization Choose Product/Application Complexity of code Business impact Cost of product Low Medium High Complexity (C) Business Impact (B) Product cost (P) C B P Reduce cost in less effort and time with high profitability. More time and high risk with High profitability
Datatypes Compatibility Data Types Oracle DB2 PostgreSQL Integer NUMBER INTEGER INTEGER Decimal NUMBER Decimal Numeric, Decimal String CHAR,VARCHAR2,CLOB CHAR,VARCHAR CHAR,VARCHAR Binary BLOB BLOB BYTEA DATA/TIME DATE, TIMESTAMP(with/without TIMEZONE) DATE, TIMESTAMP(without TIMEZONE) DATE, TIMESTAMP(with/without TIMEZONE) Boolean no no Yes XMLTYPE XMLTYPE XML XML JSON VARCHAR2,CLOB BSON JSONB
Data Volume Compatibility Capabilities Oracle DB2 PostgreSQL Max. Database Size Unlimited Unlimited Unlimited Max. Table Size 4GB * Block Size ~2.8TB 32TB Max. Row Size 4TB N/A 1.6TB Max. Field Size For BLOB: (4GB -1) * DB_BLOCK_SIZE Initialization Parameter N/A 1GB Max. Rows per Table Unlimited ~4.2Billion Unlimited Max. Columns per Table 1000 ~750 250 1600 Depending on Column types Max. Indexes per Table Unlimited N/A Unlimited
Programming Compatibility Program Oracle DB2 PostgreSQL Triggers Compound Triggers Cursors Ref Cursors Anonymous Blocks Bind Bulk Collect Parallel query Cast Pl/Sql supplied packages Pragma Autonomous transactions User defined functions Stored Procedures yes yes yes yes yes Yes Yes Yes Yes Yes Yes yes no yes yes yes yes yes yes Yes Yes Yes yes no yes no Yes Yes No Yes Yes No Yes Yes Yes Yes Yes Yes Yes (From 11+ version)
Resource Planning Hardware OS Dependent packages Required Tools Resource Identification Knowledge Transfer Test Strategy Any Migration Tool (Ora2Pg) Data Loaders PgAdmin Foreign data wrappers(FDW)
Capacity planning & Server build CPU RAM Storage Network Backup strategy
Schema & Code conversion PostgreSQL ANSI standard SQL syntax and datatypes make converting your database schema from other relational databases a fairly straight forward process. Sometimes migrated code requires manual resolution. If the code is embedded in application that interfaces with the database has to be modified.
Data migration & Sync There are different approaches to data migration depending on the size of the data to be migrated. Example tools : 1. Ora2Pg 2. PG_loaders 3. Slony 4. db_links 5. Foreign data wrappers
Testing & Tuning Application connectivity pg_hba.conf entries User permissions/Grants Examples: PgAdmin - for data validations Resource utilization by OS & Database Memory CPU I/O Database Logs Locks Query performance
Testing & Tuning (cont..) Backups and recoveries with in SLA HA configuration & DR Configuring alerting Vacuum Reindex Reorganization (Maintenance)
Production Go-Live Pointing DNS entries First Steps connections (Read-only) Transactional part Reporting Application dashboards
Decommission of Oracle/DB2 servers Export code from Oracle/DB2 in to dump files. Backup DB/OS configuration. Decommission the Database.