Oracle OpenWorld 2019S A N F R A N C I S C O
18 Methods to Migrate Your Database to Oracle Cloud
Sudipto Basu
Solution Engineering Director, North America Cloud
Malay Kumar Khawas
Oracle Enterprise Architect, North America Cloud
The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, timing, and pricing of any features or functionality described for Oracle’s products may change and remains at the sole discretion of Oracle Corporation.
Statements in this presentation relating to Oracle’s future plans, expectations, beliefs, intentions and prospects are “forward-looking statements” and are subject to material risks and uncertainties. A detailed discussion of these factors and other risks that affect our business is contained in Oracle’s Securities and Exchange Commission (SEC) filings, including our most recent reports on Form 10-K and Form 10-Q under the heading “Risk Factors.” These filings are available on the SEC’s website or on Oracle’s website at http://www.oracle.com/investor. All information in this presentation is current as of September 2019 and Oracle undertakes no duty to update any statement in light of new information or future events.
Safe Harbor
Copyright © 2019 Oracle and/or its affiliates.
Copyright © 2019 Oracle and/or its affiliates.
Number Theory of 18 Methods to MigrateYour Database to Oracle Cloud
18 35 ~2
Permutation and Combination ofDatabase Migration
Copyright © 2019 Oracle and/or its affiliates.
Source 11gR2 OnPremise
ATP Serverless
Autonomous Data
Warehouse
ATP Dedicated
VM DBSystem
Bare Metal DBSystem
Exadata DBSystem
Database on OCI Compute
11gR2, 12cR1, 12cR2, 18c,
19c
Little Endian Family
Big Endian Family
Factors to Decide a Migration Method
Copyright © 2019 Oracle and/or its affiliates.
Source Database Version
Source Database Host OS
Source DB Data Types
Source CDB or NonCDB
Source Database
Size
Source Database
Character Set
Project Financials &
Licensing
Permissible Downtime
OCI DBSystem Versions
Network Bandwidth
Staging Storage
Requirement
Many More…..…..
18 Methods at a Glance
✓RMAN Cross Platform Incremental Transportable Tablespace
✓Hybrid DataGuard from OnPremise to OCI DBSystem
✓Golden Gate Real Time Replication
✓RMAN Restore and Recovery from Full Backup
✓RMAN Active Duplicate
✓MV2OCI: Move Data to Oracle Cloud Database in "One-Click"
✓ Unplugging and Plugging a PDB
✓ Unplugging and Plugging a NonCDB
✓ Remote Clone PDB
✓ Remote Clone (NonCDB)
Copyright © 2019 Oracle and/or its affiliates.
18 Methods at a Glance
✓Data Pump Conventional Export Import
✓Data Pump Full Transportable
✓Data Pump Transportable Tablespace
✓ RMAN Active Duplicate for PDBs
✓ RMAN Cross Platform Transportable PDB
✓ RMAN Cross Platform TTS Backup Sets
✓ RMAN Transportable Tablespace with Data Pump
✓ RMAN Covert Transportable Tablespace with Data Pump
Copyright © 2019 Oracle and/or its affiliates.
You are running OnPremise Database 11.2.0.4 on AIX
having database size of 10+ TB. Golden Gate as an option
is eliminated due to referential integrity and some
unsupported data types. You cannot afford more than 6
hours of downtime for the migration to OCI DBSystem.
What is the best migration method you can opt for?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method01: RMAN Cross Platform Incremental Transportable Tablespace
Copyright © 2019 Oracle and/or its affiliates.
Method01: RMAN Cross PlatformIncremental Transportable Tablespace
When-Where-Why
✓Best Method for Larger Databases (Metadata Size is Small)
✓Used for Endian Format Conversion
✓Reduced Downtime
✓Doc ID: 2005729.1 (Version Specific Notes)
If-Then-Else
✓ Considerable amount of DBA Effort
✓ Complex, but heavily used by many customers
✓ Initial Effort on Stabilizing the Migration Method (Data Complexity)
Copyright © 2019 Oracle and/or its affiliates.
Method01: RMAN Cross PlatformIncremental Transportable Tablespace
Copyright © 2019 Oracle and/or its affiliates.
Data Validation
Initial Setup (Source Online)
Prepare Phase (Source Online)
Roll Forward Phase (Source
Online)
Transport Phase (Source
Read Only)
You are running OnPremise Database 11.2.0.4 on Linux or
Windows having database size ranging from 50 GB to 50 TB.
All the 12c/18c Databases at OnPremise are multitenant. You
are looking for the most stable migration method to OCI
DBSystem with near zero downtime approach.
What is the best migration method you can opt for?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method02: Hybrid DataGuard from OnPremise to OCI DBSystem
Copyright © 2019 Oracle and/or its affiliates.
Method02: Hybrid DataGuard fromOnPremise to OCI DBSystem
When-Where-Why
✓Most widely used migration method
✓Near zero downtime
✓ Implement as DR-to-Cloud solution and switchover after multiple drills
✓Doc ID: 881421.1
If-Then-Else
✓ OnPremise Linux/Windows
✓ DR Drills are important for issueless migration
Copyright © 2019 Oracle and/or its affiliates.
Method02: Hybrid DataGuard fromOnPremise to OCI DBSystem
Copyright © 2019 Oracle and/or its affiliates.
Switchover and Fly High
with OCI
Establish Connectivity
b/w Source to Target
Prepare Source and Target for
DataGuard Setup
RMAN Standby
Duplicate or Restore from
Service
Multiple DR Drill for Issue
Resolution and
Integrations
You are running Oracle Database 11.2.0.4 or 12cR1/2/18c
Linux x86-64 at OnPremise. As the first stage of
migration you wish to migrate all your NonProduction
workload to OCI DBSystem and do frequent clone from
OnPremise Production to OCI.
What is the best migration method you can opt for?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method03: RMAN Active Duplicate
Copyright © 2019 Oracle and/or its affiliates.
Method03: RMAN Active Duplicate
When-Where-Why
✓Best Method with FastConnect for Multiple Databases
✓OnPremise Database on Linux / Windows
✓Doc ID: 452868.1
If-Then-Else
✓ Source and Target on Same Patch Level (Best Practice)
✓ Copy of TDE Wallet and Auto Login is Mandatory
✓ Initial Effort on Stabilizing the Migration Method
Copyright © 2019 Oracle and/or its affiliates.
Method03: RMAN Active Duplicate
Copyright © 2019 Oracle and/or its affiliates.
Perform RMAN Active
Duplicate
Prepare Source for
RMAN Active Duplicate
(Patch Set)
Configure Static Listener
on OCI DBSystem
Copy TDE Wallet from Source to
Target and Auto Login
Establish Connectivity
b/w OnPremise
and OCI DBSystem
Method04: Unplugging and Plugging a PDB
Copyright © 2019 Oracle and/or its affiliates.
Method04: Unplugging and Plugging a PDB
When-Where-Why
✓Simple and Effective Method of PDB Migration
✓OnPremise Little Endian Family
✓Majorly used for Database Consolidation
✓Useful for Smaller PDBs
✓Doc ID: 2392653.1
If-Then-Else
✓ High Downtime for Larger Databases
✓ Resolve All PlugIn Violation before opening the PDB
Copyright © 2019 Oracle and/or its affiliates.
Method04: Unplugging and Plugging a PDB
Copyright © 2019 Oracle and/or its affiliates.
Open the PDB and Validate
Close the PDB and Unplug to
XML File
Securely Copy the XML File and Datafiles
to OCI DBSystem
Invoke CREATE
PLUGGABLE DATABASE
Resolve all PlugIn
Violations
Method05: Unplugging and Plugging a NonCDB
Copyright © 2019 Oracle and/or its affiliates.
Method05: Unplugging and Plugging a NonCDB
When-Where-Why
✓Simple and Effective Method of NonCDB Migration and Consolidation
✓OnPremise Little Endian Family
✓Majorly used for Database Consolidation
✓Useful for Smaller NonCDBs
✓Doc ID: 2012448.1
If-Then-Else
✓ High Downtime for Larger Databases
✓ Resolve All PlugIn Violation before opening the PDB
Copyright © 2019 Oracle and/or its affiliates.
Method05: Unplugging and Plugging a NonCDB
Copyright © 2019 Oracle and/or its affiliates.
Resolve all PlugIn
Violations and Open the PDB
Open the NonCDB in
Read Only and Unplug to XML File
Securely Copy the XML File and Datafiles
to OCI DBSystem
Invoke CREATE
PLUGGABLE DATABASE
Execute NonCDB to
PDB Script for Cleanup and Conversion
Method06: MV2OCI: Move Data to Oracle Cloud Database in "One-Click"
Copyright © 2019 Oracle and/or its affiliates.
Method06: MV2OCI: Move Data to OracleCloud Database in "One-Click"
When-Where-Why
✓Used for Character Set Conversion
✓Used for Same Versions or Lower to Higher Versions
✓Used for Schema Migration
✓Doc ID: 2514026.1
If-Then-Else
✓ Time consuming affair for larger databases
✓ Need Root privilege on the system
✓ Datapump Files are directly moved to OCI DBSystems
Copyright © 2019 Oracle and/or its affiliates.
Method06: MV2OCI: Move Data to OracleCloud Database in "One-Click"
Copyright © 2019 Oracle and/or its affiliates.
Validate Data
Prepare Source
System for MV2OCI
Install MV2OCI RPM at OnPremise
Database
Create Configuration
File
Perform MV2OCI in Auto Mode
Method07: Data Pump Conventional Export Import
Copyright © 2019 Oracle and/or its affiliates.
Method07: Data Pump ConventionalExport Import
When-Where-Why
✓Used for Endian Format Conversion
✓Used for Character Set Conversion
✓Used for Same Versions or Lower to Higher Versions
✓Majorly Used for Schema Migration
✓Doc ID: 855268.1, 1264715.1
If-Then-Else
✓ Time Consuming Affair for Larger Databases
✓ Manage Role, Grants and Users Delicately
Copyright © 2019 Oracle and/or its affiliates.
Method07: Data Pump ConventionalExport Import
Copyright © 2019 Oracle and/or its affiliates.
Perform IMPDP and
Validate Migrated Data
Prepare Source
System for Datapump
Export
Perform EXPDP to
Export Schemas
Securely Copy Created Dump
Files to OCI DBSystem
Prepare Target for Datapump
Import
Method08: Data Pump Full Transportable
Copyright © 2019 Oracle and/or its affiliates.
Method08: Data Pump Full Transportable
When-Where-Why
✓Used for Endian Format Conversion
✓Used for 11gR2 to 12c Migration
✓Used for 12c NonCDB to 12c Migration
✓Used for 12c CDB to 12c Migration
✓OnPremise 11.2.0.3
✓Doc ID: 2027352.1
If-Then-Else
✓ Time consuming affair for larger databases
✓ Compatible Database Character Sets
Copyright © 2019 Oracle and/or its affiliates.
Method08: Data Pump Full Transportable
Copyright © 2019 Oracle and/or its affiliates.
Validate Data
Put Source Tablespace in
Read Only Mode
Invoke Full Y and
Transportable ALWAYS Export
Securely Copy Created Dump Files and Data
Files to OCI DBSystem
Perform Full Transportable
Datapump Import
Method09: Data Pump Transportable Tablespace
Copyright © 2019 Oracle and/or its affiliates.
Method09: Data Pump TransportableTablespace
When-Where-Why
✓Faster than Conventional Export Import
✓ 11g to 11g-12c-18c-19c
✓TRANSPORT_TABLESPACES=TS1,TS
✓ TRANSPORT_FULL_CHECK=YES
✓Doc ID: 243304.1
If-Then-Else
✓ Compatible Database Character Sets
✓ Check the Tablespace is Self Contained or Not
✓ All Transport Set Violations must be Resolved
Copyright © 2019 Oracle and/or its affiliates.
Method09: Data Pump TransportableTablespace
Copyright © 2019 Oracle and/or its affiliates.
Perform Import with Transport Datafiles Option
Put Source Tablespace in
Read Only Mode
Invoke Transport
Tablespaces Export
Securely Copy Created Dump Files and Data
Files to OCI DBSystem
Create Required Users at Target
You have 1000+ small PDBs spread across
multiple CDBs running at OnPremise Linux
Environment and wish to migrate and
consolidate them to OCI DBSystem with lesser
DBA effort.
Which migration method you would opt for?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method10: Remote Clone PDB
Copyright © 2019 Oracle and/or its affiliates.
Method10: Remote Clone PDB
When-Where-Why
✓OnPremise Database on Little Endian and Multitenant
✓Cloning over Database Link
✓Database Version 12.1.0.2
✓Doc ID: 2297470.1
If-Then-Else
✓ PDB Closed for Migration
✓ Compatible Database Character Sets and National Character Sets
✓ Take Special Care on PDB PlugIn Violations to avoid PDB on Restricted Mode
✓ Work on Stabilizing the Migration Method
Copyright © 2019 Oracle and/or its affiliates.
Method10: Remote Clone PDB
Copyright © 2019 Oracle and/or its affiliates.
Resolve PlugIn Violations and Open the PDB
Create Source User, Give Grants and
Close the PDB
Update Target TNS File with Source PDB Connectivity
String
Create Database Link
Pointing to Source PDB
Perform Remote Clone
PDB Using Create
Pluggable Database
You have 1000+ small NonCDBs running at
OnPremise Windows Environment and wish to
migrate and consolidate them to OCI DBSystem
as Multitenant Database with lesser DBA effort.
Which migration method you would opt for?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method11: Remote Clone (NonCDB)
Copyright © 2019 Oracle and/or its affiliates.
Method11: Remote Clone NonCDB
When-Where-Why
✓OnPremise Database On Little Endian
✓Cloning over Database Link
✓Database Version 12.1.0.2
✓Doc ID: 1928653.1
If-Then-Else
✓ NonCDB in Read Only for Migration
✓ Compatible Database Character Sets and National Character Sets
✓ Take Special Care on PlugIn Violations to avoid PDB on Restricted Mode
✓ Work on Stabilizing the Migration Method
Copyright © 2019 Oracle and/or its affiliates.
Method11: Remote Clone NonCDB
Copyright © 2019 Oracle and/or its affiliates.
Resolve PlugIn Violations and Open the PDB
Create Source User, Give Grants and
Close the PDB
Create Database Link
Pointing to Source CDB
Create Pluggable Database
NON$CDB
Execute NonCDB to PDB SQL
Script
You have few midsize (~500GB) 12.2 Pluggable
Databases running at OnPremise Little Endian
Family scattered across multiple CDBs. You
wish to migrate and consolidate on OCI ExaCS
DBSystem. What is the best possible migration
method if you consider a reduced downtime
approach?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method12: RMAN Cross Platform Transportable PDB
Copyright © 2019 Oracle and/or its affiliates.
Method12: RMAN Cross PlatformTransportable PDB
When-Where-Why
✓OnPremise Database On Little Endian
✓RMAN Backup-based Migration using XML File
✓Database Version 12.1.0.2
✓Doc ID: 2308210.1
If-Then-Else
✓ Compatible Database Character Sets and National Character Sets
✓ ALLOW INCONSISTENT Enhancement in 12.2 to Reduce Downtime
✓ Backup Time Reduced, Restoration Time Remains Same
Copyright © 2019 Oracle and/or its affiliates.
Method12: RMAN Cross PlatformTransportable PDB
Copyright © 2019 Oracle and/or its affiliates.
Open the Restored Pluggable Database
Close Source PDB and Take
Backup for Transport
Securely Copy the Backup
Piece and PDB Metadata
Check PlugIn Compatibility at Destination
Restore Foreign
Pluggable Database
from Backup Sets
You have 100+ of NonProduction Database at
OnPremise running on AIX. You wish to
migrate to OCI DBSystem as part of Database
consolidation. Downtime is not a constraint
and you are looking for an effective, easy to use
migration approach. What is best suitable
migration method for this scenario?
Copyright © 2019 Oracle and/or its affiliates.
Cloud Migration Quiz
Method13: RMAN Cross Platform TTS Backup Sets
Copyright © 2019 Oracle and/or its affiliates.
Method13: RMAN Cross PlatformTTS Backup Sets
When-Where-Why
✓Uses for Endian Format Conversion
✓Used for 12cR1 or higher
✓Tablespace Migration and Database Consolidation
✓OnPremise Database Version 12.1.0.2
✓Doc ID: 2013271.1
If-Then-Else
✓ Compatible Database Character Sets
✓ OnPremise Tablespace in Read Only Mode during Migration.
✓ Increased Downtime for Larger Databases
✓ Increased Downtime for Larger Metadata
Copyright © 2019 Oracle and/or its affiliates.
Method13: RMAN Cross PlatformTTS Backup Sets
Copyright © 2019 Oracle and/or its affiliates.
ALTER the Tablespace to
Read Write
Put the Source Tablespace in
Read Only Mode
Backup Using TO
PLATFORM Linux x86 64-
bit
Securely Copy the Backup
Sets and Data Pump Export
Dump to Destination
Restore Foreign
Tablespace / Datafiles
Method14: RMAN Transportable Tablespace with Data Pump
Copyright © 2019 Oracle and/or its affiliates.
Method14: RMAN Transportable Tablespacewith Data Pump
When-Where-Why
✓OnPremise Little Endian
✓Tablespace Migration and Database Consolidation
✓Mostly Used for NonProduction Migrations
✓Doc ID: 455593.1
If-Then-Else
✓ Compatible Database Character Sets
✓ OnPremise Tablespace is in Read Write during Migration.
✓ Used for Migrate and Upgrade
✓ Used for Cloning OnPremise Production to NonProduction on OCI DBSystem
Copyright © 2019 Oracle and/or its affiliates.
Method14: RMAN Transportable Tablespacewith Data Pump
Copyright © 2019 Oracle and/or its affiliates.
Invoke Import with Transport
Datafile Option
Create AUXILIARY & TABLESPACE Destination at
OnPremise Host
Backup Using TRANSPORT TABLESPACE
Clause
Securely Copy the Content
from TABLESPACE Destination to OCI DBSystem
Create User and DBA
Directory on OCI DBSystem
Method15: RMAN Covert Transportable Tablespace with Data Pump
Copyright © 2019 Oracle and/or its affiliates.
Method15: RMAN Covert TransportableTablespace with Data Pump
When-Where-Why
✓Used for Endian Format Conversion
✓Tablespace Migration and Database Consolidation
✓RMAN and Data Pump are executed separately
✓Doc ID: 371556.1 (Use RMAN Convert Section)
If-Then-Else
✓ Compatible Database Character Sets
✓ OnPremise Tablespace is in Read Only Mode during Migration.
✓ Mostly Used for NonProduction Migrations
Copyright © 2019 Oracle and/or its affiliates.
Method15: RMAN Covert TransportableTablespace with Data Pump
Copyright © 2019 Oracle and/or its affiliates.
Invoke Import with Transport
Datafile Option
Put Source Tablespaces In
Read Only Mode
Perform EXPDP with
TRANSPORT TABLESPACES
Option
Invoke RMAN with
CONVERT TABLESPACE
Clause
Create User and DBA
Directory on OCI DBSystem
Method16: RMAN Restore and Recovery from Full Backup
Copyright © 2019 Oracle and/or its affiliates.
Method16: RMAN Restore and Recoveryfrom Full Backup
When-Where-Why
✓OnPremise Little Endian
✓Larger Downtime for Larger Database
✓Traditional Backup and Recovery
✓Doc ID: Oracle Documentation
If-Then-Else
✓ Patchset Levels and Patch Reconciliation
✓ Favorite Methods for Easy Migration
✓ Mostly Used for NonProduction Migrations
Copyright © 2019 Oracle and/or its affiliates.
Method16: RMAN Restore and Recoveryfrom Full Backup
Copyright © 2019 Oracle and/or its affiliates.
Validate the DBSystem and Data
Implement TDE at
OnPremise Database
Implement Cloud Backup
Module at OnPremise Database /
DTA
Take Backup to the OCI
Object Storage
Create OCI DBSystem
from Object Storage Backup
Method17: Golden Gate Real Time Replication
Copyright © 2019 Oracle and/or its affiliates.
Method18: RMAN Active Duplicate for PDB
Copyright © 2019 Oracle and/or its affiliates.
Method06: RMAN Active Duplicate for PDB
When-Where-Why
✓Best Method with FastConnect for Multiple PDBs Databases
✓OnPremise Database on Linux / Windows
✓Doc ID: 2457397.1
If-Then-Else
✓ Source and Target on Same Patch Level (Best Practice)
✓ Initial Effort on Stabilizing the Migration Method
✓ Source PDBs shall not have encrypted tablespaces
Copyright © 2019 Oracle and/or its affiliates.
Method06: RMAN Active Duplicate for PDB
Copyright © 2019 Oracle and/or its affiliates.
Perform Validation of PDB on OCI DBSystem
Prepare Source for
RMAN Active Duplicate
(Patch Set)
Configure Static Listener
on OCI DBSystem
Establish Connectivity
b/w OnPremise
and OCI DBSystem
Perform RMAN Active
Duplicate
What’s Ahead
Session Details
Session ID: CAS3515
Session Title: Solving Industry Challenges Using Oracle Autonomous Data Warehouse
Room: Moscone South - Room 151B
Date / Time: 09/17/19 (Tuesday) 12:30:00 PM
What we are covering: Data-driven, ML enabled operational analytics to solve Industry challenges in ADW
Come Join Us….
Copyright © 2019 Oracle and/or its affiliates.
C
Design the migration method and Bring your Database to Oracle Cloud using best suitable method.
We will help you at every step of your Cloud journey
Copyright © 2019 Oracle and/or its affiliates.
Sign-up for Trial Accountcloud.oracle.comA
B
Next Steps
Thank You
Contact Details
Sudipto Basu ([email protected])LinkedIn: https://www.linkedin.com/in/basusudipto/
Malay Kumar Khawas ([email protected])LinkedIn: https://www.linkedin.com/in/mkhawas/Twitter: https://twitter.com/MalayKhawas
Copyright © 2019 Oracle and/or its affiliates.