oracle vm greatest platform for deploying oracle database ... vm greatest platform for...

42
1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications Sai Janakiram Hewlett-Packard

Upload: ngohanh

Post on 06-Mar-2018

271 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

1

1

Oracle VM Greatest Platform for Deploying

Oracle Database & Applications

Sai Janakiram

Hewlett-Packard

Page 2: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

2

Sai Janakiram Penumuruo Twelve years in Oracle DBA / Oracle Apps DBA / Cloud Technologist/ Oracle ACEo Current Position: WW Product Expert, Cloud Platform - Oracle in hpo Co-Fonder & Director of Finance - All India Oracle Users Group (AIOUG)o Oracle Database 12c Beta Testero Oracle VM SIG Leader www.oraclevmsig.orgo Blog: www.oadba.com; www.oracle12c.info

Page 3: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

Agenda

What is Virtualization?

What is Oracle VM ?

Why run Oracle on Oracle VM?

Oracle VM Templates for Oracle Database

Oracle Virtual Assembly Builder

Stay Connected

Page 4: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

4

Background

Running today’s non-critical business applications invirtualized environments has shown to be efficientand cost saving.

Oracle VM is the only software based virtualization solution that is fully supported andcertified for Oracle products.

Support Position for Oracle Products Running on VMware Virtualized Environments [ID 249212.1]Oracle has not certified any of its products on VMware virtualized environments. Oracle Supportwill assist customers running Oracle products on VMware in the following manner: Oracle will onlyprovide support for issues that either are known to occur on the native OS, or can bedemonstrated not to be as a result of running on VMware.

Page 5: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

What is Virtualization?

Page 6: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

6

What is Virtualization?It is a abstraction of computer hardware resources

Virtualization technology emulates real — or physical — computing

resources, such as desktop computers and servers, processors

and memory, storage systems, networking, and individual

applications.

A hypervisor — also known as a virtual machine manager

(VMM) — allows multiple “guest” operating systems

to run concurrently on a single physical host

computer.

Types Hardware Virtualization Full Software Virtualization Para virtualization Hardware-assisted

software virtualization Component or resource

virtualization

Virtualization players in market

Page 7: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

7

Reasons for Virtualization?

Server Consolidation

Server Provisioning

Backup/Restore

Hosting/ Cloud Computing

Page 8: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

8

Types of Hypervisors

Oracle VMVMware vSphereKVMXenHyper-V

VirtualBoxVMware FusionVMware PlayerVMware Workstation

Guest OS

Guest OS

Guest OS

Server

Hypervisor

Type 1 – Native (Bare metal)

Guest OS

Guest OS

Guest OS

Operating System

Hypervisor

Server

Type 2 – Hosted

Page 9: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

9

Server consolidation: A real-world example

Page 10: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

10

Server consolidation: A real-world example

100 Sun Fire V880 systems runningOracle Solaris 8

17 Sun SPARC Enterprise T5240s systemsrunning Oracle Solaris 10

✓ Aggregate throughput performance would not change significantly for more workloads. In most cases, a singleT5240 can replace six V880s.✓ Reduced space: 100 V880s require 50 data center racks, whereas 17 T5240s can fit in a single rack.✓ Approximately 660,000 BTUs of heat generation would be removed from the data center.✓ Approximately $200,000 would be saved in electricity costs per year (ignoring the cost of cooling).✓ Acquisition costs for the new systems would be completely offset by the OPEX savings achieved in the first year.

=

Page 11: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

11

Question - 1

__ allows multiple “guest” operating systemsto run concurrently on a single physical host

computer.

Page 12: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

What is Oracle VM ?

Page 13: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

13

Oracle VM – Foundation for Cloud

• At the core of Oracle’s Cloud strategy

• Integrated VM lifecycle & cloud

management solution with Oracle

Enterprise Manager

• Supports both x86 and SPARC

• Certified for Oracle products

• Cloud platform for Oracle & Non-Oracle

applications

oSupports Oracle Linux, Oracle Solaris, Microsoft

Windows, and other Linux distributions

Page 14: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

14 Bare-Metal Server

Is a component that translates the

virtual machine into the underlying

hardware.

Installed with Oracle VM Server. It communicates with Oracle VM Manager for management of

virtual machines. dom0 - domain 0

Manages virtual machine lifecycle, including creating virtual machines from installation media or from a virtual machine template, deleting, powering off, uploading, deployment and live migration of virtual machines.

A self-contained virtualization environment

designed to provide a lightweight,

secure, server-based platform for running

virtual machines.

deploy operating systems and application

software within a supported

virtualization environment.

Oracle VM

Page 15: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

15

Oracle VM Family: Choice and FlexibilityFrom Fully Configurable Software to “Turn Key” Systems

Oracle VM software for x86 & SPARC

• Zero cost license: pay only for support

• Full functionality including all management software

• Your hardware infrastructure

Virtual Compute Appliance

• Enterprise class, turn key converged infrastructure system containing servers, storage,

network, and software

• From power-on to production in about an hour

• Automated installation and configuration

Page 16: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

16

Oracle VM for x86 Architecture Live migration, high availability, template deployment, dynamic resource scheduling

Oracle VM Manager• Centralized management server•Web browser-based: No client required•Manage hundreds or thousands of VMs centrally•Advanced virtualization management included

Oracle VM Server • Installs on “bare-metal” servers in about a minute• High performance at scale: Up to 240 physical CPUs and 6TB memory; Up to 128 vCPU and 2TB memory per VM

Page 17: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

17

Oracle VM Server Features

High Availability: You can configure resources to restart the guests on another host if the underlying host fails.

Live Migration: You can relocate the guests from one host to another with no loss of service.

Load Balancing: If configured, Oracle VM automatically load balances upon guests startup

Performance: Xen hypervisor is among the fastest forms of virtualization.

Rapid Provisioning: Through the use of cloning and virtual machine templates, Oracle VM can quickly and efficiently create new guest operating system.

VM Templates: Oracle provides wide-range of preconfigured virtual machine templates.

Page 18: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

18

Question - 2

Which type of virtualization technology does Oracle VM use?

A. Physical DomainB. OS-Level virtualizationC. Hypervisor based virtualizationD. Application virtualization

Page 19: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

Why run Oracle on Oracle VM?

Page 20: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

20

Why Virtualize with Oracle?Oracle VM Templates to shorten time to market

Oracle Enterprise Manager provides complete VMand cloud lifecycle management.

Rapid deployment with 100+ Oracle VM Templates

Oracle Virtualizationfrom applications to disk.

Page 21: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

21

Oracle VM Templates -Easier...Faster...Lower Cost...Fully Supported for Production Deployments

• Rapid Deployment; 100+ Templates Available• Pre-built, pre-configured, production-ready VMs• Apps, Databases, Middleware, OS; Siebel CRM, Oracle RAC, More…• Near zero knowledge of OS, Application installation required• Automate deployment of a complete production ready 8 node RAC cluster in minutes

through a simple single configuration file

Page 22: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

22

Oracle VM Templates Simplify Application Deployment

Pre-Built by Oracle Download Deploy

Oracle and non-Oracle Systems

Page 23: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

23

Oracle VM Powering Oracle Engineered SystemsOracle VM Integrated with Oracle Systems

Oracle x86 &

SPARC systems

Page 24: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

24

Oracle Enterprise Manager 12cTotal Cloud Control and Full Stack Management

PaaS

IaaS

Self-Service

Provisioning

Capacity

Planning

Assembly

Packaging

Policy-Driven

Resource Mgmt

Metering and

Chargeback

Configuration & Compliance

Lifecycle Management

Application Performance

& Quality Management

Page 25: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

25

Some of the benefits of Oracle VM

Sub-capacity licensingOracle licensing model requires the Oracle database to be licensed for all CPUs on each server in the cluster.Oracle VM can be configured in such way that it is recognized as a hard partition. Hard partitions allowcustomers to only license those CPUs used by the partition instead of licensing all CPUs on the physicalserver.

Distributed Resource Scheduling (DRS)• Optimizes virtual machine CPU resource utilization in a server pool.

– Automatically moves virtual machines to another OVM Server within the pool if the threshold exceeds the existing server pool policy.– Thresholds can be set for both CPU and Network

Distributed Power Management (DPM)• Used to increase the consolidation ratio of VMs into least amount of OVM Servers required.

– Goal is to keep only minimum number of necessary OVM Servers running.– If policy finds OVM Servers without VMs, it can shutdown OVM Servers to conserve power.

Page 26: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

Oracle VM Templates for Oracle Database

Page 27: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

27

Oracle VM Templates for Oracle Databasehttp://www.oracle.com/technetwork/server-storage/vm/database-templates-12c-11gr2-1972804.html

Page 28: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

28

RAC OVM Templates - Delivery Mechanism

• 32 bit and 64bit versions• Image files are built with ‘sparse file’ support• Inside each zip are tgz archives with the following files:

– VM Config file (text file)– Opatch lsinventory sample output– README / PDFs for installing– Disk 1 image file: Operating System– Disk 2 image file: Oracle Software

• Includes Clusterware, ASM and RAC• Follow the instructions in provided PDF files or document for the new DeployCluster tool

Page 29: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

29

Using The RAC OVM TemplatesSteps to execute RAC OVM templates

• Step 1 Download Template 32/64• 11.1/11.2.0.1/11.2.0.2/11.2.0.3/Oracle RAC 12c Release 1 (12.1.0.1.0)

• Step 2 Register Template with Oracle VM Manager• Step 3 Create 2+ VMs• Step 4 Shared Storage

• For Non Production: Create Shared Disk using OVM Manager• Assigned Shared disk to all Guest VMs using OVM Manager

• For Production Deployment: Identify Physical Shared Disk• OVM2: Update all Guest VM’s vm.cfg files with location of shared disk• OVM3: Attach physical disks using Oracle VM Manager

• Step 5 Boot all VMs or use Deploycluster tool and skip Step 6• Step 6 Run OneCommand to Configure and Build RAC database

Page 30: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

30

RAC on OVM – Deployment Configuration

• Two types of deployments• Production Oracle RAC OVM Configurations [Supported]

• Each RAC node must be deployed on a separate physical server for production environments• Shared database disks must be on physical disks

• Test Oracle RAC OVM Configurations• Above requirements are relaxed

• Templates support both configurations, each has its own PDF to help with steps

Non-Production deploymentProduction deployment

Page 31: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

31

Template DocumentationSingle Instance & Oracle RAC 12c Release 1, including Oracle Grid Infrastructure (12.1.0.1.0) & Oracle Linux 6 Update 4

For Test For Production

Oracle Database 11g Rel. 2 + Patch Set two Update#2 (11.2.0.3.2) & Oracle Linux 6 Update 2 For Test For Production

Oracle Database 11g Rel. 2 + Patch Set one Update#6 (11.2.0.2.6) & Oracle Linux 5 Update 8 For Test For Production

Oracle Database 11g Rel. 2 + Patch Set two (11.2.0.3.0) & Oracle Linux 5 Update 7 For Test For Production

Oracle Database 11g Rel. 2 + Patch Set one Update#2 (11.2.0.2.2) & Oracle Linux 5 Update 6 For Test For Production

Oracle Database 11g Rel. 2 + Patch Updates (11.2.0.1.4) & Oracle Linux 5 Update 5 For Test For Production

Oracle Database 11g Rel. 2 + Patch Set one (11.2.0.2.0) & Oracle Linux 5 Update 4 For Test For Production

Oracle Database 11g Rel. 2 + Patch Updates (11.2.0.1.2) & Oracle Linux 5 Update 4 For Test For Production

Page 32: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

32

Download deploycluster toolhttp://www.oracle.com/technetwork/server-storage/vm/rac-template-11grel2-166623.html

Then unzip it anywhere you wish, e.g.$ cd $HOME$ unzip -q RACOVM-Deploycluster-tool.zip$ cd deployclusterSome of the useful files to notice are:deploycluster.py - Deploycluster tool – RUN THISdeploycluster.ini - Options for deploycluster tool itselfREADME.txt - Details explanation of all flags/optionsutils - Directory with useful files, e.g:

netconfig*.ini - Sample netconfig.ini filesnetconfig.zip - Updated netconfig (may be needed when deploying older templates)params-sample.ini - Sample params.iniREADME.txt - Backwards compatibility steps for Oracle VM2 users

Page 33: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

33

Create a netconfig.ini file

Using a simple text editor copy the sample netconfig.ini file from the utils directory, then adjust the namesand IPs suitable for your environment.

Page 34: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

34

Running deploycluster.py$ ./deploycluster.py -u admin -p MyP123 -M racnode.0,racnode.1

-N netconf2nodes.ini

Page 35: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

35

Running deploycluster.py (Cont’d)

Page 36: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

36

Adding or Removing Node(s) / Instance(s)Fully automated addition and removal of nodes or instances

Simply run:./racovm.sh -S addnodes -N node2,node3

Or:./racovm.sh -S removenodes -N node2,node3

Or:./racovm.sh -S addinstances -N node2,node3

Or:./racovm.sh -S deleteinstances -N node2,node3

Page 37: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

37

doall.sh – Run command on all nodesdoall.sh [options] <command> | "<command1>;<command2>;..<commandX>"

-l <user> : Login as user (default: current user)-x : Run commands in sequence (default: run in parallel)-P : Print commands as they are executed (default: noprint)-p : Setup passwordless SSH for <user> on all nodes listed in netconfig.ini-s : Skip confirmation for passwordless SSH setup-u : Skip unreachable nodes-U : Skip nodes that are unreachable or without passwordless SSH

configured-L first|last|skip : Local node execution order-N <node1>,<node2> .. : Nodes to run on (default: all nodes in

netconfig.ini)

Examples:./doall.sh -L last reboot

Page 38: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

Oracle Virtual Assembly Builder

Page 39: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

39

Oracle Virtual Assembly Builder

Page 40: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

40

Oracle Virtual Assembly Builder Demo Appliance Downloadshttp://www.oracle.com/technetwork/middleware/ovab/downloads/ovab-demo-appliance-2015000.html

Page 41: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

41

Oracle VM is integrated at ALL layers of the Red Stack

Page 42: Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for Deployin… · 1 1 Oracle VM Greatest Platform for Deploying Oracle Database & Applications

42

Keep Watch for SIG events

Downloadedelivery.oracle.com/oraclevmedelivery.oracle.com/linuxedelivery.oracle.com/solaris

Stay Connected

Oracle.com/virtualization

@ORCL_Virtualize

Facebook.com/OracleVirtualization

Oracle VM Group

Blogs.oracle.com/virtualization

Youtube.com/virtualization