SlideShare a Scribd company logo
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Migrate +200 TB databases
in less than 1 day
Roy F Swonger
Vice President
Database Upgrades & Utilities
Oracle Corporation
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
$> whoami
20+ years w/Oracle
15 years managing
Data Pump
Database Upgrade
SQL*Loader
Transportable Tablespaces
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Agenda
Migration Basics
The Murphy’s Law Case
230TB in less than one day
Further Information
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
• Data Pump
– Smaller databases
– Simple
• Transportable Tablespaces
– Larger databases
– More complex
– Database complexity is your enemy
Migrate +200 TB databases in less than 1 day
Most Common Database Migration Techniques
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Transportable Tablespaces
Migrate +200 TB databases in less than 1 day
• TTS feature available since Oracle 8i
• Cross platform support since Oracle 10g
Self Contained?
Then : READ ONLY
expdp "'"sys/sys as sysdba"'" …
TRANSPORT_TABLESPACES=TS1,TS2 …
impdp "'"sys/sys as sysdba"'"…
TRANSPORT_DATAFILES=…
Read Write
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Cross Platform Migration
Migrate +200 TB databases in less than 1 day
LITTLE ENDIAN PLATFORMS
HP IA Open VMS
HP Open VMS
HP Tru64 UNIX
Linux IA (32-bit)
Linux IA (64-bit)
Linux x86 64-bit
Microsoft Windows IA (64-bit)
Microsoft Windows x86 64-bit
Microsoft Windows IA (32-bit)
Solaris Operating System (x86)
Solaris Operating System (x86-64)
FILE
COPY
BIG ENDIAN PLATFORMS
HP-UX (64-bit)
HP-UX IA (64-bit)
AIX-Based Systems (64-bit)
IBM zSeries Based Linux
IBM Power Based Linux
Solaris[tm] OE (32-bit)
Solaris[tm] OE (64-bit)
FILE
COPY
RMAN Convert
DBMS_FILE_TRANSFER
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Transportable Tablespaces
Migrate +200 TB databases in less than 1 day
DESTINATION Database 12.2.0.1
SYSTEM
SYSAUX
UNDO
TEMP
SCOTT
HUGO
VIEWS
CODE
PRIVS
SOURCE Database 11.2.0.4
SYSTEM
SYSAUX
UNDO
TEMP
SCOTT
HUGO
VIEWS
CODE
PRIVS
Read Only
Rebuild meta information
(views, synonyms, trigger, roles etc)
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Rebuilding Meta Information
• Brute force approach:
– Data Pump
• expdp/impdp CONTENT=METADATA_ONLY
• Smart approach:
– DBMS_METADATA
• SELECT DBMS_METADATA.GET_DDL('SYNONYM', SYNONYM_NAME, OWNER) FROM
all_synonyms where owner='PUBLIC' and table_owner not in ('SYS');
Migrate +200 TB databases in less than 1 day
Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |
The biggest pain points of TTS?
• Copy and convert a large database
• Rebuild all the meta information
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
• Size
– RMAN Incremental Backups
• PERL scripts in MOS Note:1389592.1 and in
MOS Note: 2005729.1
• Source: 10.2.0.3 or newer
• Target: 11.2.0.4 or newer
• Complexity
– Full Transportable Export/Import
• One-Command Migration with Data Pump
• Source: 11.2.0.3 or newer
• Target: 12.1.0.1 or newer
Migrate +200 TB databases in less than 1 day
TTS: Pain Points
Can be combined
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
TTS Platform Migration with Incremental Backups
Migrate +200 TB databases in less than 1 day
DESTINATION Database 12.2.0.1
SCOTT
HUGO
SOURCE Database 11.2.0.4
VIEWS
CODE
PRIVS
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
SYSTEM
SYSAUX
UNDO
TEMP
VIEWS
CODE
PRIVS
Data Pump
Convert and apply
backups
Read Only
expdp "'"sys/sys as sysdba"'" …
TRANSPORT_TABLESPACES=TS1,TS2 …
impdp "'"sys/sys as sysdba"'"…
TRANSPORT_DATAFILES=…
Downtime!!!
Read Write
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
FTEX Platform Migration with Incremental Backups
Migrate +200 TB databases in less than 1 day
DESTINATION Database 12.2.0.1
SOURCE Database 11.2.0.4
VIEWS
CODE
PRIVS
SCOTT
HUGO
SYSTEM
SYSAUX
UNDO
TEMP
SYSTEM
SYSAUX
UNDO
TEMP
Convert and apply
backups
Read Only
Downtime!!!
Read Write
SCOTT
HUGO
VIEWS
CODE
PRIVS
Data Pump
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Let's do it
Full Transportable Export/Import
using RMAN Incrementally Rolled Forward Backups
Migrate +200 TB databases in less than 1 day
Source: http://www.wikiwand.com/fr/Vol_en_wingsuit
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day
https://MikeDietrichDE.com
For full details
please download
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 1 - Create Destination Database
Migrate +200 TB databases in less than 1 day
• Create a destination database
– COMPATIBLE equal or higher
– Identical
• Database character sets
• National character sets
• Time zone versions
https://mikedietrichde.com/2016/12/08/cre
ate-a-database-with-non-default-time-zone/
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 1 - Download and Edit PERL Scripts
Migrate +200 TB databases in less than 1 day
For 11g source: MOS Note: 1389592.1
For 12c source: MOS Note: 2005729.1
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 1 - Method
• Choose the best method
– RMAN backup / convert – DBMS_FILE_TRANSFER
Migrate +200 TB databases in less than 1 day
Staging
Backup Convert
Restore &
Convert
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 2 - Initial Level 0 Backup
Migrate +200 TB databases in less than 1 day
Staging
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 2 - Conversion of Level 0 Backup
Migrate +200 TB databases in less than 1 day
Staging
C
C
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 3 - Incremental Level 1 Backups
Migrate +200 TB databases in less than 1 day
Staging
i
i
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 3 - Convert Incremental Level 1 Backups and Merge
Migrate +200 TB databases in less than 1 day
Staging
iC
iC
iC
iC
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 3 - REPEAT Convert Incremental Level 1 Backups
Migrate +200 TB databases in less than 1 day
Staging
iC
iC
iC
iC
Staging
i
i
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 4 - DOWNTIME - Tablespaces Read-Only
Migrate +200 TB databases in less than 1 day
Staging
Read Only
Read Only
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 4 - FINAL Incremental Level 1 Backups
Migrate +200 TB databases in less than 1 day
Staging
iC
iC
iC
iC
Staging
i
i
Read Only
Read Only
Read Only
Read Only
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 5 - Metadata Migration - FTEX
Migrate +200 TB databases in less than 1 day
Database Link
i
Read Only
Read Only
impdp FULL=Y TRANSPORTABLE=ALWAYS
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Phase 6 - Validation and Cleanup
Migrate +200 TB databases in less than 1 day
Read Only
Read Only
RMAN>
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Agenda
Migration Basics
The Murphy’s Law Case
230TB in less than one day
Further Information
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Anything that can go wrong will go wrong
This is called Murphy’s Law
Migrate +200 TB databases in less than 1 day
Photo Credits: NASA
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Anonymous
• Based somewhere in Europe
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Overview and Timeline
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Migration of a large DWH
– >100 TB and growing
• 50 TB indexes
• IBM AIX to Exadata with Oracle Linux
• Oracle 11.2.0.4 to Oracle 12.1.0.2
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
The usual constraints
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Huge database
• DWH team not always believing in project
• Bigfile tablespaces >16 TB
• Outage for cutover: one weekend
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
RMAN Incremental Backup Strategy
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Using the PERL scrips from MOS Note: 1389592.1
• First issue:
– Level 0 Backups to NFS/ZFS filer fail
– AIX file system does not support files >16 TB
– Solution: Pipe, split into pieces, glue together
• Second issue:
– Data Pump fails because of values >16 TB in SEG$
– Solution: Get a patch built and apply it
• Third issue:
– Meta export takes VERY long - many partitions, subpartitions, indexes
– Workaround: Performance treatments, exclude indexes
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Upgrade/Migration concept
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
Staging
C
C
IBM
AIX
Exadata
OL
i
i
iC
iC
iC
iC
Rebuild meta information
(views, synonyms, trigger, roles etc)
Oracle 11.2.0.4 Oracle 12.1.0.2
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Upgrade Conclusion
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Test migrations completed
– Production migration to happen after tests completed
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
When things are really large …
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Make sure you have a clone or a standby for TTS
– Downtime for READ ONLY phase can be a real issue
• Make sure your network is in good shape
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Agenda
Migration Basics
The Murphy’s Law Case
230TB in less than one day
Further Information
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Migrate a very large database
230 TB and growing …
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day
• Jay Barnhart
– Senior Technical Manager for the Enterprise
Application Solutions (EAS) national practice
– 25+ years working with the Oracle technology stack
– Numerous ERP and Oracle Engineered Systems
implementation projects
– Many other consulting engagements
• Please send an email request to
jay.barnhart@centricconsulting.com to get Jay’s
whitepaper on implementing an XTTS solution for very
large databases
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Centric Consulting
• Centric Consulting
– Centric Consulting is a management and technology
consulting company. We have over 700 consultants with
extensive experience delivering high-profile projects for
clients of all shapes and sizes, including Fortune 500 companies
– Oracle Platinum Partner
• Key Focus Areas
– Highly capable consultants
– Passion for delivering results
– Long term relationship focused
– Easy to work with
• Please visit www.centricconsulting.com for more information about Centric Consulting
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Overview and Timeline
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• The Client
– One of the top healthcare insurance providers in the United States
• Over 50,000 employees, over $50 BILLION annual revenue
• The Database
– Source: AIX 8.3, Oracle Database 11.2.0.3, SIDB on filesystem
– Target: Exadata running Oracle Linux, Database 12.1.0.2, RAC/ASM
– 230+ TB (and growing!)
– Generates ~1.2TB redo per hour
– Enterprise data warehouse & operational data store
• Critical for day-to-day operations
• Minimizing downtime is critical
• Data Guard in place for disaster recovery
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Constraints
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Huge, active database
• Initial attempts using Oracle GoldenGate were unsuccessful
– Could not keep up with massive redo generation
• V2 of migrations scripts limitations
– Did not handle addition of tablespaces during migration
– Single-threaded file transfer
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
File Transfer
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Single-threaded file transfer
– V2 xttdriver.pl script reads tablespaces from the xtt.properties file
• The default only processes one tablespace at a time
• You can configure up to 8 data files to be processed concurrently by setting the
PARALLEL parameter in xtt.properties
– Transfer was much too slow for our efforts
• We got about 100 MBs per second throughput
• For 230 TB, this would equate to almost 27 days (!) just for the Prepare Phase
• Workaround
– Customized the process by creating forty (40) identical directories that each held a
complete XTTS utility installation
– Broke up 530+ tablespaces into 40 fairly equal tablespace groups
– Migrated 40 jobs concurrently with PARALLEL=2, or 80 files at a time
– Result: ~800 MB/sec throughput, reduced prepare phase from 27 days to 6 days
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Customizations
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Further customizations
– Custom scripts created to balance the tablespaces for each directory
– Modified dbopen.sql script
– Cross-check scripts to ensure all tablespaces were being migrated
– Custom scripts to kick off all 40 prepare, convert, incremental,
convert / roll-forward, and SCN advance phases
– Custom script to create the import Data Pump par file for the Plug-In
Step
– Load balanced RMAN CONVERT
• Found that running the initial CONVERT of the Prepare Phase was best done by
running the conversion on all four nodes in the Exadata
• This allowed up to convert over 230 TBs in under 10 hours.
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Architecture
• Environment:
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Upgrade Conclusion
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Migrated & Upgraded
– AIX -> Linux
– 230+ TB
– Database 11.2.0.3-> 12.1.0.2
– Single Instance -> RAC
• In 18-hour READ ONLY window!
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Always get the latest …
Migrate +200 TB databases in less than 1 day
Customer
Project
Constraints
Preparation
Upgrade
Success?
Remarks
• Make sure to get the latest version of the scripts
– 12C - Reduce Transportable Tablespace Downtime using Cross
Platform Incremental Backup (Doc ID 2005729.1)
– Version 3 of XTTS Utility came out June 2017 and allows for tablespace
and data files to be added during the migration
• Plan for unexpected “features” to occur
– Data Pump patches for TTS migration may vary by version
– Bug fixes for migration scripts themselves
• Customize the process for VLDBs
– Otherwise the Prepare Phase may take too long
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day
Migration Timeline
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day
https://centricconsulting.com/case-study-centric-improves-oracles-cross-platform-transportable-tablespace-xtts-utility_eas/
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Program Agenda with Highlight
Migration Basics
The Murphy’s Law Case
230TB in less than one day
Further Information
Migrate +200 TB databases in less than 1 day
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day
Slides Download: https://MikeDietrichDE.com
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day
Migrate +200 TB databases.pdf

More Related Content

Similar to Migrate +200 TB databases.pdf

Things learned from OpenWorld 2013
Things learned from OpenWorld 2013Things learned from OpenWorld 2013
Things learned from OpenWorld 2013
Connor McDonald
 
Times ten 18.1_overview_meetup
Times ten 18.1_overview_meetupTimes ten 18.1_overview_meetup
Times ten 18.1_overview_meetup
Byung Ho Lee
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
Yudi Herdiana
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
MarketingArrowECS_CZ
 
Gruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in TelcoGruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in Telco
Gruter
 
DC Migration and Hadoop Scale For Big Billion Days
DC Migration and Hadoop Scale For Big Billion DaysDC Migration and Hadoop Scale For Big Billion Days
DC Migration and Hadoop Scale For Big Billion Days
Rahul Agarwal
 
Hive 3 New Horizons DataWorks Summit Melbourne February 2019
Hive 3 New Horizons DataWorks Summit Melbourne February 2019Hive 3 New Horizons DataWorks Summit Melbourne February 2019
Hive 3 New Horizons DataWorks Summit Melbourne February 2019
alanfgates
 
What is New in Apache Hive 3.0?
What is New in Apache Hive 3.0?What is New in Apache Hive 3.0?
What is New in Apache Hive 3.0?
DataWorks Summit
 
Seamless replication and disaster recovery for Apache Hive Warehouse
Seamless replication and disaster recovery for Apache Hive WarehouseSeamless replication and disaster recovery for Apache Hive Warehouse
Seamless replication and disaster recovery for Apache Hive Warehouse
DataWorks Summit
 
Seamless Replication and Disaster Recovery for Apache Hive Warehouse
Seamless Replication and Disaster Recovery for Apache Hive WarehouseSeamless Replication and Disaster Recovery for Apache Hive Warehouse
Seamless Replication and Disaster Recovery for Apache Hive Warehouse
Sankar H
 
Breakout: Hadoop and the Operational Data Store
Breakout: Hadoop and the Operational Data StoreBreakout: Hadoop and the Operational Data Store
Breakout: Hadoop and the Operational Data Store
Cloudera, Inc.
 
times ten in-memory database for extreme performance
times ten in-memory database for extreme performancetimes ten in-memory database for extreme performance
times ten in-memory database for extreme performance
Oracle Korea
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Amazon Web Services
 
What is new in Apache Hive 3.0?
What is new in Apache Hive 3.0?What is new in Apache Hive 3.0?
What is new in Apache Hive 3.0?
DataWorks Summit
 
Exploring All options to move your Oracle Databases to the Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle CloudExploring All options to move your Oracle Databases to the Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle Cloud
Alex Zaballa
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon Redshift
Amazon Web Services
 
A3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloudA3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloud
Dr. Wilfred Lin (Ph.D.)
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
Amazon Web Services
 
Galaxy Big Data with MariaDB
Galaxy Big Data with MariaDBGalaxy Big Data with MariaDB
Galaxy Big Data with MariaDB
MariaDB Corporation
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
Amazon Web Services
 

Similar to Migrate +200 TB databases.pdf (20)

Things learned from OpenWorld 2013
Things learned from OpenWorld 2013Things learned from OpenWorld 2013
Things learned from OpenWorld 2013
 
Times ten 18.1_overview_meetup
Times ten 18.1_overview_meetupTimes ten 18.1_overview_meetup
Times ten 18.1_overview_meetup
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
 
Gruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in TelcoGruter TECHDAY 2014 Realtime Processing in Telco
Gruter TECHDAY 2014 Realtime Processing in Telco
 
DC Migration and Hadoop Scale For Big Billion Days
DC Migration and Hadoop Scale For Big Billion DaysDC Migration and Hadoop Scale For Big Billion Days
DC Migration and Hadoop Scale For Big Billion Days
 
Hive 3 New Horizons DataWorks Summit Melbourne February 2019
Hive 3 New Horizons DataWorks Summit Melbourne February 2019Hive 3 New Horizons DataWorks Summit Melbourne February 2019
Hive 3 New Horizons DataWorks Summit Melbourne February 2019
 
What is New in Apache Hive 3.0?
What is New in Apache Hive 3.0?What is New in Apache Hive 3.0?
What is New in Apache Hive 3.0?
 
Seamless replication and disaster recovery for Apache Hive Warehouse
Seamless replication and disaster recovery for Apache Hive WarehouseSeamless replication and disaster recovery for Apache Hive Warehouse
Seamless replication and disaster recovery for Apache Hive Warehouse
 
Seamless Replication and Disaster Recovery for Apache Hive Warehouse
Seamless Replication and Disaster Recovery for Apache Hive WarehouseSeamless Replication and Disaster Recovery for Apache Hive Warehouse
Seamless Replication and Disaster Recovery for Apache Hive Warehouse
 
Breakout: Hadoop and the Operational Data Store
Breakout: Hadoop and the Operational Data StoreBreakout: Hadoop and the Operational Data Store
Breakout: Hadoop and the Operational Data Store
 
times ten in-memory database for extreme performance
times ten in-memory database for extreme performancetimes ten in-memory database for extreme performance
times ten in-memory database for extreme performance
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
 
What is new in Apache Hive 3.0?
What is new in Apache Hive 3.0?What is new in Apache Hive 3.0?
What is new in Apache Hive 3.0?
 
Exploring All options to move your Oracle Databases to the Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle CloudExploring All options to move your Oracle Databases to the Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle Cloud
 
Getting Started with Amazon Redshift
Getting Started with Amazon RedshiftGetting Started with Amazon Redshift
Getting Started with Amazon Redshift
 
A3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloudA3 transforming data_management_in_the_cloud
A3 transforming data_management_in_the_cloud
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
Galaxy Big Data with MariaDB
Galaxy Big Data with MariaDBGalaxy Big Data with MariaDB
Galaxy Big Data with MariaDB
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 

Recently uploaded

Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Jeffrey Haguewood
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
Pravash Chandra Das
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
Shinana2
 

Recently uploaded (20)

Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
Letter and Document Automation for Bonterra Impact Management (fka Social Sol...
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
dbms calicut university B. sc Cs 4th sem.pdf
dbms  calicut university B. sc Cs 4th sem.pdfdbms  calicut university B. sc Cs 4th sem.pdf
dbms calicut university B. sc Cs 4th sem.pdf
 

Migrate +200 TB databases.pdf

  • 1.
  • 2. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day Roy F Swonger Vice President Database Upgrades & Utilities Oracle Corporation Migrate +200 TB databases in less than 1 day
  • 3. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | $> whoami 20+ years w/Oracle 15 years managing Data Pump Database Upgrade SQL*Loader Transportable Tablespaces Migrate +200 TB databases in less than 1 day
  • 4. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Agenda Migration Basics The Murphy’s Law Case 230TB in less than one day Further Information Migrate +200 TB databases in less than 1 day
  • 5. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | • Data Pump – Smaller databases – Simple • Transportable Tablespaces – Larger databases – More complex – Database complexity is your enemy Migrate +200 TB databases in less than 1 day Most Common Database Migration Techniques
  • 6. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Transportable Tablespaces Migrate +200 TB databases in less than 1 day • TTS feature available since Oracle 8i • Cross platform support since Oracle 10g Self Contained? Then : READ ONLY expdp "'"sys/sys as sysdba"'" … TRANSPORT_TABLESPACES=TS1,TS2 … impdp "'"sys/sys as sysdba"'"… TRANSPORT_DATAFILES=… Read Write
  • 7. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Cross Platform Migration Migrate +200 TB databases in less than 1 day LITTLE ENDIAN PLATFORMS HP IA Open VMS HP Open VMS HP Tru64 UNIX Linux IA (32-bit) Linux IA (64-bit) Linux x86 64-bit Microsoft Windows IA (64-bit) Microsoft Windows x86 64-bit Microsoft Windows IA (32-bit) Solaris Operating System (x86) Solaris Operating System (x86-64) FILE COPY BIG ENDIAN PLATFORMS HP-UX (64-bit) HP-UX IA (64-bit) AIX-Based Systems (64-bit) IBM zSeries Based Linux IBM Power Based Linux Solaris[tm] OE (32-bit) Solaris[tm] OE (64-bit) FILE COPY RMAN Convert DBMS_FILE_TRANSFER
  • 8. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Transportable Tablespaces Migrate +200 TB databases in less than 1 day DESTINATION Database 12.2.0.1 SYSTEM SYSAUX UNDO TEMP SCOTT HUGO VIEWS CODE PRIVS SOURCE Database 11.2.0.4 SYSTEM SYSAUX UNDO TEMP SCOTT HUGO VIEWS CODE PRIVS Read Only Rebuild meta information (views, synonyms, trigger, roles etc)
  • 9. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Rebuilding Meta Information • Brute force approach: – Data Pump • expdp/impdp CONTENT=METADATA_ONLY • Smart approach: – DBMS_METADATA • SELECT DBMS_METADATA.GET_DDL('SYNONYM', SYNONYM_NAME, OWNER) FROM all_synonyms where owner='PUBLIC' and table_owner not in ('SYS'); Migrate +200 TB databases in less than 1 day
  • 10. Copyright © 2018 Oracle and/or its affiliates. All rights reserved. | The biggest pain points of TTS? • Copy and convert a large database • Rebuild all the meta information Migrate +200 TB databases in less than 1 day
  • 11. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | • Size – RMAN Incremental Backups • PERL scripts in MOS Note:1389592.1 and in MOS Note: 2005729.1 • Source: 10.2.0.3 or newer • Target: 11.2.0.4 or newer • Complexity – Full Transportable Export/Import • One-Command Migration with Data Pump • Source: 11.2.0.3 or newer • Target: 12.1.0.1 or newer Migrate +200 TB databases in less than 1 day TTS: Pain Points Can be combined
  • 12. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | TTS Platform Migration with Incremental Backups Migrate +200 TB databases in less than 1 day DESTINATION Database 12.2.0.1 SCOTT HUGO SOURCE Database 11.2.0.4 VIEWS CODE PRIVS SCOTT HUGO SYSTEM SYSAUX UNDO TEMP SYSTEM SYSAUX UNDO TEMP VIEWS CODE PRIVS Data Pump Convert and apply backups Read Only expdp "'"sys/sys as sysdba"'" … TRANSPORT_TABLESPACES=TS1,TS2 … impdp "'"sys/sys as sysdba"'"… TRANSPORT_DATAFILES=… Downtime!!! Read Write
  • 13. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | FTEX Platform Migration with Incremental Backups Migrate +200 TB databases in less than 1 day DESTINATION Database 12.2.0.1 SOURCE Database 11.2.0.4 VIEWS CODE PRIVS SCOTT HUGO SYSTEM SYSAUX UNDO TEMP SYSTEM SYSAUX UNDO TEMP Convert and apply backups Read Only Downtime!!! Read Write SCOTT HUGO VIEWS CODE PRIVS Data Pump
  • 14. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Let's do it Full Transportable Export/Import using RMAN Incrementally Rolled Forward Backups Migrate +200 TB databases in less than 1 day Source: http://www.wikiwand.com/fr/Vol_en_wingsuit
  • 15. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day https://MikeDietrichDE.com For full details please download
  • 16. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 1 - Create Destination Database Migrate +200 TB databases in less than 1 day • Create a destination database – COMPATIBLE equal or higher – Identical • Database character sets • National character sets • Time zone versions https://mikedietrichde.com/2016/12/08/cre ate-a-database-with-non-default-time-zone/
  • 17. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 1 - Download and Edit PERL Scripts Migrate +200 TB databases in less than 1 day For 11g source: MOS Note: 1389592.1 For 12c source: MOS Note: 2005729.1
  • 18. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 1 - Method • Choose the best method – RMAN backup / convert – DBMS_FILE_TRANSFER Migrate +200 TB databases in less than 1 day Staging Backup Convert Restore & Convert
  • 19. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 2 - Initial Level 0 Backup Migrate +200 TB databases in less than 1 day Staging
  • 20. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 2 - Conversion of Level 0 Backup Migrate +200 TB databases in less than 1 day Staging C C
  • 21. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 3 - Incremental Level 1 Backups Migrate +200 TB databases in less than 1 day Staging i i
  • 22. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 3 - Convert Incremental Level 1 Backups and Merge Migrate +200 TB databases in less than 1 day Staging iC iC iC iC
  • 23. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 3 - REPEAT Convert Incremental Level 1 Backups Migrate +200 TB databases in less than 1 day Staging iC iC iC iC Staging i i
  • 24. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 4 - DOWNTIME - Tablespaces Read-Only Migrate +200 TB databases in less than 1 day Staging Read Only Read Only
  • 25. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 4 - FINAL Incremental Level 1 Backups Migrate +200 TB databases in less than 1 day Staging iC iC iC iC Staging i i Read Only Read Only Read Only Read Only
  • 26. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 5 - Metadata Migration - FTEX Migrate +200 TB databases in less than 1 day Database Link i Read Only Read Only impdp FULL=Y TRANSPORTABLE=ALWAYS
  • 27. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Phase 6 - Validation and Cleanup Migrate +200 TB databases in less than 1 day Read Only Read Only RMAN>
  • 28. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Agenda Migration Basics The Murphy’s Law Case 230TB in less than one day Further Information Migrate +200 TB databases in less than 1 day
  • 29. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Anything that can go wrong will go wrong This is called Murphy’s Law Migrate +200 TB databases in less than 1 day Photo Credits: NASA
  • 30. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Anonymous • Based somewhere in Europe Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks
  • 31. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Overview and Timeline Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Migration of a large DWH – >100 TB and growing • 50 TB indexes • IBM AIX to Exadata with Oracle Linux • Oracle 11.2.0.4 to Oracle 12.1.0.2
  • 32. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | The usual constraints Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Huge database • DWH team not always believing in project • Bigfile tablespaces >16 TB • Outage for cutover: one weekend
  • 33. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | RMAN Incremental Backup Strategy Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Using the PERL scrips from MOS Note: 1389592.1 • First issue: – Level 0 Backups to NFS/ZFS filer fail – AIX file system does not support files >16 TB – Solution: Pipe, split into pieces, glue together • Second issue: – Data Pump fails because of values >16 TB in SEG$ – Solution: Get a patch built and apply it • Third issue: – Meta export takes VERY long - many partitions, subpartitions, indexes – Workaround: Performance treatments, exclude indexes
  • 34. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Upgrade/Migration concept Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks Staging C C IBM AIX Exadata OL i i iC iC iC iC Rebuild meta information (views, synonyms, trigger, roles etc) Oracle 11.2.0.4 Oracle 12.1.0.2
  • 35. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Upgrade Conclusion Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Test migrations completed – Production migration to happen after tests completed
  • 36. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | When things are really large … Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Make sure you have a clone or a standby for TTS – Downtime for READ ONLY phase can be a real issue • Make sure your network is in good shape
  • 37. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Agenda Migration Basics The Murphy’s Law Case 230TB in less than one day Further Information Migrate +200 TB databases in less than 1 day
  • 38. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate a very large database 230 TB and growing … Migrate +200 TB databases in less than 1 day
  • 39. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day • Jay Barnhart – Senior Technical Manager for the Enterprise Application Solutions (EAS) national practice – 25+ years working with the Oracle technology stack – Numerous ERP and Oracle Engineered Systems implementation projects – Many other consulting engagements • Please send an email request to jay.barnhart@centricconsulting.com to get Jay’s whitepaper on implementing an XTTS solution for very large databases
  • 40. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Centric Consulting • Centric Consulting – Centric Consulting is a management and technology consulting company. We have over 700 consultants with extensive experience delivering high-profile projects for clients of all shapes and sizes, including Fortune 500 companies – Oracle Platinum Partner • Key Focus Areas – Highly capable consultants – Passion for delivering results – Long term relationship focused – Easy to work with • Please visit www.centricconsulting.com for more information about Centric Consulting Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks
  • 41. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Overview and Timeline Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • The Client – One of the top healthcare insurance providers in the United States • Over 50,000 employees, over $50 BILLION annual revenue • The Database – Source: AIX 8.3, Oracle Database 11.2.0.3, SIDB on filesystem – Target: Exadata running Oracle Linux, Database 12.1.0.2, RAC/ASM – 230+ TB (and growing!) – Generates ~1.2TB redo per hour – Enterprise data warehouse & operational data store • Critical for day-to-day operations • Minimizing downtime is critical • Data Guard in place for disaster recovery
  • 42. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Constraints Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Huge, active database • Initial attempts using Oracle GoldenGate were unsuccessful – Could not keep up with massive redo generation • V2 of migrations scripts limitations – Did not handle addition of tablespaces during migration – Single-threaded file transfer
  • 43. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | File Transfer Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Single-threaded file transfer – V2 xttdriver.pl script reads tablespaces from the xtt.properties file • The default only processes one tablespace at a time • You can configure up to 8 data files to be processed concurrently by setting the PARALLEL parameter in xtt.properties – Transfer was much too slow for our efforts • We got about 100 MBs per second throughput • For 230 TB, this would equate to almost 27 days (!) just for the Prepare Phase • Workaround – Customized the process by creating forty (40) identical directories that each held a complete XTTS utility installation – Broke up 530+ tablespaces into 40 fairly equal tablespace groups – Migrated 40 jobs concurrently with PARALLEL=2, or 80 files at a time – Result: ~800 MB/sec throughput, reduced prepare phase from 27 days to 6 days
  • 44. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Customizations Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Further customizations – Custom scripts created to balance the tablespaces for each directory – Modified dbopen.sql script – Cross-check scripts to ensure all tablespaces were being migrated – Custom scripts to kick off all 40 prepare, convert, incremental, convert / roll-forward, and SCN advance phases – Custom script to create the import Data Pump par file for the Plug-In Step – Load balanced RMAN CONVERT • Found that running the initial CONVERT of the Prepare Phase was best done by running the conversion on all four nodes in the Exadata • This allowed up to convert over 230 TBs in under 10 hours.
  • 45. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Architecture • Environment: Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks
  • 46. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Upgrade Conclusion Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Migrated & Upgraded – AIX -> Linux – 230+ TB – Database 11.2.0.3-> 12.1.0.2 – Single Instance -> RAC • In 18-hour READ ONLY window!
  • 47. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Always get the latest … Migrate +200 TB databases in less than 1 day Customer Project Constraints Preparation Upgrade Success? Remarks • Make sure to get the latest version of the scripts – 12C - Reduce Transportable Tablespace Downtime using Cross Platform Incremental Backup (Doc ID 2005729.1) – Version 3 of XTTS Utility came out June 2017 and allows for tablespace and data files to be added during the migration • Plan for unexpected “features” to occur – Data Pump patches for TTS migration may vary by version – Bug fixes for migration scripts themselves • Customize the process for VLDBs – Otherwise the Prepare Phase may take too long
  • 48. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day Migration Timeline
  • 49. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day https://centricconsulting.com/case-study-centric-improves-oracles-cross-platform-transportable-tablespace-xtts-utility_eas/
  • 50. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Program Agenda with Highlight Migration Basics The Murphy’s Law Case 230TB in less than one day Further Information Migrate +200 TB databases in less than 1 day
  • 51. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day Slides Download: https://MikeDietrichDE.com
  • 52. Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Migrate +200 TB databases in less than 1 day