Documente Academic
Documente Profesional
Documente Cultură
EMC Solutions
Abstract
This solution demonstrates the use of EMC RecoverPoint and EMC Data
Domain with VMware vSphere to back up, clone, and protect an Oracle RAC
12c database.
June 2014
Copyright 2014 EMC Corporation. All rights reserved. Published in the USA.
Published June 2014
EMC believes the information in this publication is accurate as of its publication date.
The information is subject to change without notice.
The information in this publication is provided as is. EMC Corporation makes no
representations or warranties of any kind with respect to the information in this
publication, and specifically disclaims implied warranties of merchantability or
fitness for a particular purpose. Use, copying, and distribution of any EMC software
described in this publication requires an applicable software license.
EMC2, EMC, and the EMC logo are registered trademarks or trademarks of EMC
Corporation in the United States and other countries. All other trademarks used
herein are the property of their respective owners.
For the most up-to-date listing of EMC product names, see EMC Corporation
Trademarks on EMC.com.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC
VNX Snapshots, And EMC VNX Snapview Clones White Paper
Part Number H13139
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Contents
Contents
Chapter 1
Executive Summary
Chapter 2
Introduction
13
Purpose .................................................................................................................... 14
Scope ....................................................................................................................... 14
Audience .................................................................................................................. 14
Terminology.............................................................................................................. 14
Chapter 3
Solution Overview
17
Chapter 4
Solution Architecture
23
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Contents
Chapter 5
41
Introduction ............................................................................................................. 42
Validation procedure ................................................................................................ 42
Enable the latest image access on the recovery site: ............................................ 42
Create the clone of replicated database LUNs ...................................................... 45
Mount the cloned VMFS datastores to ESXi hosts ................................................ 46
Assign the VMDKs to the Target Virtual Machine .................................................. 46
Mount the cloned database on the recovery VM................................................... 47
RMAN backup to Data Domain ............................................................................. 49
Use RMAN to restore and recover the datafile from the backup set....................... 51
Results ................................................................................................................ 53
Chapter 6
55
Introduction ............................................................................................................. 56
Validation procedure ................................................................................................ 56
Create snapshot based on the cloned LUNs on recovery site ................................ 56
Open the snapshot database on the test/dev virtual machine ............................. 60
Results ................................................................................................................ 61
Chapter 7
Test case 3, Continuous Remote Recovery with EMC
RecoverPoint
63
Introduction ............................................................................................................. 64
Validate the replica at recovery site .......................................................................... 64
Overview.............................................................................................................. 64
Test procedure ..................................................................................................... 65
Result .................................................................................................................. 67
Restore table from human error ................................................................................ 67
Overview.............................................................................................................. 67
Test procedure ..................................................................................................... 68
Results ................................................................................................................ 70
Restore datafile from physical corruption or deletion ................................................ 71
Overview.............................................................................................................. 71
Test procedure ..................................................................................................... 71
Results ................................................................................................................ 73
Chapter 8: Conclusion
75
Summary .................................................................................................................. 76
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Contents
Findings ................................................................................................................... 76
Chapter 9: References
79
References ............................................................................................................... 80
EMC product documentation................................................................................ 80
Oracle product documentation ............................................................................ 80
VMware product documentation .......................................................................... 80
81
87
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Contents
Figures
Figure 1.
Figure 2.
Figure 3.
Figure 4.
Figure 5.
Figure 6.
Figure 7.
Figure 8.
Figure 9.
Figure 10.
Figure 11.
Figure 12.
Figure 13.
Figure 14.
Figure 15.
Figure 16.
Figure 17.
Figure 18.
Figure 19.
Figure 20.
Figure 21.
Figure 22.
Figure 23.
Figure 24.
Figure 25.
Figure 26.
Figure 27.
Figure 28.
Figure 29.
Figure 30.
Figure 31.
Figure 32.
Figure 33.
Figure 34.
Figure 35.
Figure 36.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Contents
Figure 37.
Figure 38.
Figure 39.
Figure 40.
Figure 41.
Figure 42.
Figure 43.
Figure 44.
Figure 45.
Figure 46.
Figure 47.
Figure 48.
Figure 49.
Figure 50.
Figure 51.
Figure 52.
Figure 53.
Figure 54.
Figure 55.
Figure 56.
Figure 57.
Figure 58.
Figure 59.
Figure 60.
Figure 61.
Figure 62.
Figure 63.
Figure 64.
Figure 65.
Figure 66.
Figure 67.
Figure 68.
Figure 69.
Figure 70.
Figure 71.
Figure 72.
Figure 73.
Figure 74.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Contents
Figure 75.
Figure 76.
Figure 77.
Figure 78.
Tables
Table 1.
Terminology......................................................................................... 14
Table 2.
Hardware resources............................................................................. 26
Table 3.
Table 4.
Table 5.
Table 6.
Table 7.
Table 8.
Table 9.
Table 10.
Table 11.
Table 12.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 1
Executive Summary
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Business case
This white paperpresents three Oracle lifecycle management tasks that can be
simplified using the described solution architecture:
Highly visible and mission-critical Oracle RAC 12c environments require consistent
and predictable performance. Running RMAN backup on the production RAC cluster
can often impact production database performance. To minimize the impact, DBAs
frequently offload backups from the production database server to another server
(backup proxy).
The combination of VMware vSphere with a storage-layer replication tool like EMC
VNX SnapView clone enables the DBA to rapidly provision a copy of the production
database and mount that copy onto a VMware virtual machine which is a clone of a
production RAC node. Oracle RAC 12c also requires a high-performance, spaceefficient backup target. EMC Data Domain avoids the complexity and additional
dependencies of incremental backups by eliminating all non-unique data from the
backup set. The customer can implement multiple full backups with at least the same
space efficiency as incremental backups (and likely with much better efficiency).
Oracle RAC 12c databases are heavily developed by the end user. Many Oracle shops
maintain multi-level test/dev (test and development) environments which leverage
copies of the production database. An efficient, rapid method to provision thin copies
of the production database is, therefore, very desirable. Combining EMC RecoverPoint
bookmarks and EMC VNX Snapshots with VMware vSphere templates and virtual
machine cloning provides a perfect solution for Oracle database test/dev cloning.
The Oracle RAC 12c database is often remotely replicated to a disaster recovery site
to prevent data loss during a site-wide disaster. This is because Oracle frequently
contains the source business data for the enterprise, and this data must be protected
at all costs. EMC RecoverPoint provides a reliable, efficient, high-performance
remote replication tool for Oracle RAC 12c.
Solution overview
This solution demonstrates the use of EMC RecoverPoint and Data Domain with
VMware vSphere to back up, recover, and clone an Oracle RAC 12c database. The
tests covered by this solution include protection of the Oracle RAC 12c production
database, with:
10
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
VNX Snapshots
Key results
We1 ran a full backup on a virtualized proxy backup server/mount host to an EMC
Data Domain target using the DR target replicated database as the source. We ran
this backup while an OLTP workload was running on the production Oracle RAC 12c
servers. As shown in Figure 1, the backup was completely non-disruptive to the
production database servers, and had no performance impact:
Figure 1.
The following screenshot demonstrates that after performing four full RMAN backups,
the backup data was deduplicated and compressed to occupy one fifth of the file
system space on the Data Domain appliance:
In this guide, "we" refers to the EMC Solutions engineering team that validated the
solution.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
11
Figure 2.
12
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 2: Introduction
Chapter 2
Introduction
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
13
Chapter 2: Introduction
Purpose
This white paper covers the replication of a virtualized Oracle RAC 12c database to a
remote disaster recovery site using EMC RecoverPoint. Using the copy of the
production database on the data recovery (DR) site, this white paper also
demonstrates offloading the Oracle RMAN backup process from the production server
onto a virtualized proxy backup server. EMC Data Domain is used as the backup
target, providing a space-efficient, high performance backup target for Oracle RMAN,
which eliminates the need for incremental backups. Finally, multiple thinlyprovisioned copies of the DR dataset are used to create virtualized test/dev clones of
the production database.
Scope
This white paper covers:
Using a virtualized database server to offload Oracle RMAN full backups from
the production server, and to create space-efficient backups on an EMC Data
Domain target.
Test/dev cloning using both EMC RecoverPoint bookmarks and EMC VNX
Snapshots with VMware vSphere virtualized test/dev servers.
Audience
This paper is intended for Oracle DBAs, storage administrators, virtualization
administrators, system administrators, and their managers, as well as any others
involved in evaluating, acquiring, managing, maintaining, or operating Oracle
database environments.
Terminology
This white paper includes the following terminology:
Table 1.
14
Terminology
Term
Definition
ASM
DD
DPE
DR
Disaster recovery
CRR
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 2: Introduction
Term
Definition
NFS
PowerCLI
RAC
RMAN
RPA
RTO
PIT
Point in Time
VMDK
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
15
Chapter 2: Introduction
16
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 3
Solution Overview
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
17
Oracle Linux
EMC VNX5500
VNX Snapshots
SnapView clones
EMC RecoverPoint
EMC Unisphere
Oracle RAC 12c Stack consists of Oracle Grid Infrastructure, including Oracle
ASM/CloudFS and Oracle Clusterware, and the Oracle Database with the Oracle Real
Application Clusters (RAC) option.
The Oracle Database with the Oracle RAC option provides the ability to run multiple
database instances on the different servers in the cluster against a shared set of data
files, also known as the database. The database spans multiple hardware systems
and yet appears as a single unified database to the application. This enables the use
of commodity hardware to reduce total cost of ownership and to provide a scalable
computing environment that supports various application workloads. Oracle RAC is
Oracles shared disk database clustering technology.
18
VMware vSphere
5.5
Virtualization is an abstraction layer that decouples the physical hardware from the
operating system to deliver greater IT resource utilization and flexibility. Virtualization
allows multiple virtual machines with heterogeneous operating systems (for example,
Windows 2003 Server and Linux) and applications to run in isolation, side-by-side on
the same physical machine. A VMware vSphere virtual machine is the representation
of a physical machine by software. It has its own set of virtual hardware (e.g., RAM,
CPU, NIC, hard disks) onto which an operating system and applications are loaded.
The operating system sees a consistent, normalized set of hardware regardless of the
actual physical hardware components. VMware virtual machines contain advanced
hardware features such as 64-bit computing and virtual symmetric multiprocessing.
Oracle Linux
The Red Hat Compatible Kernel for those who prefer strict Red Hat kernel ABI
(kABI) compatibility
The Unbreakable Enterprise Kernel for those who want to leverage the latest
features from mainline Linux and boost performance and scalability
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Oracles Unbreakable Enterprise Kernel is the default kernel since Oracle Linux 5
Update 6 and Oracle Linux 6. VMware supports only Unbreakable Enterprise Kernel
Release 2 and Release 3.
EMC VNX5500
The VNX5500 is a member of the VNX series next-generation storage platforms, which
are designed for the mid tier space. This model provides either block and file, file
only, or block only services. This solution uses the block only option.
The block only model uses a 2.13 GHz, four-core Xeon 5600 processor with 12 GB
RAM and a maximum of 250 drives with the following block-based host connectivity
options: FC, iSCSI, and FCoE.
The VNX5500 uses a DPE that is available in 15 x 3.5 drive or 25 x 2.5 drive form
factors. The DPE includes four onboard 8 Gb/s Fibre Channel ports and two 6 GB/s
SAS ports for backend connectivity on each storage processor.
VNX Snapshots
VNX Snapshots are point-in-time views of a LUN, which can be made accessible to
another host, or held as a copy for possible restoration. This is a new feature created
to improve snapshot capability for VNX Block.
VNX Snapshots use a redirect-on-write algorithm, and are limited to pool-based
provisioned LUNs. VNX Snapshots support 256 writeable snaps per pool LUN.
Branching or snap of a snap is also supported. There are no restrictions to the
number of branches, as long as the entire Snapshot Family is within 256 members.
Consistency groups are also introduced, which means that several pool LUNs can be
combined into a consistency group and snapped at the same time. For more
information see the EMC VNX Snapshots white paper.
SnapView clones
SnapView clones are fully populated point-in-time copies of LUNs that allow
incremental synchronization between source and destination LUNs. Unlike snapshots
that provide point-in-time views of data, clones provide fully populated point-in-time
copies that maximize the flexibility of the storage environment. These point-in-time
copies allow you to perform additional storage management tasks with minimal
impact on production data. These tasks include backup/recovery, application testing,
warehousing, and data movement.
EMC RecoverPoint
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
19
EMC RecoverPoint/SE for VNX series, CLARiiON CX3 and CX4 series, and Celerra
unified storage environments
Support for multisite replication: EMC RecoverPoint can replicate a primary site
to up to four remote sites (1:4) for increased data availability. It can also
protect data across branch offices with multi site replication from the branches
to a central site (4:1).
Support for synchronous replication over IP (versus Fibre Channel only before
4.0)
20
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Continuous Local Replication is normally used for PIT recovery where business data or
application logic has been severely compromised. Continuous Remote Replication,
on the other hand, is normally used for disaster recovery. Continuous Local and
Remote Replication thus ensure that two replicas are made for every volume
protected (local and remote) to protect from both scenarios.
This solution demonstrates Continuous Remote Replication with asynchronous
replication.
EMC Unisphere
EMC Data Domain systems are disk-based inline deduplication appliances and
gateways that provide data protection and disaster recovery (DR) in the enterprise
environment. All systems run the EMC Data Domain Operating System (DD OS), which
provides both a command-line interface (CLI) for performing all system operations,
and the EMC Data Domain System Manager (DD System Manager) graphical user
interface (GUI) for configuration, management, and monitoring.
EMC Data Domain deduplication storage systems dramatically reduce the amount of
disk storage required to retain and protect enterprise data. By identifying redundant
data as it is being stored, Data Domain systems reduce backup storage requirements
by 10 to 30 times. Backup data can then be efficiently replicated and retrieved over
existing networks for streamlined disaster recovery and consolidated tape
operations. This allows Data Domain appliances to integrate seamlessly into
database architectures, maintaining existing backup strategies with no changes to
scripts, backup processes, or system architecture.
The Data Domain appliance is the industrys fastest, most cost-effective and scalable
single-controller deduplication storage solution for disk-based backup and networkefficient DR.
The Data Domain Stream-Informed Segment Layout (EMC SISL) scaling architecture
enables the fast-inline deduplication throughput of the Data Domain system. A CPUcentric approach to deduplication delivers a high throughput while minimizing the
number of disk spindles required.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
21
22
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 4
Solution Architecture
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
23
Overview of solution
This solution demonstrates the use of a combination of EMC technologies to Backup,
Clone, and provide Continuous Remote Recovery:
Physical environment
Figure 3 depicts the physical architecture of the solution environment.
24
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 3.
The production database consists of a two-node Oracle RAC cluster that is deployed
on an EMC VNX5500. The database schema (SOE) includes tables for test validation.
The solution uses EMC RecoverPoint to protect the production Oracle RAC database.
The recovery site consists of a virtualized two-node Oracle RAC database on an EMC
VNX5500 storage array. Other virtual machines are provided for proxy backup and
provisioning test/dev environments using EMC SnapView clones and VNX Snapshots
features.
A Data Domain DD7200 deduplication appliance is included in the environment to act
as a target for Oracle RMAN backups of the cloned database. The database is backed
up from the cloned database to the Data Domain appliance using the Oracle Direct
NFS Client.
The solution uses 10 Gb Ethernet for database interconnect, and between the Data
Domain appliance and database hosts on the recovery site. One Gb Ethernet is used
for all other IP traffic.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
25
Hardware resources
Table 2 lists the hardware used to validate this solution.
Table 2.
Hardware resources
Equipment
Quantity
Configuration
Gen 4
EMC VNX
VNX5500
8 Gb/s FC
Ethernet switch
EMC DD7200
128 GB memory
3 x internal SATA drives
One 1000/100/10 copper Ethernet
2 x dual-port 10 GbE optical network
interface cards
4 x ES30 disk shelves with 15 x 3 TB SAS
disks
Software resources
Table 3 lists the software used to validate this solution.
Table 3.
26
Software resources
Software
Version
Purpose
EMC RecoverPoint
4.0.SP2.P1(m.29)
EMC RecoverPoint OS
05.32.000.5.201
Unisphere
V1.2.25.1.0156
VNX Management
VMware vSphere
5.5.0
Virtualization Platform
Enterprise Edition
12.1.0.1.0
Oracle ASMLib
2.0
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Version
Purpose
Oracle Linux
Data Domain OS
5.5.0.2-421637
Fabric OS
5.2(8)
SAN
Swingbench
2.5
Benchmark tool
Production Site
Purpose
sse-rp-prodrac01
sse-rp-prodrac02
Table 5 lists the VMware virtual machines used on the remote site.
Table 5.
Recovery Site
Purpose
sse-rp-drrac01
sse-rp-drrac02
sse-rp-clone12c
sse-rp-test12c
swingbench
Swingbench host
VNX configuration
Table 6 details the LUNs we provisioned for this solution on the production and
remote VNX5500 arrays.
Table 6.
Purpose
Capacity
No. of LUNs
Replicated
Oracle Data
256 GB
Yes
Oracle Redo
16 GB
Yes
Oracle FRA
256 GB
Yes
Oracle Temp
256 GB
No
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
27
Capacity
No. of LUNs
Replicated
Oracle CRS
10 GB
No
26 GB
12
No
6 GB
No
1 TB
No
LUNs replicated to the remote array require target LUNs, of the same size or larger, to
be configured on the remote array.
Note: The EMC RecoverPoint journal and repository volumes can also be created
automatically through the EMC RecoverPoint/SE Installer Wizard if preferred. For more
details see the EMC RecoverPoint Installation and Deployment Guide.
Oracle RAC database LUNs and clone group names on remote VNX5500 array
Source LUNs
Capacity
Data_dr_0
256 GB
Data_dr_0_Clone_1
Data_dr_0_CloneGroup
Data_dr_1
256 GB
Data_dr_1_Clone_1
Data_dr_1_CloneGroup
Data_dr_2
256 GB
Data_dr_2_Clone_1
Data_dr_2_CloneGroup
Data_dr_3
256 GB
Data_dr_3_Clone_1
Data_dr_3_CloneGroup
Redo_dr_0
16 GB
Redo_dr_0_Clone_1
Redo_dr_0_CloneGroup
Redo_dr_1
16 GB
Redo_dr_1_Clone_1
Redo_dr_1_CloneGroup
Fra_dr_0
256 GB
Fra_dr_0_Clone_1
Fra_dr_0_CloneGroup
Fra_dr_1
256 GB
Fra_dr_1_Clone_1
Fra_dr_1_CloneGroup
Fra_dr_2
256 GB
Fra_dr_2_Clone_1
Fra_dr_2_CloneGroup
Fra_dr_3
256 GB
Fra_dr_3_Clone_1
Fra_dr_3_CloneGroup
Fra_dr_4
256 GB
Fra_dr_4_Clone_1
Fra_dr_4_CloneGroup
Fra_dr_5
256 GB
Fra_dr_5_Clone_1
Fra_dr_5_CloneGroup
For this solution, we used the Clone Wizard to create a clone of the production Oracle
RAC database LUNs on the Remote VNX5500 using the steps outlined in Appendix A :
SnapView .
Note: For automation purposes Unisphere CLI can be utilized, for more details please refer to
the guide EMC VNX Series Command Line Interface Reference for Block.
28
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
LUN Name
Capacity
Data_dr_0_Clone_1
256 GB
Data_dr_1_Clone_1
256 GB
Data_dr_2_Clone_1
256 GB
Data_dr_3_Clone_1
256 GB
Redo_dr_1_Clone_1
16 GB
Redo_dr_2_Clone_1
16 GB
Fra_dr_0_Clone_1
256 GB
Fra_dr_1_Clone_1
256 GB
Fra_dr_2_Clone_1
256 GB
Fra_dr_3_Clone_1
256 GB
Fra_dr_4_Clone_1
256 GB
Fra_dr_5_Clone_1
256 GB
Snapshot
Name
Snap1
Snapshot
Consistency Group
CG_ORA_RP_SNAP
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
29
Attach a Snapshot
To present a snapshot to a server, attach the snapshot. Attaching is an
asynchronous operation during which the snapshot mount point (SMP) remains
available, but the I/O is queued. This means that the host does not have to rescan
the SCSI bus to view the snapshot. The rescan is required only to discover the SMP
when it is first presented to the host.
For this solution we attached the snapshot using the Snapshot Consistency Group
CG_ORA_RP_SNAP as outlined in Appendix B: Snapshot Consistency Group Wizard.
Note: Use Unisphere CLI for automation purposes. For more details please refer to the EMC
VNX Series Command Line Interface Reference for Block.
Figure 4.
30
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Kernel configuration
OS users
Supporting software
Table 9.
Part
Description
CPU
8 vCPUs
Memory
16 GB
Operating system
Kernel
2.6.39-400.17.1.el6uek
Network interfaces
Username: oracle
OS groups
Group: oinstall
UserID:1101
GroupID:1000
Group: dba
GroupID:1031
Disk configuration
System configuration
(Oracle prerequisites)
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
31
Configuring Oracle
To test the solution, we created one Oracle database for the production environment
and several Oracle databases for different purposes on the recovery sites.
Table 10 details the profile for the production database.
Table 10.
Profile characteristic
Details
Database name
Prod
Database type
OLTP
Database size
1 TB
Oracle RAC
2 nodes
Benchmark profile
Table 11 provides a high-level view of the database role, database node and
instance.
Table 11.
Environment
Database role
Database node/instance
Production site
Production database
sse-rp-prodrac01/prod1
sse-rp-prodrac02/prod2
Recovery site
Replica database
sse-rp-drrac01/prod1
sse-rp-drrac02/prod2
Clone database
sse-rp-clone12c/prod1
Test/dev database
sse-rp-test12c/prod1
Table 12 details the Oracle ASM disk group configuration on the production and
recovery sites.
Table 12.
Environment
Production site
32
File type
+CRS_PROD
+DATA
+REDO
+FRA
Archive logs
+TEMP_PROD
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
File type
+CRS_DR
+DATA
+REDO
+FRA
Archive logs
+TEMP_DR
Note: Because Oracle Clusterware and RAC database configuration information can be
different between the production and recovery sites, the +CRS_PROD disk group is not
replicated. Also it is possible to save bandwidth by not replicating temp files since they are
not part of database recovery.
Test Case 1: Use Test Copy to access the RecoverPoint remote copy. The
RecoverPoint consistency group assures the consistency and write-order fidelity
of point-in-time images.
Test Case 2: Use the SnapView clone to create the clone based on the
RecoverPoint remote copy. When RecoverPoint accesses the remote copy,
production writes are stored in the image access log of the remote copy, so the
remote copy is not changed by the production write. Use the SnapView cloneconsistent fracture to preserve the Oracle restartable image. Accordingly, when
RMAN is used to back up the cloned database, the write order and consistency
are preserved.
Test Case 3: Use the VNX Snapshots consistency group to take write-orderconsistent snapshots of a group of LUNs. The database is crash-consistent at
the point of the snapshot, so a snapshot database can be opened for test/dev
purposes.
Use consistency technology even if Hot Backup mode is used at the database level,
because Hot Backup mode does not protect ASM metadata writes.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
33
RPAs are loaded with the same EMC RecoverPoint/SE ISO image
RPAs are set with IP addresses (optional if the environment includes a DHCP
server)
The computer that the wizard is run from can communicate with the cluster
management IP and all the clusters RPA management (LAN) networks.
Ports 21, 22, 7225, and 8082 (all TCP) are open on the computer to enable
communication with all RPAs.
Tip: Telnet to these ports on the computer to ensure they are open.
If you do not have these credentials, or the computer that the wizard is run from does
not have Internet connectivity, you must have an Installation Change Management
XML file available locally to complete the installation.
Note: To obtain the XML file, you must submit an Installation Service Request to EMC
Customer Support.
34
1.
Open a web browser and type the Cluster Management IP into the browser
address bar.
2.
In the EMC RecoverPoint login screen, log in as a user with admin privileges.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
3.
Select the Protection > Protect Volumes option to start the wizard that guides in
the creation of a consistency group.
4.
Define the consistency group name, the production name, and the RPA
cluster that will manage the production.
b.
Select the Oracle 12c production volumes in the volume list as shown in
Figure 5.
Figure 5.
c.
5.
Volume list
In the Define Production Journal screen (Figure 6), there are two provisioning
options:
a.
b.
For this solution we selected the option Manually select journal volumes as
we had previously created 24 x 26 GB journal volumes (RP_Journal_1 to 24).
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
35
Figure 6.
c.
6.
Figure 7.
36
Define the copy name, the RPA cluster that will manage the copy
volumes, and the replication mode.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
7.
b.
For each production volume, click Select volume link to add a volume to
the copy. The selected volume is the volume that the production volume
is replicated to.
c.
In the Define Copy Journal screen (Figure 8), again there are two provisioning
options:
a.
b.
Figure 8.
c.
8.
b.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
37
Figure 9.
38
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
39
40
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 5
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
41
Introduction
For this solution, we used EMC RecoverPoint to provide remote DR protection for an
Oracle RAC 12c database. We also used EMC SnapView clone feature to offload the
backup from the production database. During the proxy backup operation, there was
no performance impact on production RAC database.
Backups were deployed over Direct NFS client to an EMC Data Domain DD7200
deduplication appliance, and backup and recovery operations were implemented
using Oracle RMAN. The backup was preserved on the Data Domain DD7200.
Data Domain systems integrated seamlessly with Oracle RMAN, which is Oracles
native backup and recovery utility for Oracle databases.
With Data Domain deduplication, only unique data was written to storage. This
eliminated the data redundancy associated with multiple full backups of an Oracle
database and made it possible to implement a backup strategy that used full
backups only. This strategy avoided any possible restore penalty associated with
incremental backups and was the option used for testing and validating this solution.
Validation procedure
The following steps were used to validate this solution for offloading production
database backup:
1.
2.
3.
Mount the cloned VMFS datastores to ESXi hosts on the recovery site.
4.
5.
6.
Use RMAN to back up the cloned database and archive logs to the DD7200.
7.
Use RMAN to restore and recover the datafile from the backup set on the
DD7200.
This section demonstrates how to clone the database LUNs on the recovery site and
how to generate the backup set on a Data Domain system. This section also shows
how to use the backup set on the Data Domain appliance to restore and recover the
production database to the production environment, in the event of data loss or
corruption.
Enable the latest
image access on
the recovery site:
42
For testing purposes, a Swingbench workload was run against the production site as
required, as shown in Figure 12.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 12.
Swingbench workload
To enable access to the latest image on the recovery site using Unisphere for
RecoverPoint:
1.
Open a web browser and type the RPA Cluster Management IP into the
browser address bar.
2.
In the EMC RecoverPoint login screen, log in as a user with admin privileges.
3.
Select the options Recovery > Test a Copy as shown in Figure 13.
4.
In the Select a Copy Screen, select the non production copy, in this case
ORA_RP_DR, and click the Next Select the Image button as shown in Figure 14.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
43
5.
In the Select an Image screen, select The latest image and click the Next Test
the Image, as shown in Figure 15.
Figure 15. Select the latest image for the recovery site
6.
44
The latest image is now available on the Remote site, in Logged Access mode,
as shown in Figure 16.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
We used the Clone Configuration Wizard to create the cloned LUNs on the recovery
site. The relationship between the sources and the clones is shown in Figure 17. For
detailed steps of creating the clone, refer to Appendix A: SnapView Clone Wizard.
Figure 17.
Note: Use Unisphere CLI for automation purposes. For more details please refer to the EMC
VNX Series Command Line Interface Reference for Block.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
45
Mount cloned LUNs using the esxcli commands, as shown in Figure 18. Run the
command directly on the remote ESXi server.
Figure 18.
The cloned LUNs are seen by vSphere as snapshot LUNs as shown in Figure 19.
Figure 19.
46
Add VMDK to the target virtual machine using the vSphere Client or the command line.
In this solution, multiple VMDKs were added from the cloned datastore using a
simple PowerCLI script. Figure 20 shows an example of the script to add Data
volumes.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 20.
The cloned database is a single instance database that you can open on the mount
host and use for proxy backup purposes. As a prerequisite, the following Oracle
components must be installed on the mount host virtual machine:
Oracle Grid Infrastructure 12c for a Standalone Server option (for Oracle ASM
support)
You can automate opening the database on the mount host by including the relevant
commands in the post-mount script for the job. However, for demonstration purposes,
we performed all the required steps manually, as follows:
1.
Log in as root to the Guest OS on the virtual machine and dynamically scan for
new disks as shown in Figure 21.
Figure 21.
2.
Using Oracleasm, scan for new ASM disks as shown in Figure 22.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
47
Figure 22.
3.
Figure 23.
4.
5.
48
Use the Oracle SQL*Plus utility to mount the cloned database with the STARTUP
MOUNT command, as shown in Figure 24:
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 24.
RMAN backup to
Data Domain
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
49
filesperset
The RMAN parameter FILESPERSET specifies the maximum number of datafiles that
RMAN can include in a single backup set. When backing up to a Data Domain system,
you must explicitly set this FILESPERSET parameter to 1. Failure to do so may result in
lower deduplication rates than expected2.
Back up the database
The RMAN backup scripts were run on the mount host (sse-rp-clone12c) to perform
the RMAN full backup, and to offload backup from the production environment. Figure
25 shows the Transactions Per Minute (TPM) of the production database. It has three
sections:
The following screenshot demonstrates that after four full RMAN backups were
performed, the backup data was deduplicated and compressed to occupy one fifth of
the file system space on the Data Domain appliance:
For more information, refer to the EMC white paper: Oracle RMAN Design Best Practices with
Data Domain.
50
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
We created four RMAN full backups with each image being fully recoverable. Almost
1.2TB of data was sent to the Data Domain system but, due to the effects of
deduplication and compression, less than 240GB of actual space was consumed.
Use RMAN to
restore and
recover the
datafile from the
backup set
Figure 27.
Use the CATALOG command to register the backup in the control file of the
production database, as shown in Figure 28.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
51
2.
Use the RESTORE command to retrieve the datafile from the backup set on the
Data Domain system and make it available on the production database, as
shown in Figure 29.
Figure 29.
3.
52
Restore datafile 16
Use the RECOVER command to recover the datafile, as shown in Figure 30.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
4.
With recovery complete, bring datafile 16 back online. Then verify that the
CUSTOMERS table is accessible again, as shown in Figure 31.
Figure 31.
Results
With the EMC technologies deployed for this scenario, you can:
Use EMC RecoverPoint and SnapView clone technology to offload backups from
the production environment. It is non-disruptive to the source and there is no
impact to critical production workloads.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
53
54
Deploy an EMC Data Domain appliance as a target for RMAN backups of the
cloned database by using Direct NFS client over a 10 Gb Ethernet.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 6
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
55
Introduction
This section describes a method for quickly and easily replicating and repurposing an
Oracle RAC 12c database on EMC infrastructure, without disrupting production. The
replica databases are deployed on virtual machines in a virtualized environment and
can be used for a variety of purposes, including test/dev, quality assurance (QA),
decision support, and backup.
The solution uses the production RAC database replicated on the DR site as the
source for clone copies and then uses the clone as the source for multiple,
independent snap copies. All clones and snaps are created on the VNX array and
mounted to mount hosts in the virtual environment.
Validation procedure
We used this procedure to validate this solution for rapid provisioning of test/dev
environments:
1.
2.
Note: You can get multiple snapshots on demand whenever you want to create another
test/dev environment.
Create snapshot
based on the
cloned LUNs on
recovery site
56
To create a snapshot based on the cloned LUNs on recovery site, follow these steps:
1.
2.
3.
4.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 32.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
57
Figure 33.
58
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
To enable access to hosts, SMPs must be provisioned to storage groups, like any
typical LUN.
Figure 34 shows the Mount Points we created. For detailed steps on creating SMPs,
refer to Appendix B: Create a snapshot mount point (SMP).
Figure 34.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
59
Figure 35.
Open the snapshot To open the snapshot database on the test/dev virtual machine, follow these steps:
database on the
1.
Make the snapshot VMFS datastores accessible to ESXi hosts on recovery site,
test/dev virtual
using the same steps as described in Mount the cloned VMFS datastores to ESXi
machine
hosts on page 46.
60
2.
Add VMDK to the virtual machine using the vSphere Client or the command line.
In this solution, multiple VMDKs were added to the test/dev data store. Refer to
Assign the VMDKs to the Target Virtual Machine on page 46.
3.
Follow the steps described in Mount the cloned database on the recovery on
page 47 to scan for new disks and mount ASM disk groups, and edit the
database initialization parameter file.
4.
Use SQL*Plus to open the snapshot database with the STARTUP command, as
shown in Figure 36:
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 36.
Now you can open the snapshot database and start working with it. You can create
other test/dev databases on demand, using the cloned LUNs as the source and with
VNX Snapshot technology.
Results
With the EMC technologies deployed for this scenario, you can use EMC RecoverPoint
and SnapView Snapshot for agile Oracle database lifecycle management. With a
predefined EMC RecoverPoint image bookmark, only a few steps are required to make
multiple snapshot copies of the cloned database and provision Oracle instances for
use in many non production environments, including test/dev, quality assurance, and
decision support.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
61
62
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 7
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
63
Introduction
The replicated database running on the recovery site can be used to recover the
production database. If the production database encounters human error such as
tables that have been inadvertently dropped by a user, a replicated database
provides a way to restore tables. If a datafile on a production database is corrupt or
accidentally deleted, the corresponding datafile on the replicated database can be
copied and made available to the production environment to enable the recovery.
This test case contains three scenarios:
1.
2.
3.
This test scenario validates that EMC RecoverPoint can successfully replicate the
Oracle RAC database from the production environment to the Oracle RAC environment
at recovery site, and that the database can be recovered at recovery site to selected
points in time and for a variety of purposes. The main steps are:
1.
Note: EMC RecoverPoint continuously creates point-in-time snapshots. For test purposes, a
bookmark (named snapshot) is created manually to enable quick and easy recovery to a
specific point in time.
2.
3.
4.
The screenshot in Figure 37 shows the status of the EMC RecoverPoint environment
before these steps were performed.
ORA_RP_PROD is the production source; ORA_RP_DR is the remote replica. EMC
RecoverPoint is replicating consistency group CG_ORA_RP_PROD to the replica
journal and storage at Site ORA_RP_DR. The local journal at Site ORA_RP_PROD is
unused (it is configured so that it can take over the role of replica journal if that
production needs to fail over to the remote site). The remote replica is not currently
enabled for access.
64
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 37.
Test procedure
1.
With Swingbench running load against the Oracle RAC database in the
production environment, insert records into the production database. Figure 38
shows the record count and the time stamp of the last entry. This information
was later used to validate the integrity of the data at Site ORA_RP_DR.
Figure 38.
2.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
65
Figure 39.
The system rolls the replica storage to the bookmarked point in time and enables
host access to the bookmarked image, as shown by the screenshot in Figure 40.
Figure 40.
66
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
3.
Open the replica database at the recovery site so that the bookmarked image
can start being used for processing. To open the replica database, refer to Open
the snapshot database on the test/dev virtual machine on page 60.
4.
To verify data integrity at Site ORA_RP_DR, display the record count and
timestamp from the recovered database. Figure 41 shows that these match the
values recorded at the production site (see Figure 38).
Figure 41.
5.
Disable image access on the recovery site using Finish Testing option, as shown
in Figure 42. All write operations to the replica volumes are discarded.
Result
Host applications at Site ORA_RP_DR now have access to the replica volumes, which
have been recovered to the bookmarked point in time and the validated data. The
Swingbench session on the production database is unaffected throughout the
procedure and EMC RecoverPoint replication to Site ORA_RP_DR continues
uninterrupted. After image access on the recovery site is disabled, all write
operations to the replica volumes are discarded.
If a major error occurs, such as a batch job being run twice in succession, the
database administrator can request an EMC RecoverPoint operation that quickly
restores the database object to a previous point in time, eliminating the need to
restore or flashback the whole database. For example, it is possible to restore an
entire table. Similarly, the DBA can recover tables that have been inadvertently
deleted by a user.
The main steps are:
1.
2.
Enable image access to the PIT image before the table deletion on the recovery
site.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
67
Test procedure
3.
Open the replica database and export the table that was deleted from the
production database.
4.
Drop the table WAREHOUSE from soe1 user using DROP TABLE PURGE
command. The table is purged from recycle bin, as shown in Figure 43. The
index WHS_ID_IX associated with that table is deleted as well.
Figure 43.
2.
To enable CRR image access, select the PIT before the table deletion, as shown
in Figure 44:
Figure 44.
68
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
3.
Open the replica database at the recovery site so that the bookmarked image
can start being used for processing. To open the replica database, refer to Open
the snapshot database on the test/dev virtual machine on page 60.
4.
Export the WAREHOUSE table from the replica database by using the Data Pump
Export utility. The dump files were exported to /mnt/NFSshare, which is
mounted at both production and recovery sites by Direct NFS Client. The replica
database can export database objects to the directory, and the production
database can access these objects for recovery.
Figure 45 shows the table exporting process.
Figure 45.
5.
After the export is finished, four dump files are available. At this point, select
Finish Testing from the drop down menu to finish the image access, as shown in
Figure 46. Distribution of images from the copy journal to the copy storage
continues from the accessed image forward.
Figure 46.
6.
Import the WAREHOUSE table back to production database using Data Pump
Import utility. During the import operation, the Data Pump Import utility loads
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
69
the exported dump file from replica database into the production system, as
show in Figure 47:
Figure 47.
During Import jobs, you can suppress the generation of redo for indexes using
Oracle database 12c new feature. Set the
transform=disable_archive_logging:y:index, so that the logging attributes for
the indexes are disabled before the data is imported.
7.
With Import complete, verify that the WAREHOUSE table is accessible again, as
shown in Figure 48.
Figure 48.
Results
The testing outlined in this section shows how easily administrators can restore their
database objects in the event of human error, providing fast recovery of a table
without restoring a backup or performing a flashback of the whole database.
Also, EMC RecoverPoint offers high restore point detail, allowing administrators to go
back to a point in time in the past by selecting either user-defined bookmarks or
70
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
This section describes a flexible database protection and disaster recovery solution
for Oracle production systems. EMC RecoverPoint maintains a remote replica on a
VNX5500 storage array. This configuration provides optimal data protection in the
case of an unexpected datafile failure, or if an unplanned outage makes the primary
system unavailable.
The main steps are:
Test procedure
1.
2.
Enable access to a PIT image before the datafile corruption on the recovery
site.
3.
Restore and recover the datafile directly from the replica database.
4.
Open the production database and verify that the recovered table is
accessible.
We simulated database failure by making datafile 16, which contains the table
CUSTOMERS, inaccessible.
Figure 49 shows what happens when you attempt to query the table
CUSTOMERS:
Figure 49.
2.
Enable CRR image access and select the PIT before the datafile corruption, as
shown in Figure 50.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
71
Figure 50.
3.
Open the replica database at recovery site so that the bookmarked image can
start being used for processing.
To open the replica database, follow the steps in Open the snapshot database
on the test/dev virtual machine on page 60.
4.
Figure 51.
5.
72
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 52.
6.
Use the RMAN RESTORE and RECOVER commands to restore and recover
datafile 16 on the production database, as shown in Figure 53.
Figure 53.
7.
With recovery complete, bring datafile 16 back online and then verify that the
table CUSTOMERS is accessible again, as shown in Figure 54.
Figure 54.
Results
The testing outlined in this section shows that EMC RecoverPoint along with Oracle
RMAN can be used to recover a production database online from the remote site EMC
VNX if the production system becomes unavailable for any reason.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
73
74
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 8: Conclusion
Chapter 8: Conclusion
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
75
Chapter 8: Conclusion
Summary
This solution demonstrates how to use EMC technologies to provide data protection,
disaster recovery, database backup and recovery, and test/dev environment
provisioning for the Oracle RAC 12c databases.
EMC RecoverPoint is a robust replication technology with an intuitive GUI. It provides
fine-grained local and remote point-in-time failover and recovery protection for the
data center. In an Oracle environment, EMC RecoverPoint can reliably protect the
database by providing multiple, consistent recovery points that are maintained by
sophisticated journaling technology. This automated bookmarking and journaling
provides a great deal of flexibility when recovering from a disaster scenario in case of
datafile loss or corruption, as well as restoring the database objects in the event of
human error on an ongoing basis and without affecting the production database
operations.
EMC SnapView clone enables offloading backups from the production environment.
It is non-disruptive to the source and there is no impact on critical production
workloads.
EMC Data Domain systems provide a storage platform for maintaining Oracle RMAN
backup sets. The integration of EMC Data Domain systems with Oracle RMAN
provides the ability to compress and deduplicate backups, which can dramatically
reduce the space required for backup storage.
Test/dev environment provisioning is a common requirement for customers who use
Oracle Databases. This solution uses EMCs space-efficient SnapView clone and VNX
Snapshot technologies to create multiple, consistent replicas of the production
database. By using the storage arrays consistent split capability, which simplifies
replica creation and deployment, the solution enables quick, on-demand
provisioning of new test/dev environments.
Findings
EMC technologies offer solutions for Non-Disruptive Backup, Rapid provisioning, and
Continuous Remote Recovery with EMC RecoverPoint for Oracle RAC 12c databases:
76
Non-Disruptive Backup: Using EMC SnapView clone and Oracle RMAN, the
proxy backup server backed up the replicated database on the recovery site to
Data Domain without any performance impact on the Oracle production
environment, and the compression ratio achieved on the Data Domain is
approximately 5X. We restored and recovered a corrupt datafile from the
backup, with no issues, in 1 minute and 45 seconds.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 8: Conclusion
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
77
Chapter 8: Conclusion
78
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Chapter 9: References
Chapter 9: References
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
79
Chapter 9: References
References
EMC product
documentation
Oracle product
documentation
VMware product
documentation
80
Oracle RMAN Best Practices with EMC Data Domain White paper
Upgrade to Oracle RAC 12c with Oracle Multitenant Option (Pluggable Database)
white paper
Oracle Grid Infrastructure Installation Guide 12c Release 1 (12.1) for Linux
Oracle Real Application Clusters Installation Guide 12c Release 1 (12.1) for
Linux and UNIX
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
81
2.
3.
Confirm that SnapView is enabled on the VNX array by selecting the options
System > System Properties > Software
82
4.
5.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
6.
7.
From the Select a Production Server screen select a server that has access to the
source LUNs to be cloned, and click Next.
8.
From the Select Storage System screen, select the storage system that contains
the source LUNs to be cloned, and click Next.
9.
From the Select the Source LUNs screen (Figure 57), select the source LUNs to
be cloned, previously listed in Table 7, and click Next.
10. From the Select Clone LUN Names screen (Figure 58), you can change the LUN
names or use the default names specified for each Clone LUN. For this solution
we used the default Clone LUN names.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
83
11. In the Storage Pool Configuration screen (Figure 59), select from the available
storage pools or create a new storage pool. For this solution we used a
previously configured storage pool called Clone_Pool.
12. From the Assign Clone to a Server screen, optionally assign the clones to
servers, and click Next.
13. The following warnings (Figure 60) are shown when you attempt to:
84
a.
b.
Assign the clone LUNs to the same server as the source LUNs.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
For this solution we selected yes as the response, because the ESXi cluster is used to
present the LUNs to the required virtual machines.
14. Review the summary information shown in the Summary screen, and select
Finish to create the clones.
15. Once the results of the Clone Configuration Wizard are displayed, select Finish
to close the wizard.
16. The source LUNs are now displayed in the Source LUNS tab as shown in Figure
61.
17. Select the Clone LUNS tab as shown in Figure 62 to display the clone LUNs
status, which is Synchronizing.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
85
18. Once all clones display the Synchronized state, as shown in Figure 63, highlight
all clones to ensure a consistent fracture, then right-click and select the option
Fracture.
19. To confirm and complete a consistent fracture of the clones, from the Confirm
Consistent Fracture Clones screen, select Yes.
20. On the Consistent Fracture Clones screen, click OK.
21. As shown in Figure 64, all clones are now administratively fractured and
available to the assigned servers for testing or backup purposes.
86
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
87
2.
3.
Confirm the VNX array has VNX Snapshots active by selecting the options
System > System Properties > Software as shown in Figure 65.
88
4.
5.
Select Create Group to start the wizard that guides in the creation of a Snapshot
consistency group, as shown in Figure 66.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Figure 66.
6.
The Welcome to the Create Snapshot Consistency Group Wizard screen appears.
To continue click Next.
7.
8.
Highlight all clone LUNs listed in Table 8. To continue click Next as shown in
Figure 68.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
89
9.
10. To complete the Create Snapshot consistency group wizard, click Finish.
Create a snapshot
Create a snapshot using the snapshot consistency group CG_ORA_RP_SNAP, as
follows:
1.
2.
3.
90
Type a name for the snap (for example Snap1). Click OK twice.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
4.
A consistent snap has now been created for the consistency group
CG_ORA_RP_SNAP, as shown in Figure 71.
1.
2.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
91
3.
In the Create Snapshot Mount Point screen, type the SMP name and the storage
group that needs access to the snapshot, as shown in Figure 73.
Figure 73. Defining a snapshot mount point name in the Create Snapshot Mount Point
screen
92
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
4.
5.
Attach a snapshot
Attach the snapshots using the Snapshot consistency group CG_ORA_RP_SNAP as
follows:
1.
From the Unisphere dashboard, select the options Data Protection > Snapshots
2.
Figure 75. Select a snapshot and right-click to reveal the attach menu
3.
b.
Type a name for the snapshot copy if you want to protect the point-intime data of Snap1.
c.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
93
4.
5.
6.
The results of the Attach Wizard are displayed as shown in Figure 77. All snaps
are now available to the selected server.
94
7.
To confirm the snaps are available to the server, previously selected in step
Figure 77, in Unisphere select the options Hosts > Host lists.
8.
Highlight the server in the host list and select the Snapshots Mount Point tab.
Verify that the Attached Snaps column displays the snap name, as shown in
Figure 78.
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
Simplified Oracle RAC 12c Backup, Cloning, and Protection for Oracle DBAs
Using VMware vSphere 5.5, EMC RecoverPoint, EMC Data Domain, EMC VNX, EMC VNX
Snapshots, And EMC VNX Snapview Clones White Paper
95