SlideShare a Scribd company logo
Disaster Recovery Solution with Oracle Data Guard
and Site Recovery Manager
Kannan Mani, VMware
Brad Pinkston, VMware
BCO4905
#BCO4905
2
Agenda
 Introduction
 SRM and Oracle Data Guard
 Architecture Overview
 Demo
 Best Practices
 Summary
 Q&A
3
Introduction
4
Kannan Mani
 15+ years Oracle experience : Oracle RAC, ASM, Clustering, CRM,
ERP, Business Intelligence, Performance and Scalable Enterprise
Application Architecture, Benchmark and Performance , Technical
solutions marketing and management, Virtualization and Cloud
solutions.
 Oracle ACE – Applications, DB
 Speakers @ Oracle Open World, IOUG, VMWorld, VMware Partner
Exchange, EMC World and Webinars
 Industry recognized expert in Oracle and Virtualization
technologies.
 Blog: http://blogs.vmware.com/apps/oracle
5
SRM and Oracle Data Guard
6
SRM Provides Broad Choice of Replication Options
vSphere Replication
Simple, cost-efficient replication for Tier 2 applications and smaller sites
Storage-based Replication
High-performance replication for business-critical applications in larger sites
vCenter Server
Site
Recovery
Manager
vSphere
vCenter Server
Site
Recovery
Manager
vSphere
vSphere
Replication
Storage-based
replication
Site A (Primary) Site B (Recovery)
7
vSphere Replication Complements Storage-Based Replication
Replication
Provider
Cost Management Performance
vSphere
Replication
VMware
• Low-end storage
supported
• No additional
replication
software
• VM’ granularity
• Managed directly
in vCenter
• 15 min RPOs
• Scales to 500 VMs
• File-level
consistency
• No automated
failback, FT, linked
clones, physical
RDM
Storage-based
Replication
• Higher-end
replicating
storage
• Additional
replication
software
• LUN – VM layout
• Storage team
coordination
• Synchronous
replication
• High data volumes
• Application
consistency
possible
8
Oracle Data Guard
http://www.oracle.com/technetwork/database/features/availability/twp-dataguard-11gr2-1-131981.pdf
 Oracle Data Guard provides the management, monitoring, and automation
software infrastructure to create and maintain one or more standby databases
to protect Oracle data from failures, disasters, errors, and data corruptions.
Data Guard is unique among Oracle replication solutions in supporting both
synchronous (zero data loss) and asynchronous (near-zero data loss)
configurations
 Administrators can chose either manual or automatic failover of production to a
standby system if the primary system fails in order to maintain high availability
for mission critical applications
9
Architecture Overview
10
Oracle Database(SAP) – Oracle Data Guard and SRM
vCenter Server
Site
Recovery
Manager
vSphere
vCenter Server
Site
Recovery
Manager
vSphere
vSphere
Replication
Site A (Primary) Site B (Recovery)
Primary
SAP DB
Standby
SAP DB
Oracle Data
Guard
Log Shipping
SAP CS SAP PAS SAP CS SAP PAS
11
Steps Tested
1 Oracle Primary DB at Site A and
Standby DB at Site B with Data Guard
3 Site A Down - SAP Application and
Central services VM replicated to
Site B using vSphere replication
4 Failover Oracle Primary to Standby using
SRM Call out Script from SAP Application VM
at Site B
5 Connect/Resume SAP application to the Oracle Database in site B
2 SAP Application connected to Primary
DB at Site A
12
Demo
13
SRM Callout Script – odgfail.sh (Example)
~ # cat odgfail.sh
#! /bin/sh
#######################################################################################
# file name : odgfail.sh
# location : /scripts
# called from : Application VM on Site B
#######################################################################################
echo "Job `basename $0`: started at `date`"
#
# Set up standard ORACLE environment variables
ORACLE_SID=stdby; export ORACLE_SID
ORACLE_BASE=/oracle; export ORACLE_BASE
ORACLE_HOME=/oracle/PRD/102_64; export ORACLE_HOME
PATH=/oracle/PRD/102_64/bin:.:/oracle/PRD:/usr/sap/PRD/SYS/exe/run:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin;export PATH
LD_LIBRARY_PATH=/usr/sap/PRD/SYS/exe/run:/oracle/client/10x_64/instantclient; export LD_LIBRARY_PATH
#
# Failover to Standby
$ORACLE_HOME/bin/sqlplus /nolog <<EOFarch1
connect / as sysdba
--shutdown Primary database(in case of RAC, shutdown all RAC instances)
--Initiate failover to Standby Database:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE;
--Convert the physical standby database to the production role:
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY;
--Comment/Uncomment either of the 2 sets of commands below
--If the database was never opened read-only since the last time it was started,
--open new production database via:
ALTER DATABASE OPEN;
--If the physical standby database has been opened in read-only mode since the last time it was started,
--shutdown standby database and restart it
--SHUTDOWN IMMEDIATE
--STARTUP pfile=initSTDBY.ora
exit
EOFarch1
echo "Job `basename $0`: ended at `date`"
########################## end of script
~ #
14
EMC Reference Architecture
15
EMC RA – Storage Replication Solution Overview
16
Oracle Database Configuration – Storage Layouts
17
Solution Testing Findings
 Integration of RecoverPoint with vCenter Site Recovery Manager
enables DR testing to be carried out in isolated environments on
the recovery site so that production can remain active and
replication can continue uninterrupted. SRM also documents the
recovery process
 RecoverPoint enables replication of entire virtualized Oracle
environments between data centers for disaster recovery
 The RecoverPoint splitter supports replication across
heterogeneous storage platforms
 Integration of RecoverPoint with vCenter Site Recovery Manager
enables DR testing to be carried out in isolated environments on
the recovery site so that production can remain active and
replication can continue uninterrupted
http://www.emc.com/collateral/hardware/white-papers/h8207-dr-oracle-vmaxe-recoverpoint-srm-wp.pdfDownload
18
EMC RA – Storage Replication Solution Overview
19
Oracle Database Configuration – Storage Layouts
20
Solution Testing Findings
 Integration of RecoverPoint with vCenter Site Recovery Manager
enables DR testing to be carried out in isolated environments on
the recovery site so that production can remain active and
replication can continue uninterrupted. SRM also documents the
recovery process
 RecoverPoint enables replication of entire virtualized Oracle
environments between data centers for disaster recovery
 The RecoverPoint splitter supports replication across
heterogeneous storage platforms
 Integration of RecoverPoint with vCenter Site Recovery Manager
enables DR testing to be carried out in isolated environments on
the recovery site so that production can remain active and
replication can continue uninterrupted
http://www.emc.com/collateral/hardware/white-papers/h8207-dr-oracle-vmaxe-recoverpoint-srm-wp.pdfDownload
21
Best Practices
22
Oracle DB on VMware Technical Best Practices
 Server selection
 Storage selection
 vSphere version
 vSphere operations
 Performance monitoring
 Guest operating system
configuration
• Virtual storage presentation
• Workload and datastore fan-in
ratios
• vCPU allocation
• Memory
• Network
• Security
• Cloning
• Disaster recovery
23
General Best Practices
• Create a computing environment optimized for vSphere
• Enable required settings for ESX host BIOS – for example VT,
Turbo Mode, hyper-threading
• Disable unnecessary foreground and background processes on
guest operating system
• Create golden images of optimized operating systems using
vSphere cloning technologies
• Upgrade to vSphere ESX 5 for 10–20 % performance boost
• Allow vSphere to choose the best virtual machine monitor based on the CPU
and guest operating system combination. Virtual machine setting must be
selected Automatic for the CPU/MMU Virtualization option.
• Use Oracle recommended installation guidelines for respective operating
system – same as physical
• To minimize time drift in virtual machines follow guidelines in KB articles
Timekeeping best practices for Linux guests http://kb.vmware.com/kb/1006427
Timekeeping best practices for Windows, including NTP http://kb.vmware.com/kb/1318
VMware vSphere 4.1
OS
24
Virtual CPUs
 Best Practices for vCPUs
• Do not over-allocate vCPUs – try to match the exact workload
• If the exact workload is unknown, start with fewer vCPUs initially and
increase later if necessary
• For larger production workloads, the total number of vCPUs assigned to all
virtual machines should be less than or equal to the total number of cores
on the ESX host
• Enable hyper-threading for Intel Core i7 processors
• For 5500 series processors, enabling hyper-threading is recommended
• If unsure of the workload, use hardware vendor recommended Oracle sizing
guidelines
• Avoid remote NUMA access by sizing the number of vCPUs to be no
greater than the number of cores on a NUMA node (processor socket)
25
Virtual Memory Best Practices
• Do not overcommit memory until vCenter reports that steady state
usage is below the amount of physical memory on the server
• Do not disable the balloon driver (installed with VMware Tools)
• Set the memory reservation to SGA size plus OS. (Reservation and
configured memory might be the same.)
• Enable hardware-assisted virtualization in the ESX host BIOS and on the VM
• Set CPU/MMU virtualization option to Automatic
• vSphere will choose best Virtual Machine Monitor option base on CPU/Guest OS
• Use Large Memory Pages
• Consult Oracle Administration Guide for sizing of SGA
26
Network Best Practices
• Separate infrastructure traffic from virtual machine traffic for
security and isolation
• Use NIC teaming for availability and load balancing
• Take advantage of Network I/O Control (NIOC) to converge network and
storage traffic onto 10GbE
• For “chatty” virtual machines on same host, connect to same vSwitch to avoid
NIC traffic
• Use VMXNET3 Paravirtualized network adapter drivers to increase
performance
• Reduces overhead versus vlance or E1000 emulation
• Must have VMware Tools to enable VMXNET3
• Use jumbo frames
• To configure, see iSCSI and Jumbo Frames configuration on ESX 3.x and ESX 4.x
http://kb.vmware.com/kb/1007654
• Separate RAC interconnect network to isolate it from other traffic
27
Storage Virtualization Concepts
• Storage array – consists of physical disks that are presented as
logical disks (storage array volumes or LUNs) to the ESX host
• Storage array LUNs – formatted as VMware vSphere® VMFS volumes
• Virtual disks – presented to
the guest operating system,
and can be partitioned and
used in guest file systems
28
Storage Best Practices
• Use vSphere VMFS for single instance Oracle database
deployments
• For IP-based storage (iSCSI and NFS), enable jumbo frames
• Create dedicated data stores to service database workloads
• Align VMFS properly – Use vCenter to create VMFS partitions, because it
automatically aligns the partitions
• Use Oracle automatic storage management
• Follow your storage vendor’s best practices documentation when laying out
the Oracle database
• Use Paravirtualized SCSI adapters for Oracle datafiles with demanding
workloads
http://www.vmware.com/files/pdf/partners/oracle/Oracle_Databases_on_VMware_-_Best_Practices_Guide.pdfDownload
29
Summary
30
Performance
Rapid Provisioning
 I/O is not an issue
 Scale up and out
 Newer hardware can increase performance
 Streamline activation, deployment, and validation of servers
 Avoid manual configuration errors
Server Consolidation
 Fully utilize hardware
 Maintain application isolation
 Scale dynamically and right-size infrastructure
Workload Management
Business Continuity
High Availability
 VMware vSphere® vMotion®, VMware vSphere High Availability (HA),
VMware vSphere® Fault Tolerance (FT), VMware vSphere Distributed
Resource Scheduler (DRS)
 Without clustering or RAC
 VMware vCenter Site Recovery Manager™
 Hardware reduction at failover site
 Comprehensive testing of DR solution
Benefits of Oracle Databases on VMware
 Zero downtime maintenance
 Migrate live databases
31
Where Can I Learn More?
 vCenter Site Recovery Manager
• Product Page – www.vmware.com/products/srm
• Overview, datasheet, webinars, docs, community links
 Oracle Data Guard
• Overview –
http://www.oracle.com/technetwork/database/features/availability/dataguardov
erview-083155.html
 Virtualizing Oracle with VMware
• External Solution Page – http://www.vmware.com/solutions/business-critical-
apps/oracle-virtualization/oracle-database.html
 Blog
• http://blogs.vmware.com/apps/oracle/
32
Questions
33
Disaster Recovery Solution with Oracle
Data Guard and Site Recovery Manager
VMware, Inc.
3401 Hillview Ave
Palo Alto, CA 94304
Tel: 1-877-486-9273 or 650-427-5000
Fax: 650-427-5001
34
Other VMware Activities Related to This Session
 HOL:
HOL-SDC-1305
Business Continuity and Disaster Recovery In Action
 Group Discussions:
BCO1003-GD
Disaster Recovery and Replication with Ken Werneburg
THANK YOU
VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager
Disaster Recovery Solution with Oracle Data Guard
and Site Recovery Manager
Kannan Mani, VMware
Brad Pinkston, VMware
BCO4905
#BCO4905
38
Backup Slides
39
Failover
 A failover is performed when the production database fails and one of the standby databases is transitioned to take over
the production role, allowing business operations to continue. Once the failover is complete and applications have
resumed, the administrative staff can turn its attention to resolving the problems with the failed system. Failover may or
may not result in data loss depending on the Data Guard protection mode in effect at the time of the failover. There are
two distinct types of failover: manual failover and fast-start failover
 Steps after Primary database crashes :
Step No. Standby Site
1 Initiate failover to Standby Database:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE.
In rare circumstances DBA’s may wish to avoid waiting for the standby to complete applying redo in the current standby redo
log file before performing the failover and so may issue an ‘ALTER DATABASE ACTIVATE STANDBY DATABASE’ command
to perform an immediate failover, this will cause any un-applied redo in the standby redo log to be lost.
2 Convert the physical standby database to the production role:
ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY
3 If the database was never opened read-only since the last time it was started, open new production database via:
ALTER DATABASE OPEN
If the physical standby database has been opened in read-only mode since the last time it was started, shutdown standby
database and restart it
SHUTDOWN IMMEDIATE
STARTUP
40
Switchover
 Switchover is a planned role reversal between the production database and one of its standby databases to avoid
downtime during scheduled maintenance on the production system or to test readiness for future role transitions. A
switchover guarantees no data loss.
 Steps :
Step No. Primary Site Standby Site
1 Get Status of Primary Database :
SELECT NAME, DB_UNIQUE_NAME, LOG_MODE,
OPEN_MODE, PROTECTION_MODE,
PROTECTION_LEVEL, DATABASE_ROLE,
SWITCHOVER_STATUS FROM V$DATABASE
Ensure both log_archive_dest_state_1 (Local Archiving) and
log_archive_dest_state_2 (Archiving to Standby) are enabled
Get Status of Standby Database :
SELECT NAME, DB_UNIQUE_NAME, LOG_MODE,
OPEN_MODE, PROTECTION_MODE,
PROTECTION_LEVEL, DATABASE_ROLE,
SWITCHOVER_STATUS FROM V$DATABASE
Ensure log_archive_dest_state_1 (Local Archiving) is
enabled and log_archive_dest_state_2 (Archiving to
Primary) is disabled. Ensure NO gaps in redo on the
standby database
2 Verify that it is possible to perform a switchover operation:
SELECT SWITCHOVER_STATUS FROM V$DATABASE
if output is ‘SESSIONS ACTIVE’ then disconnect all sessions
manually or when performing step 3 append the “with session
shutdown” clause
3 Convert the current primary database to the new physical
standby:
ALTER DATABASE COMMIT TO SWITCHOVER TO
PHYSICAL STANDBY WITH SESSIONS SHUTDOWN
41
Switchover (cont’d)
Step No. Primary Site Standby Site
4 Shutdown the former primary and mount as a standby
database:
SHUTDOWN IMMEDIATE
STARTUP NOMOUNT PFILE= initPRD.ora
ALTER DATABASE MOUNT STANDBY DATABASE
Defer the remote archive destination on the old primary:
ALTER SYSTEM SET log_archive_dest_state_2=DEFER
Verify that the old physical standby can be converted to
the new primary:
SELECT SWITCHOVER_STATUS FROM V$DATABASE
5 Convert the old physical standby to the new primary:
ALTER DATABASE COMMIT TO SWITCHOVER TO
PRIMARY WITH SESSIONS SHUTDOWN
If the physical standby database has not been opened in
read-only mode since the last time it was started:
ALTER DATABASE OPEN
Shutdown and startup the new primary database:
SHUTDOWN IMMEDIATE
STARTUP PFILE= initSTDBY.ora
6 Start managed recover on the new standby database:
ALTER DATABASE RECOVER MANAGED STANDBY
DATABASE DISCONNECT FROM SESSION
Enable remote archiving on the new primary to the new
standby:
ALTER SYSTEM SET
log_archive_dest_state_2=ENABLE

More Related Content

PDF
OpenStackをさらに”使う”技術 概要と基礎操作
PDF
OpenJDKのコミッタってどんなことしたらなったの?解決してきた技術課題の事例から見えてくる必要な知識と技術(JJUG CCC 2023 Spring)
PDF
Introduction to Open Telemetry as Observability Library
PDF
まずやっとくPostgreSQLチューニング
PDF
Vacuum徹底解説
PDF
シスコ装置を使い倒す!組込み機能による可視化からセキュリティ強化
PDF
コンテナにおけるパフォーマンス調査でハマった話
PDF
BUD17-310: Introducing LLDB for linux on Arm and AArch64
OpenStackをさらに”使う”技術 概要と基礎操作
OpenJDKのコミッタってどんなことしたらなったの?解決してきた技術課題の事例から見えてくる必要な知識と技術(JJUG CCC 2023 Spring)
Introduction to Open Telemetry as Observability Library
まずやっとくPostgreSQLチューニング
Vacuum徹底解説
シスコ装置を使い倒す!組込み機能による可視化からセキュリティ強化
コンテナにおけるパフォーマンス調査でハマった話
BUD17-310: Introducing LLDB for linux on Arm and AArch64

What's hot (20)

PDF
OpenStackで始めるクラウド環境構築入門(Horizon 基礎編)
PDF
DRaaS on Microsoft Azure with Veeam Software
PDF
Oracle Data Guard による高可用性
PPTX
MySQL Architecture and Engine
PDF
SQL Server パフォーマンス問題対処 Deep Dive
PPTX
Apache Spark on Kubernetes入門(Open Source Conference 2021 Online Hiroshima 発表資料)
PPTX
PLPgSqL- Datatypes, Language structure.pptx
PDF
OpenStackトラブルシューティング入門
PDF
さいきんの InnoDB Adaptive Flushing (仮)
PDF
ネットワーク自動化ツール紹介(Ansible・NAPALM編)
PDF
カスタムプランと汎用プラン
PDF
PostgreSQLの運用・監視にまつわるエトセトラ
PPT
Less11 auditing
PPTX
PostgreSQLクエリ実行の基礎知識 ~Explainを読み解こう~
PDF
[D11] SQL Server エンジニアに知ってもらいたい!! SQL Server チューニングアプローチ by masayuki ozawa
PDF
Sql server 2016 always on 可用性グループ new features
PDF
あなたの知らないPostgreSQL監視の世界
PPTX
solr勉強会資料
PDF
Introduction to PostgreSQL
PPTX
AWR and ASH Deep Dive
OpenStackで始めるクラウド環境構築入門(Horizon 基礎編)
DRaaS on Microsoft Azure with Veeam Software
Oracle Data Guard による高可用性
MySQL Architecture and Engine
SQL Server パフォーマンス問題対処 Deep Dive
Apache Spark on Kubernetes入門(Open Source Conference 2021 Online Hiroshima 発表資料)
PLPgSqL- Datatypes, Language structure.pptx
OpenStackトラブルシューティング入門
さいきんの InnoDB Adaptive Flushing (仮)
ネットワーク自動化ツール紹介(Ansible・NAPALM編)
カスタムプランと汎用プラン
PostgreSQLの運用・監視にまつわるエトセトラ
Less11 auditing
PostgreSQLクエリ実行の基礎知識 ~Explainを読み解こう~
[D11] SQL Server エンジニアに知ってもらいたい!! SQL Server チューニングアプローチ by masayuki ozawa
Sql server 2016 always on 可用性グループ new features
あなたの知らないPostgreSQL監視の世界
solr勉強会資料
Introduction to PostgreSQL
AWR and ASH Deep Dive
Ad

Viewers also liked (20)

PDF
VMworld 2013: VMware vCenter Site Recovery Manager – Solution Overview and Le...
PPTX
VMware Site Recovery Manager - Architecting a DR Solution - Best Practices
PPSX
Vmware srm 6.1
PDF
Presentation v center site recovery manager
PDF
VMworld 2014: Site Recovery Manager and vSphere Replication
PPT
Cisco NetApp VMware - Long Distance VMotion
PPTX
vRealize Network Insight 3.3
PDF
What’s New in VMware vCenter Site Recovery Manager v5.0
PPTX
Oracle vm Disaster Recovery Solutions
PDF
VMworld 2013: Real-world Design Examples for Virtualized SAP Environments
PDF
Structured Approach To It Business System Availability And Continuity Plannin...
PDF
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
PDF
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
PDF
Segurança em Servidores Linux - Ênfase em RHEL
PDF
VMworld 2013: VMware vSphere High Availability - What's New and Best Practices
PDF
Cassandra Introduction & Features
PPTX
Limewood Event - VMware
PPTX
System Center 2012 - January Licensing Update
PPTX
SQL Server 2012 ile Gelen Yeni Özellikler
PPTX
You voiced your concerns. VMware listened: Major Adjustments to vSphere 5 lic...
VMworld 2013: VMware vCenter Site Recovery Manager – Solution Overview and Le...
VMware Site Recovery Manager - Architecting a DR Solution - Best Practices
Vmware srm 6.1
Presentation v center site recovery manager
VMworld 2014: Site Recovery Manager and vSphere Replication
Cisco NetApp VMware - Long Distance VMotion
vRealize Network Insight 3.3
What’s New in VMware vCenter Site Recovery Manager v5.0
Oracle vm Disaster Recovery Solutions
VMworld 2013: Real-world Design Examples for Virtualized SAP Environments
Structured Approach To It Business System Availability And Continuity Plannin...
VMworld 2013: VMware vSphere Replication: Technical Walk-Through with Enginee...
VMworld 2013: Protection for All - VMware vSphere Replication & SRM Technical...
Segurança em Servidores Linux - Ênfase em RHEL
VMworld 2013: VMware vSphere High Availability - What's New and Best Practices
Cassandra Introduction & Features
Limewood Event - VMware
System Center 2012 - January Licensing Update
SQL Server 2012 ile Gelen Yeni Özellikler
You voiced your concerns. VMware listened: Major Adjustments to vSphere 5 lic...
Ad

Similar to VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager (20)

PDF
VMworld 2013: How SRP Delivers More Than Power to Their Customers
PDF
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
PDF
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
PDF
TECHNICAL BRIEF▶ Backup Exec 15 Blueprint for Large Installations
PPTX
DR-to-the-Cloud Best Practices
PDF
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
PPTX
VMworld 2015: Horizon View Storage - Let's Dive Deep!
PPTX
Benchmark emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
PDF
VMworld 2013: Virtualizing and Tuning Large Scale Java Platforms
PDF
Implementing a Disaster Recovery Solution using VMware Site Recovery Manager ...
PDF
Exchange 2010 New England Vmug
PDF
Presentation oracle rac on vsphere 5
PDF
White paper: IBM FlashSystems in VMware Environments
PPTX
NICConf 2015 - azure disaster recovery in 60min
PDF
SAP and VMware (Virtualizing SAP)
PPTX
Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
PDF
Oracle on Azure IaaS 2023 Update
PPTX
SharePoint 2010 Virtualization - Hungarian SharePoint User Group
PDF
Oracle Cloud DBaaS
PDF
Why Use Oracle VM for Oracle Databases? Revera Presentation
VMworld 2013: How SRP Delivers More Than Power to Their Customers
VMworld 2013: Architecting Oracle Databases on vSphere 5 with NetApp Storage
VMworld Europe 2014: A Blueprint for Disaster Recovery of Business Critical A...
TECHNICAL BRIEF▶ Backup Exec 15 Blueprint for Large Installations
DR-to-the-Cloud Best Practices
VMworld 2013: Maximize Database Performance in Your Software-Defined Data Center
VMworld 2015: Horizon View Storage - Let's Dive Deep!
Benchmark emc vnx7500, emc fast suite, emc snap sure and oracle rac on v-mware
VMworld 2013: Virtualizing and Tuning Large Scale Java Platforms
Implementing a Disaster Recovery Solution using VMware Site Recovery Manager ...
Exchange 2010 New England Vmug
Presentation oracle rac on vsphere 5
White paper: IBM FlashSystems in VMware Environments
NICConf 2015 - azure disaster recovery in 60min
SAP and VMware (Virtualizing SAP)
Best Practices For Virtualised Share Point T02 Brendan Law Nathan Mercer
Oracle on Azure IaaS 2023 Update
SharePoint 2010 Virtualization - Hungarian SharePoint User Group
Oracle Cloud DBaaS
Why Use Oracle VM for Oracle Databases? Revera Presentation

More from VMworld (20)

PPTX
VMworld 2016: vSphere 6.x Host Resource Deep Dive
PPTX
VMworld 2016: Troubleshooting 101 for Horizon
PPTX
VMworld 2016: Advanced Network Services with NSX
PPTX
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
PPTX
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
PPTX
VMworld 2016: What's New with Horizon 7
PPTX
VMworld 2016: Virtual Volumes Technical Deep Dive
PPTX
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
PPTX
VMworld 2016: The KISS of vRealize Operations!
PPTX
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
PPTX
VMworld 2016: Ask the vCenter Server Exerts Panel
PPTX
VMworld 2016: Virtualize Active Directory, the Right Way!
PPTX
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
PPTX
VMworld 2015: Troubleshooting for vSphere 6
PPTX
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
PPTX
VMworld 2015: Advanced SQL Server on vSphere
PPTX
VMworld 2015: Virtualize Active Directory, the Right Way!
PPTX
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
PPTX
VMworld 2015: Building a Business Case for Virtual SAN
PPTX
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: What's New with Horizon 7
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Explaining Advanced Virtual Volumes Configurations

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Approach and Philosophy of On baking technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
A Presentation on Artificial Intelligence
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Empathic Computing: Creating Shared Understanding
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
Teaching material agriculture food technology
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Approach and Philosophy of On baking technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A Presentation on Artificial Intelligence
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Understanding_Digital_Forensics_Presentation.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.

VMworld 2013: VMware Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager

  • 1. Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager Kannan Mani, VMware Brad Pinkston, VMware BCO4905 #BCO4905
  • 2. 2 Agenda  Introduction  SRM and Oracle Data Guard  Architecture Overview  Demo  Best Practices  Summary  Q&A
  • 4. 4 Kannan Mani  15+ years Oracle experience : Oracle RAC, ASM, Clustering, CRM, ERP, Business Intelligence, Performance and Scalable Enterprise Application Architecture, Benchmark and Performance , Technical solutions marketing and management, Virtualization and Cloud solutions.  Oracle ACE – Applications, DB  Speakers @ Oracle Open World, IOUG, VMWorld, VMware Partner Exchange, EMC World and Webinars  Industry recognized expert in Oracle and Virtualization technologies.  Blog: http://blogs.vmware.com/apps/oracle
  • 5. 5 SRM and Oracle Data Guard
  • 6. 6 SRM Provides Broad Choice of Replication Options vSphere Replication Simple, cost-efficient replication for Tier 2 applications and smaller sites Storage-based Replication High-performance replication for business-critical applications in larger sites vCenter Server Site Recovery Manager vSphere vCenter Server Site Recovery Manager vSphere vSphere Replication Storage-based replication Site A (Primary) Site B (Recovery)
  • 7. 7 vSphere Replication Complements Storage-Based Replication Replication Provider Cost Management Performance vSphere Replication VMware • Low-end storage supported • No additional replication software • VM’ granularity • Managed directly in vCenter • 15 min RPOs • Scales to 500 VMs • File-level consistency • No automated failback, FT, linked clones, physical RDM Storage-based Replication • Higher-end replicating storage • Additional replication software • LUN – VM layout • Storage team coordination • Synchronous replication • High data volumes • Application consistency possible
  • 8. 8 Oracle Data Guard http://www.oracle.com/technetwork/database/features/availability/twp-dataguard-11gr2-1-131981.pdf  Oracle Data Guard provides the management, monitoring, and automation software infrastructure to create and maintain one or more standby databases to protect Oracle data from failures, disasters, errors, and data corruptions. Data Guard is unique among Oracle replication solutions in supporting both synchronous (zero data loss) and asynchronous (near-zero data loss) configurations  Administrators can chose either manual or automatic failover of production to a standby system if the primary system fails in order to maintain high availability for mission critical applications
  • 10. 10 Oracle Database(SAP) – Oracle Data Guard and SRM vCenter Server Site Recovery Manager vSphere vCenter Server Site Recovery Manager vSphere vSphere Replication Site A (Primary) Site B (Recovery) Primary SAP DB Standby SAP DB Oracle Data Guard Log Shipping SAP CS SAP PAS SAP CS SAP PAS
  • 11. 11 Steps Tested 1 Oracle Primary DB at Site A and Standby DB at Site B with Data Guard 3 Site A Down - SAP Application and Central services VM replicated to Site B using vSphere replication 4 Failover Oracle Primary to Standby using SRM Call out Script from SAP Application VM at Site B 5 Connect/Resume SAP application to the Oracle Database in site B 2 SAP Application connected to Primary DB at Site A
  • 13. 13 SRM Callout Script – odgfail.sh (Example) ~ # cat odgfail.sh #! /bin/sh ####################################################################################### # file name : odgfail.sh # location : /scripts # called from : Application VM on Site B ####################################################################################### echo "Job `basename $0`: started at `date`" # # Set up standard ORACLE environment variables ORACLE_SID=stdby; export ORACLE_SID ORACLE_BASE=/oracle; export ORACLE_BASE ORACLE_HOME=/oracle/PRD/102_64; export ORACLE_HOME PATH=/oracle/PRD/102_64/bin:.:/oracle/PRD:/usr/sap/PRD/SYS/exe/run:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin;export PATH LD_LIBRARY_PATH=/usr/sap/PRD/SYS/exe/run:/oracle/client/10x_64/instantclient; export LD_LIBRARY_PATH # # Failover to Standby $ORACLE_HOME/bin/sqlplus /nolog <<EOFarch1 connect / as sysdba --shutdown Primary database(in case of RAC, shutdown all RAC instances) --Initiate failover to Standby Database: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE; --Convert the physical standby database to the production role: ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY; --Comment/Uncomment either of the 2 sets of commands below --If the database was never opened read-only since the last time it was started, --open new production database via: ALTER DATABASE OPEN; --If the physical standby database has been opened in read-only mode since the last time it was started, --shutdown standby database and restart it --SHUTDOWN IMMEDIATE --STARTUP pfile=initSTDBY.ora exit EOFarch1 echo "Job `basename $0`: ended at `date`" ########################## end of script ~ #
  • 15. 15 EMC RA – Storage Replication Solution Overview
  • 16. 16 Oracle Database Configuration – Storage Layouts
  • 17. 17 Solution Testing Findings  Integration of RecoverPoint with vCenter Site Recovery Manager enables DR testing to be carried out in isolated environments on the recovery site so that production can remain active and replication can continue uninterrupted. SRM also documents the recovery process  RecoverPoint enables replication of entire virtualized Oracle environments between data centers for disaster recovery  The RecoverPoint splitter supports replication across heterogeneous storage platforms  Integration of RecoverPoint with vCenter Site Recovery Manager enables DR testing to be carried out in isolated environments on the recovery site so that production can remain active and replication can continue uninterrupted http://www.emc.com/collateral/hardware/white-papers/h8207-dr-oracle-vmaxe-recoverpoint-srm-wp.pdfDownload
  • 18. 18 EMC RA – Storage Replication Solution Overview
  • 19. 19 Oracle Database Configuration – Storage Layouts
  • 20. 20 Solution Testing Findings  Integration of RecoverPoint with vCenter Site Recovery Manager enables DR testing to be carried out in isolated environments on the recovery site so that production can remain active and replication can continue uninterrupted. SRM also documents the recovery process  RecoverPoint enables replication of entire virtualized Oracle environments between data centers for disaster recovery  The RecoverPoint splitter supports replication across heterogeneous storage platforms  Integration of RecoverPoint with vCenter Site Recovery Manager enables DR testing to be carried out in isolated environments on the recovery site so that production can remain active and replication can continue uninterrupted http://www.emc.com/collateral/hardware/white-papers/h8207-dr-oracle-vmaxe-recoverpoint-srm-wp.pdfDownload
  • 22. 22 Oracle DB on VMware Technical Best Practices  Server selection  Storage selection  vSphere version  vSphere operations  Performance monitoring  Guest operating system configuration • Virtual storage presentation • Workload and datastore fan-in ratios • vCPU allocation • Memory • Network • Security • Cloning • Disaster recovery
  • 23. 23 General Best Practices • Create a computing environment optimized for vSphere • Enable required settings for ESX host BIOS – for example VT, Turbo Mode, hyper-threading • Disable unnecessary foreground and background processes on guest operating system • Create golden images of optimized operating systems using vSphere cloning technologies • Upgrade to vSphere ESX 5 for 10–20 % performance boost • Allow vSphere to choose the best virtual machine monitor based on the CPU and guest operating system combination. Virtual machine setting must be selected Automatic for the CPU/MMU Virtualization option. • Use Oracle recommended installation guidelines for respective operating system – same as physical • To minimize time drift in virtual machines follow guidelines in KB articles Timekeeping best practices for Linux guests http://kb.vmware.com/kb/1006427 Timekeeping best practices for Windows, including NTP http://kb.vmware.com/kb/1318 VMware vSphere 4.1 OS
  • 24. 24 Virtual CPUs  Best Practices for vCPUs • Do not over-allocate vCPUs – try to match the exact workload • If the exact workload is unknown, start with fewer vCPUs initially and increase later if necessary • For larger production workloads, the total number of vCPUs assigned to all virtual machines should be less than or equal to the total number of cores on the ESX host • Enable hyper-threading for Intel Core i7 processors • For 5500 series processors, enabling hyper-threading is recommended • If unsure of the workload, use hardware vendor recommended Oracle sizing guidelines • Avoid remote NUMA access by sizing the number of vCPUs to be no greater than the number of cores on a NUMA node (processor socket)
  • 25. 25 Virtual Memory Best Practices • Do not overcommit memory until vCenter reports that steady state usage is below the amount of physical memory on the server • Do not disable the balloon driver (installed with VMware Tools) • Set the memory reservation to SGA size plus OS. (Reservation and configured memory might be the same.) • Enable hardware-assisted virtualization in the ESX host BIOS and on the VM • Set CPU/MMU virtualization option to Automatic • vSphere will choose best Virtual Machine Monitor option base on CPU/Guest OS • Use Large Memory Pages • Consult Oracle Administration Guide for sizing of SGA
  • 26. 26 Network Best Practices • Separate infrastructure traffic from virtual machine traffic for security and isolation • Use NIC teaming for availability and load balancing • Take advantage of Network I/O Control (NIOC) to converge network and storage traffic onto 10GbE • For “chatty” virtual machines on same host, connect to same vSwitch to avoid NIC traffic • Use VMXNET3 Paravirtualized network adapter drivers to increase performance • Reduces overhead versus vlance or E1000 emulation • Must have VMware Tools to enable VMXNET3 • Use jumbo frames • To configure, see iSCSI and Jumbo Frames configuration on ESX 3.x and ESX 4.x http://kb.vmware.com/kb/1007654 • Separate RAC interconnect network to isolate it from other traffic
  • 27. 27 Storage Virtualization Concepts • Storage array – consists of physical disks that are presented as logical disks (storage array volumes or LUNs) to the ESX host • Storage array LUNs – formatted as VMware vSphere® VMFS volumes • Virtual disks – presented to the guest operating system, and can be partitioned and used in guest file systems
  • 28. 28 Storage Best Practices • Use vSphere VMFS for single instance Oracle database deployments • For IP-based storage (iSCSI and NFS), enable jumbo frames • Create dedicated data stores to service database workloads • Align VMFS properly – Use vCenter to create VMFS partitions, because it automatically aligns the partitions • Use Oracle automatic storage management • Follow your storage vendor’s best practices documentation when laying out the Oracle database • Use Paravirtualized SCSI adapters for Oracle datafiles with demanding workloads http://www.vmware.com/files/pdf/partners/oracle/Oracle_Databases_on_VMware_-_Best_Practices_Guide.pdfDownload
  • 30. 30 Performance Rapid Provisioning  I/O is not an issue  Scale up and out  Newer hardware can increase performance  Streamline activation, deployment, and validation of servers  Avoid manual configuration errors Server Consolidation  Fully utilize hardware  Maintain application isolation  Scale dynamically and right-size infrastructure Workload Management Business Continuity High Availability  VMware vSphere® vMotion®, VMware vSphere High Availability (HA), VMware vSphere® Fault Tolerance (FT), VMware vSphere Distributed Resource Scheduler (DRS)  Without clustering or RAC  VMware vCenter Site Recovery Manager™  Hardware reduction at failover site  Comprehensive testing of DR solution Benefits of Oracle Databases on VMware  Zero downtime maintenance  Migrate live databases
  • 31. 31 Where Can I Learn More?  vCenter Site Recovery Manager • Product Page – www.vmware.com/products/srm • Overview, datasheet, webinars, docs, community links  Oracle Data Guard • Overview – http://www.oracle.com/technetwork/database/features/availability/dataguardov erview-083155.html  Virtualizing Oracle with VMware • External Solution Page – http://www.vmware.com/solutions/business-critical- apps/oracle-virtualization/oracle-database.html  Blog • http://blogs.vmware.com/apps/oracle/
  • 33. 33 Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager VMware, Inc. 3401 Hillview Ave Palo Alto, CA 94304 Tel: 1-877-486-9273 or 650-427-5000 Fax: 650-427-5001
  • 34. 34 Other VMware Activities Related to This Session  HOL: HOL-SDC-1305 Business Continuity and Disaster Recovery In Action  Group Discussions: BCO1003-GD Disaster Recovery and Replication with Ken Werneburg
  • 37. Disaster Recovery Solution with Oracle Data Guard and Site Recovery Manager Kannan Mani, VMware Brad Pinkston, VMware BCO4905 #BCO4905
  • 39. 39 Failover  A failover is performed when the production database fails and one of the standby databases is transitioned to take over the production role, allowing business operations to continue. Once the failover is complete and applications have resumed, the administrative staff can turn its attention to resolving the problems with the failed system. Failover may or may not result in data loss depending on the Data Guard protection mode in effect at the time of the failover. There are two distinct types of failover: manual failover and fast-start failover  Steps after Primary database crashes : Step No. Standby Site 1 Initiate failover to Standby Database: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH FORCE. In rare circumstances DBA’s may wish to avoid waiting for the standby to complete applying redo in the current standby redo log file before performing the failover and so may issue an ‘ALTER DATABASE ACTIVATE STANDBY DATABASE’ command to perform an immediate failover, this will cause any un-applied redo in the standby redo log to be lost. 2 Convert the physical standby database to the production role: ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY 3 If the database was never opened read-only since the last time it was started, open new production database via: ALTER DATABASE OPEN If the physical standby database has been opened in read-only mode since the last time it was started, shutdown standby database and restart it SHUTDOWN IMMEDIATE STARTUP
  • 40. 40 Switchover  Switchover is a planned role reversal between the production database and one of its standby databases to avoid downtime during scheduled maintenance on the production system or to test readiness for future role transitions. A switchover guarantees no data loss.  Steps : Step No. Primary Site Standby Site 1 Get Status of Primary Database : SELECT NAME, DB_UNIQUE_NAME, LOG_MODE, OPEN_MODE, PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE, SWITCHOVER_STATUS FROM V$DATABASE Ensure both log_archive_dest_state_1 (Local Archiving) and log_archive_dest_state_2 (Archiving to Standby) are enabled Get Status of Standby Database : SELECT NAME, DB_UNIQUE_NAME, LOG_MODE, OPEN_MODE, PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE, SWITCHOVER_STATUS FROM V$DATABASE Ensure log_archive_dest_state_1 (Local Archiving) is enabled and log_archive_dest_state_2 (Archiving to Primary) is disabled. Ensure NO gaps in redo on the standby database 2 Verify that it is possible to perform a switchover operation: SELECT SWITCHOVER_STATUS FROM V$DATABASE if output is ‘SESSIONS ACTIVE’ then disconnect all sessions manually or when performing step 3 append the “with session shutdown” clause 3 Convert the current primary database to the new physical standby: ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSIONS SHUTDOWN
  • 41. 41 Switchover (cont’d) Step No. Primary Site Standby Site 4 Shutdown the former primary and mount as a standby database: SHUTDOWN IMMEDIATE STARTUP NOMOUNT PFILE= initPRD.ora ALTER DATABASE MOUNT STANDBY DATABASE Defer the remote archive destination on the old primary: ALTER SYSTEM SET log_archive_dest_state_2=DEFER Verify that the old physical standby can be converted to the new primary: SELECT SWITCHOVER_STATUS FROM V$DATABASE 5 Convert the old physical standby to the new primary: ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY WITH SESSIONS SHUTDOWN If the physical standby database has not been opened in read-only mode since the last time it was started: ALTER DATABASE OPEN Shutdown and startup the new primary database: SHUTDOWN IMMEDIATE STARTUP PFILE= initSTDBY.ora 6 Start managed recover on the new standby database: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION Enable remote archiving on the new primary to the new standby: ALTER SYSTEM SET log_archive_dest_state_2=ENABLE