Virtualizing Oracle on VMware Sudhansu Pati, VCP Certified 4/20/2012 2011 VMware Inc. All rights reserved
Agenda Introduction Oracle Databases on VMware Key Benefits Performance, Support, and Licensing Server Consolidation Rapid Provisioning Workload Management Compliance High Availability and Business Continuity Oracle RAC on vsphere 5 Oracle Support, Certification, License Q&A 2
3 Benefits of Running Oracle on VMware
Why Deploy Oracle Databases on VMware? Oracle Licensing DB Consolidation Consolidate licensing Potentially Increase utilization of Oracle licenses (Depends on degree of consolidation) Reduce hardware costs by > 50% Consolidate servers by 4X 20X DB On Demand Provision databases on demand Minutes to provision in production and in the lab Quality of Service Increase application Quality of Service Scale dynamically Built-in high availability and simple disaster recovery Security Complete isolation between systems on the same host Protects databases and applications against network-based threats 4 4
VM Density Is Critical in Virtual Environment 1:1 1:1 1:1 Physical World 1:1 1:1 1:1 Many:1 Virtual World VM density matters! 1:1 relationship between applications and hardware Relevant cost metric = cost per server Many:1 relationship between applications and hardware Relevant cost metric = cost per application 5
Distributed Resource Scheduler Automatically balances load across ESX Clusters 6
VMware High Availability (HA) Protects VMs and automatically restarts VMs in the event of: Host failure VM failure (loss of heartbeat) 7
vsphere 4.1 and 5.0 App-Aware HA VMware HA VMware HA Resource Pool Resource Pool vsphere vsphere vsphere vsphere Protect against hardware failures Protect against app failures App-aware HA bridges the gap with app-level clustering Automated availability for both hardware and software failures Third-party agents detect application and operating system failures (for example, Symantec ApplicationHA) Invoke VMware HA through Application Health Monitoring API 8
vcenter Site Recovery Manager for Simple, Reliable DR VMware vcenter Site Recovery Manager complements vsphere to provide the simplest and most reliable disaster protection and site migration for Oracle Database and applications Site A (Primary) VMware Site Recovery vcenter Server Manager VMware vsphere Site B (Recovery) VMware Site Recovery vcenter Server Manager VMware vsphere Provide cost-efficient replication of applications to failover site Simplify management of recovery and migration plans Servers Servers Automate failover, failback, and migration processes for reliable recovery 9
The Trend Is Clear % of Workload Instances Running on VMware in Customer Base 67% 53% 47% 42% 43% 38% 34% 25% 25% 28% 28% Apr 2011 18% Jan 2010 Microsoft Exchange Microsoft SharePoint Microsoft SQL Oracle Middleware Oracle DB SAP Source: VMware customer survey, Jan 2010 and April 2011 interim results Data: Total number of instances of that workload deployed in your organization and the percentage of those instances that are virtualized 10
Oracle Databases on VMware Key Benefits Workload Management and QoS 11
Dynamic Scalability for Oracle Database and Applications Hot-Add capacity 1 vcpu 2GB 4 vcpu 64GB Dynamic Scaling on vsphere Zero downtime maintenance Migrate live databases Little impact to users Provision additional app instance in minutes 12
Dynamic Load Balancing of Resources Tier 1 Tier 2 Tier 3 APP APP APP APP APP VMware Cloud Infrastructure and Management DRS Load balances VMs across hosts Storage DRS Load balances VMs across storage arrays Physical Servers Tier 1 Tier 2 Tier 3 Network and Storage I/O Control Critical workloads get preferential access to network and storage I/O Storage 13
Oracle 11g R2 DB Server vmotion 14
Oracle 11g R2 DB Server VMware Hot Add vcpu 15
Maximum Scalability and Performance with vsphere 5 CPU VMware vsphere 4 8 vcpus VMware vsphere 5 32 vcpus 1 million IOPS validated by VMware Performance Engineering http://www.vmware.com/files/pdf/1m-iopsperf-vsphere5.pdf Memory Network IOPS 256GB per VM 30Gb/s 300,000 1,000GB per VM > 36Gb/s 1,000,000 A vsphere 5.0 host can support 1 million+ I/O operations per second 300,000 I/O operations per second achieved from a single virtual machine Adequate storage infrastructure required to meet the demand 16
The Average Oracle DB Fits Easily in a Virtual Machine VM 32 vcpu VM 1TB VM 300,000 IOPS VM 30Gb/s Oracle DB 2 4 CPU 4% utilized Oracle DB 4 8GB 50% utilized Oracle DB 1200 IOPS Oracle DB 2MB/s CPU Memory Disk I/O Network I/O Source: VMware Capacity Planner analysis of > 700,000 servers in customer production environments 17
Oracle Database Server Scale Up Performance Relative to Native ESX scales extremely well scale up Doubling processors throughput increases by 90% Source : http://vmware.com/pdf/perf_esx40_oracle-eval.pdf 18
Conventional DB Consolidation Is Difficult Multi-Instancing Shared Instance Instance Instance Instance Instance Instance App Schema App Schema App Schema App Schema App Schema DBMS DBMS DBMS DBMS DBMS Shared DBMS Shared OS Shared OS No OS isolation (configuration, security, fault) Resource isolation requires Windows Resource Manager No load balancing across physical nodes No OS isolation (configuration, security, fault) No database isolation Resource isolation requires Oracle Resource Governor No load balancing across physical nodes 19
Ideal Platform for DB Consolidation Current DB Oracle 1 Fast consolidation with P2V Increase performance! 2 Preserve isolation in VM OS isolation DB isolation Security isolation ORCL ORCL ORCL ORCL ORCL ORCL ORCL ORCL 3 Guarantee resources Reservations Priorities Maximums 4 Load balance across nodes vmotion DRS 20
Oracle Databases on VMware Key Benefits Rapid Provisioning 21
Accelerate Time-to-Market for Business-Critical Apps 3 Run more tests faster Test 4 Move changes into production Production 2 1 vapp Exact copy of production Archive for fast rollback vsphere vapp vsphere vsphere vapp Faster testing of multitier applications More accurate testing on exact production copy Lower cost testing infrastructure Reduce storage footprint by over 60% 22
Rapid Provisioning of Oracle Databases Provisioning Simple and rapid Use Golden Images to provide on-demand Oracle DB servers QA Dev/Test Reports DBAs can deploy Oracle DB server with no additional skills Ideal for Test and Dev Clone, transfer, and share environments easily, take system snapshots, or restore to previous state Automate SDLC with VMware vcloud Director Database virtual machine libraries Central repository of virtual machine images Virtual machine images with different DB and OS Storage leases help to reclaim space from expired images 23
Oracle Databases on VMware Key Benefits Compliance 24
Retention Periods Reproducing the Data and Audit Trail What if I need to reproduce a six year old legacy environment? Not as simple as locating the backup and recovering the database Need to recreate the entire hardware-software stack What OS? What application version? What database version? What patch level? On what hardware? If not, it is almost guaranteed transactions will not produce identical results Failed audit 25
Using vsphere for Compliance Purposes Cloning a fully virtualized database server captures the entire VM VM can be cloned and stored in a virtual vault/archive Then powered on in the event of an audit or discovery request Significantly simplifies environment regeneration process Hardware independent regeneration and recovery There is no single answer or magic solution to achieve compliance Capturing whatever solution suits a customer s environment in a VM is a powerful step towards compliance OS VMware vsphere 4.1 Clone OS 26
Oracle Databases on VMware Key Benefits Oracle RAC on vsphere 5 27
Oracle Databases on vsphere Oracle RAC Logical Architecture 28
Oracle RAC Node VM vmotion Testing Steps Step 1: Migrate the Oracle RAC node VMORARAC2 from ESX2 (10.1.1.35) to ESX4 (10.1.1.43) so that ESX2 can be taken down for a firmware upgrade Step 2: After the hardware maintenance is completed on ESX2, move VMORARAC2 from ESX4 (10.1.1.43) back to ESX2 (10.1.1.35) 29
CPU Utilization During Oracle RAC Node VM vmotion 30
31 Oracle Support, Certification, License Cost
Oracle Licensing Comparison Customer Example Prod PHYSICAL Siebel Loadstar OBIEE VIRTUAL X 12 Prod, Stage, Dev, Test 8 core 8 core 4 core ESX 8 core/96gb Stage 8 core/96gb 8 core 8 core 4 core 8 core/96gb Dev 8 core/96gb /Test 12 core 12 core Enterprise Edition Pricing per Oracle Technology Global Price List, October 20, 2011 32
Oracle s Support Statement (Tech Note: 249212.1) Oracle has not certified any of its products on VMware virtualized environments. Oracle Support will assist customers running Oracle products on VMware in the following manner: Oracle will only provide support for issues that either are known to occur on the native OS, or can be demonstrated not to be as a result of running on VMware. If a problem is a known Oracle issue, Oracle support will recommend the appropriate solution on the native OS. If that solution does not work in the VMware virtualized environment, the customer will be referred to VMware for support. When the customer can demonstrate that the Oracle solution does not work when running on the native OS, Oracle will resume support, including logging a bug with Oracle Development for investigation if required. If the problem is determined not to be a known Oracle issue, we will refer the customer to VMware for support. When the customer can demonstrate that the issue occurs when running on the native OS, Oracle will resume support, including logging a bug with Oracle Development for investigation if required. NOTE: Oracle has not certified any of its products on VMware. For Oracle RAC, Oracle will only accept Service Requests as described in this note on Oracle RAC 11.2.0.2 and later releases. 33
How to Read Oracle s Support Statement Certification Oracle doesn t Certify Below OS Examples: Sun, HP, IBM, EMC, NetApp, Cisco, Dell, F5, Brocade, Intel, AMD Certification for VMware Not Required No changes to OS Support Known Issues Unknown Issues Rare Oracle Prefers Work Around Reproduce in Another Physical Env May Be Necessary Even W/O VMware RAC support Added on Nov 8 th 2010 Ask for List of Unknown Issues You Have Ever Experienced Contact Oracle Support (Not Sales) 34
Oracle on VMware is Better Supported Than Physical VMware will Own Your Oracle Support Issue For Known Issues VMware is Supported For Unknown Issues Option 1: Move Virtual To Physical Much Simpler than Physical To Physical Option 2: Switch VMware to OVM In-place reboot of Oracle using OVM in the Same HW No third-party license is required Option 3: Maintain Physical/Virtual using Dataguard Dataguard License is Required Many Customers Have Support Addendums 35
Oracle Licensing For VMware Example A VMware vsphere Distributed Resource Scheduler (DRS) cluster with Oracle 4 blades, each with 4 CPU cores and each virtual machine is 2 vcpu (2-core) vcenter Cluster 1 Oracle DB vmotion vcenter Cluster 2 Solution Both Oracle hosts must be licensed for all 8 cores on 2 blades Same for physical or virtual: (8 cores) x (0.5 x86 factor) = 4 licenses Free to move that Oracle database virtual machine to and from Host 1 and Host 2 Do not let Oracle Database virtual machines migrate to App Host 3 or App Host 4! Isolate VMware vcenter logical clusters, or DRS 4.1/5.0 host affinity rules See Gartner Research Doc ID #G00165003 for similar guidance 36
37 Q&A