0% found this document useful (0 votes)
442 views

Moving Databases To Oci-: Methods & Best Practices

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
442 views

Moving Databases To Oci-: Methods & Best Practices

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 47

Moving Databases to

Methods
OCI- & Best
Practices
L200
Bal Sharma
Oracle Cloud
Infrastructure October
2019
Safe harbor statement

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.
Agenda

• Oracle Databases in the Oracle Cloud


• Move to the Oracle Cloud – Migration
Scenarios
• Oracle Database Cloud Migration Solutions
Part 1. Move to the Oracle
Cloud-
Oracle Database Cloud Services & Considerations for Cloud Migration
Oracle Database Cloud
Services
Cloud Migration Best Practice

Understand which Oracle Database Cloud Service


is best for your use case
Single instance or RAC-enabled choices, Oracle Cloud Infrastructure offers elastic database virtual
machine services for application development, test, and production deployment.

Up to 640 Gb of RAM
Memory

Scale up to 48 Cores
Cores

Up to 40 TB of remote NVMe SSD Block Volumes


Storage

Standard or Enterprise Edition | 11.2, 12.1, 12.2, 18c, 19c


Database

ZDM, SQL Developer, RMAN, Data Pump, MAA, Plug/Unplug, Remote Cloning
Migration
Solutions
Oracle Cloud is the only Cloud providing dedicated bare metal servers for the Oracle Database,
offering the best in class performance.

Memory Up to 768 Gb of RAM

Cores Scale up to 52 Cores

Storage Up to 51.2 TB of local NVMe SSD Database Storage

Database Standard or Enterprise Edition | 11.2, 12.1, 12.2, 18c, 19c

Migration ZDM, SQL Developer, RMAN, Data Pump, MAA, Plug/Unplug, Remote Cloning

Solutions
Oracle highest-performance engineered system, catering for all your enterprise needs, supporting
OLTP, Data Warehouse and real-time analytic and mixed database workloads.

Up to 5.7 TB of RAM & over 300 TB of NVMe Flash Cache


Memory

Cores Scale up to 368 Cores

Up to 340 TB of Database Storage


Storage

Enterprise Edition | 11.2, 12.1, 12.2, 18c, 19c


Database

Migration ZDM, SQL Developer, RMAN, Data Pump, MAA, Plug/Unplug, Remote Cloning

Solutions
Oracle highest-performance engineered system, catering for all your enterprise needs, supporting
OLTP, Data Warehouse and real-time analytic and mixed database workloads, in your data center and
managed by Oracle.

Up to 5.7 TB of RAM & over 300 TB of NVMe Flash Cache


Memory

Cores Scale up to 368 Cores

Up to 340 TB of Database Storage


Storage

Enterprise Edition | 11.2, 12.1, 12.2, 18c, 19c


Database

Migration ZDM, SQL Developer, RMAN, Data Pump, MAA, Plug/Unplug, Remote Cloning

Solutions
Autonomous Database
Cloud

PDB • PDB
Optimized for • Optimized for
Analytics Columnar OLTP
Large PGA
• Row based
• Large SGA
Statistics maintained
during bulk loads • Stats gathering
triggered by
DML
Migration DBMS_CLOUD, SQL Developer, MAA, Data Pump, SQL*Loader, MV2ADB

Solutions Data Loading for Autonomous Data Ware House


Data Loading for Autonomous Transaction Processing Serverless Deployments
Data Loading for Autonomous Transaction Processing Dedicated Deployments
Cloud Migration Best
Practice

Understand your Cloud Migration


Landscape
Cloud Migration
Scenarios

Oracle RDS & on EC2

Redshift
Cloud Migration Best
Practice

Understand the available Cloud Migration


Solutions and determine which best suits your
needs
Oracle Database Cloud Migration
Solutions
Oracle Database Cloud Migration Solutions
Method Logical / Physical Online / Offline Database Size

Physical Online Any

Logical Online Any

Physical Online Any

Logical & Physical Online / Offline Any


Oracle Database Cloud Migration
Solutions
Method Logical / Physical Online / Offline Database Size

Logical Online Small to Medium

Physical Online / Offline Any

Physical Online / Offline Any

Physical Online Small to Medium


Cloud Migration Best
Practice

For Autonomous Database use MV2ADB

For all other use cases use ZDM when


applicable
ZDM will integrate MV2ADB in a single tool

If not applicable, use manual methods according


on your requirements
Part 2. Move to the Oracle
Cloud-
Migrating to Autonomous Databases using MV2ADB
Introducing MOVE to the Oracle Cloud
www.oracle.com/goto/move

20
Autonomous Cloud | General Migration
Path

On Object Autonomous
Premises Storage Oracle
Database
Autonomous Cloud | General
Migration Techniques

DBMS_CLOUD
SQL
Developer
Data Pump
On Object Autonomous
Premises SQL*Load Storage Oracle
er Database
MV2ADB

How To Load Data To ADW/ATP Using DBMS_CLOUD.COPY_DATA Method And Find/Validate


The Inputs Required (Doc ID 2493502.1)
Cloud Migration Best
Practice

Use the Schema Advisor when migrating to


Oracle Autonomous Database
Cloud Migration Best
Practice

Use MV2ADB when migrating to Oracle


Autonomous Database
Migration Tools | MV2ADB
MOS Note: 2463574.1
MV2ADB:
Move to Autonomous
Database
Migration Tools | MV2ADB - Prerequisites
OCI Command Line Interface must be
installed
https://github.com/oracle/oci-cli
Migration Tools | MV2ADB -
Download
MOS Note:2463574.1
MV2ADB: move data to Autonomous Database in "one-
click"
Migration Tools | MV2ADB
Operation Modes
Operation modes
1. expdp from source (schemas
auto based)
expdp 2. upload dump to Oracle Object
Store
3. impdp into Autonomous Database
impd Cloud
p

OCI
object
storag
e
bucke
t
operat
Part 3. Move to the Oracle
Cloud-
Oracle Zero Downtime Migration
Zero Downtime Migration
Simple Comprehensive Fleet Scale

Single Button Approach MAA Compliant Centralized

Extensive Pre/Post-checks Scheduled Operations

Resumable Command Deck

Rollback enabled Audit


Trail
Dry-run option Migrations in Parallel

Customizable Workflow Jobs Framework


Zero Downtime Migration
Sources Targets

Same Version / Platform


ZDM
Migration from OCI-C to OCI
Oracle Zero Downtime Migration

Step by Step Migration


workflow
Zero Downtime Migration
Operational Phases

• Workflow is defined in 4 categories divided in operational


phases

• Workflow can be customized by inserting plug-ins on each


phase

• Migration can be paused and resumed at most operational


phases&
Analysis
Migration Switch Finalize
Preparation
Zero Downtime Migration
Workflow

Download &
1
Configure ZDM

Application
Zero Downtime Migration
Workflow

ZDM Connects
to Source & 2
Target

Application

SS SS
ZDM
H H
Zero Downtime Migration
Workflow

ZDM Connects
Source to Object 3
Store

Application

https

SS SS
H ZDM H
Zero Downtime Migration
Workflow

ZDM
4
Transfers
DB Files

• Database
Application Files
• Full
https Backup
• Including Incremental
Archives
SS SS
H ZDM H
Zero Downtime Migration
Workflow

ZDM
Inst antiates 5
Standby

• Standby on target initiates


Application with the backup files
transferred to the Object
Store
https

SS SS
H ZDM H
Zero Downtime Migration
Workflow
ZDM
Synchronizes
6
Primary &
Standby

• SQLnet connectivity is
Application established between source
& target

SQLnet
• Synchronization between
Primary and Standby
starts
SS SS
H ZDM H
Zero Downtime Migration
Workflow

ZDM Switches
over and Role 7
Swaps

• Switchov
Application er
• Role swap between Primary
and Standby
SQLnet

SS SS
H ZDM H
Zero Downtime Migration
Workflow

User Finalizes at
8
Will

• ZDM keeps the standby


Application on- premises
synchronized.

• User decides when to stop


SQLnet this process in case fall back
is required.

SS SS
H ZDM H
Zero Downtime Migration
Workflow

1 Download ZDM

2 Connects to Source & Target

3 Connects to Object Store

Application 4 Transfers DB Files

5 Instantiates Standby
SQLnet
6 Syncs Primary & Standby

SS SS 7 Switches Over & Role Swaps


H ZDM H

8 User Finalizes at Will


www.oracle.com/goto/zdm

45 Copyright © 2019 Oracle and/or its


affiliates.
Cloud Migration Best Practice

“Switch Over” at will.


Always test your new environment and applications
after migrating and before performing the final
switch over
Summar
y
After completing this module you should have learnt :
• Oracle Databases in the Oracle Cloud
• Methods to move to the Oracle Cloud – Migration
Scenarios
• Oracle Database Cloud Migration Solutions
Oracle Cloud always free tier:
oracle.com/cloud/free/

OCI training and certification:


oracle.com/cloud/iaas/training
oracle.com/cloud/iaas/training/certification
education.oracle.com/oracle-certification-path

OCI hands-on labs:


ocitraining.qloudable.com/provider/or
acle

Oracle learning library videos on YouTube:


youtube.com/user/OracleLearning

You might also like