Professional Documents
Culture Documents
13:00 – 14:30 – Upgrade to Oracle Database 12c Release 2: How and when to upgrade or migrate
databases or workloads to the Oracle Cloud, How to migrate databases to Oracle Cloud with
zero-downtime, Achieve hybrid cloud with the latest Oracle hardware on-premise platform
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2
Agenda
• Review of Oracle Cloud Storage Offereings
• Storage Cloud
• Object Storage
• Archive Storage
POSIX NFS
SMB, NAS
WebDav
Hardware – Physical Servers & Storage
Core Data Center & Access Network
Data Center Regions & Availability Domains
Oracle Cloud Database Backup Service
Platform as a Service
Instant Offsite Storage
Cost-Effective
On-demand Scalability
End-to-End Security
Encryption
On-Premises Databases 10.2
and above Compression
17
Backup/Recovery General Guidelines
Following are general guidelines customers typically follow to address RTO and
RPO requirements:
18
RMAN Step By Step Configuration
19
Database Cloud Backup Service – Easy as 1-2-3 (4 and 5)
20
Recovery Manager (RMAN) as tool of choice
• Oracle database integrated backup & recovery tool
• No new learning curve for the DBAs
• ASO and Compression bundled w/ Oracle Database Backup Cloud with no additional cost
• Perform SET, CONFIGURE, BACKUP, RESTORE & RECOVER operations at various levels
• Database, data file, tablespace, table, block
• Options:
• Backs up to disk then to the cloud
• Backup directly to the cloud
• Requires Media Management Layer (MML) knowledge to backup to cloud
• Simple commands
RMAN> BACKUP DATABASE;
RMAN> RESTORE DATABASE;
Backup & Recovery to OPC
To determine network throughput for a specific time period, use RMAN network analyzer,
see MOS note 2022086.1
To diagnose Oracle Cloud Backup Performance, see MOS note 2078576.1.
» Download and run Installer at least once every two months to pick up latest RMAN
SBT module
» Configure CONTROLFILE AUTOBACKUP ON
23
Database Backup Cloud Pricing – As of April 2017
https://cloud.oracle.com/en_US/database_backup?tabID=1406491822522
Metered Pricing
$0.0264 GB per Month (1TB = $26.40/Month) Up to 1TB
$0.0242 GB per Month ($24.20 / Month) >5000 TB
24
Oracle Database Backup Service Support Matrix
25
RMAN Operations Supported on Oracle Database Backup Cloud Service
26
Configure Database Cloud Backup Module
Download the OPC Install Jar File -- http://www.oracle.com/technetwork/database/availability/oracle-cloud-
backup-2162729.html
-- Unzip the installer. It contains opc_install.jar and a README file
$ java -jar opc_install.jar - Oracle Database Cloud Backup Module Install Tool, build 2014-09-04
serviceName Storage - Oracle Database Cloud Backup Module credentials are valid.
identityDomain ViscTech - Oracle Database Cloud Backup Module wallet created in directory
opcId /u01/app/oracle/product/12.1.0/dbhome_1/dbs/opc_wallet.
charles.kim@viscosityna.com - Oracle Database Cloud Backup Module initialization file
opcPass 'mypass*%' -walletDir /u01/app/oracle/product/12.1.0/dbhome_1/dbs/opcorcl.ora created.
$ORACLE_HOME/dbs/opc_wallet - Downloading Oracle Database Cloud Backup Module Software Library from file opc_linux64.zip.
libDir $ORACLE_HOME/lib - Downloaded 23169388 bytes in 16 seconds. Transfer rate was 1448086 bytes/second.
libPlatform linux64 Download complete.
27
Configure RMAN
29
Restore Controlfile
set decryption identified by oracle;
Run
{
allocate channel t1 type 'sbt_tape' PARMS 'SBT_LIBRARY=libopc.so,
ENV=(OPC_PFILE=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/opcorcl
.ora)';
set dbid=1404255397;
restore controlfile from autobackup;
release channel t1;
}
30
Restore Database
set decryption identified by oracle;
run
{
allocate channel t1 type 'sbt_tape' PARMS 'SBT_LIBRARY=libopc.so,
ENV=(OPC_PFILE=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/opcorcl.ora)';
allocate channel t2 type 'sbt_tape' PARMS 'SBT_LIBRARY=libopc.so,
ENV=(OPC_PFILE=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/opcorcl.ora)';
allocate channel t3 type 'sbt_tape' PARMS 'SBT_LIBRARY=libopc.so,
ENV=(OPC_PFILE=/u01/app/oracle/product/12.1.0/dbhome_1/dbs/opcorcl.ora)';
restore database;
recover database;
release channel t1;
release channel t2;
release channel t3;
}
31
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
1 B 0 A SBT_TAPE 05-SEP-16 1 1 YES ONPREM DB TO CLOUD
2 B 0 A SBT_TAPE 05-SEP-16 1 1 YES ONPREM DB TO CLOUD
3 B 0 A SBT_TAPE 05-SEP-16 1 1 YES ONPREM DB TO CLOUD
4 B 0 A SBT_TAPE 05-SEP-16 1 1 YES ONPREM DB TO CLOUD
5 B 0 A SBT_TAPE 05-SEP-16 1 1 YES ONPREM DB TO CLOUD
6 B 0 A SBT_TAPE 05-SEP-16 1 1 YES ONPREM DB TO CLOUD
7 B A A SBT_TAPE 05-SEP-16 1 1 YES ONPREM ARC TO CLOUD
8 B F A SBT_TAPE 05-SEP-16 1 1 NO ONPREM CTL TO CLOUD
9 B 1 A DISK 17-SEP-16 1 1 YES LOCALDISK ONPREM DB
10 B 1 A DISK 17-SEP-16 1 1 YES LOCALDISK ONPREM DB
11 B 1 A DISK 17-SEP-16 1 1 YES LOCALDISK ONPREM DB
12 B 1 A DISK 17-SEP-16 1 1 YES LOCALDISK ONPREM DB
13 B 1 A DISK 17-SEP-16 1 1 YES LOCALDISK ONPREM DB
14 B 1 A DISK 17-SEP-16 1 1 YES LOCALDISK ONPREM DB
15 B A A DISK 17-SEP-16 1 1 YES TAG20160917T103058
16 B A A DISK 17-SEP-16 1 1 YES TAG20160917T103058
17 B A A DISK 17-SEP-16 1 1 YES TAG20160917T103058
18 B F A DISK 17-SEP-16 1 1 NO LOCALDISK ONPREM CTL
19 B 1 A SBT_TAPE 17-SEP-16 1 1 YES ONPREM DB TO CLOUD
20 B 1 A SBT_TAPE 17-SEP-16 1 1 YES ONPREM DB TO CLOUD
21 B 1 A SBT_TAPE 17-SEP-16 1 1 YES ONPREM DB TO CLOUD 32
22 B 1 A SBT_TAPE 17-SEP-16 1 1 YES ONPREM DB TO CLOUD
Oracle Database Cloud
33
Oracle Database Cloud Service
34
Create Service
35
Oracle Database Cloud Service
Cloud Storage Container
36
SSH Public Key for VM Access
38
Additional Storage for DBaaS & IaaS
39
40
Oracle Cloud – Home Page
41
Storage Containers – As of April 2017
https://cloud.oracle.com/en_US/storage/archive-storage/pricing
Metered Pricing
$0.024 GB per Month (1TB = $24/Month) Up to 1TB
$0.022 GB per Month >5000 TB
42
Oracle Cloud – Archive Storage
1 TB / Month = $1
43
Bulk Data Transfer Services
44
Amazon Storage Pricing
45
Storage Cloud Service Initial Screen
46
Creating a Container
47
Upload Objects
48
Large Object Load
49
Create Archive Storage
Check Status –> Restore File
51
51
Restore File Details
52
Restore File Details – Up to 4 Hrs Later
53
Oracle Storage Cloud Upload CLI
Demo later
54
Oracle Cloud Storage - Archive
• Customers can use Archive containers to store data that won't be accessed for
a while or that will be accessed infrequently.
• It is ideally suited for data sets such as corporate financial records, medical and
pharmaceutical archives, cultural preservation content, insurance records and
digital film masters.
55
Archive Storage
56
Back-up to the Cloud
Scalable, Redundant, High Available Backup Storage Solution
Customer 1. Customer must purchase additional storage on premise and offsite to maintain data archive compliance
Profile: 2. New to Oracle database and has not acquired skill set to implement best practices for database backup and recovery
Scenarios 3. Failed recovery due to incomplete backups
Confidential – 57
Oracle Storage Cloud Software Appliance
Instant On Ramp to Oracle Storage Cloud Services
From Oracle Linux Installation to setting up Docker to logging into the Management Console
As of July 30, 2017: Oracle Storage Cloud Software Appliance (Release 16.3.1.2.1)
Supports Standard and Archive Storage
59
Oracle Storage Cloud Software Appliance
60
OCSCA Contents for On-Premise
$ gunzip oscsa-OnPrem-16.3.1.2.1.tar.gz
-rw-r--r-- 1 Dobby staff 941342720 Jul 30 07:56 oscsa-OnPrem-16.3.1.2.1.tar
61
Storage Cloud Software Appliance
62
OSCSA Installation Installing to destination /opt/oscsa_gateway/
Previous install detected, checking version
OSCSA version 1.0.11 is already installed. Are you sure you want reinstall? (Y | N)
Y
root@orabkups oscsa]# ./oscsa-install.sh -h Stopping OSCSA
Copied install scripts
[root@orabkups oscsa]# ./oscsa-install.sh -a Copied OSCSA image
Checking that docker is installed and using the correct version Starting configuration script
Pass found docker version Docker version 1.10.3, build 57bf6fd Enter the mount location for data cache
WARNING: Usage of loopback devices is strongly discouraged for production
/OPCcache/data
use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt
dm.no_warn_on_loop_devices=true` to suppress this warning. Enter the mount location for meta data
/OPCcache/meta
************************************* Enter the mount location for log file information
Checking host prerequisites /OPCcache/log
************************************* Enter the docker network mode (host or bridge), Hit <Enter> for the default bridge mode.
Detected linux operating system Enter the host port to use for the Administrative Web Interface. Hit <Enter> to use dynamic por
Checking kernel version
Pass kernel version 4.1.12-37.6.2.el7uek.x86_64 found
Checking NFS version Enter the host port to use for NFS access. Hit <Enter> to use dynamic port mapping
Pass found NFS version 4
Enter the host port to use for the optional HTTP REST service. Hit <Enter> to use dynamic port
*************************************
All prerequisites have been met Writing configuration
************************************* Importing image
Please run 'oscsa up' to start the software appliance
*************************************
Begin install
************************************* *************************************
For additional details, please see (/opt/oscsa_gateway/OSCSA_GATEWAY_README.txt) file
63
Oracle Storage Cloud Software Appliance
Tips for 1st timers
Oracle Linux ships with UEK 3.8 Storage Cloud Software Appliance has a UEL 4+ requirement
rpm -e kernel-uek-3.8.13-98.7.1.el7uek.x86_64 Must upgrade to UEK 4.1
rpm -e kernel-uek-firmware-3.8.13-98.7.1.el7uek.noarch
yum install kernel-uek
* Will pull in the kernel UEK firmware RPM
Requires Oracle Linux 7 New learning curve for old timers
Not Red Hat 7 but OL 7 with UEK
Requires Docker New technology for old timers
* It is one of the hottest technologies now
Do not modify or maintain OSCSA container with curl REST API
Will cause inconsistency --> not recoverable
Some Best Practices (Min 16GB RAM) 1. Start with a read cache setting that is 50% of the size of the local storage volume
For filesystems with the number of files up to 5 million, 2. Provision a volume that can accommodate the local cache and ingest new files
the required amount of memory is 32 GB. (upload buffer) without ever becoming more than 80% full
3. Multiple disks (hard disk drives or solid state drives) in a RAID10
For large filesystems with the number of files up to 10 4. Enable read-ahead on the volume.
million, the required amount of memory is 64 GB 5. Ensure that the number of objects stored in an appliance filesystem doesn’t exceed
one million (10,000,000)
6. bin-pack or zip small files before writing them to the appliance.
7. However, for optimal performance, ensure that each filesystem is hosted on a
dedicated appliance
64
Oracle Storage Cloud Software Appliance
65
Login to the Storage Cloud Software Appliance
https://orabkups:32769/login
1 3
66
Create a File System to Sync to OPC
67
Create a File System to Sync to OPC
4
68
NFS Mount the OPC Software Appliance File System on Client Server
69
Managing the Appliance
View details and how to access the management console oscsa info
Configure Oracle Storage Cloud Software Appliance to oscsa configure proxy [http_proxy_server
use a proxy server to connect to OPC https_proxy_server]
Configure Oracle Storage Cloud Software Appliance to oscsa configure ssl true
use SSL to access the management console
Determine the version of Oracle Storage Cloud Software oscsa version
Appliance
Allocate memory for Oracle Storage Cloud Software oscsa configure memory memory_in_GB
Appliance in the appliance host
View help for the available commands: oscsa help
70
ZFS Storage Appliance:
Converged Cloud
Storage for Modern IT
71
Cloud Converged
Storage Puts the
Cloud to Work Today
• Increases IT agility with data and
application mobility
Public Cloud • Extends on-premises storage with
Storage On-Premises unlimited, on-demand cloud
Seamless High-Performance
experience capacity
Storage Appliances
• Improves storage resilience with
geographical dispersion
End-to-end Test/dev cloning Backup &
Diagnostics Support visibility Recovery Archive • Simplifies IT infrastructure by
eliminating stand-alone gateways
ZFS and cloud exit taxes
Storage
Appliance
Follow Us Online!
Facebook.com/ViscosityNA
Linkedin.com/company/Viscosity-North-America
@ViscosityNA
Facebook.com/ViscosityNA
@Viscosity_NA
73