SlideShare a Scribd company logo
LET’S GET STARTED
WITH ORACLE
DATABASE CLOUD
Alex Zaballa
Copyright © 2016 Accenture All rights reserved. | 2
Alex Zaballa
http://alexzaballa.blogspot.com/
@alexzaballa
https://www.linkedin.com/in/alexzaballa
236 and counting…
Copyright © 2016 Accenture All rights reserved. | 3
Worked for 3 years in Brazil as a Clipper/Delphi Developer (15 years old)
1997-1999
Worked for 7 years in Brazil as an Oracle Developer
2000 - 2007
Worked for 8 years in Angola as an Oracle DBA
for the Ministry of Finance.
2007 - 2015
Copyright © 2016 Accenture All rights reserved. | 4
Copyright © 2016 Accenture All rights reserved. | 5
3 Membership Tiers
• Oracle ACE Director
• Oracle ACE
• Oracle ACE Associate
bit.ly/OracleACEProgram
500+ Technical Experts
Helping Peers Globally
Connect:
Nominate yourself or someone you know: acenomination.oracle.com
@oracleace
Facebook.com/oracleaces
oracle-ace_ww@oracle.com
Copyright © 2016 Accenture All rights reserved. | 6
ORACLE DATABASE CLOUD
CLOUD 101
Copyright © 2016 Accenture All rights reserved. | 7
CLOUD
Will the Database Cloud ”Kill” the DBA?
Copyright © 2016 Accenture All rights reserved. | 8
CLOUD
Copyright © 2016 Accenture All rights reserved. | 9
CLOUD
My Opinion is NO
The DBA will be more specialized:
- Application DBA
- Architecture DBA
- Performance and Tuning DBA
- Big Data DBA
Copyright © 2016 Accenture All rights reserved. | 10
ORACLE DATABASE CLOUD
COMMON USE CASES
• Dev/Test/UAT
• Backup to the Cloud
Copyright © 2016 Accenture All rights reserved. | 11
ORACLE DATABASE CLOUD
COMMON USE CASES
• Disaster Recovery to the Cloud
Copyright © 2016 Accenture All rights reserved. | 12
ORACLE DATABASE CLOUD
COMMON USE CASES ?
• Business Critical Workloads in the
Cloud
Copyright © 2016 Accenture All rights reserved. | 13
ORACLE DATABASE CLOUD
CLOUD 101
Infrastructure as a Service (IaaS)
Platform as a Service (PaaS)
Database as a Service (Dbaas)
Software as a Service (SaaS)
Copyright © 2016 Accenture All rights reserved. | 14
ORACLE DATABASE CLOUD
• Oracle Database Cloud Service
• Oracle Database Cloud Service – Bare Metal
• Oracle Database Exadata Cloud Service
• Oracle Database Exadata Cloud Machine
• Oracle Database Exadata Express Cloud Service – Managed
• Oracle Database Schema Cloud Service - Managed
https://cloud.oracle.com/database
Copyright © 2016 Accenture All rights reserved. | 15
ORACLE DATABASE CLOUD BARE METAL
Dedicated Server
Leverage the full power of a dedicated bare metal
server without any noisy neighbor or
virtualization overhead for your database needs.
Copyright © 2016 Accenture All rights reserved. | 16
ORACLE DATABASE EXADATA CLOUD SERVICE
Oracle Database Exadata Cloud Service provides
full Oracle Databases hosted on Oracle Exadata
Database Machine inside the Oracle Cloud.
Copyright © 2016 Accenture All rights reserved. | 17
ORACLE DATABASE EXADATA CLOUD MACHINE
Exadata Cloud Machine or ExaCM is the cloud-
based Oracle Database subscription service
available on Oracle Exadata, but deployed in the
customer data center behind their firewall.
Copyright © 2016 Accenture All rights reserved. | 18
ORACLE DATABASE EXADATA EXPRESS CLOUD
SERVICE
Delivers a managed Oracle Database 12c Release
2 Enterprise Edition running on Oracle Exadata
engineered systems for small to medium sized
data.
**No SmartScan
***Managed by Oracle
Copyright © 2016 Accenture All rights reserved. | 19
ORACLE DATABASE SCHEMA CLOUD SERVICE
The "Schema as a Service" model was the first
DBaaS offering delivered on the Oracle Cloud and
it provides a single schema.
*Runs Oracle Application Express (APEX)
**Managed by Oracle
*** Max size 50GB
Copyright © 2016 Accenture All rights reserved. | 20
ORACLE DATABASE CLOUD SERVICE
SOFTWARE EDITIONS
Copyright © 2016 Accenture All rights reserved. | 21
ORACLE DATABASE CLOUD SERVICE
https://cloud.oracle.com/
Copyright © 2016 Accenture All rights reserved. | 22
Copyright © 2016 Accenture All rights reserved. | 23
**credit card  1usd
****remember to disable renew on credit card
Copyright © 2016 Accenture All rights reserved. | 24
= 300 USD
Copyright © 2016 Accenture All rights reserved. | 25
Copyright © 2016 Accenture All rights reserved. | 26
Copyright © 2016 Accenture All rights reserved. | 27
ORACLE DATABASE CLOUD SERVICE
Copyright © 2016 Accenture All rights reserved. | 28
ORACLE DATABASE CLOUD SERVICE
Copyright © 2016 Accenture All rights reserved. | 29
Copyright © 2016 Accenture All rights reserved. | 30
Copyright © 2016 Accenture All rights reserved. | 31
Copyright © 2016 Accenture All rights reserved. | 32
Copyright © 2016 Accenture All rights reserved. | 33
Copyright © 2016 Accenture All rights reserved. | 34
Copyright © 2016 Accenture All rights reserved. | 35
Copyright © 2016 Accenture All rights reserved. | 36
Copyright © 2016 Accenture All rights reserved. | 37
Copyright © 2016 Accenture All rights reserved. | 38
Copyright © 2016 Accenture All rights reserved. | 39
Copyright © 2016 Accenture All rights reserved. | 40
Copyright © 2016 Accenture All rights reserved. | 41
Copyright © 2016 Accenture All rights reserved. | 42
ORACLE DATABASE CLOUD SERVICE
Generating an SSH Key Pair on Windows Using the PuTTYgen Program
Copyright © 2016 Accenture All rights reserved. | 43
ORACLE DATABASE CLOUD SERVICE
Generating an SSH Key Pair on UNIX and UNIX-Like Platforms Using the ssh-keygen Utility
Copyright © 2016 Accenture All rights reserved. | 44
ORACLE DATABASE CLOUD SERVICE
Copyright © 2016 Accenture All rights reserved. | 45
Copyright © 2016 Accenture All rights reserved. | 46
Copyright © 2016 Accenture All rights reserved. | 47
Copyright © 2016 Accenture All rights reserved. | 48
Copyright © 2016 Accenture All rights reserved. | 49
Copyright © 2016 Accenture All rights reserved. | 50
Copyright © 2016 Accenture All rights reserved. | 51
Copyright © 2016 Accenture All rights reserved. | 52
Copyright © 2016 Accenture All rights reserved. | 53
Copyright © 2016 Accenture All rights reserved. | 54
Copyright © 2016 Accenture All rights reserved. | 55
ORACLE DATABASE CLOUD SERVICE - SSH
Copyright © 2016 Accenture All rights reserved. | 56
ORACLE DATABASE CLOUD SERVICE - DB
Copyright © 2016 Accenture All rights reserved. | 57
ORACLE DATABASE CLOUD SERVICE - DG
Copyright © 2016 Accenture All rights reserved. | 58
ORACLE DATABASE CLOUD SERVICE - DG
Copyright © 2016 Accenture All rights reserved. | 59
Copyright © 2016 Accenture All rights reserved. | 60
ORACLE DATABASE CLOUD SERVICE - PORTS
Copyright © 2016 Accenture All rights reserved. | 61
ORACLE DATABASE CLOUD SERVICE - PORTS
Copyright © 2016 Accenture All rights reserved. | 62
ORACLE DATABASE CLOUD SERVICE - PORTS
Copyright © 2016 Accenture All rights reserved. | 63
ORACLE DATABASE CLOUD SERVICE - MONITOR
Copyright © 2016 Accenture All rights reserved. | 64
ORACLE DATABASE CLOUD SERVICE - MONITOR
Copyright © 2016 Accenture All rights reserved. | 65
ORACLE DATABASE CLOUD SERVICE - MONITOR
Copyright © 2016 Accenture All rights reserved. | 66
ORACLE DATABASE CLOUD SERVICE - MONITOR
Copyright © 2016 Accenture All rights reserved. | 67
ORACLE DATABASE CLOUD SERVICE - MONITOR
Copyright © 2016 Accenture All rights reserved. | 68
ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
Copyright © 2016 Accenture All rights reserved. | 69
ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
Copyright © 2016 Accenture All rights reserved. | 70
ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
Copyright © 2016 Accenture All rights reserved. | 71
ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
Copyright © 2016 Accenture All rights reserved. | 72
ORACLE DATABASE BACKUP CLOUD SERVICE
SCALE UP/DOWN
Copyright © 2016 Accenture All rights reserved. | 73
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 74
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 75
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 76
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 77
ORACLE DATABASE CLOUD SERVICE - SCALE
 xvdb
 xvdg
Copyright © 2016 Accenture All rights reserved. | 78
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 79
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 80
ORACLE DATABASE CLOUD SERVICE - SCALE
Copyright © 2016 Accenture All rights reserved. | 81
ORACLE DATABASE CLOUD SERVICE - DBAASCLI
https://docs.oracle.com/en/cloud/paas/database-dbaas-cloud/csdbi/dbaascli.html
Copyright © 2016 Accenture All rights reserved. | 82
ORACLE DATABASE CLOUD SERVICE - RACCLI
Copyright © 2016 Accenture All rights reserved. | 83
ORACLE DATABASE BACKUP CLOUD SERVICE
BACKUPS
Copyright © 2016 Accenture All rights reserved. | 84
ORACLE DATABASE CLOUD SERVICE - BACKUPS
Copyright © 2016 Accenture All rights reserved. | 85
ORACLE DATABASE CLOUD SERVICE - BACKUPS
Copyright © 2016 Accenture All rights reserved. | 86
ORACLE DATABASE CLOUD SERVICE - BACKUPS
Copyright © 2016 Accenture All rights reserved. | 87
ORACLE DATABASE CLOUD SERVICE - BACKUPS
Copyright © 2016 Accenture All rights reserved. | 88
ORACLE DATABASE CLOUD SERVICE - BACKUPS
Copyright © 2016 Accenture All rights reserved. | 89
ORACLE DATABASE BACKUP CLOUD SERVICE
PATCHING
Copyright © 2016 Accenture All rights reserved. | 90
ORACLE DATABASE CLOUD SERVICE - PATCHING
Copyright © 2016 Accenture All rights reserved. | 91
ORACLE DATABASE CLOUD SERVICE - PATCHING
Copyright © 2016 Accenture All rights reserved. | 92
ORACLE DATABASE BACKUP CLOUD SERVICE
BACKUP TO CLOUD
Copyright © 2016 Accenture All rights reserved. | 93
INSTALLING THE ORACLE DATABASE CLOUD
BACKUP MODULE
Copyright © 2016 Accenture All rights reserved. | 94
INSTALLING THE ORACLE DATABASE CLOUD
BACKUP MODULE
**proxy
Copyright © 2016 Accenture All rights reserved. | 95
INSTALLING THE ORACLE DATABASE CLOUD
BACKUP MODULE
Copyright © 2016 Accenture All rights reserved. | 96
Copyright © 2016 Accenture All rights reserved. | 97
Copyright © 2016 Accenture All rights reserved. | 98
Copyright © 2016 Accenture All rights reserved. | 99
Copyright © 2016 Accenture All rights reserved. | 100
Copyright © 2016 Accenture All rights reserved. | 101
ORACLE DATABASE CLOUD SERVICE
DETERMINE COMPUTE SHAPE
Copyright © 2016 Accenture All rights reserved. | 102
ORACLE DATABASE CLOUD SERVICE
DETERMINE COMPUTE SHAPE
Copyright © 2016 Accenture All rights reserved. | 103
ORACLE DATABASE CLOUD SERVICE
DETERMINE COMPUTE SHAPE
Use Database Consolidation Workbench
**Database Consolidation Workbench requires the
Database Diagnostics pack license.
Copyright © 2016 Accenture All rights reserved. | 104
ORACLE DATABASE CLOUD SERVICE
DETERMINE COMPUTE SHAPE
Ok!
Now we have the definition of CPUs, Memory and Storage
equivalent in the Oracle Cloud.
Copyright © 2016 Accenture All rights reserved. | 105
ORACLE DATABASE CLOUD SERVICE
DATA LOADING INTO THE CLOUD
Basically, it depends on the
Cloud Service that I’m using.
Copyright © 2016 Accenture All rights reserved. | 106
ORACLE DATABASE CLOUD SERVICE
DATA LOADING INTO A DATABASE/EXADATA
CLOUD SERVICE
• SQL*Loader
• Import/export
• Oracle Data Pump Export/Import Utility
• Transportable Tablespaces
• Pluggable Databases (PDBs)
 Remote Cloning
 Lift and Shift
• APEX/SQL Developer Data Loaders
• External Tables
• Dataguard
• GoldenGate
• REST Services
• Enterprise Manager (12cR5 or 13c)
• Bulk Data Transfer
Copyright © 2016 Accenture All rights reserved. | 107
ORACLE DATABASE CLOUD
CHOOSING A MIGRATION METHOD
1 - Database version of your on-premises database:
• Oracle Database 11g Release 2 version lower than 11.2.0.3
• Oracle Database 11g Release 2 version 11.2.0.3 or higher
• Oracle Database 12c Release 1 version lower than 12.1.0.2
• Oracle Database 12c Release 1 version 12.1.0.2 or higher
2 - For on-premises Oracle Database 12c Release 1 databases, the
architecture of the database:
• Multitenant container database (CDB)
• Non-CDB
Copyright © 2016 Accenture All rights reserved. | 108
ORACLE DATABASE CLOUD
CHOOSING A MIGRATION METHOD
3 - Endian format (byte ordering) of your on-premises database’s host
platform
4 - Database character set of your on-premises database and Oracle
Database Cloud Service database
5 - Database version of the Oracle Database Cloud database you are
migrating to:
• Oracle Database 11g Release 2
• Oracle Database 12c Release 1
Copyright © 2016 Accenture All rights reserved. | 109
ORACLE DATABASE CLOUD
MIGRATING FROM ORACLE DATABASE 11G TO
ORACLE DATABASE 11G IN THE CLOUD
• Data Pump Conventional Export/Import
• Data Pump Transportable Tablespace
• RMAN Transportable Tablespace with Data Pump
• RMAN CONVERT Transportable Tablespace with
Data Pump
Copyright © 2016 Accenture All rights reserved. | 110
ORACLE DATABASE CLOUD
MIGRATING FROM ORACLE DATABASE 11G TO
ORACLE DATABASE 12C IN THE CLOUD
• Data Pump Conventional Export/Import
• Data Pump Transportable Tablespace
• RMAN Transportable Tablespace with Data Pump
• RMAN CONVERT Transportable Tablespace with
Data Pump
• Data Pump Full Transportable
Copyright © 2016 Accenture All rights reserved. | 111
ORACLE DATABASE CLOUD
MIGRATING FROM ORACLE DATABASE 12C CDB
TO ORACLE DATABASE 12C IN THE CLOUD
• 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
Copyright © 2016 Accenture All rights reserved. | 112
ORACLE DATABASE CLOUD
MIGRATING FROM ORACLE DATABASE 12C NON-CDB
TO ORACLE DATABASE 12C IN THE CLOUD
• 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 (non-CDB)
• SQL Developer and SQL*Loader to Migrate Selected Objects
• SQL Developer and INSERT Statements to Migrate Selected Objects
Copyright © 2016 Accenture All rights reserved. | 113
ORACLE DATABASE CLOUD
CHOOSING A MIGRATION METHOD
https://d0.awsstatic.com/whitepapers/strategies-for-migrating-oracle-database-to-aws.pdf
Copyright © 2016 Accenture All rights reserved. | 114
ORACLE DATABASE CLOUD
CHOOSING A MIGRATION METHOD
Downtime?
Copyright © 2016 Accenture All rights reserved. | 115
ORACLE DATABASE CLOUD
DATA PUMP CONVENTIONAL EXPORT/IMPORT
You can use this method regardless of the endian format and database character set
of the on-premises database.
Copyright © 2016 Accenture All rights reserved. | 116
ORACLE DATABASE CLOUD
DATA PUMP CONVENTIONAL EXPORT/IMPORT
On-premises host:
mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud
sqlplus user/password
CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud';
expdp user/password SCHEMAS=fsowner DIRECTORY=dp_for_cloud
Copyright © 2016 Accenture All rights reserved. | 117
ORACLE DATABASE CLOUD
DATA PUMP CONVENTIONAL EXPORT/IMPORT
Database Cloud Service compute node:
mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem
On-premises host:
scp –i private_key_file 
/u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp
oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem
Database Cloud Service compute node:
sqlplus user/password
CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem';
impdp user/password SCHEMAS=fsowner DIRECTORY=dp_from_onprem
Copyright © 2016 Accenture All rights reserved. | 118
ORACLE DATABASE CLOUD
DATA PUMP TRANSPORTABLE TABLESPACE
You can use this method only if the on-premises platform is little endian, and the
database character sets of your on-premises database and Oracle Database Cloud
Service database are compatible.
Copyright © 2016 Accenture All rights reserved. | 119
ORACLE DATABASE CLOUD
DATA PUMP TRANSPORTABLE TABLESPACE
On-premises host:
mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud
sqlplus user/password
CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud';
ALTER TABLESPACE fsindex READ ONLY;
ALTER TABLESPACE fsdata READ ONLY;
expdp user/password TRANSPORT_TABLESPACES=fsdata,fsindex
TRANSPORT_FULL_CHECK=YES DIRECTORY=dp_for_cloud
Copyright © 2016 Accenture All rights reserved. | 120
ORACLE DATABASE CLOUD
DATA PUMP TRANSPORTABLE TABLESPACE
Database Cloud Service compute node:
mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem
On-premises host:
$ scp -i private_key_file  /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp 
oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem
$ scp -i private_key_file  /u01/app/oracle/oradata/orcl/fsdata01.dbf 
oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL
$ scp -i private_key_file  /u01/app/oracle/oradata/orcl/fsindex01.dbf 
oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindexREAD WRITE;
Copyright © 2016 Accenture All rights reserved. | 121
ORACLE DATABASE CLOUD
DATA PUMP TRANSPORTABLE TABLESPACE
Database Cloud Service compute node:
CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem';
SQL> CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY
TABLESPACE temp ACCOUNT UNLOCK;
impdp user/password DIRECTORY=dp_from_onprem 
TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', 
'/u02/app/oracle/oradata/ORCL/fsindex01.dbf’
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindex READ WRITE;
Copyright © 2016 Accenture All rights reserved. | 122
ORACLE DATABASE CLOUD
DATA PUMP FULL TRANSPORTABLE
You can use this method only if the source database release version is 11.2.0.3 or
later, and the database character sets of your on-premises database and Oracle
Database Cloud Service database are compatible.
Copyright © 2016 Accenture All rights reserved. | 123
ORACLE DATABASE CLOUD
DATA PUMP FULL TRANSPORTABLE
On-premises host:
mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud
sqlplus user/password
CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud';
Determine the name(s) of the tablespaces and data files that belong to the user-defined
tablespaces by querying DBA_DATA_FILES and make then read only:
ALTER TABLESPACE fsdata READ ONLY;
ALTER TABLESPACE fsindex READ ONLY;
ALTER TABLESPACE users READ ONLY;
expdp system/password FULL=y TRANSPORTABLE=always VERSION=12
DUMPFILE=expdat.dmp DIRECTORY=dp_for_cloud
Copyright © 2016 Accenture All rights reserved. | 124
ORACLE DATABASE CLOUD
DATA PUMP FULL TRANSPORTABLE
Database Cloud Service compute node:
mkdir /u01/app/oracle/admin/ORCL/dpdump/from_source
On-premises host:
$ scp -i private_key_file  /u01/app/oracle/oradata/orcl/fsdata01.dbf 
oracle@compute_node_IP_address:/u02/app/oracle/oradata/ORCL/PDB2
$ scp -i private_key_file  /u01/app/oracle/oradata/orcl/fsindex01.dbf 
oracle@compute_node_IP_address:/u02/app/oracle/oradata/ORCL/PDB2
$ scp -i private_key_file  /u01/app/oracle/oradata/orcl/users01.dbf 
oracle@compute_node_IP_address:/u02/app/oracle/oradata/ORCL/PDB2
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindex READ WRITE;
ALTER TABLESPACE users READ WRITE;
Copyright © 2016 Accenture All rights reserved. | 125
ORACLE DATABASE CLOUD
DATA PUMP FULL TRANSPORTABLE
Database Cloud Service compute node:
CREATE DIRECTORY dp_from_source AS '/u01/app/oracle/admin/ORCL/dpdump/from_source';
impdp system@PDB2 FULL=y DIRECTORY=dp_from_source  TRANSPORT_DATAFILES=
'/u02/app/oracle/oradata/ORCL/PDB2/fsdata01.dbf',
'/u02/app/oracle/oradata/ORCL/PDB2/fsindex01.dbf,'
'/u02/app/oracle/oradata/ORCL/PDB2/users01.dbf'
Copyright © 2016 Accenture All rights reserved. | 126
ORACLE DATABASE CLOUD
ORACLE SQL*LOADER
Copyright © 2016 Accenture All rights reserved. | 127
ORACLE DATABASE CLOUD
ORACLE SQL*LOADER
sqlplus scott/tiger
CREATE TABLE emp (empno number(5),
name varchar2(50),
sal number(10,2),
jdate date);
Copyright © 2016 Accenture All rights reserved. | 128
ORACLE DATABASE CLOUD
ORACLE SQL*LOADER
emp.ctl
LOAD DATA
INFILE '/u01/oracle/emp.csv’
BADFILE ‘/u01/oracle/emp.bad’
DISCARDFILE ‘/u01/oracle/emp.dsc’
INSERT INTO TABLE emp
FIELDS TERMINATED BY “,” OPTIONALLY ENCLOSED BY ‘”’ TRAILING NULLCOLS
(empno,name,sal,jdate date ‘mm/dd/yyyy’)
sqlldr userid=scott/tiger control=emp.ctl log=emp.log
Copyright © 2016 Accenture All rights reserved. | 129
ORACLE DATABASE CLOUD
ORACLE SQL*LOADER EXPRESS – 12C
SQL> create table COMPANY (id NUMBER(1), name VARCHAR2(30));
Table created.
[oracle@oracle01 tmp]$ cat COMPANY .dat
1,Company 1
2,Company 2
3,Company 3
4,Company 4
5,Company 5
6,Company 6
7,Company 7
8,Company 8
9,Company 9
Copyright © 2016 Accenture All rights reserved. | 130
ORACLE DATABASE CLOUD
ORACLE SQL*LOADER EXPRESS – 12C
[oracle@oracle01 tmp]$ sqlldr teste/teste TABLE=COMPANY
SQL*Loader: Release 12.1.0.1.0 - Production on Sat Jan 11 12:16:28 2014
Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.
Express Mode Load, Table: COMPANY
Path used: External Table, DEGREE_OF_PARALLELISM=AUTO
Table COMPANY:
9 Rows successfully loaded.
Copyright © 2016 Accenture All rights reserved. | 131
ORACLE DATABASE CLOUD
EXTERNAL TABLES
Copyright © 2016 Accenture All rights reserved. | 132
ORACLE DATABASE CLOUD
EXTERNAL TABLES
Copyright © 2016 Accenture All rights reserved. | 133
ORACLE DATABASE CLOUD
DATABASE LINKS
Copyright © 2016 Accenture All rights reserved. | 134
ORACLE DATABASE CLOUD
DATABASE LINKS
On-premises host:
CREATE DATABASE LINK my_db_link CONNECT TO remote_user
IDENTIFIED BY remote_password USING ’MyCloudDB';
CREATE TABLE tb_test@my_db_link as SELECT* FROM my_Table;
Copyright © 2016 Accenture All rights reserved. | 135
ORACLE DATABASE CLOUD
DATABASE LINKS - CLONE A REMOTE PDB OR
NON-CDB
Copyright © 2016 Accenture All rights reserved. | 136
ORACLE DATABASE CLOUD
DATABASE LINKS - CLONE A REMOTE PDB OR
NON-CDB
You have to expose your on-premises database over the internet or have a VPN or
SSH tunneling configured:
CREATE DATABASE LINK clone_link CONNECT TO remote_clone_user
IDENTIFIED BY remote_clone_user USING ’MyOnPremDB';
CREATE PLUGGABLE DATABASE pdb1 FROM pdb1@clone_link;
CREATE PLUGGABLE DATABASE pdb2b FROM NON$CDB@clone_link;
Copyright © 2016 Accenture All rights reserved. | 137
ORACLE DATABASE CLOUD
DATA GUARD
Copyright © 2016 Accenture All rights reserved. | 138
ORACLE DATABASE CLOUD
DATA GUARD
1 - Create Physical Standby
2 – Prepare Client Connections (Ex: tnsnames.ora)
3 – Switchover to Physical Standby
***Enable SSH tunneling and also to make sure only specific on-premises IP addresses can access
the listener port in the cloud
Disaster Recovery to the Oracle Cloud
http://www.oracle.com/technetwork/database/availability/dr-to-oracle-cloud-2615770.pdf
Copyright © 2016 Accenture All rights reserved. | 139
ORACLE DATABASE CLOUD
DATA GUARD
Copyright © 2016 Accenture All rights reserved. | 140
ORACLE DATABASE CLOUD
DATA GUARD
SELECT log_mode FROM v$database;
LOG_MODE
------------
NOARCHIVELOG
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
ALTER DATABASE ARCHIVELOG;
ALTER DATABASE OPEN;
ALTER DATABASE FORCE LOGGING;
On-premises host:
Copyright © 2016 Accenture All rights reserved. | 141
ORACLE DATABASE CLOUD
DATA GUARD
• Create standby redo logs on the primary database initially (recommended).
• Create standby redo logs using the same file size as the primary database online redo logs.
• Create one additional group more than the number of online redo log groups.
ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo01.log') SIZE XXM;
ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo02.log') SIZE XXM;
ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo03.log') SIZE XXM;
ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo04.log') SIZE XXM;
On-premises host:
Copyright © 2016 Accenture All rights reserved. | 142
ORACLE DATABASE CLOUD
DATA GUARD
Init.ora:
*.db_name='cdb1’
mkdir -p /u02/oradata/cdb1/pdbseed
mkdir -p /u02/oradata/cdb1/pdb1
mkdir -p /u02/fast_recovery_area/cdb1
mkdir -p /u01/app/oracle/admin/cdb1/adump
orapwd file=/u01/app/oracle/product/12.1.0.2/db_1/dbs/orapwcdb1 password=mypass entries=10
Database Cloud Service compute node:
Copyright © 2016 Accenture All rights reserved. | 143
ORACLE DATABASE CLOUD
DATA GUARD
export ORACLE_SID=cdb1
sqlplus / as sysdba
STARTUP NOMOUNT PFILE='/tmp/init.ora';
rman TARGET sys/password@cdb1 AUXILIARY sys/password@cdb1_stby
DUPLICATE TARGET DATABASE FOR STANDBY
FROM ACTIVE DATABASE
DORECOVER
SPFILE SET db_unique_name='CDB1_STBY'
NOFILENAMECHECK;
Database Cloud Service compute node:
Copyright © 2016 Accenture All rights reserved. | 144
ORACLE DATABASE CLOUD
DATA GUARD
Prepare Client Connections (Ex: tnsnames.ora)
ALTER SYSTEM SET dg_broker_start=true;
dgmgrl sys/password@cdb1
CREATE CONFIGURATION my_config AS PRIMARY DATABASE IS cdb1 CONNECT IDENTIFIER
IS cdb1;
ADD DATABASE cdb1_stby AS CONNECT IDENTIFIER IS cdb1_stby MAINTAINED AS
PHYSICAL;
ENABLE CONFIGURATION;
SWITCHOVER TO cdb1_stby;
Database Cloud Service compute node:
Copyright © 2016 Accenture All rights reserved. | 145
ORACLE DATABASE CLOUD
GOLDENGATE AND GOLDENGATE CLOUD SERVICE
Copyright © 2016 Accenture All rights reserved. | 146
ORACLE DATABASE CLOUD
GOLDENGATE AND GOLDENGATE CLOUD SERVICE
Copyright © 2016 Accenture All rights reserved. | 147
ORACLE DATABASE CLOUD
UNPLUGGING/PLUGGING
Copyright © 2016 Accenture All rights reserved. | 148
ORACLE DATABASE CLOUD
UNPLUGGING/PLUGGING
http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
Copyright © 2016 Accenture All rights reserved. | 149
ORACLE DATABASE CLOUD
UNPLUGGING/PLUGGING
http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
Copyright © 2016 Accenture All rights reserved. | 150
ORACLE DATABASE CLOUD
UNPLUGGING/PLUGGING
http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
Copyright © 2016 Accenture All rights reserved. | 151
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE
CLONING
Copyright © 2016 Accenture All rights reserved. | 152
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
SQLDEVELOPER
Enterprise Manager
Copyright © 2016 Accenture All rights reserved. | 153
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
Copyright © 2016 Accenture All rights reserved. | 154
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
Copyright © 2016 Accenture All rights reserved. | 155
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
Copyright © 2016 Accenture All rights reserved. | 156
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
Copyright © 2016 Accenture All rights reserved. | 157
ORACLE DATABASE CLOUD
PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
Copyright © 2016 Accenture All rights reserved. | 158
ORACLE DATABASE CLOUD
SQLDEVELOPER DATABASE COPY
Copyright © 2016 Accenture All rights reserved. | 159
ORACLE DATABASE CLOUD
SQLDEVELOPER
Copyright © 2016 Accenture All rights reserved. | 160
ORACLE DATABASE CLOUD
SQLDEVELOPER
Copyright © 2016 Accenture All rights reserved. | 161
ORACLE DATABASE CLOUD
SQLDEVELOPER
Copyright © 2016 Accenture All rights reserved. | 162
ORACLE DATABASE CLOUD
SQLDEVELOPER
Copyright © 2016 Accenture All rights reserved. | 163
ORACLE DATABASE CLOUD
SQLDEVELOPER
Copyright © 2016 Accenture All rights reserved. | 164
ORACLE DATABASE CLOUD
SQLDEVELOPER
Copyright © 2016 Accenture All rights reserved. | 165
Copyright © 2016 Accenture All rights reserved. | 166
ORACLE DATABASE CLOUD
RMAN CROSS-PLATFORM TRANSPORTABLE
TABLESPACE BACKUP SETS
You can use this method only if the database character sets of your on-premises
database and Oracle Database Cloud Service database are compatible.
Copyright © 2016 Accenture All rights reserved. | 167
ORACLE DATABASE CLOUD
RMAN CROSS-PLATFORM TRANSPORTABLE
TABLESPACE BACKUP SETS
On-premises host:
mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud
sqlplus user/password
CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud';
ALTER TABLESPACE fsdata READ ONLY;
ALTER TABLESPACE fsindex READ ONLY;
Copyright © 2016 Accenture All rights reserved. | 168
ORACLE DATABASE CLOUD
RMAN CROSS-PLATFORM TRANSPORTABLE
TABLESPACE BACKUP SETS
On-premises host:
mkdir /u01/app/oracle/admin/orcl/rman_transdest
rman target username/password
BACKUP FOR TRANSPORT FORMAT '/u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.bck'
TABLESPACE fsdata,fsindex
DATAPUMP FORMAT '/u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.dmp';
Copyright © 2016 Accenture All rights reserved. | 169
ORACLE DATABASE CLOUD
RMAN CROSS-PLATFORM TRANSPORTABLE
TABLESPACE BACKUP SETS
Database Cloud Service compute node:
mkdir /tmp/from_onprem
On-premises host:
$ scp -i private_key_file  /u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.bck 
oracle@IP_address_DBaaS_VM:/tmp/from_onprem
$ scp -i private_key_file  /u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.dmp 
oracle@IP_address_DBaaS_VM:/tmp/from_onprem
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindex READ WRITE;
Copyright © 2016 Accenture All rights reserved. | 170
ORACLE DATABASE CLOUD
RMAN CROSS-PLATFORM TRANSPORTABLE
TABLESPACE BACKUP SETS
Database Cloud Service compute node:
CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE
temp ACCOUNT UNLOCK;
mkdir /tmp/from_onprem
rman target username/password
RESTORE FOREIGN TABLESPACE fsdata,fsindex TO NEW
FROM BACKUPSET '/tmp/from_onprem/fs_tbs.bck'
DUMP FILE DATAPUMP DESTINATION '/tmp/datapump'
FROM BACKUPSET '/tmp/from_onprem/fs_tbs.dmp';
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindex READ WRITE;
Copyright © 2016 Accenture All rights reserved. | 171
ORACLE DATABASE CLOUD
RMAN TRANSPORTABLE TABLESPACE WITH
DATA PUMP
You can use this method only if the on-premises platform is little endian, and the
database character sets of your on-premises database and Oracle Database Cloud
Service database are compatible.
Copyright © 2016 Accenture All rights reserved. | 172
ORACLE DATABASE CLOUD
RMAN TRANSPORTABLE TABLESPACE WITH
DATA PUMP
On-premises host:
mkdir /u01/app/oracle/admin/orcl/rman_transdest
mkdir /u01/app/oracle/admin/orcl/rman_auxdest
rman target user/password
TRANSPORT TABLESPACE fsdata, fsindex
TABLESPACE DESTINATION '/u01/app/oracle/admin/orcl/rman_transdest'
AUXILIARY DESTINATION '/u01/app/oracle/admin/orcl/rman_auxdest';
Copyright © 2016 Accenture All rights reserved. | 173
ORACLE DATABASE CLOUD
RMAN TRANSPORTABLE TABLESPACE WITH
DATA PUMP
Database Cloud Service compute node:
mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem
CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem';
On-premises host:
scp -i private_key_file  /u01/app/oracle/admin/orcl/rman_transdest/dmpfile.dmp 
oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem
$ scp -i private_key_file  /u01/app/oracle/admin/orcl/rman_transdest/fsdata01.dbf 
oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL
$ scp -i private_key_file  /u01/app/oracle/admin/orcl/rman_transdest/fsindex01.dbf 
oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL
Copyright © 2016 Accenture All rights reserved. | 174
ORACLE DATABASE CLOUD
RMAN TRANSPORTABLE TABLESPACE WITH
DATA PUMP
Database Cloud Service compute node:
CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE
temp ACCOUNT UNLOCK;
impdp system DIRECTORY=dp_from_onprem DUMPFILE='dmpfile.dmp' 
TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', 
'/u02/app/oracle/oradata/ORCL/fsindex01.dbf'
Copyright © 2016 Accenture All rights reserved. | 175
ORACLE DATABASE CLOUD
RMAN CONVERT TRANSPORTABLE TABLESPACE
WITH DATA PUMP
You can use this method only if the database character sets of your on-premises
database and Oracle Database Cloud Service database are compatible.
Copyright © 2016 Accenture All rights reserved. | 176
ORACLE DATABASE CLOUD
RMAN CONVERT TRANSPORTABLE TABLESPACE
WITH DATA PUMP
On-premises host:
mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud
sqlplus user/password
CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud';
ALTER TABLESPACE fsindex READ ONLY;
ALTER TABLESPACE fsdata READ ONLY;
expdp system TRANSPORT_TABLESPACES=fsdata,fsindex TRANSPORT_FULL_CHECK=YES
DIRECTORY=dp_for_cloud
Copyright © 2016 Accenture All rights reserved. | 177
Database Cloud Service compute node:
mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem
On-premises host:
rman target /
CONVERT TABLESPACE fsdata, fsindex
TO PLATFORM 'Linux x86 64-bit'
FORMAT '/tmp/%U ';
ORACLE DATABASE CLOUD
RMAN CONVERT TRANSPORTABLE TABLESPACE
WITH DATA PUMP
Copyright © 2016 Accenture All rights reserved. | 178
On-premises host:
$ scp -i private_key_file  /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp 
oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem
$ scp -i private_key_file  /tmp/data_D-ORCL_I-1410251631_TS-FSDATA_FNO-6_0aqc9un3 
oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL/fsdata01.dbf
$ scp -i private_key_file  /tmp/data_D-ORCL_I-1410251631_TS-FSINDEX_FNO-7_0bqc9un6 
oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL/fsindex01.dbf
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindex READ WRITE;
ORACLE DATABASE CLOUD
RMAN CONVERT TRANSPORTABLE TABLESPACE
WITH DATA PUMP
Copyright © 2016 Accenture All rights reserved. | 179
Database Cloud Service compute node:
CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem';
CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE
temp ACCOUNT UNLOCK;
impdp system DIRECTORY=dp_from_onprem 
TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', 
'/u02/app/oracle/oradata/ORCL/fsindex01.dbf’
ALTER TABLESPACE fsdata READ WRITE;
ALTER TABLESPACE fsindex READ WRITE;
ORACLE DATABASE CLOUD
RMAN CONVERT TRANSPORTABLE TABLESPACE
WITH DATA PUMP
Copyright © 2016 Accenture All rights reserved. | 180
QUESTIONS?
Copyright © 2016 Accenture All rights reserved. | 181
Thank You
Slides Available: http://www.slideshare.net/

More Related Content

PPTX
DBA Commands and Concepts That Every Developer Should Know
PPTX
DBA Commands and Concepts That Every Developer Should Know
PPTX
Moving your Oracle Databases to the Oracle Cloud
PDF
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
PDF
Moving your Oracle Databases to the Oracle Cloud
PPTX
Oracle Database 12c - New Features for Developers and DBAs
PPT
Oracle SQL Tuning
PPTX
Hitchhiker's Guide to free Oracle tuning tools
DBA Commands and Concepts That Every Developer Should Know
DBA Commands and Concepts That Every Developer Should Know
Moving your Oracle Databases to the Oracle Cloud
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
Moving your Oracle Databases to the Oracle Cloud
Oracle Database 12c - New Features for Developers and DBAs
Oracle SQL Tuning
Hitchhiker's Guide to free Oracle tuning tools

What's hot (20)

PDF
Oracle SQL Tuning
PDF
Oracle Performance Tools of the Trade
PDF
Oracle SQL tuning with SQL Plan Management
PDF
20141011 my sql clusterv01pptx
PDF
Solving Performance Problems Using MySQL Enterprise Monitor
PDF
OGG Architecture Performance
PDF
MySQL partitioning
PPSX
Introducing the eDB360 Tool
PPTX
Transactional SQL in Apache Hive
PPTX
AWR and ASH Advanced Usage with DB12c
PDF
NoSQL and MySQL: News about JSON
PDF
MySQL 5.7 - What's new, How to upgrade and Document Store
PDF
MySQL Document Store
PPTX
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
PDF
MySQL for Software-as-a-Service (SaaS)
PPTX
Making Oracle Services work
ODP
MySQL Enterprise Portfolio
PPTX
S3Guard: What's in your consistency model?
PPTX
DevOps for DBAs
PPTX
Understanding my database through SQL*Plus using the free tool eDB360
Oracle SQL Tuning
Oracle Performance Tools of the Trade
Oracle SQL tuning with SQL Plan Management
20141011 my sql clusterv01pptx
Solving Performance Problems Using MySQL Enterprise Monitor
OGG Architecture Performance
MySQL partitioning
Introducing the eDB360 Tool
Transactional SQL in Apache Hive
AWR and ASH Advanced Usage with DB12c
NoSQL and MySQL: News about JSON
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL Document Store
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
MySQL for Software-as-a-Service (SaaS)
Making Oracle Services work
MySQL Enterprise Portfolio
S3Guard: What's in your consistency model?
DevOps for DBAs
Understanding my database through SQL*Plus using the free tool eDB360
Ad

Similar to LET’S GET STARTED WITH ORACLE DATABASE CLOUD (20)

PPTX
Moving Your Oracle Databases To The Oracle Cloud
PPTX
Exploring All options to move your Oracle Databases to the Oracle Cloud
PPTX
Oracle Database Cloud Service
PDF
Fast, Flexible Application Development with Oracle Database Cloud Service
PDF
Migrating Oracle Databases from AWS to OCI
PPTX
Database As A Service: OEM + ODA (OOW 15 Presentation)
PDF
Oracle Cloud DBaaS
PDF
A3 transforming data_management_in_the_cloud
PDF
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
PPTX
Oracle Database Exadata Cloud Service Conference
PDF
Oracle Cloud
PDF
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
PPTX
CON6492 - Oracle Database Public Cloud Services v1 1
PDF
Oracle database in cloud, dr in cloud and overview of oracle database 18c
PDF
plug-into-cloud-wp-12c-1896100
PDF
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
PPTX
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
 
PDF
6212883126866262792 performance testing_cloud
PDF
How DBAs can garner the power of the Oracle Public Cloud?
PDF
A3 oracle database 12c extreme performance for cloud computing
Moving Your Oracle Databases To The Oracle Cloud
Exploring All options to move your Oracle Databases to the Oracle Cloud
Oracle Database Cloud Service
Fast, Flexible Application Development with Oracle Database Cloud Service
Migrating Oracle Databases from AWS to OCI
Database As A Service: OEM + ODA (OOW 15 Presentation)
Oracle Cloud DBaaS
A3 transforming data_management_in_the_cloud
[db tech showcase Tokyo 2018] #dbts2018 #B31 『1,2,3 and Done! 3 easy ways to ...
Oracle Database Exadata Cloud Service Conference
Oracle Cloud
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
CON6492 - Oracle Database Public Cloud Services v1 1
Oracle database in cloud, dr in cloud and overview of oracle database 18c
plug-into-cloud-wp-12c-1896100
Latest Innovations in Database as a Service Enabled by Oracle Enterprise Manager
New Approaches to Migrating from Oracle to Enterprise-Ready Postgres in the C...
 
6212883126866262792 performance testing_cloud
How DBAs can garner the power of the Oracle Public Cloud?
A3 oracle database 12c extreme performance for cloud computing
Ad

More from Alex Zaballa (20)

PPTX
SQL TUNING 101
PPTX
SQL TUNING 101
PPTX
DBA Commands and Concepts That Every Developer Should Know - Part 2
PPTX
Oracle Database 12c - New Features for Developers and DBAs
PPTX
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
PPTX
Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...
PPTX
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
PDF
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
PDF
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
PPTX
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
PPTX
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
PPTX
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
PPTX
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
PPTX
DBA Commands and Concepts That Every Developer Should Know
PPTX
Oracle Data Redaction
PPTX
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores
PPTX
Oracle Data Redaction - EOUC
PPTX
Oracle Database 12.1.0.2 New Features
PPTX
Oracle Database 12c - Data Redaction
PPTX
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUO...
SQL TUNING 101
SQL TUNING 101
DBA Commands and Concepts That Every Developer Should Know - Part 2
Oracle Database 12c - New Features for Developers and DBAs
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
Os melhores recursos novos do Oracle Database 12c para desenvolvedores e DBAs...
OTN TOUR 2016 - DBA Commands and Concepts That Every Developer Should Know
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c Tuning Fea...
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
OOW16 - Oracle Database 12c - The Best Oracle Database 12c New Features for D...
Oracle Database 12c Release 2 - New Features On Oracle Database Exadata Expre...
DBA Brasil 1.0 - DBA Commands and Concepts That Every Developer Should Know
Oracle Database 12c - The Best Oracle Database 12c Tuning Features for Develo...
DBA Commands and Concepts That Every Developer Should Know
Oracle Data Redaction
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores
Oracle Data Redaction - EOUC
Oracle Database 12.1.0.2 New Features
Oracle Database 12c - Data Redaction
Oracle Database 12c - Novas Características para DBAs e Desenvolvedores - GUO...

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
KodekX | Application Modernization Development
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Empathic Computing: Creating Shared Understanding
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
20250228 LYD VKU AI Blended-Learning.pptx
Transforming Manufacturing operations through Intelligent Integrations
KodekX | Application Modernization Development
Diabetes mellitus diagnosis method based random forest with bat algorithm
Reach Out and Touch Someone: Haptics and Empathic Computing
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Understanding_Digital_Forensics_Presentation.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Spectroscopy.pptx food analysis technology
Network Security Unit 5.pdf for BCA BBA.
Empathic Computing: Creating Shared Understanding
Advanced Soft Computing BINUS July 2025.pdf
cuic standard and advanced reporting.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Chapter 3 Spatial Domain Image Processing.pdf

LET’S GET STARTED WITH ORACLE DATABASE CLOUD

  • 1. LET’S GET STARTED WITH ORACLE DATABASE CLOUD Alex Zaballa
  • 2. Copyright © 2016 Accenture All rights reserved. | 2 Alex Zaballa http://alexzaballa.blogspot.com/ @alexzaballa https://www.linkedin.com/in/alexzaballa 236 and counting…
  • 3. Copyright © 2016 Accenture All rights reserved. | 3 Worked for 3 years in Brazil as a Clipper/Delphi Developer (15 years old) 1997-1999 Worked for 7 years in Brazil as an Oracle Developer 2000 - 2007 Worked for 8 years in Angola as an Oracle DBA for the Ministry of Finance. 2007 - 2015
  • 4. Copyright © 2016 Accenture All rights reserved. | 4
  • 5. Copyright © 2016 Accenture All rights reserved. | 5 3 Membership Tiers • Oracle ACE Director • Oracle ACE • Oracle ACE Associate bit.ly/OracleACEProgram 500+ Technical Experts Helping Peers Globally Connect: Nominate yourself or someone you know: acenomination.oracle.com @oracleace Facebook.com/oracleaces [email protected]
  • 6. Copyright © 2016 Accenture All rights reserved. | 6 ORACLE DATABASE CLOUD CLOUD 101
  • 7. Copyright © 2016 Accenture All rights reserved. | 7 CLOUD Will the Database Cloud ”Kill” the DBA?
  • 8. Copyright © 2016 Accenture All rights reserved. | 8 CLOUD
  • 9. Copyright © 2016 Accenture All rights reserved. | 9 CLOUD My Opinion is NO The DBA will be more specialized: - Application DBA - Architecture DBA - Performance and Tuning DBA - Big Data DBA
  • 10. Copyright © 2016 Accenture All rights reserved. | 10 ORACLE DATABASE CLOUD COMMON USE CASES • Dev/Test/UAT • Backup to the Cloud
  • 11. Copyright © 2016 Accenture All rights reserved. | 11 ORACLE DATABASE CLOUD COMMON USE CASES • Disaster Recovery to the Cloud
  • 12. Copyright © 2016 Accenture All rights reserved. | 12 ORACLE DATABASE CLOUD COMMON USE CASES ? • Business Critical Workloads in the Cloud
  • 13. Copyright © 2016 Accenture All rights reserved. | 13 ORACLE DATABASE CLOUD CLOUD 101 Infrastructure as a Service (IaaS) Platform as a Service (PaaS) Database as a Service (Dbaas) Software as a Service (SaaS)
  • 14. Copyright © 2016 Accenture All rights reserved. | 14 ORACLE DATABASE CLOUD • Oracle Database Cloud Service • Oracle Database Cloud Service – Bare Metal • Oracle Database Exadata Cloud Service • Oracle Database Exadata Cloud Machine • Oracle Database Exadata Express Cloud Service – Managed • Oracle Database Schema Cloud Service - Managed https://cloud.oracle.com/database
  • 15. Copyright © 2016 Accenture All rights reserved. | 15 ORACLE DATABASE CLOUD BARE METAL Dedicated Server Leverage the full power of a dedicated bare metal server without any noisy neighbor or virtualization overhead for your database needs.
  • 16. Copyright © 2016 Accenture All rights reserved. | 16 ORACLE DATABASE EXADATA CLOUD SERVICE Oracle Database Exadata Cloud Service provides full Oracle Databases hosted on Oracle Exadata Database Machine inside the Oracle Cloud.
  • 17. Copyright © 2016 Accenture All rights reserved. | 17 ORACLE DATABASE EXADATA CLOUD MACHINE Exadata Cloud Machine or ExaCM is the cloud- based Oracle Database subscription service available on Oracle Exadata, but deployed in the customer data center behind their firewall.
  • 18. Copyright © 2016 Accenture All rights reserved. | 18 ORACLE DATABASE EXADATA EXPRESS CLOUD SERVICE Delivers a managed Oracle Database 12c Release 2 Enterprise Edition running on Oracle Exadata engineered systems for small to medium sized data. **No SmartScan ***Managed by Oracle
  • 19. Copyright © 2016 Accenture All rights reserved. | 19 ORACLE DATABASE SCHEMA CLOUD SERVICE The "Schema as a Service" model was the first DBaaS offering delivered on the Oracle Cloud and it provides a single schema. *Runs Oracle Application Express (APEX) **Managed by Oracle *** Max size 50GB
  • 20. Copyright © 2016 Accenture All rights reserved. | 20 ORACLE DATABASE CLOUD SERVICE SOFTWARE EDITIONS
  • 21. Copyright © 2016 Accenture All rights reserved. | 21 ORACLE DATABASE CLOUD SERVICE https://cloud.oracle.com/
  • 22. Copyright © 2016 Accenture All rights reserved. | 22
  • 23. Copyright © 2016 Accenture All rights reserved. | 23 **credit card  1usd ****remember to disable renew on credit card
  • 24. Copyright © 2016 Accenture All rights reserved. | 24 = 300 USD
  • 25. Copyright © 2016 Accenture All rights reserved. | 25
  • 26. Copyright © 2016 Accenture All rights reserved. | 26
  • 27. Copyright © 2016 Accenture All rights reserved. | 27 ORACLE DATABASE CLOUD SERVICE
  • 28. Copyright © 2016 Accenture All rights reserved. | 28 ORACLE DATABASE CLOUD SERVICE
  • 29. Copyright © 2016 Accenture All rights reserved. | 29
  • 30. Copyright © 2016 Accenture All rights reserved. | 30
  • 31. Copyright © 2016 Accenture All rights reserved. | 31
  • 32. Copyright © 2016 Accenture All rights reserved. | 32
  • 33. Copyright © 2016 Accenture All rights reserved. | 33
  • 34. Copyright © 2016 Accenture All rights reserved. | 34
  • 35. Copyright © 2016 Accenture All rights reserved. | 35
  • 36. Copyright © 2016 Accenture All rights reserved. | 36
  • 37. Copyright © 2016 Accenture All rights reserved. | 37
  • 38. Copyright © 2016 Accenture All rights reserved. | 38
  • 39. Copyright © 2016 Accenture All rights reserved. | 39
  • 40. Copyright © 2016 Accenture All rights reserved. | 40
  • 41. Copyright © 2016 Accenture All rights reserved. | 41
  • 42. Copyright © 2016 Accenture All rights reserved. | 42 ORACLE DATABASE CLOUD SERVICE Generating an SSH Key Pair on Windows Using the PuTTYgen Program
  • 43. Copyright © 2016 Accenture All rights reserved. | 43 ORACLE DATABASE CLOUD SERVICE Generating an SSH Key Pair on UNIX and UNIX-Like Platforms Using the ssh-keygen Utility
  • 44. Copyright © 2016 Accenture All rights reserved. | 44 ORACLE DATABASE CLOUD SERVICE
  • 45. Copyright © 2016 Accenture All rights reserved. | 45
  • 46. Copyright © 2016 Accenture All rights reserved. | 46
  • 47. Copyright © 2016 Accenture All rights reserved. | 47
  • 48. Copyright © 2016 Accenture All rights reserved. | 48
  • 49. Copyright © 2016 Accenture All rights reserved. | 49
  • 50. Copyright © 2016 Accenture All rights reserved. | 50
  • 51. Copyright © 2016 Accenture All rights reserved. | 51
  • 52. Copyright © 2016 Accenture All rights reserved. | 52
  • 53. Copyright © 2016 Accenture All rights reserved. | 53
  • 54. Copyright © 2016 Accenture All rights reserved. | 54
  • 55. Copyright © 2016 Accenture All rights reserved. | 55 ORACLE DATABASE CLOUD SERVICE - SSH
  • 56. Copyright © 2016 Accenture All rights reserved. | 56 ORACLE DATABASE CLOUD SERVICE - DB
  • 57. Copyright © 2016 Accenture All rights reserved. | 57 ORACLE DATABASE CLOUD SERVICE - DG
  • 58. Copyright © 2016 Accenture All rights reserved. | 58 ORACLE DATABASE CLOUD SERVICE - DG
  • 59. Copyright © 2016 Accenture All rights reserved. | 59
  • 60. Copyright © 2016 Accenture All rights reserved. | 60 ORACLE DATABASE CLOUD SERVICE - PORTS
  • 61. Copyright © 2016 Accenture All rights reserved. | 61 ORACLE DATABASE CLOUD SERVICE - PORTS
  • 62. Copyright © 2016 Accenture All rights reserved. | 62 ORACLE DATABASE CLOUD SERVICE - PORTS
  • 63. Copyright © 2016 Accenture All rights reserved. | 63 ORACLE DATABASE CLOUD SERVICE - MONITOR
  • 64. Copyright © 2016 Accenture All rights reserved. | 64 ORACLE DATABASE CLOUD SERVICE - MONITOR
  • 65. Copyright © 2016 Accenture All rights reserved. | 65 ORACLE DATABASE CLOUD SERVICE - MONITOR
  • 66. Copyright © 2016 Accenture All rights reserved. | 66 ORACLE DATABASE CLOUD SERVICE - MONITOR
  • 67. Copyright © 2016 Accenture All rights reserved. | 67 ORACLE DATABASE CLOUD SERVICE - MONITOR
  • 68. Copyright © 2016 Accenture All rights reserved. | 68 ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
  • 69. Copyright © 2016 Accenture All rights reserved. | 69 ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
  • 70. Copyright © 2016 Accenture All rights reserved. | 70 ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
  • 71. Copyright © 2016 Accenture All rights reserved. | 71 ORACLE DATABASE CLOUD SERVICE - EM DB EXPRESS
  • 72. Copyright © 2016 Accenture All rights reserved. | 72 ORACLE DATABASE BACKUP CLOUD SERVICE SCALE UP/DOWN
  • 73. Copyright © 2016 Accenture All rights reserved. | 73 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 74. Copyright © 2016 Accenture All rights reserved. | 74 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 75. Copyright © 2016 Accenture All rights reserved. | 75 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 76. Copyright © 2016 Accenture All rights reserved. | 76 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 77. Copyright © 2016 Accenture All rights reserved. | 77 ORACLE DATABASE CLOUD SERVICE - SCALE  xvdb  xvdg
  • 78. Copyright © 2016 Accenture All rights reserved. | 78 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 79. Copyright © 2016 Accenture All rights reserved. | 79 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 80. Copyright © 2016 Accenture All rights reserved. | 80 ORACLE DATABASE CLOUD SERVICE - SCALE
  • 81. Copyright © 2016 Accenture All rights reserved. | 81 ORACLE DATABASE CLOUD SERVICE - DBAASCLI https://docs.oracle.com/en/cloud/paas/database-dbaas-cloud/csdbi/dbaascli.html
  • 82. Copyright © 2016 Accenture All rights reserved. | 82 ORACLE DATABASE CLOUD SERVICE - RACCLI
  • 83. Copyright © 2016 Accenture All rights reserved. | 83 ORACLE DATABASE BACKUP CLOUD SERVICE BACKUPS
  • 84. Copyright © 2016 Accenture All rights reserved. | 84 ORACLE DATABASE CLOUD SERVICE - BACKUPS
  • 85. Copyright © 2016 Accenture All rights reserved. | 85 ORACLE DATABASE CLOUD SERVICE - BACKUPS
  • 86. Copyright © 2016 Accenture All rights reserved. | 86 ORACLE DATABASE CLOUD SERVICE - BACKUPS
  • 87. Copyright © 2016 Accenture All rights reserved. | 87 ORACLE DATABASE CLOUD SERVICE - BACKUPS
  • 88. Copyright © 2016 Accenture All rights reserved. | 88 ORACLE DATABASE CLOUD SERVICE - BACKUPS
  • 89. Copyright © 2016 Accenture All rights reserved. | 89 ORACLE DATABASE BACKUP CLOUD SERVICE PATCHING
  • 90. Copyright © 2016 Accenture All rights reserved. | 90 ORACLE DATABASE CLOUD SERVICE - PATCHING
  • 91. Copyright © 2016 Accenture All rights reserved. | 91 ORACLE DATABASE CLOUD SERVICE - PATCHING
  • 92. Copyright © 2016 Accenture All rights reserved. | 92 ORACLE DATABASE BACKUP CLOUD SERVICE BACKUP TO CLOUD
  • 93. Copyright © 2016 Accenture All rights reserved. | 93 INSTALLING THE ORACLE DATABASE CLOUD BACKUP MODULE
  • 94. Copyright © 2016 Accenture All rights reserved. | 94 INSTALLING THE ORACLE DATABASE CLOUD BACKUP MODULE **proxy
  • 95. Copyright © 2016 Accenture All rights reserved. | 95 INSTALLING THE ORACLE DATABASE CLOUD BACKUP MODULE
  • 96. Copyright © 2016 Accenture All rights reserved. | 96
  • 97. Copyright © 2016 Accenture All rights reserved. | 97
  • 98. Copyright © 2016 Accenture All rights reserved. | 98
  • 99. Copyright © 2016 Accenture All rights reserved. | 99
  • 100. Copyright © 2016 Accenture All rights reserved. | 100
  • 101. Copyright © 2016 Accenture All rights reserved. | 101 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  • 102. Copyright © 2016 Accenture All rights reserved. | 102 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE
  • 103. Copyright © 2016 Accenture All rights reserved. | 103 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE Use Database Consolidation Workbench **Database Consolidation Workbench requires the Database Diagnostics pack license.
  • 104. Copyright © 2016 Accenture All rights reserved. | 104 ORACLE DATABASE CLOUD SERVICE DETERMINE COMPUTE SHAPE Ok! Now we have the definition of CPUs, Memory and Storage equivalent in the Oracle Cloud.
  • 105. Copyright © 2016 Accenture All rights reserved. | 105 ORACLE DATABASE CLOUD SERVICE DATA LOADING INTO THE CLOUD Basically, it depends on the Cloud Service that I’m using.
  • 106. Copyright © 2016 Accenture All rights reserved. | 106 ORACLE DATABASE CLOUD SERVICE DATA LOADING INTO A DATABASE/EXADATA CLOUD SERVICE • SQL*Loader • Import/export • Oracle Data Pump Export/Import Utility • Transportable Tablespaces • Pluggable Databases (PDBs)  Remote Cloning  Lift and Shift • APEX/SQL Developer Data Loaders • External Tables • Dataguard • GoldenGate • REST Services • Enterprise Manager (12cR5 or 13c) • Bulk Data Transfer
  • 107. Copyright © 2016 Accenture All rights reserved. | 107 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD 1 - Database version of your on-premises database: • Oracle Database 11g Release 2 version lower than 11.2.0.3 • Oracle Database 11g Release 2 version 11.2.0.3 or higher • Oracle Database 12c Release 1 version lower than 12.1.0.2 • Oracle Database 12c Release 1 version 12.1.0.2 or higher 2 - For on-premises Oracle Database 12c Release 1 databases, the architecture of the database: • Multitenant container database (CDB) • Non-CDB
  • 108. Copyright © 2016 Accenture All rights reserved. | 108 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD 3 - Endian format (byte ordering) of your on-premises database’s host platform 4 - Database character set of your on-premises database and Oracle Database Cloud Service database 5 - Database version of the Oracle Database Cloud database you are migrating to: • Oracle Database 11g Release 2 • Oracle Database 12c Release 1
  • 109. Copyright © 2016 Accenture All rights reserved. | 109 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 11G TO ORACLE DATABASE 11G IN THE CLOUD • Data Pump Conventional Export/Import • Data Pump Transportable Tablespace • RMAN Transportable Tablespace with Data Pump • RMAN CONVERT Transportable Tablespace with Data Pump
  • 110. Copyright © 2016 Accenture All rights reserved. | 110 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 11G TO ORACLE DATABASE 12C IN THE CLOUD • Data Pump Conventional Export/Import • Data Pump Transportable Tablespace • RMAN Transportable Tablespace with Data Pump • RMAN CONVERT Transportable Tablespace with Data Pump • Data Pump Full Transportable
  • 111. Copyright © 2016 Accenture All rights reserved. | 111 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 12C CDB TO ORACLE DATABASE 12C IN THE CLOUD • 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
  • 112. Copyright © 2016 Accenture All rights reserved. | 112 ORACLE DATABASE CLOUD MIGRATING FROM ORACLE DATABASE 12C NON-CDB TO ORACLE DATABASE 12C IN THE CLOUD • 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 (non-CDB) • SQL Developer and SQL*Loader to Migrate Selected Objects • SQL Developer and INSERT Statements to Migrate Selected Objects
  • 113. Copyright © 2016 Accenture All rights reserved. | 113 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD https://d0.awsstatic.com/whitepapers/strategies-for-migrating-oracle-database-to-aws.pdf
  • 114. Copyright © 2016 Accenture All rights reserved. | 114 ORACLE DATABASE CLOUD CHOOSING A MIGRATION METHOD Downtime?
  • 115. Copyright © 2016 Accenture All rights reserved. | 115 ORACLE DATABASE CLOUD DATA PUMP CONVENTIONAL EXPORT/IMPORT You can use this method regardless of the endian format and database character set of the on-premises database.
  • 116. Copyright © 2016 Accenture All rights reserved. | 116 ORACLE DATABASE CLOUD DATA PUMP CONVENTIONAL EXPORT/IMPORT On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud'; expdp user/password SCHEMAS=fsowner DIRECTORY=dp_for_cloud
  • 117. Copyright © 2016 Accenture All rights reserved. | 117 ORACLE DATABASE CLOUD DATA PUMP CONVENTIONAL EXPORT/IMPORT Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem On-premises host: scp –i private_key_file /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem Database Cloud Service compute node: sqlplus user/password CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem'; impdp user/password SCHEMAS=fsowner DIRECTORY=dp_from_onprem
  • 118. Copyright © 2016 Accenture All rights reserved. | 118 ORACLE DATABASE CLOUD DATA PUMP TRANSPORTABLE TABLESPACE You can use this method only if the on-premises platform is little endian, and the database character sets of your on-premises database and Oracle Database Cloud Service database are compatible.
  • 119. Copyright © 2016 Accenture All rights reserved. | 119 ORACLE DATABASE CLOUD DATA PUMP TRANSPORTABLE TABLESPACE On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud'; ALTER TABLESPACE fsindex READ ONLY; ALTER TABLESPACE fsdata READ ONLY; expdp user/password TRANSPORT_TABLESPACES=fsdata,fsindex TRANSPORT_FULL_CHECK=YES DIRECTORY=dp_for_cloud
  • 120. Copyright © 2016 Accenture All rights reserved. | 120 ORACLE DATABASE CLOUD DATA PUMP TRANSPORTABLE TABLESPACE Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem On-premises host: $ scp -i private_key_file /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem $ scp -i private_key_file /u01/app/oracle/oradata/orcl/fsdata01.dbf oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL $ scp -i private_key_file /u01/app/oracle/oradata/orcl/fsindex01.dbf oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindexREAD WRITE;
  • 121. Copyright © 2016 Accenture All rights reserved. | 121 ORACLE DATABASE CLOUD DATA PUMP TRANSPORTABLE TABLESPACE Database Cloud Service compute node: CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem'; SQL> CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE temp ACCOUNT UNLOCK; impdp user/password DIRECTORY=dp_from_onprem TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', '/u02/app/oracle/oradata/ORCL/fsindex01.dbf’ ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE;
  • 122. Copyright © 2016 Accenture All rights reserved. | 122 ORACLE DATABASE CLOUD DATA PUMP FULL TRANSPORTABLE You can use this method only if the source database release version is 11.2.0.3 or later, and the database character sets of your on-premises database and Oracle Database Cloud Service database are compatible.
  • 123. Copyright © 2016 Accenture All rights reserved. | 123 ORACLE DATABASE CLOUD DATA PUMP FULL TRANSPORTABLE On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud'; Determine the name(s) of the tablespaces and data files that belong to the user-defined tablespaces by querying DBA_DATA_FILES and make then read only: ALTER TABLESPACE fsdata READ ONLY; ALTER TABLESPACE fsindex READ ONLY; ALTER TABLESPACE users READ ONLY; expdp system/password FULL=y TRANSPORTABLE=always VERSION=12 DUMPFILE=expdat.dmp DIRECTORY=dp_for_cloud
  • 124. Copyright © 2016 Accenture All rights reserved. | 124 ORACLE DATABASE CLOUD DATA PUMP FULL TRANSPORTABLE Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_source On-premises host: $ scp -i private_key_file /u01/app/oracle/oradata/orcl/fsdata01.dbf oracle@compute_node_IP_address:/u02/app/oracle/oradata/ORCL/PDB2 $ scp -i private_key_file /u01/app/oracle/oradata/orcl/fsindex01.dbf oracle@compute_node_IP_address:/u02/app/oracle/oradata/ORCL/PDB2 $ scp -i private_key_file /u01/app/oracle/oradata/orcl/users01.dbf oracle@compute_node_IP_address:/u02/app/oracle/oradata/ORCL/PDB2 ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE; ALTER TABLESPACE users READ WRITE;
  • 125. Copyright © 2016 Accenture All rights reserved. | 125 ORACLE DATABASE CLOUD DATA PUMP FULL TRANSPORTABLE Database Cloud Service compute node: CREATE DIRECTORY dp_from_source AS '/u01/app/oracle/admin/ORCL/dpdump/from_source'; impdp system@PDB2 FULL=y DIRECTORY=dp_from_source TRANSPORT_DATAFILES= '/u02/app/oracle/oradata/ORCL/PDB2/fsdata01.dbf', '/u02/app/oracle/oradata/ORCL/PDB2/fsindex01.dbf,' '/u02/app/oracle/oradata/ORCL/PDB2/users01.dbf'
  • 126. Copyright © 2016 Accenture All rights reserved. | 126 ORACLE DATABASE CLOUD ORACLE SQL*LOADER
  • 127. Copyright © 2016 Accenture All rights reserved. | 127 ORACLE DATABASE CLOUD ORACLE SQL*LOADER sqlplus scott/tiger CREATE TABLE emp (empno number(5), name varchar2(50), sal number(10,2), jdate date);
  • 128. Copyright © 2016 Accenture All rights reserved. | 128 ORACLE DATABASE CLOUD ORACLE SQL*LOADER emp.ctl LOAD DATA INFILE '/u01/oracle/emp.csv’ BADFILE ‘/u01/oracle/emp.bad’ DISCARDFILE ‘/u01/oracle/emp.dsc’ INSERT INTO TABLE emp FIELDS TERMINATED BY “,” OPTIONALLY ENCLOSED BY ‘”’ TRAILING NULLCOLS (empno,name,sal,jdate date ‘mm/dd/yyyy’) sqlldr userid=scott/tiger control=emp.ctl log=emp.log
  • 129. Copyright © 2016 Accenture All rights reserved. | 129 ORACLE DATABASE CLOUD ORACLE SQL*LOADER EXPRESS – 12C SQL> create table COMPANY (id NUMBER(1), name VARCHAR2(30)); Table created. [oracle@oracle01 tmp]$ cat COMPANY .dat 1,Company 1 2,Company 2 3,Company 3 4,Company 4 5,Company 5 6,Company 6 7,Company 7 8,Company 8 9,Company 9
  • 130. Copyright © 2016 Accenture All rights reserved. | 130 ORACLE DATABASE CLOUD ORACLE SQL*LOADER EXPRESS – 12C [oracle@oracle01 tmp]$ sqlldr teste/teste TABLE=COMPANY SQL*Loader: Release 12.1.0.1.0 - Production on Sat Jan 11 12:16:28 2014 Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved. Express Mode Load, Table: COMPANY Path used: External Table, DEGREE_OF_PARALLELISM=AUTO Table COMPANY: 9 Rows successfully loaded.
  • 131. Copyright © 2016 Accenture All rights reserved. | 131 ORACLE DATABASE CLOUD EXTERNAL TABLES
  • 132. Copyright © 2016 Accenture All rights reserved. | 132 ORACLE DATABASE CLOUD EXTERNAL TABLES
  • 133. Copyright © 2016 Accenture All rights reserved. | 133 ORACLE DATABASE CLOUD DATABASE LINKS
  • 134. Copyright © 2016 Accenture All rights reserved. | 134 ORACLE DATABASE CLOUD DATABASE LINKS On-premises host: CREATE DATABASE LINK my_db_link CONNECT TO remote_user IDENTIFIED BY remote_password USING ’MyCloudDB'; CREATE TABLE tb_test@my_db_link as SELECT* FROM my_Table;
  • 135. Copyright © 2016 Accenture All rights reserved. | 135 ORACLE DATABASE CLOUD DATABASE LINKS - CLONE A REMOTE PDB OR NON-CDB
  • 136. Copyright © 2016 Accenture All rights reserved. | 136 ORACLE DATABASE CLOUD DATABASE LINKS - CLONE A REMOTE PDB OR NON-CDB You have to expose your on-premises database over the internet or have a VPN or SSH tunneling configured: CREATE DATABASE LINK clone_link CONNECT TO remote_clone_user IDENTIFIED BY remote_clone_user USING ’MyOnPremDB'; CREATE PLUGGABLE DATABASE pdb1 FROM pdb1@clone_link; CREATE PLUGGABLE DATABASE pdb2b FROM NON$CDB@clone_link;
  • 137. Copyright © 2016 Accenture All rights reserved. | 137 ORACLE DATABASE CLOUD DATA GUARD
  • 138. Copyright © 2016 Accenture All rights reserved. | 138 ORACLE DATABASE CLOUD DATA GUARD 1 - Create Physical Standby 2 – Prepare Client Connections (Ex: tnsnames.ora) 3 – Switchover to Physical Standby ***Enable SSH tunneling and also to make sure only specific on-premises IP addresses can access the listener port in the cloud Disaster Recovery to the Oracle Cloud http://www.oracle.com/technetwork/database/availability/dr-to-oracle-cloud-2615770.pdf
  • 139. Copyright © 2016 Accenture All rights reserved. | 139 ORACLE DATABASE CLOUD DATA GUARD
  • 140. Copyright © 2016 Accenture All rights reserved. | 140 ORACLE DATABASE CLOUD DATA GUARD SELECT log_mode FROM v$database; LOG_MODE ------------ NOARCHIVELOG SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTER DATABASE ARCHIVELOG; ALTER DATABASE OPEN; ALTER DATABASE FORCE LOGGING; On-premises host:
  • 141. Copyright © 2016 Accenture All rights reserved. | 141 ORACLE DATABASE CLOUD DATA GUARD • Create standby redo logs on the primary database initially (recommended). • Create standby redo logs using the same file size as the primary database online redo logs. • Create one additional group more than the number of online redo log groups. ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo01.log') SIZE XXM; ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo02.log') SIZE XXM; ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo03.log') SIZE XXM; ALTER DATABASE ADD STANDBY LOGFILE ('/u02/oradata/cdb1/standby_redo04.log') SIZE XXM; On-premises host:
  • 142. Copyright © 2016 Accenture All rights reserved. | 142 ORACLE DATABASE CLOUD DATA GUARD Init.ora: *.db_name='cdb1’ mkdir -p /u02/oradata/cdb1/pdbseed mkdir -p /u02/oradata/cdb1/pdb1 mkdir -p /u02/fast_recovery_area/cdb1 mkdir -p /u01/app/oracle/admin/cdb1/adump orapwd file=/u01/app/oracle/product/12.1.0.2/db_1/dbs/orapwcdb1 password=mypass entries=10 Database Cloud Service compute node:
  • 143. Copyright © 2016 Accenture All rights reserved. | 143 ORACLE DATABASE CLOUD DATA GUARD export ORACLE_SID=cdb1 sqlplus / as sysdba STARTUP NOMOUNT PFILE='/tmp/init.ora'; rman TARGET sys/password@cdb1 AUXILIARY sys/password@cdb1_stby DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE DORECOVER SPFILE SET db_unique_name='CDB1_STBY' NOFILENAMECHECK; Database Cloud Service compute node:
  • 144. Copyright © 2016 Accenture All rights reserved. | 144 ORACLE DATABASE CLOUD DATA GUARD Prepare Client Connections (Ex: tnsnames.ora) ALTER SYSTEM SET dg_broker_start=true; dgmgrl sys/password@cdb1 CREATE CONFIGURATION my_config AS PRIMARY DATABASE IS cdb1 CONNECT IDENTIFIER IS cdb1; ADD DATABASE cdb1_stby AS CONNECT IDENTIFIER IS cdb1_stby MAINTAINED AS PHYSICAL; ENABLE CONFIGURATION; SWITCHOVER TO cdb1_stby; Database Cloud Service compute node:
  • 145. Copyright © 2016 Accenture All rights reserved. | 145 ORACLE DATABASE CLOUD GOLDENGATE AND GOLDENGATE CLOUD SERVICE
  • 146. Copyright © 2016 Accenture All rights reserved. | 146 ORACLE DATABASE CLOUD GOLDENGATE AND GOLDENGATE CLOUD SERVICE
  • 147. Copyright © 2016 Accenture All rights reserved. | 147 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING
  • 148. Copyright © 2016 Accenture All rights reserved. | 148 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
  • 149. Copyright © 2016 Accenture All rights reserved. | 149 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
  • 150. Copyright © 2016 Accenture All rights reserved. | 150 ORACLE DATABASE CLOUD UNPLUGGING/PLUGGING http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/dbaas/OU/MigratingToDBaaS/Unplug_Plug_Migration/Unplug_Plug_Migration.html
  • 151. Copyright © 2016 Accenture All rights reserved. | 151 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  • 152. Copyright © 2016 Accenture All rights reserved. | 152 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING SQLDEVELOPER Enterprise Manager
  • 153. Copyright © 2016 Accenture All rights reserved. | 153 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  • 154. Copyright © 2016 Accenture All rights reserved. | 154 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  • 155. Copyright © 2016 Accenture All rights reserved. | 155 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  • 156. Copyright © 2016 Accenture All rights reserved. | 156 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  • 157. Copyright © 2016 Accenture All rights reserved. | 157 ORACLE DATABASE CLOUD PLUGGABLE DATABASES (PDBS) - REMOTE CLONING
  • 158. Copyright © 2016 Accenture All rights reserved. | 158 ORACLE DATABASE CLOUD SQLDEVELOPER DATABASE COPY
  • 159. Copyright © 2016 Accenture All rights reserved. | 159 ORACLE DATABASE CLOUD SQLDEVELOPER
  • 160. Copyright © 2016 Accenture All rights reserved. | 160 ORACLE DATABASE CLOUD SQLDEVELOPER
  • 161. Copyright © 2016 Accenture All rights reserved. | 161 ORACLE DATABASE CLOUD SQLDEVELOPER
  • 162. Copyright © 2016 Accenture All rights reserved. | 162 ORACLE DATABASE CLOUD SQLDEVELOPER
  • 163. Copyright © 2016 Accenture All rights reserved. | 163 ORACLE DATABASE CLOUD SQLDEVELOPER
  • 164. Copyright © 2016 Accenture All rights reserved. | 164 ORACLE DATABASE CLOUD SQLDEVELOPER
  • 165. Copyright © 2016 Accenture All rights reserved. | 165
  • 166. Copyright © 2016 Accenture All rights reserved. | 166 ORACLE DATABASE CLOUD RMAN CROSS-PLATFORM TRANSPORTABLE TABLESPACE BACKUP SETS You can use this method only if the database character sets of your on-premises database and Oracle Database Cloud Service database are compatible.
  • 167. Copyright © 2016 Accenture All rights reserved. | 167 ORACLE DATABASE CLOUD RMAN CROSS-PLATFORM TRANSPORTABLE TABLESPACE BACKUP SETS On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud'; ALTER TABLESPACE fsdata READ ONLY; ALTER TABLESPACE fsindex READ ONLY;
  • 168. Copyright © 2016 Accenture All rights reserved. | 168 ORACLE DATABASE CLOUD RMAN CROSS-PLATFORM TRANSPORTABLE TABLESPACE BACKUP SETS On-premises host: mkdir /u01/app/oracle/admin/orcl/rman_transdest rman target username/password BACKUP FOR TRANSPORT FORMAT '/u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.bck' TABLESPACE fsdata,fsindex DATAPUMP FORMAT '/u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.dmp';
  • 169. Copyright © 2016 Accenture All rights reserved. | 169 ORACLE DATABASE CLOUD RMAN CROSS-PLATFORM TRANSPORTABLE TABLESPACE BACKUP SETS Database Cloud Service compute node: mkdir /tmp/from_onprem On-premises host: $ scp -i private_key_file /u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.bck oracle@IP_address_DBaaS_VM:/tmp/from_onprem $ scp -i private_key_file /u01/app/oracle/admin/orcl/rman_transdest/fs_tbs.dmp oracle@IP_address_DBaaS_VM:/tmp/from_onprem ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE;
  • 170. Copyright © 2016 Accenture All rights reserved. | 170 ORACLE DATABASE CLOUD RMAN CROSS-PLATFORM TRANSPORTABLE TABLESPACE BACKUP SETS Database Cloud Service compute node: CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE temp ACCOUNT UNLOCK; mkdir /tmp/from_onprem rman target username/password RESTORE FOREIGN TABLESPACE fsdata,fsindex TO NEW FROM BACKUPSET '/tmp/from_onprem/fs_tbs.bck' DUMP FILE DATAPUMP DESTINATION '/tmp/datapump' FROM BACKUPSET '/tmp/from_onprem/fs_tbs.dmp'; ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE;
  • 171. Copyright © 2016 Accenture All rights reserved. | 171 ORACLE DATABASE CLOUD RMAN TRANSPORTABLE TABLESPACE WITH DATA PUMP You can use this method only if the on-premises platform is little endian, and the database character sets of your on-premises database and Oracle Database Cloud Service database are compatible.
  • 172. Copyright © 2016 Accenture All rights reserved. | 172 ORACLE DATABASE CLOUD RMAN TRANSPORTABLE TABLESPACE WITH DATA PUMP On-premises host: mkdir /u01/app/oracle/admin/orcl/rman_transdest mkdir /u01/app/oracle/admin/orcl/rman_auxdest rman target user/password TRANSPORT TABLESPACE fsdata, fsindex TABLESPACE DESTINATION '/u01/app/oracle/admin/orcl/rman_transdest' AUXILIARY DESTINATION '/u01/app/oracle/admin/orcl/rman_auxdest';
  • 173. Copyright © 2016 Accenture All rights reserved. | 173 ORACLE DATABASE CLOUD RMAN TRANSPORTABLE TABLESPACE WITH DATA PUMP Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem'; On-premises host: scp -i private_key_file /u01/app/oracle/admin/orcl/rman_transdest/dmpfile.dmp oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem $ scp -i private_key_file /u01/app/oracle/admin/orcl/rman_transdest/fsdata01.dbf oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL $ scp -i private_key_file /u01/app/oracle/admin/orcl/rman_transdest/fsindex01.dbf oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL
  • 174. Copyright © 2016 Accenture All rights reserved. | 174 ORACLE DATABASE CLOUD RMAN TRANSPORTABLE TABLESPACE WITH DATA PUMP Database Cloud Service compute node: CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE temp ACCOUNT UNLOCK; impdp system DIRECTORY=dp_from_onprem DUMPFILE='dmpfile.dmp' TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', '/u02/app/oracle/oradata/ORCL/fsindex01.dbf'
  • 175. Copyright © 2016 Accenture All rights reserved. | 175 ORACLE DATABASE CLOUD RMAN CONVERT TRANSPORTABLE TABLESPACE WITH DATA PUMP You can use this method only if the database character sets of your on-premises database and Oracle Database Cloud Service database are compatible.
  • 176. Copyright © 2016 Accenture All rights reserved. | 176 ORACLE DATABASE CLOUD RMAN CONVERT TRANSPORTABLE TABLESPACE WITH DATA PUMP On-premises host: mkdir /u01/app/oracle/admin/orcl/dpdump/for_cloud sqlplus user/password CREATE DIRECTORY dp_for_cloud AS '/u01/app/oracle/admin/orcl/dpdump/for_cloud'; ALTER TABLESPACE fsindex READ ONLY; ALTER TABLESPACE fsdata READ ONLY; expdp system TRANSPORT_TABLESPACES=fsdata,fsindex TRANSPORT_FULL_CHECK=YES DIRECTORY=dp_for_cloud
  • 177. Copyright © 2016 Accenture All rights reserved. | 177 Database Cloud Service compute node: mkdir /u01/app/oracle/admin/ORCL/dpdump/from_onprem On-premises host: rman target / CONVERT TABLESPACE fsdata, fsindex TO PLATFORM 'Linux x86 64-bit' FORMAT '/tmp/%U '; ORACLE DATABASE CLOUD RMAN CONVERT TRANSPORTABLE TABLESPACE WITH DATA PUMP
  • 178. Copyright © 2016 Accenture All rights reserved. | 178 On-premises host: $ scp -i private_key_file /u01/app/oracle/admin/orcl/dpdump/for_cloud/expdat.dmp oracle@IP_address_DBaaS_VM:/u01/app/oracle/admin/ORCL/dpdump/from_onprem $ scp -i private_key_file /tmp/data_D-ORCL_I-1410251631_TS-FSDATA_FNO-6_0aqc9un3 oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL/fsdata01.dbf $ scp -i private_key_file /tmp/data_D-ORCL_I-1410251631_TS-FSINDEX_FNO-7_0bqc9un6 oracle@IP_address_DBaaS_VM:/u02/app/oracle/oradata/ORCL/fsindex01.dbf ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE; ORACLE DATABASE CLOUD RMAN CONVERT TRANSPORTABLE TABLESPACE WITH DATA PUMP
  • 179. Copyright © 2016 Accenture All rights reserved. | 179 Database Cloud Service compute node: CREATE DIRECTORY dp_from_onprem AS '/u01/app/oracle/admin/ORCL/dpdump/from_onprem'; CREATE USER fsowner PROFILE default IDENTIFIED BY fspass TEMPORARY TABLESPACE temp ACCOUNT UNLOCK; impdp system DIRECTORY=dp_from_onprem TRANSPORT_DATAFILES='/u02/app/oracle/oradata/ORCL/fsdata01.dbf', '/u02/app/oracle/oradata/ORCL/fsindex01.dbf’ ALTER TABLESPACE fsdata READ WRITE; ALTER TABLESPACE fsindex READ WRITE; ORACLE DATABASE CLOUD RMAN CONVERT TRANSPORTABLE TABLESPACE WITH DATA PUMP
  • 180. Copyright © 2016 Accenture All rights reserved. | 180 QUESTIONS?
  • 181. Copyright © 2016 Accenture All rights reserved. | 181 Thank You Slides Available: http://www.slideshare.net/