SlideShare a Scribd company logo
Oracle Migrations and
Upgrades
Approaches, Challenges and Solutions
About me
 Technology leader and evangelist with deep dive expertise in
databases, data warehousing, data integration using tools like
Oracle, Goldengate, Informatica, Hadoop eco system, HBase,
Cassandra, MongoDB etc.
 Executed zero downtime cross platform migration and upgrade of
10 Terabyte MDM database for Citigroup using Goldengate and
custom code.
 Executed minimum downtime cross data center, cross platform
migration and upgrade of 150 Terabyte Data Warehouse
databases from Mexico to US using custom tool built using
PL/SQL
Overview
 Oracle is synonym for relational database and is extensively used
for mission critical online and transactional systems. It is leading
and most advanced relational database and Oracle consistently
releases minor as well as major releases with new features.
Enterprises needs to upgrade their Oracle databases to leverage
these new features. Lately most of the enterprises are
consolidating the hardware to cut down the operational costs.
Upgrades and consolidation effort requires migration of the
databases.
Upgrade and
Migration
requirements
 Upgrades
In place upgrade
Out of place upgrade
 Migrations
Zero downtime migration
Minimal downtime migration
Cross platform migration (might include non ASM to ASM)
Cross datacenter migration
Tools and
Techniques
 Backup, Restore and Recover
 Export and Import using Datapump
 ETL tools – is not very good approach and hence out of scope for
discussion
 Custom Tools
* Goldengate needs to be used for zero down time migration
In Place
Upgrade
 Steps
Bring down the applications and shutdown the database
Perform in place upgrade
Start the database and bring up the applications
 Advantages
It is most straight forward way of upgrading Oracle databases
It works very well for smaller to medium databases which can
entertain few hours of down time
 Challenges
Not practical to upgrade multi terabyte large databases
Out of place
Upgrade
 Steps
Build the target database with desired version
Migrate data from source database to target database
Redirect applications to the target database
 Considerations
Reliable testing framework
Solid fall back plan for any unforeseen issues
Pre migrate as much data as possible
Performance testing
Migrations
 Migrations as part of upgrade
 Zero downtime migration
 Minimal downtime migration
 Cross platform migration (might include non ASM to ASM)
 Cross datacenter migration
* At times we need to do multiple things as part of migration
Migrations –
Zero
Downtime
 Build target database
 Migrate data to target database
 Set up Goldengate replication to keep databases in synch
 Set up Veridata to validate data is in synch
 Test applications against target database. Make sure target
database performs better or at similar level to source database.
 Perform first 4 steps (if you use snapshot for testing application
there is no need to rebuild)
 Cut over applications to target database
 Set up reverse replication for desired amount of time (from new
database to old one)
 Delete the old database after confirming migration/upgrade is
successful
Migrations –
Non Zero
Downtime
 Build target database
 Migrate all the historic and static data to target database
 Develop catch up process to catch up delta
 Run catch up process at regular intervals
 Test applications against target database. Make sure target
database performs better or at similar level to source database.
 Cut over applications to target database
 Test all the reports that requires latest data thoroughly
 Enable ETL process on the target database
 If possible continue running ETL on both source database and
target database (for a fall back plan)
Migrations –
Challenges
 Volume (if improperly planned)
Cost of the migration effort will grow exponentially with the volume
of data
Requires additional storage on both source and target
Copy can take enormous amount of time
 Availability
Cutover time is critical for most of the databases. It should be either
zero or as minimum as possible
 Fall back plan
If some thing goes wrong there should be a way to fall back,
especially for mission critical transactional applications
 Data Integrity
Migrations –
Challenges
(RMAN)
 Backup, Restore and Recovery can take enormous amount of
storage and copy time over the network for very large databases.
 With out Goldengate there is no feasible way to run catch ups
 There is no easy fall back plan
Migrations –
Challenges
(Data Pump)
 Export, copy and import can take enormous amount of time
 Using export and import to catch up for final cut over is not
straight forward
 Import is always serial at a given table (both for partitioned as well
as non partitioned)
 Even if one uses parallel export and import, overall data migration
time is greater than or equal to export and import of the largest
table, build indexes.
Do Yourself
Parallelism
 Given the challenges with migration of large databases that run
into tens of terabytes, it requires custom tools
 Over time I have developed a tool which does that (DYPO – Do
Yourself Parallel Oracle)
 Idea is to get true degree of parallelism while migrating the data
DYPO
(Architecture)
 Uses PL/SQL code
 Runs on the target database
 Computes row id ranges for the tables or partitions (if required)
 Selects data over database link
 Inserts using append or plain insert (depending up on the size of
table)
 Ability to run multiple jobs to load into multiple tables or multiple
partitions or multiple row id chunks
 Ability to control number of jobs that can be run at a given point in
time
 Keeps track of successful or failed inserts including counts
 Ability to catch up by dropping dropped partitions, adding new
partitions and load data from only new partitions
 Extension of the tool have the ability to get counts from source
table in parallel (which is key for validation)
DYPO
Advantages
 No additional storage required
 No additional scripting required to copy data in parallel
 Code is completely written in PL/SQL
 Keep tracks of what is successful and what is not. If migration
failed on a very large table after completing, we just need to copy
data for failed chunks
 No need to have separate process to create indexes, as indexes
can be pre created while copying the data
 It can be used as baseline data migration before starting
Goldengate replication for zero downtime migration
 It can be effectively used to pre-migrate most of the data for very
large Operational Data Stores and Data Warehouses for minimal
downtime for cutover.
DYPO – Pre-
requisites
 Read only access to source database
 SELECT_CATALOG role to the user with some system privileges
such as select any table
 Export and import tables using data pump with no data
 Increase INITRANS on all the tables in target database
 Disable logging on target database
 Constraints have to be disabled while migration is going on and
enable with novalidate after migration is done
 Source database can be 8i or later
 Target database can be 10g or later
DYPO –
Known Issues
 Not tested for special datatypes (such as clob, blob, xml etc)
 Not tested for clustered tables

More Related Content

What's hot

Luo june27 1150am_room230_a_v2
Luo june27 1150am_room230_a_v2Luo june27 1150am_room230_a_v2
Luo june27 1150am_room230_a_v2
DataWorks Summit
 
Apache Kudu: Technical Deep Dive


Apache Kudu: Technical Deep Dive

Apache Kudu: Technical Deep Dive


Apache Kudu: Technical Deep Dive


Cloudera, Inc.
 
Internet of things Crash Course Workshop
Internet of things Crash Course WorkshopInternet of things Crash Course Workshop
Internet of things Crash Course Workshop
DataWorks Summit
 
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Hortonworks
 
The Future of Apache Hadoop an Enterprise Architecture View
The Future of Apache Hadoop an Enterprise Architecture ViewThe Future of Apache Hadoop an Enterprise Architecture View
The Future of Apache Hadoop an Enterprise Architecture View
DataWorks Summit/Hadoop Summit
 
Planing and optimizing data lake architecture
Planing and optimizing data lake architecturePlaning and optimizing data lake architecture
Planing and optimizing data lake architecture
Milos Milovanovic
 
Predictive Analytics and Machine Learning …with SAS and Apache Hadoop
Predictive Analytics and Machine Learning…with SAS and Apache HadoopPredictive Analytics and Machine Learning…with SAS and Apache Hadoop
Predictive Analytics and Machine Learning …with SAS and Apache Hadoop
Hortonworks
 
50 Shades of SQL
50 Shades of SQL50 Shades of SQL
50 Shades of SQL
DataWorks Summit
 
ETL using Big Data Talend
ETL using Big Data Talend  ETL using Big Data Talend
ETL using Big Data Talend
Edureka!
 
Meta scale kognitio hadoop webinar
Meta scale kognitio hadoop webinarMeta scale kognitio hadoop webinar
Meta scale kognitio hadoop webinar
Michael Hiskey
 
Bring Your SAP and Enterprise Data to Hadoop, Kafka, and the Cloud
Bring Your SAP and Enterprise Data to Hadoop, Kafka, and the CloudBring Your SAP and Enterprise Data to Hadoop, Kafka, and the Cloud
Bring Your SAP and Enterprise Data to Hadoop, Kafka, and the Cloud
DataWorks Summit
 
Open Innovation with Power Systems
Open Innovation with Power Systems Open Innovation with Power Systems
Open Innovation with Power Systems
IBM Power Systems
 
Apache Spark Workshop at Hadoop Summit
Apache Spark Workshop at Hadoop SummitApache Spark Workshop at Hadoop Summit
Apache Spark Workshop at Hadoop Summit
Saptak Sen
 
Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...
Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...
Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...
Melissa Kolodziej
 
Dynamic DDL: Adding structure to streaming IoT data on the fly
Dynamic DDL: Adding structure to streaming IoT data on the flyDynamic DDL: Adding structure to streaming IoT data on the fly
Dynamic DDL: Adding structure to streaming IoT data on the fly
DataWorks Summit
 
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Lviv Startup Club
 
Transforming Data Architecture Complexity at Sears - StampedeCon 2013
Transforming Data Architecture Complexity at Sears - StampedeCon 2013Transforming Data Architecture Complexity at Sears - StampedeCon 2013
Transforming Data Architecture Complexity at Sears - StampedeCon 2013
StampedeCon
 
Empowering you with Democratized Data Access, Data Science and Machine Learning
Empowering you with Democratized Data Access, Data Science and Machine LearningEmpowering you with Democratized Data Access, Data Science and Machine Learning
Empowering you with Democratized Data Access, Data Science and Machine Learning
DataWorks Summit
 

What's hot (18)

Luo june27 1150am_room230_a_v2
Luo june27 1150am_room230_a_v2Luo june27 1150am_room230_a_v2
Luo june27 1150am_room230_a_v2
 
Apache Kudu: Technical Deep Dive


Apache Kudu: Technical Deep Dive

Apache Kudu: Technical Deep Dive


Apache Kudu: Technical Deep Dive


 
Internet of things Crash Course Workshop
Internet of things Crash Course WorkshopInternet of things Crash Course Workshop
Internet of things Crash Course Workshop
 
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
Modern Data Architecture for a Data Lake with Informatica and Hortonworks Dat...
 
The Future of Apache Hadoop an Enterprise Architecture View
The Future of Apache Hadoop an Enterprise Architecture ViewThe Future of Apache Hadoop an Enterprise Architecture View
The Future of Apache Hadoop an Enterprise Architecture View
 
Planing and optimizing data lake architecture
Planing and optimizing data lake architecturePlaning and optimizing data lake architecture
Planing and optimizing data lake architecture
 
Predictive Analytics and Machine Learning …with SAS and Apache Hadoop
Predictive Analytics and Machine Learning…with SAS and Apache HadoopPredictive Analytics and Machine Learning…with SAS and Apache Hadoop
Predictive Analytics and Machine Learning …with SAS and Apache Hadoop
 
50 Shades of SQL
50 Shades of SQL50 Shades of SQL
50 Shades of SQL
 
ETL using Big Data Talend
ETL using Big Data Talend  ETL using Big Data Talend
ETL using Big Data Talend
 
Meta scale kognitio hadoop webinar
Meta scale kognitio hadoop webinarMeta scale kognitio hadoop webinar
Meta scale kognitio hadoop webinar
 
Bring Your SAP and Enterprise Data to Hadoop, Kafka, and the Cloud
Bring Your SAP and Enterprise Data to Hadoop, Kafka, and the CloudBring Your SAP and Enterprise Data to Hadoop, Kafka, and the Cloud
Bring Your SAP and Enterprise Data to Hadoop, Kafka, and the Cloud
 
Open Innovation with Power Systems
Open Innovation with Power Systems Open Innovation with Power Systems
Open Innovation with Power Systems
 
Apache Spark Workshop at Hadoop Summit
Apache Spark Workshop at Hadoop SummitApache Spark Workshop at Hadoop Summit
Apache Spark Workshop at Hadoop Summit
 
Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...
Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...
Attunity Efficient ODR For Sql Server Using Attunity CDC Suite For SSIS Slide...
 
Dynamic DDL: Adding structure to streaming IoT data on the fly
Dynamic DDL: Adding structure to streaming IoT data on the flyDynamic DDL: Adding structure to streaming IoT data on the fly
Dynamic DDL: Adding structure to streaming IoT data on the fly
 
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
Artur Fejklowicz - “Data Lake architecture” AI&BigDataDay 2017
 
Transforming Data Architecture Complexity at Sears - StampedeCon 2013
Transforming Data Architecture Complexity at Sears - StampedeCon 2013Transforming Data Architecture Complexity at Sears - StampedeCon 2013
Transforming Data Architecture Complexity at Sears - StampedeCon 2013
 
Empowering you with Democratized Data Access, Data Science and Machine Learning
Empowering you with Democratized Data Access, Data Science and Machine LearningEmpowering you with Democratized Data Access, Data Science and Machine Learning
Empowering you with Democratized Data Access, Data Science and Machine Learning
 

Viewers also liked

L11 -personal project
L11  -personal projectL11  -personal project
L11 -personal project
vshackley
 
Nweaver preso insync10
Nweaver preso insync10Nweaver preso insync10
Nweaver preso insync10
InSync Conference
 
107 day implementation of oracle ebs
107 day implementation of oracle ebs107 day implementation of oracle ebs
107 day implementation of oracle ebs
Hazelknight Media & Entertainment Pvt Ltd
 
PM_WBS
PM_WBSPM_WBS
Oracle+projectmanagement
Oracle+projectmanagementOracle+projectmanagement
Oracle+projectmanagement
wang taibing
 
Large Complex Projects (PMI-MY presentation Sept 2012)
Large Complex Projects (PMI-MY presentation Sept 2012)Large Complex Projects (PMI-MY presentation Sept 2012)
Large Complex Projects (PMI-MY presentation Sept 2012)
Jeremie Averous
 
Erp Implementation Project Planning
Erp Implementation Project PlanningErp Implementation Project Planning
Erp Implementation Project Planning
Darshan Ambhaikar
 
Oracle ebs projects r12.2.5 new functionality
Oracle ebs projects r12.2.5 new functionalityOracle ebs projects r12.2.5 new functionality
Oracle ebs projects r12.2.5 new functionality
Matthew Bezuidenhout
 
New Enhancements + Upgrade Path to Oracle EBS R12.1.3
New Enhancements + Upgrade Path to Oracle EBS R12.1.3New Enhancements + Upgrade Path to Oracle EBS R12.1.3
New Enhancements + Upgrade Path to Oracle EBS R12.1.3
iWare Logic Technologies Pvt. Ltd.
 
Critical Success Factors in Implementation of ERP Systems
Critical Success Factors in Implementation of ERP SystemsCritical Success Factors in Implementation of ERP Systems
Critical Success Factors in Implementation of ERP Systems
Stephen Coady
 
Oracle Implementation Project Template
Oracle Implementation Project TemplateOracle Implementation Project Template
Oracle Implementation Project Template
acribe
 
Critical Success Factors for Implementation of ERP Projects
Critical Success Factors for Implementation of ERP ProjectsCritical Success Factors for Implementation of ERP Projects
Critical Success Factors for Implementation of ERP Projects
Prof Parameshwar P Iyer
 
ERP implementation Failure at Hershey Food Corperation
ERP implementation Failure at Hershey Food CorperationERP implementation Failure at Hershey Food Corperation
ERP implementation Failure at Hershey Food Corperation
Olivier Tisun
 
Erp Failure In Hershey’s
Erp Failure In Hershey’sErp Failure In Hershey’s
Erp Failure In Hershey’s
Ankit Malhotra
 
Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.
Muhammad Mansoor Ali
 
Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...
Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...
Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...
Jade Global
 
New features in oracle fusion financial accounts receivables and account paya...
New features in oracle fusion financial accounts receivables and account paya...New features in oracle fusion financial accounts receivables and account paya...
New features in oracle fusion financial accounts receivables and account paya...
Jade Global
 
Project Plan ERP Sample by ijaz haider malik weboriez@hotmail
Project Plan ERP Sample by ijaz haider malik weboriez@hotmailProject Plan ERP Sample by ijaz haider malik weboriez@hotmail
Project Plan ERP Sample by ijaz haider malik weboriez@hotmail
Ijaz Haider Malik TOGAF, Harvard MM,Siebel, PRINCE2
 

Viewers also liked (18)

L11 -personal project
L11  -personal projectL11  -personal project
L11 -personal project
 
Nweaver preso insync10
Nweaver preso insync10Nweaver preso insync10
Nweaver preso insync10
 
107 day implementation of oracle ebs
107 day implementation of oracle ebs107 day implementation of oracle ebs
107 day implementation of oracle ebs
 
PM_WBS
PM_WBSPM_WBS
PM_WBS
 
Oracle+projectmanagement
Oracle+projectmanagementOracle+projectmanagement
Oracle+projectmanagement
 
Large Complex Projects (PMI-MY presentation Sept 2012)
Large Complex Projects (PMI-MY presentation Sept 2012)Large Complex Projects (PMI-MY presentation Sept 2012)
Large Complex Projects (PMI-MY presentation Sept 2012)
 
Erp Implementation Project Planning
Erp Implementation Project PlanningErp Implementation Project Planning
Erp Implementation Project Planning
 
Oracle ebs projects r12.2.5 new functionality
Oracle ebs projects r12.2.5 new functionalityOracle ebs projects r12.2.5 new functionality
Oracle ebs projects r12.2.5 new functionality
 
New Enhancements + Upgrade Path to Oracle EBS R12.1.3
New Enhancements + Upgrade Path to Oracle EBS R12.1.3New Enhancements + Upgrade Path to Oracle EBS R12.1.3
New Enhancements + Upgrade Path to Oracle EBS R12.1.3
 
Critical Success Factors in Implementation of ERP Systems
Critical Success Factors in Implementation of ERP SystemsCritical Success Factors in Implementation of ERP Systems
Critical Success Factors in Implementation of ERP Systems
 
Oracle Implementation Project Template
Oracle Implementation Project TemplateOracle Implementation Project Template
Oracle Implementation Project Template
 
Critical Success Factors for Implementation of ERP Projects
Critical Success Factors for Implementation of ERP ProjectsCritical Success Factors for Implementation of ERP Projects
Critical Success Factors for Implementation of ERP Projects
 
ERP implementation Failure at Hershey Food Corperation
ERP implementation Failure at Hershey Food CorperationERP implementation Failure at Hershey Food Corperation
ERP implementation Failure at Hershey Food Corperation
 
Erp Failure In Hershey’s
Erp Failure In Hershey’sErp Failure In Hershey’s
Erp Failure In Hershey’s
 
Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.Oracle Inventory Complete Implementation Setups.
Oracle Inventory Complete Implementation Setups.
 
Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...
Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...
Case study: Managing a Fusion Financials Cloud Implementation with Oracle Uni...
 
New features in oracle fusion financial accounts receivables and account paya...
New features in oracle fusion financial accounts receivables and account paya...New features in oracle fusion financial accounts receivables and account paya...
New features in oracle fusion financial accounts receivables and account paya...
 
Project Plan ERP Sample by ijaz haider malik weboriez@hotmail
Project Plan ERP Sample by ijaz haider malik weboriez@hotmailProject Plan ERP Sample by ijaz haider malik weboriez@hotmail
Project Plan ERP Sample by ijaz haider malik weboriez@hotmail
 

Similar to Oracle migrations and upgrades

Data-ware Housing
Data-ware HousingData-ware Housing
Data-ware Housing
Prof.Nilesh Magar
 
Building the DW - ETL
Building the DW - ETLBuilding the DW - ETL
Building the DW - ETL
ganblues
 
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdfOracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Equnix Business Solutions
 
Migration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication TechnologyMigration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication Technology
Donna Guazzaloca-Zehl
 
Delphix Platform Overview
Delphix Platform OverviewDelphix Platform Overview
Delphix Platform Overview
Franco_Dagosto
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methods
Satishbabu Gunukula
 
NetWeaver Data Management process
NetWeaver Data Management processNetWeaver Data Management process
NetWeaver Data Management process
Tony de Thomasis
 
Insync10 goldengate
Insync10 goldengateInsync10 goldengate
Insync10 goldengate
InSync Conference
 
oracle_workprofile.pptx
oracle_workprofile.pptxoracle_workprofile.pptx
oracle_workprofile.pptx
ssuser20fcbe
 
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Bhupesh Bansal
 
Hadoop and Voldemort @ LinkedIn
Hadoop and Voldemort @ LinkedInHadoop and Voldemort @ LinkedIn
Hadoop and Voldemort @ LinkedIn
Hadoop User Group
 
Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...
Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...
Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...
Global Business Events
 
Data migration
Data migrationData migration
Data migration
Vatsala Chauhan
 
Sap migration to cloud
Sap migration to cloudSap migration to cloud
Sap migration to cloud
PT Datacomm Diangraha
 
Migrer vos bases Oracle vers du SQL, le tout dans Azure !
Migrer vos bases Oracle vers du SQL, le tout dans Azure !Migrer vos bases Oracle vers du SQL, le tout dans Azure !
Migrer vos bases Oracle vers du SQL, le tout dans Azure !
Microsoft Technet France
 
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
Equnix Business Solutions
 
SQL Saturday San Diego
SQL Saturday San DiegoSQL Saturday San Diego
SQL Saturday San Diego
Kellyn Pot'Vin-Gorman
 
zdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdfzdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdf
Ahmed Abdellatif
 
Datastage Introduction To Data Warehousing
Datastage Introduction To Data WarehousingDatastage Introduction To Data Warehousing
Datastage Introduction To Data Warehousing
Vibrant Technologies & Computers
 
Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2
Connor McDonald
 

Similar to Oracle migrations and upgrades (20)

Data-ware Housing
Data-ware HousingData-ware Housing
Data-ware Housing
 
Building the DW - ETL
Building the DW - ETLBuilding the DW - ETL
Building the DW - ETL
 
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdfOracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdf
 
Migration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication TechnologyMigration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication Technology
 
Delphix Platform Overview
Delphix Platform OverviewDelphix Platform Overview
Delphix Platform Overview
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methods
 
NetWeaver Data Management process
NetWeaver Data Management processNetWeaver Data Management process
NetWeaver Data Management process
 
Insync10 goldengate
Insync10 goldengateInsync10 goldengate
Insync10 goldengate
 
oracle_workprofile.pptx
oracle_workprofile.pptxoracle_workprofile.pptx
oracle_workprofile.pptx
 
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
Voldemort & Hadoop @ Linkedin, Hadoop User Group Jan 2010
 
Hadoop and Voldemort @ LinkedIn
Hadoop and Voldemort @ LinkedInHadoop and Voldemort @ LinkedIn
Hadoop and Voldemort @ LinkedIn
 
Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...
Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...
Justin Sheppard & Ankur Gupta from Sears Holdings Corporation - Single point ...
 
Data migration
Data migrationData migration
Data migration
 
Sap migration to cloud
Sap migration to cloudSap migration to cloud
Sap migration to cloud
 
Migrer vos bases Oracle vers du SQL, le tout dans Azure !
Migrer vos bases Oracle vers du SQL, le tout dans Azure !Migrer vos bases Oracle vers du SQL, le tout dans Azure !
Migrer vos bases Oracle vers du SQL, le tout dans Azure !
 
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
[EPPG] Oracle to PostgreSQL, Challenges to Opportunity
 
SQL Saturday San Diego
SQL Saturday San DiegoSQL Saturday San Diego
SQL Saturday San Diego
 
zdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdfzdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdf
 
Datastage Introduction To Data Warehousing
Datastage Introduction To Data WarehousingDatastage Introduction To Data Warehousing
Datastage Introduction To Data Warehousing
 
Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2Whats new in Oracle Database 12c release 12.1.0.2
Whats new in Oracle Database 12c release 12.1.0.2
 

More from Durga Gadiraju

Data ingestion using NiFi - Quick Overview
Data ingestion using NiFi - Quick OverviewData ingestion using NiFi - Quick Overview
Data ingestion using NiFi - Quick Overview
Durga Gadiraju
 
Introduction to Data Engineering
Introduction to Data EngineeringIntroduction to Data Engineering
Introduction to Data Engineering
Durga Gadiraju
 
Itversity
ItversityItversity
Itversity
Durga Gadiraju
 
Big Data Certifications Workshop - 201711 - Introduction and Database Essentials
Big Data Certifications Workshop - 201711 - Introduction and Database EssentialsBig Data Certifications Workshop - 201711 - Introduction and Database Essentials
Big Data Certifications Workshop - 201711 - Introduction and Database Essentials
Durga Gadiraju
 
Big Data Certifications Workshop - 201711 - Introduction and Linux Essentials
Big Data Certifications Workshop - 201711 - Introduction and Linux EssentialsBig Data Certifications Workshop - 201711 - Introduction and Linux Essentials
Big Data Certifications Workshop - 201711 - Introduction and Linux Essentials
Durga Gadiraju
 
HDPCD Spark using Python (pyspark)
HDPCD Spark using Python (pyspark)HDPCD Spark using Python (pyspark)
HDPCD Spark using Python (pyspark)
Durga Gadiraju
 
Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...
Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...
Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...
Durga Gadiraju
 
Big Data Introduction - Solix empower
Big Data Introduction - Solix empowerBig Data Introduction - Solix empower
Big Data Introduction - Solix empower
Durga Gadiraju
 
Big Data Introduction
Big Data IntroductionBig Data Introduction
Big Data Introduction
Durga Gadiraju
 

More from Durga Gadiraju (9)

Data ingestion using NiFi - Quick Overview
Data ingestion using NiFi - Quick OverviewData ingestion using NiFi - Quick Overview
Data ingestion using NiFi - Quick Overview
 
Introduction to Data Engineering
Introduction to Data EngineeringIntroduction to Data Engineering
Introduction to Data Engineering
 
Itversity
ItversityItversity
Itversity
 
Big Data Certifications Workshop - 201711 - Introduction and Database Essentials
Big Data Certifications Workshop - 201711 - Introduction and Database EssentialsBig Data Certifications Workshop - 201711 - Introduction and Database Essentials
Big Data Certifications Workshop - 201711 - Introduction and Database Essentials
 
Big Data Certifications Workshop - 201711 - Introduction and Linux Essentials
Big Data Certifications Workshop - 201711 - Introduction and Linux EssentialsBig Data Certifications Workshop - 201711 - Introduction and Linux Essentials
Big Data Certifications Workshop - 201711 - Introduction and Linux Essentials
 
HDPCD Spark using Python (pyspark)
HDPCD Spark using Python (pyspark)HDPCD Spark using Python (pyspark)
HDPCD Spark using Python (pyspark)
 
Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...
Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...
Pycon India 2017 - Big Data Engineering using Spark with Python (pyspark) - W...
 
Big Data Introduction - Solix empower
Big Data Introduction - Solix empowerBig Data Introduction - Solix empower
Big Data Introduction - Solix empower
 
Big Data Introduction
Big Data IntroductionBig Data Introduction
Big Data Introduction
 

Recently uploaded

在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
mz5nrf0n
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Semiosis Software Private Limited
 
Mobile app Development Services | Drona Infotech
Mobile app Development Services  | Drona InfotechMobile app Development Services  | Drona Infotech
Mobile app Development Services | Drona Infotech
Drona Infotech
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
ISH Technologies
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 

Recently uploaded (20)

在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
 
Codeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdfCodeigniter VS Cakephp Which is Better for Web Development.pdf
Codeigniter VS Cakephp Which is Better for Web Development.pdf
 
Mobile app Development Services | Drona Infotech
Mobile app Development Services  | Drona InfotechMobile app Development Services  | Drona Infotech
Mobile app Development Services | Drona Infotech
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Preparing Non - Technical Founders for Engaging a Tech Agency
Preparing Non - Technical Founders for Engaging  a  Tech AgencyPreparing Non - Technical Founders for Engaging  a  Tech Agency
Preparing Non - Technical Founders for Engaging a Tech Agency
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 

Oracle migrations and upgrades

  • 2. About me  Technology leader and evangelist with deep dive expertise in databases, data warehousing, data integration using tools like Oracle, Goldengate, Informatica, Hadoop eco system, HBase, Cassandra, MongoDB etc.  Executed zero downtime cross platform migration and upgrade of 10 Terabyte MDM database for Citigroup using Goldengate and custom code.  Executed minimum downtime cross data center, cross platform migration and upgrade of 150 Terabyte Data Warehouse databases from Mexico to US using custom tool built using PL/SQL
  • 3. Overview  Oracle is synonym for relational database and is extensively used for mission critical online and transactional systems. It is leading and most advanced relational database and Oracle consistently releases minor as well as major releases with new features. Enterprises needs to upgrade their Oracle databases to leverage these new features. Lately most of the enterprises are consolidating the hardware to cut down the operational costs. Upgrades and consolidation effort requires migration of the databases.
  • 4. Upgrade and Migration requirements  Upgrades In place upgrade Out of place upgrade  Migrations Zero downtime migration Minimal downtime migration Cross platform migration (might include non ASM to ASM) Cross datacenter migration
  • 5. Tools and Techniques  Backup, Restore and Recover  Export and Import using Datapump  ETL tools – is not very good approach and hence out of scope for discussion  Custom Tools * Goldengate needs to be used for zero down time migration
  • 6. In Place Upgrade  Steps Bring down the applications and shutdown the database Perform in place upgrade Start the database and bring up the applications  Advantages It is most straight forward way of upgrading Oracle databases It works very well for smaller to medium databases which can entertain few hours of down time  Challenges Not practical to upgrade multi terabyte large databases
  • 7. Out of place Upgrade  Steps Build the target database with desired version Migrate data from source database to target database Redirect applications to the target database  Considerations Reliable testing framework Solid fall back plan for any unforeseen issues Pre migrate as much data as possible Performance testing
  • 8. Migrations  Migrations as part of upgrade  Zero downtime migration  Minimal downtime migration  Cross platform migration (might include non ASM to ASM)  Cross datacenter migration * At times we need to do multiple things as part of migration
  • 9. Migrations – Zero Downtime  Build target database  Migrate data to target database  Set up Goldengate replication to keep databases in synch  Set up Veridata to validate data is in synch  Test applications against target database. Make sure target database performs better or at similar level to source database.  Perform first 4 steps (if you use snapshot for testing application there is no need to rebuild)  Cut over applications to target database  Set up reverse replication for desired amount of time (from new database to old one)  Delete the old database after confirming migration/upgrade is successful
  • 10. Migrations – Non Zero Downtime  Build target database  Migrate all the historic and static data to target database  Develop catch up process to catch up delta  Run catch up process at regular intervals  Test applications against target database. Make sure target database performs better or at similar level to source database.  Cut over applications to target database  Test all the reports that requires latest data thoroughly  Enable ETL process on the target database  If possible continue running ETL on both source database and target database (for a fall back plan)
  • 11. Migrations – Challenges  Volume (if improperly planned) Cost of the migration effort will grow exponentially with the volume of data Requires additional storage on both source and target Copy can take enormous amount of time  Availability Cutover time is critical for most of the databases. It should be either zero or as minimum as possible  Fall back plan If some thing goes wrong there should be a way to fall back, especially for mission critical transactional applications  Data Integrity
  • 12. Migrations – Challenges (RMAN)  Backup, Restore and Recovery can take enormous amount of storage and copy time over the network for very large databases.  With out Goldengate there is no feasible way to run catch ups  There is no easy fall back plan
  • 13. Migrations – Challenges (Data Pump)  Export, copy and import can take enormous amount of time  Using export and import to catch up for final cut over is not straight forward  Import is always serial at a given table (both for partitioned as well as non partitioned)  Even if one uses parallel export and import, overall data migration time is greater than or equal to export and import of the largest table, build indexes.
  • 14. Do Yourself Parallelism  Given the challenges with migration of large databases that run into tens of terabytes, it requires custom tools  Over time I have developed a tool which does that (DYPO – Do Yourself Parallel Oracle)  Idea is to get true degree of parallelism while migrating the data
  • 15. DYPO (Architecture)  Uses PL/SQL code  Runs on the target database  Computes row id ranges for the tables or partitions (if required)  Selects data over database link  Inserts using append or plain insert (depending up on the size of table)  Ability to run multiple jobs to load into multiple tables or multiple partitions or multiple row id chunks  Ability to control number of jobs that can be run at a given point in time  Keeps track of successful or failed inserts including counts  Ability to catch up by dropping dropped partitions, adding new partitions and load data from only new partitions  Extension of the tool have the ability to get counts from source table in parallel (which is key for validation)
  • 16. DYPO Advantages  No additional storage required  No additional scripting required to copy data in parallel  Code is completely written in PL/SQL  Keep tracks of what is successful and what is not. If migration failed on a very large table after completing, we just need to copy data for failed chunks  No need to have separate process to create indexes, as indexes can be pre created while copying the data  It can be used as baseline data migration before starting Goldengate replication for zero downtime migration  It can be effectively used to pre-migrate most of the data for very large Operational Data Stores and Data Warehouses for minimal downtime for cutover.
  • 17. DYPO – Pre- requisites  Read only access to source database  SELECT_CATALOG role to the user with some system privileges such as select any table  Export and import tables using data pump with no data  Increase INITRANS on all the tables in target database  Disable logging on target database  Constraints have to be disabled while migration is going on and enable with novalidate after migration is done  Source database can be 8i or later  Target database can be 10g or later
  • 18. DYPO – Known Issues  Not tested for special datatypes (such as clob, blob, xml etc)  Not tested for clustered tables