2. Trivadis – Our Key Figures
From your Datacenter into the Oracle Cloud
• Founded in 1994
• 16 Trivadis locations with
more than 650 employees
• Sales of CHF 111 million (EUR 96 million)
• Over 250 Service Level Agreements
• More than 4000 training participants
• Research and development budget: CHF
5.0 million
• More than 1900 projects each year with
over 800 customers
• Financially independent and sustainably
profitable
02.10.20192
3. Martin Berger
• @Kestenholz / Jurasüdfuss / Switzerland
• 2 Junior DBAs
• Trainer for Oracle Infra & Cloud Topics
• Fire Department Instructor
• Lives the Trivadis cultural values: curiosity,
doers, network, space, and together.
martinberger_ch martinberger.com
5. Approximate Upload Times
Dataset Size 10 Mbps 100 Mbps 1 Gbps 10 Gbp1 Data Transfer
Service
10 TB 91 Days 9 Days 22 Hrs 2 Hrs 1 Week
100 TB 1’018 Days 101 Day 10 Days 24 Hrs 1 Week
500 TB 5’09 Days 509 Days 50 Days 5 Days 1 Week
1 PB 10’185 Days 1’018 Days 101 Days 10 Days 2 Week
'
From your Datacenter into the Oracle Cloud02.10.20195
https://cloud.oracle.com/en_US/storage/data-transfer-appliance/faq
6. What’s your plan?
• One-Click Provisioning
• Lift and Shift
• 1:1 Move
• Clone
• Start from Scratch
• Characterset Change
• Architecture Improvement
From your Datacenter into the Oracle Cloud02.10.20196
7. 11g Migration Methods
• Data Pump Conventional Export/Import
• Data Pump Transportable Tablespace
• RMAN Transportable Tablespace with Data Pump
• RMAN CONVERT Transportable Tablespace with Data Pump
From your Datacenter into the Oracle Cloud02.10.20197
8. 12c / 18c / 19c Migration Methods
• Data Pump Conventional Export/Import
• Data Pump Transportable Tablespace
• RMAN Transportable Tablespace with Data Pump
• RMAN CONVERT Transportable Tablespace with Data Pump
• RMAN Cross-Platform Transportable Tablespace Backup Sets
• Data Pump Full Transportable
• Unplugging/Plugging (CDB)
• Remote Cloning (CDB)
• RMAN Cross-Platform Transportable PDB
• SQL Developer and SQL*Loader to Migrate Selected Objects
• SQL Developer and INSERT Statements to Migrate Selected Objects
From your Datacenter into the Oracle Cloud02.10.20198
9. Network – Public vs. Private THENETWORKMATTERS
Cloud
Provider
Cloud
Provider
CSP
Network
PoP
Interxion
Cloud
ConnectUser
User
TypicalPublic
InternetAccess
DirectCloud
Connectivity
Unpredictab
path,latencya
performan
Predictab
andguarante
User Cloud
Provider
User
Cloud
Connect
CSP
POP
Cloud
Provider
Typical Public
Internet Access
Private Cloud
Connectivity
Route?
Latency?
Bandwith?
Defined
Connections
Consistent
Quality
From your Datacenter into the Oracle Cloud02.10.20199
10. Connectivity Options
• FastConnect
• Dedicated, private connection with
high-bandwith options
• Colocation with Oracle
• Oracle Provider
• Third-Party Provider
• IPSec VPN
• Internet Gateway
1 Gbit/s 0,2140 CHF per hour / port
10 Gbit/s 1,2842 CHF per hour / port
From your Datacenter into the Oracle Cloud02.10.201910
12. Data Pump & File Transfer
• Data Pump & File Transfer
• Data Pump local export, upload into OCI Object Storage, Data Pump Import
Conditions Low
Corporate Data Center Oracle Cloud Infrastructure
expdp impdpFiletransfer
$ expdp
$ impdp
From your Datacenter into the Oracle Cloud02.10.201912
13. Data Pump over Network Link
• Data Pump over Network Link
• Local storage only for log files required
Conditions Low
Corporate Data Center Oracle Cloud Infrastructure
impdp
$ impdp hr TABLES=employees DIRECTORY=imp_dir NETWORK_LINK=source_database_link
Network Link
From your Datacenter into the Oracle Cloud02.10.201913
14. Data Guard (1)
• Standby Database in OCI
• Do you want Zero Data Loss? Far Sync requires an Active Data Guard License…
Conditions Medium
Corporate Data Center Oracle Cloud Infrastructure
Redo Apply
Far Sync Far Sync
From your Datacenter into the Oracle Cloud02.10.201914
15. Data Guard (2)
• Backup to the Object Store
• Restore from there
Conditions Medium
Corporate Data Center Oracle Cloud Infrastructure
Object Store
From your Datacenter into the Oracle Cloud02.10.201915
16. $ oci os object list -ns trivadisbdsxsp --bucket-name rmanstore01
{
"data": [
{
"md5": "UragprT01fmKAlkBkbA0sw==",
"name": "O1_MF_GNVFO6QY_.CTL",
"size": 18726912,
"time-created": "2019-09-08T23:55:12.482000+00:00"
}
],
"prefixes": []
}
Data Guard (3)
• Interaction with OCI Object Store - OCI CLI (REST API is possible too)
$ oci os object bulk-download -ns trivadisbdsxsp --bucket-name rmanstore01
--download-dir /tmp
From your Datacenter into the Oracle Cloud02.10.201916
17. PDB Remote Cloning (1)
• Benefit of the Single / Multitenant Architecture
• Different Patch levels are possible
• Based on a database link
Conditions Medium
Corporate Data Center Oracle Cloud Infrastructure
PDB PDB
CDB CDB
From your Datacenter into the Oracle Cloud02.10.201917
18. $ ssh -R 11521:192.168.59.153:1521 140.238.171.129
PDB Remote Cloning (2)
• Works with Reverse Tunneling when local database is not accessible from the cloud
• Example, local IP is 192.168.59.153
• Remote tnsnames.ora
BERN.KESTENHOLZ.NET =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 11521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BERN.kestenholz.net)
)
)
From your Datacenter into the Oracle Cloud02.10.201918
19. • Cloud Database: Create Database Link
SQL> CREATE USER c##local_clone_user IDENTIFIED BY ***
2 CONTAINER = ALL;
SQL> GRANT CREATE SESSION, CREATE PLUGGABLE DATABASE TO
2 c##local_clone_user CONTAINER = ALL;
SQL> CREATE DATABASE LINK clone_link
2 CONNECT TO c##local_clone_user IDENTIFIED BY ***
3 USING 'BERN.KESTENHOLZ.NET';
PDB Remote Cloning (3)
• OnPrem Database: Create User
• Cloud Database: Create Pluggable Database from local CDB
SQL> CREATE PLUGGABLE DATABASE pdbcloud3 FROM pdbonprem1@clone_link;
From your Datacenter into the Oracle Cloud02.10.201919
20. RMAN Backup & Restore (1)
• Backup and Restore from/to the OCI Classic Object Store
• Requires the Oracle Database Backup Cloud Service Module
• Easy on-prem configuration
• Upload is encrypted and compressed – no license fee
From your Datacenter into the Oracle Cloud02.10.201920
22. RMAN Backup & Restore (3)
OCI Classic only
From your Datacenter into the Oracle Cloud02.10.201922
23. Storage Gateway (1)
• File transfer component, no compression or deduplication support – for free
• A bridge between NFSv4 and OCI Object Storage
• Runs in a Docker container
Corporate Data Center Oracle Cloud Infrastructure
REST API / Encrypted
NFS
Server
Gateway Object Storage
It’s a Data Mover ! Not for Shared Services!
/mnt/nfs
From your Datacenter into the Oracle Cloud02.10.201923
24. Setting up config file port with nfs
Setting up config file port with rest
Management Console: https://srvlxocigateway.kestenholz.net:443
If you have already configured an OCISG FileSystem via the Management
Console,
you can access the NFS share using the following port.
NFS Port: 32769
Example: mount -t nfs -o vers=4,port=32769
srvlxocigateway.kestenholz.net:/<OCISG FileSystem name> /local_mount_point
Storage Gateway (2)
• Download size: 1 GB
• Setup script
From your Datacenter into the Oracle Cloud02.10.201924
25. [root@srvlxonprem01 ~]# mount -t nfs -o vers=4,port=32769
192.168.59.154:/fs01 /mnt/ocigw
Storage Gateway (3)
• Connect to OCI by SSH Key
From your Datacenter into the Oracle Cloud02.10.201925
26. ./create_backup_from_onprem --config-file /home/oracle/migrate/config.txt
--display-name OnPremBackup --availability-domain $AD --edition
ENTERPRISE_EDITION --opc-installer-dir /home/oracle/migrate --tmp-dir
/home/oracle/migrate/onprem_upload --compartment-id $C --rman-password
OCI CLI create_backup_from_onprem
• OCI Command Line Script
• Creates a RMAN backup in the Oracle cloud
• The backup can be used for new database instances
From your Datacenter into the Oracle Cloud02.10.201926
27. EM13c – Clone to the Cloud
From your Datacenter into the Oracle Cloud02.10.201927
28. Data Transfer Service
• Data Transfer Appliance
• high-capacity storage appliance that you loan from Oracle for a short duration of time (30
days)
• up to 150 TB capacity
• Data Transfer Disk service
• hard drives are shipped back to you after the data is transferred successfully to your Object
Storage or Archive Storage tenancy
• practical for a small set of data
From your Datacenter into the Oracle Cloud02.10.201928
29. Others
• Golden Gate
• External Tables
• Own Scripts
• …
From your Datacenter into the Oracle Cloud02.10.201929
31. Summary
• Analyse your data set before the migration project starts
• Try to reduce the volume
• Test your upload speed, bandwith, thoughput
• Try out the different methods
From your Datacenter into the Oracle Cloud02.10.201931
32. And what is the best transfer method for
you now?
02.10.2019 From your Datacenter into the Oracle Cloud32
Ask us – we PoC you !