Oracle RAC One Node 12c Overview

31
7/8/13 1 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Oracle Real Application Clusters One Node 12c Markus Michalewicz Director of Product Management Oracle Real Application Clusters (RAC)

description

Overview of the new Oracle RAC One Node 12c

Transcript of Oracle RAC One Node 12c Overview

Page 1: Oracle RAC One Node 12c Overview

7/8/13  

1  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1

Oracle Real Application Clusters One Node 12c Markus Michalewicz Director of Product Management Oracle Real Application Clusters (RAC)

Page 2: Oracle RAC One Node 12c Overview

7/8/13  

2  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 3

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 4

Agenda

§  Oracle RAC One Node 12c Overview

§  Oracle RAC One Node 12c for: –  Best In-Class Oracle Database Availability –  Better Oracle Database Consolidation –  Better Oracle Database Virtualization

§  Oracle RAC One Node 12c and the Rest of the Stack

Page 3: Oracle RAC One Node 12c Overview

7/8/13  

3  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 6

Oracle RAC One Node 12c Oracle RAC One Node 12c provides:

1.  Best in-class single instance Oracle Database availability

2.  Better database consolidation

3.  Better database virtualization

Using

§  A standardized and improved deployment and management

§  A familiar and matured HA stack –  Oracle Grid Infrastructure

Oracle Grid Infrastructure (GI):

Automatic Storage Management (ASM)

Oracle Clusterware (OCW)

Oracle Flex ASM

CRM  

Oracle RAC

One Node A

Oracle RAC

One Node B

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 8

Standardize on Oracle RAC Different flavors, same management

Oracle GI DB A DB A

Oracle GI DB A DB A

DB A

Oracle RAC One Node Oracle RAC

High Availability

Scal

abili

ty

DB A

Oracle Restart

Oracle GI

Page 4: Oracle RAC One Node 12c Overview

7/8/13  

4  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 9

Standardize on Oracle RAC For better availability during maintenance operations

Oracle GI DB A DB A

DB A Oracle RAC

High Availability

Scal

abili

ty

Online (rolling) Patch and PSU Application Oracle GI DB A

DB A Oracle RAC One Node

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 10

Standardize on Oracle RAC For all the flexibility you need

Oracle GI DB A DB A

Oracle GI DB A DB A

DB A

Oracle RAC One Node Oracle RAC

Flexibility

Scal

abili

ty

Re-configuration

to enable cluster

Online

upgrade

DB A

Oracle Restart

Oracle GI

Page 5: Oracle RAC One Node 12c Overview

7/8/13  

5  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 11

Standardize on Oracle RAC For better agility and consolidation

Oracle GI DB A DB A

Oracle RAC One Node

Oracle GI DB A DB A

DB A Oracle RAC

Consolidation

Agi

lity

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 12

Standardize on Oracle RAC and Oracle Multitenant The new standard for Oracle Database Consolidation

Oracle GI

Oracle RAC One Node

Consolidation

Agi

lity

Oracle GI

Oracle RAC

Page 6: Oracle RAC One Node 12c Overview

7/8/13  

6  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 13

Oracle RAC One Node Architecture §  Oracle RAC One Node is

–  an Oracle RAC enabled database –  with only one instance running

under normal operation

§  In case of a server or instance failure, the one running instance is started on another server in the cluster (failover)

§  Online Database Relocation (Oracle RAC One Node specific feature) minimizes downtime during scheduled maintenance operations.

Basic features

Oracle GI DB A

DB A

DB B

DB B

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 14

Oracle RAC One Node vs. Oracle RAC “Always On” vs. “Always Running”

Oracle GI DB A

DB A

DB B

DB B

Oracle GI

DBA

DBA

DBB

DBB

§  Oracle RAC: multiple instances per database running concurrently

§  Oracle RAC One Node: one instance per database running at a time

Page 7: Oracle RAC One Node 12c Overview

7/8/13  

7  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 15

Agenda

§  Oracle RAC One Node 12c Overview

§  Oracle RAC One Node 12c for: –  Best In-Class Oracle Database Availability –  Better Oracle Database Consolidation –  Better Oracle Database Virtualization

§  Oracle RAC One Node 12c and the Rest of the Stack

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 16

Database Failover

§  On failure of –  a database (DB) instance –  Or the server hosting the DB –  Or other failures impacting operation

§  Oracle RAC One Node will fail over the database instance to another server in the cluster

§  Servers can be chosen using either administrator-managed or policy-managed resource allocation rules

Oracle RAC One Node provides standard DB cold-failover functionality

Node3 Node2

Oracle (Flex) ASM based pool of shared storage

Node1

Public Network

DBB DBC DBA

Oracle Grid Infrastructure

DBE DBD DBA

Page 8: Oracle RAC One Node 12c Overview

7/8/13  

8  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 17

Online Database Relocation for better HA

§  Online Database Relocation minimizes downtime during (scheduled) maintenance operations such as:

–  Patching

–  Resource re-allocation due to demand

Oracle RAC One Node-specific functionality that makes the difference

Node3 Node2

Oracle (Flex) ASM based pool of shared storage

Node1

Public Network

DBB DBC

Oracle Grid Infrastructure

DBE DBD DBA

DBA Online DB Relocation

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 18

Online Database Relocation For no downtime patching and other maintenance operations

Node3 Node2 Node1

Public Network

Oracle Grid Infrastructure

DBE DBD DBA DBC

DB connections

DB Service

DB Home

DBB

Page 9: Oracle RAC One Node 12c Overview

7/8/13  

9  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 19

Online Database Relocation Step 1: Start target DB instance and relocate DB Service

Node3 Node2 Node1

Public Network

Oracle Grid Infrastructure

DBE DBD

DB connections

DB Service

DBA DBA Online DB Relocation

DBC

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 20

Online Database Relocation Step 2: Stop source DB instance transactional

Node3 Node2 Node1

Public Network

Oracle Grid Infrastructure

DBE DBD DBA Online DB Relocation DBA

DB connections

DB Service

New Connection

DBC

Page 10: Oracle RAC One Node 12c Overview

7/8/13  

10  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 21

Online Database Relocation Step 3: Patch Oracle Database home on the source server

Node3 Node2 Node1

Public Network

Oracle Grid Infrastructure

DBE DBD DBA

+1

DB connections

DB Service

Patch +1

DBC

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 22

Online Database Relocation Step 4: Rewind (relocate back) to activate patch usage

Node3 Node2 Node1

Public Network

DBC

Oracle Grid Infrastructure

DBE DBD DBA

DB connections

DB Service

Patched DB Home

Page 11: Oracle RAC One Node 12c Overview

7/8/13  

11  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 23

Online Database Relocation Step 5: Patch remaining home(s)

Node3 Node2 Node1

Public Network

Oracle Grid Infrastructure

DBE DBD DBA DBC DBB

DB connections

DB Service

Patched DB Home

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 24

Online Database Relocation Optimization: 3-step patching for consolidated environments

Node3 Node2 Node1

Public Network

Oracle Grid Infrastructure

DBE DBD DBA DBC

DB connections

DB Service

DB Home

DBB

DB connections

DB Service

Patched DB Home

1 Patch Target

2 Relocate

3 Patch remaining

DBA DBB

Page 12: Oracle RAC One Node 12c Overview

7/8/13  

12  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 25

Oracle RAC One Node & Oracle ASM 12c The ideal combination for best in-class high availability

ASM Cluster Pool of Storage

Disk Group B Disk Group A Shared Disk Groups Wide File Striping

One to One Mapping of ASM Instances to Servers

ASM Instance

Database Instance

ASM Disk

RAC Cluster

Node4 Node3 Node2 Node1 Node5 ASM ASM ASM ASM ASM

ASM Instance

Database Instance

DBA DBC DBB DBD DBE

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 26

Introducing Oracle Flex ASM Removal of One to One Mapping and HA

ASM Cluster Pool of Storage

Disk Group B Disk Group A Shared Disk Groups Wide File Striping

Databases share ASM instances

ASM Instance

Database Instance

ASM Disk

RAC Cluster

Node5 Node4 Node3 Node2 Node1

Node5 runs as ASM Client to Node4

Node1 runs as ASM Client to Node2

Node1 runs as ASM Client to Node4

Node2 runs as ASM Client to Node3

ASM ASM ASM

ASM Instance

DBA DBC DBB DBD DBE

Page 13: Oracle RAC One Node 12c Overview

7/8/13  

13  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 28

Agenda

§  Oracle RAC One Node 12c Overview

§  Oracle RAC One Node 12c for: –  Best In-Class Oracle Database Availability –  Better Oracle Database Consolidation –  Better Oracle Database Virtualization

§  Oracle RAC One Node 12c and the Rest of the Stack

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential – Oracle Restricted 29

Private Database Cloud Architectures Oracle Database 12c

Dedicated Databases

share servers and OS

Virtual Machines

share servers

Pluggable Databases

share servers, OS and database

Increasing Consolidation

Page 14: Oracle RAC One Node 12c Overview

7/8/13  

14  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 30

Standardize on Oracle RAC Same management, big difference

Oracle GI DB A DB A

Oracle RAC One Node

Oracle GI DB A DB A

DB A Oracle RAC

Consolidation

Agi

lity

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 31

RAC One Node – A Consolidation Standard

§  Use Oracle RAC One Node to –  Consolidate Single Instance (SI) DBs –  Improve high availability of SI DBs –  Improve system utilization and agility –  Allocate resources as needed

Consolidation, isolation and agility starts with Oracle RAC One Node

Node3 Node2

Oracle (Flex) ASM based pool of shared storage

Node1

Public Network

DBB DBC

Oracle Grid Infrastructure

DBE DBD DBA

Time

Util

izat

ion

Peak Average

Page 15: Oracle RAC One Node 12c Overview

7/8/13  

15  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 32

Consolidation and Isolation Use Instance Caging for Isolation

Node3 Node2

Oracle (Flex) ASM based pool of shared storage

Node1

Public Network

DBB DBC

Oracle Grid Infrastructure

DBE DBD DBA

Node2

DBB

DBD

CPU_COUNT=12

CPU_COUNT=4

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 33

Standardize on Oracle RAC and Oracle Multitenant The new standard for Oracle Database Consolidation

Oracle GI

Oracle RAC One Node

Consolidation

Agi

lity

Oracle GI

Oracle RAC

Page 16: Oracle RAC One Node 12c Overview

7/8/13  

16  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 34

Oracle RAC One Node for Oracle Multitenant Start off with a Single Instance, non-CDB

Server

Database Instance

Services

Server

Database Instance

CRM North

CRM South Services CRM

Reporting

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 35

Oracle RAC One Node for Oracle Multitenant Convert to a RAC Database, non-CDB

Node 1

Services

Node 1

Oracle RAC One Node Instance

Services

Node 2

CRM North

CRM South

CRM Reporting

Oracle RAC One Node Instance

Page 17: Oracle RAC One Node 12c Overview

7/8/13  

17  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 36

Oracle RAC One Node for Oracle Multitenant Convert to an Oracle RAC One Node-based CDB

Node2 Node1

CDB

Services

RAC One Node CDB Instance

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 37

Oracle RAC One Node for Oracle Multitenant Add additional PDBs as needed

Node2 Node1

CDB

Services

RAC One Node CDB Instance

Page 18: Oracle RAC One Node 12c Overview

7/8/13  

18  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 38

Oracle RAC One Node for Oracle Multitenant Benefit from the Oracle RAC One Node features immediately

Node2 Node1

CDB

Services

RAC One Node CDB Instance

RAC One Node CDB Instance

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 39

Agenda

§  Oracle RAC One Node 12c Overview

§  Oracle RAC One Node 12c for: –  Best In-Class Oracle Database Availability –  Better Oracle Database Consolidation –  Better Oracle Database Virtualization

§  Oracle RAC One Node 12c and the Rest of the Stack

Page 19: Oracle RAC One Node 12c Overview

7/8/13  

19  

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Confidential – Oracle Restricted 40

Private Database Cloud Architectures Oracle Database 12c

Dedicated Databases

share servers and OS

Virtual Machines

share servers

Pluggable Databases

share servers, OS and database

Increasing Consolidation

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 41

Virtualization – a Black Box Approach A simple solution without insight

Bare-Metal Server

DOM-0 Hypervisor Guest

Dom-0 Guest

Bare-Metal Server

DOM-0 Hypervisor

Dom-0 Guest Guest

Page 20: Oracle RAC One Node 12c Overview

7/8/13  

20  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 42

Live Migration = Moving a Black Box Live Migration moves a black box from one server to another

Bare-Metal Server

DOM-0 Hypervisor Guest

Dom-0 Guest

Bare-Metal Server

DOM-0 Hypervisor

Dom-0 Guest Guest

Live Migration

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 43

Virtual Machine HA = Restarting a Black Box Virtual Machine HA restarts / fails over a virtual machine on failure

Bare-Metal Server

DOM-0 Hypervisor Guest

Dom-0 Guest

Bare-Metal Server

DOM-0 Hypervisor

Dom-0 Guest Guest

Page 21: Oracle RAC One Node 12c Overview

7/8/13  

21  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 44

Virtual Machine HA = Restarting a Black Box But what if the application needs attention?

Bare-Metal Server

DOM-0 Hypervisor Guest

Dom-0 Guest

Bare-Metal Server

DOM-0 Hypervisor

Dom-0 Guest

DBA ?

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 45

High Availability Requires Insight The Oracle RAC One Node Stack provides the insight

Bare-Metal Server

DOM-0 Hypervisor Guest

Dom-0 Guest

Bare-Metal Server

DOM-0 Hypervisor

Dom-0 Guest Guest

DBB

DBC

DBE DBD

DBA +1

DBC Online DB Relocation DBA

Page 22: Oracle RAC One Node 12c Overview

7/8/13  

22  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 47

Agenda

§  Oracle RAC One Node 12c Overview

§  Oracle RAC One Node 12c for: –  Best In-Class Oracle Database Availability –  Better Oracle Database Consolidation –  Better Oracle Database Virtualization

§  Oracle RAC One Node 12c and the Rest of the Stack

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 48

Application Continuity

Page 23: Oracle RAC One Node 12c Overview

7/8/13  

23  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 49

Dealing with Unknown Transaction State

CRM  

Pre-Oracle Database 12c § Database outages can cause

in-flight work to be lost, leaving users and applications in doubt

§ Often leads to –  User pains –  Duplicate submissions –  Rebooting mid-tiers –  Developer pains

DB A DB A

DB B DB B

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 50

Tackling In-Flight Work for Unplanned Outages

§ Transaction Guard –  A Reliable protocol and API that returns the outcome of the last transaction

§ Application Continuity –  Safely attempts to replay in-flight work following outages and planned

operations.

Two New Features

Page 24: Oracle RAC One Node 12c Overview

7/8/13  

24  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 51

DB A DB A

Application Continuity

CRM  

Masks Unplanned & Planned Outages

§  Replays in-flight (DML) work on recoverable errors

§  Masks many hardware, software, network, storage errors and outages when successful

§  Improves end-user experience and productivity without requiring custom application development ✔ DB B

DB B

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 52

Application Continuity – Example

Application Servers

Database Servers

End User

A reliable replay of in flight work

Network Switches

User selects product from application and purchases it from the web checkout

User transaction arrives at application infrastructure. It makes it’s way through the application tiers and results in a database transaction being created

Page 25: Oracle RAC One Node 12c Overview

7/8/13  

25  

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 53

Application Continuity – Example

Application Servers

Database Servers

End User

A reliable replay of in flight work

Network Switches The infrastructure hosting the database fails just before the transaction is committed to the database.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 54

Application Continuity – Example

Application Servers

Database Servers

End User

A reliable replay of in flight work

Network Switches

The jdbc driver detects the failure and checks with an available node in the cluster, using “Transaction Guard”, whether the transaction committed or needs to be replayed

If the transaction needs to be replayed, “Application Continuity” will submit all of the inflight work to a surviving node in the cluster and perform a commit. This all happens transparently to the application

Page 26: Oracle RAC One Node 12c Overview

7/8/13  

26  

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 55

Application Continuity – Example

Application Servers

Database Servers

End User

A reliable replay of in flight work

Network Switches

The user receives confirmation that his order has been successfully completed.

Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 56

Policy Management

Page 27: Oracle RAC One Node 12c Overview

7/8/13  

27  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 57

Policy-Managed Databases Highly available workload management

Policy Min Max Importance Online Retail 2 4 High Self Service 1 2 Low Free Pool Lowest

Allocate resources

§  As demand requires it

§  As the business requires it: §  Over the period of one day

§  As the system requires it: §  For automated management tasks

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 58

Policy-Managed Databases Better High Availability for any cluster

Improve HA §  By choosing servers from the

least important server pool

§  Accommodating for double or multiple subsequent failures

§  For planned maintenance: §  Allocate backup servers in the cluster

1 2

Policy Min Max Importance Online Retail 2 4 High Self Service 1 2 Low Free Pool Lowest

Page 28: Oracle RAC One Node 12c Overview

7/8/13  

28  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 59

Policy-based Cluster Management Server Pools that understand and make a difference

•  Oracle RAC One Node 12c •  Actively utilizes differently sized servers

•  Server Pool management has been improved to understand server differences in the cluster: •  Server attributes are stored per server

•  Server Pools are set up using Server Categories

•  Servers are allocated to pools based on categories

•  Combine only test servers in one pool

•  Remove servers from test-pool preferably

•  Ensure a minimum size of servers per pool

Server Categories •  NAME •  ACL •  EXPRESSION •  …

Server Attributes •  NAME •  MEMORY_SIZE  •  CPU_COUNT •  CPU_CLOCK_RATE  •  CPU_HYPERTHREADING  •  CPU_EQUIVALENCY • …  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 60

What-If Command Evaluation Complex cluster management made predictable

•  Oracle RAC One Node 12c What-If Command Evaluation

•  Helps to set up and validate policies

•  Helps to plan for downtime scenarios •  Analyze the impact beforehand

•  Ensure smooth cluster operations

•  What-If Command Evolution supports: •  Set Active Policy

•  Server Pool, server or resource modification

•  E.g. addition, relocation or removal

•  Special commands for failure evaluation

PROD

MAIL

Action: Move server

between pools

Page 29: Oracle RAC One Node 12c Overview

7/8/13  

29  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 61

Oracle Flex Cluster

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 62

Oracle Flex Cluster Flexibility and High Availability as demand requires it

§  Oracle Flex Cluster –  A new Oracle Clusterware based

High Availability clustering topology

§  Utilizing two types of cluster nodes: –  Hub nodes

§  Traditional nodes, tightly coupled via network and storage, used for running IO intensive workload

–  Leaf nodes

§  A new type of node that runs a lighter weight stack

§  Maintain their own failure and heartbeat settings

§  Do not require direct shared storage connectivity

§  Used for processing oriented (application) workload

–  Leaf nodes can be virtualized.

Hub Nodes

Leaf Nodes

Page 30: Oracle RAC One Node 12c Overview

7/8/13  

30  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 63

Oracle Flex Cluster The new standard for resource management in the cluster

DB A DB B

DB C

DB E

Hub Nodes

Leaf Nodes

§  Oracle Flex Cluster: –  The new standard for flexible

resource management in the cluster §  Use it as demand requires it

§  Inherits all Flex ASM HA capabilities

§  Enables policy-managed clusters.

–  Efficient High Availability and resource management across tiers

§  Lightweight cluster stack on leaf nodes

–  Benefit from virtualization and physical deployments in one cluster

DB D

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 64

Oracle Flex Cluster Better HA clustering for all applications

§  Standardized management across applications –  Global resource allocation and dependencies

–  Oracle Bundled Agents (XAG) for application HA

§  www.oracle.com/goto/clusterware

Sta

rt

Stop

DB A DB B

DB C DB B

DB B

Page 31: Oracle RAC One Node 12c Overview

7/8/13  

31  

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 65

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 66