You are on page 1of 70

18 Methods to Migrate Your

Database to Oracle Cloud


Malay Kumar Khawas

Oracle Enterprise Architect, North America Cloud


Sangam 2019, Hyderabad (06-Dec-2019 – 07-Dec-2019)
Safe Harbor

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.

Copyright © 2019 Oracle and/or its affiliates.


Number Theory of 18 Methods to Migrate
Your Database to Oracle Cloud

18 35 ~2

Copyright © 2019 Oracle and/or its affiliates.


Permutation and Combination of
Database Migration

ATP VM
Serverless DBSystem
Little Endian
Family

Autonomous
Source 11gR2 Bare Metal Database on
Data
OnPremise DBSystem OCI Compute
Warehouse

Big Endian
Family 11gR2, 12cR1,
ATP Exadata 12cR2, 18c,
Dedicated DBSystem 19c

Copyright © 2019 Oracle and/or its affiliates.


Factors to Decide a Migration Method

Source Source Source


Database Source CDB Source DB
Database Database
Version or NonCDB Data Types
Host OS Size

Source Project OCI


Database Financials & Permissible Network
DBSystem
Character Set Licensing Downtime Bandwidth
Versions

Staging Many More


Storage …..
Requirement …..

Copyright © 2019 Oracle and/or its affiliates.


18 Methods at a Glance

✓ RMAN Cross Platform Incremental ✓ Unplugging and Plugging a PDB


Transportable Tablespace ✓ Unplugging and Plugging a NonCDB
✓ Hybrid DataGuard from ✓ Remote Clone PDB
OnPremise to OCI DBSystem
✓ Remote Clone (NonCDB)
✓ 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"
Copyright © 2019 Oracle and/or its affiliates.
18 Methods at a Glance

✓ Data Pump Conventional Export ✓ RMAN Active Duplicate for PDBs


Import ✓ RMAN Cross Platform Transportable
✓ Data Pump Full Transportable PDB
✓ Data Pump Transportable ✓ RMAN Cross Platform TTS Backup
Tablespace Sets
✓ RMAN Transportable Tablespace
with Data Pump
✓ RMAN Covert Transportable
Tablespace with Data Pump

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method01: RMAN Cross Platform Incremental
Transportable Tablespace

Copyright © 2019 Oracle and/or its affiliates.


Method01: RMAN Cross Platform
Incremental Transportable Tablespace

When-Where-Why If-Then-Else
✓ Best Method for Larger Databases ✓ Considerable amount of DBA Effort
(Metadata Size is Small) ✓ Complex, but heavily used by many
✓ Used for Endian Format customers
Conversion
✓ Initial Effort on Stabilizing the
✓ Reduced Downtime Migration Method (Data Complexity)
✓ Doc ID: 2005729.1 (Version
Specific Notes)

Copyright © 2019 Oracle and/or its affiliates.


Method01: RMAN Cross Platform
Incremental Transportable Tablespace

Initial Setup Prepare Phase Roll Forward Transport


Data
(Source (Source Phase (Source Phase (Source
Validation
Online) Online) Online) Read Only)

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method02: Hybrid DataGuard from OnPremise
to OCI DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Method02: Hybrid DataGuard from
OnPremise to OCI DBSystem

When-Where-Why If-Then-Else
✓ Most widely used migration ✓ OnPremise Linux/Windows
method ✓ DR Drills are important for issueless
✓ Near zero downtime migration
✓ Implement as DR-to-Cloud
solution and switchover after
multiple drills
✓ Doc ID: 881421.1

Copyright © 2019 Oracle and/or its affiliates.


Method02: Hybrid DataGuard from
OnPremise to OCI DBSystem

Prepare RMAN Multiple DR


Establish Standby Drill for Issue Switchover
Source and
Connectivity Duplicate or Resolution and Fly High
Target for
b/w Source to Restore from and with OCI
DataGuard
Target Service Integrations
Setup

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method03: RMAN Active Duplicate

Copyright © 2019 Oracle and/or its affiliates.


Method03: RMAN Active Duplicate

When-Where-Why If-Then-Else
✓ Best Method with FastConnect for ✓ Source and Target on Same Patch
Multiple Databases Level (Best Practice)
✓ OnPremise Database on Linux / ✓ Copy of TDE Wallet and Auto Login
Windows is Mandatory
✓ Doc ID: 452868.1 ✓ Initial Effort on Stabilizing the
Migration Method

Copyright © 2019 Oracle and/or its affiliates.


Method03: RMAN Active Duplicate

Establish
Prepare Copy TDE
Configure Connectivity
Source for Wallet from Perform
Static Listener b/w
RMAN Active Source to RMAN Active
on OCI OnPremise
Duplicate Target and Duplicate
DBSystem and OCI
(Patch Set) Auto Login
DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Method04: Unplugging and Plugging a PDB

Copyright © 2019 Oracle and/or its affiliates.


Method04: Unplugging and Plugging a PDB

When-Where-Why If-Then-Else
✓ Simple and Effective Method of ✓ High Downtime for Larger Databases
PDB Migration ✓ Resolve All PlugIn Violation before
✓ OnPremise Little Endian Family opening the PDB
✓ Majorly used for Database
Consolidation
✓ Useful for Smaller PDBs
✓ Doc ID: 2392653.1

Copyright © 2019 Oracle and/or its affiliates.


Method04: Unplugging and Plugging a PDB

Securely Copy Invoke


Close the PDB the XML File Resolve all
CREATE Open the PDB
and Unplug to and Datafiles PlugIn
PLUGGABLE and Validate
XML File to OCI Violations
DATABASE
DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Method05: Unplugging and Plugging a NonCDB

Copyright © 2019 Oracle and/or its affiliates.


Method05: Unplugging and Plugging a NonCDB

When-Where-Why If-Then-Else
✓ Simple and Effective Method of ✓ High Downtime for Larger Databases
NonCDB Migration and ✓ Resolve All PlugIn Violation before
Consolidation opening the PDB
✓ OnPremise Little Endian Family
✓ Majorly used for Database
Consolidation
✓ Useful for Smaller NonCDBs
✓ Doc ID: 2012448.1

Copyright © 2019 Oracle and/or its affiliates.


Method05: Unplugging and Plugging a NonCDB

Open the Securely Copy Execute


Invoke Resolve all
NonCDB in the XML File NonCDB to
CREATE PlugIn
Read Only and and Datafiles PDB Script for
PLUGGABLE Violations and
Unplug to to OCI Cleanup and
DATABASE Open the PDB
XML File DBSystem Conversion

Copyright © 2019 Oracle and/or its affiliates.


Method06: MV2OCI: Move Data to Oracle Cloud
Database in "One-Click"

Copyright © 2019 Oracle and/or its affiliates.


Method06: MV2OCI: Move Data to Oracle
Cloud Database in "One-Click"

When-Where-Why If-Then-Else
✓ Used for Character Set Conversion ✓ Time consuming affair for larger
databases
✓ Used for Same Versions or Lower
to Higher Versions ✓ Need Root privilege on the system
✓ Used for Schema Migration ✓ Datapump Files are directly moved
to OCI DBSystems
✓ Doc ID: 2514026.1

Copyright © 2019 Oracle and/or its affiliates.


Method06: MV2OCI: Move Data to Oracle
Cloud Database in "One-Click"

Prepare Install Create Perform


Source MV2OCI RPM Configuration MV2OCI in Validate Data
System for at OnPremise File Auto Mode
MV2OCI Database

Copyright © 2019 Oracle and/or its affiliates.


Method07: Data Pump Conventional Export
Import

Copyright © 2019 Oracle and/or its affiliates.


Method07: Data Pump Conventional
Export Import

When-Where-Why If-Then-Else
✓ Used for Endian Format ✓ Time Consuming Affair for Larger
Conversion Databases
✓ Used for Character Set Conversion ✓ Manage Role, Grants and Users
Delicately
✓ Used for Same Versions or Lower
to Higher Versions
✓ Majorly Used for Schema
Migration
✓ Doc ID: 855268.1, 1264715.1

Copyright © 2019 Oracle and/or its affiliates.


Method07: Data Pump Conventional
Export Import

Prepare Securely Copy Perform


Perform Prepare Target
Source Created Dump IMPDP and
EXPDP to for Datapump
System for Files to OCI Validate
Export Import
Datapump DBSystem Migrated Data
Schemas
Export

Copyright © 2019 Oracle and/or its affiliates.


Method08: Data Pump Full Transportable

Copyright © 2019 Oracle and/or its affiliates.


Method08: Data Pump Full Transportable

When-Where-Why If-Then-Else
✓ Used for Endian Format ✓ Time consuming affair for larger
Conversion databases
✓ Used for 11gR2 to 12c Migration ✓ Compatible Database Character Sets
✓ Used for 12c NonCDB to 12c
Migration
✓ Used for 12c CDB to 12c Migration
✓ OnPremise  11.2.0.3
✓ Doc ID: 2027352.1
Copyright © 2019 Oracle and/or its affiliates.
Method08: Data Pump Full Transportable

Invoke Full Y Securely Copy


Put Source Perform Full
and Created Dump
Tablespace in Transportable
Transportable Files and Data Validate Data
Read Only Datapump
ALWAYS Files to OCI
Mode Import
Export DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Method09: Data Pump Transportable Tablespace

Copyright © 2019 Oracle and/or its affiliates.


Method09: Data Pump Transportable
Tablespace

When-Where-Why If-Then-Else
✓ Faster than Conventional Export ✓ Compatible Database Character Sets
Import ✓ Check the Tablespace is Self
✓ 11g to 11g-12c-18c-19c Contained or Not
✓ TRANSPORT_TABLESPACES=TS1, ✓ All Transport Set Violations must be
TS Resolved
✓ TRANSPORT_FULL_CHECK=YES
✓ Doc ID: 243304.1

Copyright © 2019 Oracle and/or its affiliates.


Method09: Data Pump Transportable
Tablespace

Securely Copy Perform


Put Source Invoke Create
Created Dump Import with
Tablespace in Transport Required
Files and Data Transport
Read Only Tablespaces Users at
Files to OCI Datafiles
Mode Export Target
DBSystem Option

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method10: Remote Clone PDB

Copyright © 2019 Oracle and/or its affiliates.


Method10: Remote Clone PDB

When-Where-Why If-Then-Else
✓ OnPremise Database on Little ✓ PDB Closed for Migration
Endian and Multitenant ✓ Compatible Database Character Sets
✓ Cloning over Database Link and National Character Sets
✓ Database Version  12.1.0.2 ✓ Take Special Care on PDB PlugIn
Violations to avoid PDB on
✓ Doc ID: 2297470.1
Restricted Mode
✓ Work on Stabilizing the Migration
Method

Copyright © 2019 Oracle and/or its affiliates.


Method10: Remote Clone PDB

Perform
Update Target Create Remote Clone
Create Source Resolve PlugIn
TNS File with Database Link PDB Using
User, Give Violations and
Source PDB Pointing to Create
Grants and Open the PDB
Connectivity Source PDB Pluggable
Close the PDB
String Database

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method11: Remote Clone (NonCDB)

Copyright © 2019 Oracle and/or its affiliates.


Method11: Remote Clone NonCDB

When-Where-Why If-Then-Else
✓ OnPremise Database On Little ✓ NonCDB in Read Only for Migration
Endian ✓ Compatible Database Character Sets
✓ Cloning over Database Link and National Character Sets
✓ Database Version  12.1.0.2 ✓ Take Special Care on PlugIn
Violations to avoid PDB on
✓ Doc ID: 1928653.1
Restricted Mode
✓ Work on Stabilizing the Migration
Method

Copyright © 2019 Oracle and/or its affiliates.


Method11: Remote Clone NonCDB

Create Source Create Create Execute


Resolve PlugIn
User, Give Database Link Pluggable NonCDB to
Violations and
Grants and Pointing to Database PDB SQL
Open the PDB
Close the PDB Source CDB NON$CDB Script

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method12: RMAN Cross Platform Transportable
PDB

Copyright © 2019 Oracle and/or its affiliates.


Method12: RMAN Cross Platform
Transportable PDB

When-Where-Why If-Then-Else
✓ OnPremise Database On Little ✓ Compatible Database Character Sets
Endian and National Character Sets
✓ RMAN Backup-based Migration ✓ ALLOW INCONSISTENT
using XML File Enhancement in 12.2 to Reduce
Downtime
✓ Database Version  12.1.0.2
✓ Backup Time Reduced, Restoration
✓ Doc ID: 2308210.1
Time Remains Same

Copyright © 2019 Oracle and/or its affiliates.


Method12: RMAN Cross Platform
Transportable PDB

Restore
Close Source Securely Copy Foreign Open the
Check PlugIn
PDB and Take the Backup Pluggable Restored
Compatibility
Backup for Piece and PDB Database Pluggable
at Destination
Transport Metadata from Backup Database
Sets

Copyright © 2019 Oracle and/or its affiliates.


Cloud Migration Quiz

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.


Method13: RMAN Cross Platform TTS Backup
Sets

Copyright © 2019 Oracle and/or its affiliates.


Method13: RMAN Cross Platform
TTS Backup Sets

When-Where-Why If-Then-Else
✓ Uses for Endian Format ✓ Compatible Database Character Sets
Conversion ✓ OnPremise Tablespace in Read Only
✓ Used for 12cR1 or higher Mode during Migration.
✓ Tablespace Migration and ✓ Increased Downtime for Larger
Database Consolidation Databases
✓ OnPremise Database Version  ✓ Increased Downtime for Larger
12.1.0.2 Metadata
✓ Doc ID: 2013271.1

Copyright © 2019 Oracle and/or its affiliates.


Method13: RMAN Cross Platform
TTS Backup Sets

Securely Copy
Backup Using the Backup Restore
Put the Source ALTER the
TO Sets and Data Foreign
Tablespace in Tablespace to
PLATFORM Pump Export Tablespace /
Read Only Read Write
Linux x86 64- Dump to Datafiles
Mode
bit Destination

Copyright © 2019 Oracle and/or its affiliates.


Method14: RMAN Transportable Tablespace
with Data Pump

Copyright © 2019 Oracle and/or its affiliates.


Method14: RMAN Transportable Tablespace
with Data Pump

When-Where-Why If-Then-Else
✓ OnPremise Little Endian ✓ Compatible Database Character Sets
✓ Tablespace Migration and ✓ OnPremise Tablespace is in Read
Database Consolidation Write during Migration.
✓ Mostly Used for NonProduction ✓ Used for Migrate and Upgrade
Migrations ✓ Used for Cloning OnPremise
✓ Doc ID: 455593.1 Production to NonProduction on OCI
DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Method14: RMAN Transportable Tablespace
with Data Pump

Create Securely Copy


AUXILIARY & Backup Using the Content Create User Invoke Import
TABLESPACE TRANSPORT from and DBA with Transport
Destination at TABLESPACE TABLESPACE Directory on Datafile
OnPremise Clause Destination to OCI DBSystem Option
Host OCI DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Method15: RMAN Covert Transportable
Tablespace with Data Pump

Copyright © 2019 Oracle and/or its affiliates.


Method15: RMAN Covert Transportable
Tablespace with Data Pump

When-Where-Why If-Then-Else
✓ Used for Endian Format ✓ Compatible Database Character Sets
Conversion ✓ OnPremise Tablespace is in Read
✓ Tablespace Migration and Only Mode during Migration.
Database Consolidation
✓ Mostly Used for NonProduction
✓ RMAN and Data Pump are Migrations
executed separately
✓ Doc ID: 371556.1 (Use RMAN
Convert Section)

Copyright © 2019 Oracle and/or its affiliates.


Method15: RMAN Covert Transportable
Tablespace with Data Pump

Perform Invoke RMAN


Put Source Create User Invoke Import
EXPDP with with
Tablespaces In and DBA with Transport
TRANSPORT CONVERT
Read Only Directory on Datafile
TABLESPACES TABLESPACE
Mode OCI DBSystem Option
Option Clause

Copyright © 2019 Oracle and/or its affiliates.


Method16: RMAN Restore and Recovery from
Full Backup

Copyright © 2019 Oracle and/or its affiliates.


Method16: RMAN Restore and Recovery
from Full Backup

When-Where-Why If-Then-Else
✓ OnPremise Little Endian ✓ Patchset Levels and Patch
Reconciliation
✓ Larger Downtime for Larger
Database ✓ Favorite Methods for Easy Migration
✓ Traditional Backup and Recovery ✓ Mostly Used for NonProduction
Migrations
✓ Doc ID: Oracle Documentation

Copyright © 2019 Oracle and/or its affiliates.


Method16: RMAN Restore and Recovery
from Full Backup

Implement Create OCI


Implement Cloud Backup Take Backup
DBSystem Validate the
TDE at Module at to the OCI
from Object DBSystem
OnPremise OnPremise Object
Storage and Data
Database Database / Storage
Backup
DTA

Copyright © 2019 Oracle and/or its affiliates.


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 If-Then-Else
✓ Best Method with FastConnect for ✓ Source and Target on Same Patch
Multiple PDBs Databases Level (Best Practice)
✓ OnPremise Database on Linux / ✓ Initial Effort on Stabilizing the
Windows Migration Method
✓ Doc ID: 2457397.1 ✓ Source PDBs shall not have
encrypted tablespaces

Copyright © 2019 Oracle and/or its affiliates.


Method06: RMAN Active Duplicate for PDB

Establish
Prepare Connectivity Perform
Configure Perform
Source for b/w Validation of
Static Listener RMAN Active
RMAN Active OnPremise PDB on OCI
on OCI Duplicate
Duplicate and OCI DBSystem
DBSystem
(Patch Set) DBSystem

Copyright © 2019 Oracle and/or its affiliates.


Next Steps

A
Sign-up for Trial Account
cloud.oracle.com

B
Design the migration method and
Bring your Database to Oracle Cloud
using best suitable method.

C
We will help you at every step of your
Cloud journey

Copyright © 2019 Oracle and/or its affiliates.


Thank You

Contact Details

Sudipto Basu (sudipto.basu@oracle.com)


LinkedIn: https://www.linkedin.com/in/basusudipto/

Malay Kumar Khawas (malay.kumar.khawas@oracle.com)


LinkedIn: https://www.linkedin.com/in/mkhawas/
Twitter: https://twitter.com/MalayKhawas

Copyright © 2019 Oracle and/or its affiliates.


Method19: Refreshable PDB Switchover

Copyright © 2019 Oracle and/or its affiliates.


Method20: DBCA PDB Clone

Copyright © 2019 Oracle and/or its affiliates.

You might also like