Oracle 11gR2 New Features for RAC - Ecuador Oracle · PDF fileOracle 11gR2 New Features for...

Preview:

Citation preview

Oracle 11gR2 New Features for Oracle 11gR2 New Features for RACRAC

What's New in Clusterware!!!What's New in Clusterware!!!OTN TourOTN Tour

(Costa Rica, Ecuador, Columbia, Peru)(Costa Rica, Ecuador, Columbia, Peru)

About me…Independent Oracle Consultant - Summersky Enterprisese-mail: murali.vallath@summersky.biz

Oracle Clusterware Components

• HAS stack

• CRS stack

• SCAN

• Virtual (IP)

Oracle Clusterware Components

Grid Infrastructure

HAS Stack

CRS Stack

CRS CSS EVM CTSS ONS ASM oraagent orarootagent

GNS mDNS GIPCD GPnPD crflogd

crfmond

New in 11.2.0.2

ClusterWare Files

• Oracle Cluster Registry (OCR)

• Oracle Local Registry (OLR)

• Voting Disk

• GPnP Profile

New in 11.2.0.2

ORADB2ORADB1

Cluster Interconnect

SSKY1SSKY1 SSKY2SSKY2

ORADB4

SSKY4SSKY4

ORADB3

SSKY3SSKY3

Public Network

HAS

CRS

CSS

EVM

VIPVIP VIPVIP VIPVIP VIPVIP

NM

GM

OCR

Network Switch

Interconnect Switch

SAN switch

Oracle Clusterware

© Summersky Enterprises LLC | | Murali Vallath | Slide: 6

CRS

CSS

EVM

HAS

CTSS

GPnP

DISKMON

CRS

CSS

EVM

HAS

CTSS

GPnP

DISKMON

CRS

CSS

EVM

HAS

CTSS

GPnP

DISKMON

OLR OLR OLR OLR

AA_00 AC_02AB_01 AD_03 AE_04 AF_05 AG_06 AH_07

prddb

Vote Disk

OCR

CRFMOND/LOGD

GIPCD

New in 11.2.0.2

GPnPD

• Grid Plug and Play Daemon• Started before CSS• Allows easy addition and deletion of nodes• Dynamic management of VIPs• Maintains essential cluster information in an XML profile:

– Cluster name and unique cluster identifier– Public and private network interface mappings– Location for the OCR and voting disks– Location for the ASM parameter file

• Manages and distributes the profile using the GPnPdaemon

• Defines cluster name, networks and storage

New in 11.2.0.2

© Summersky Enterprises LLC | | Murali Vallath | Slide: 7

GPnP ProfileNew in 11.2.0.2

© Summersky Enterprises LLC | | Murali Vallath | Slide: 8

Cluster Stack Invocation

initO

HA

SD

orar

oota

gent

cssdagent

oraa

gent

ASM

EVMD

MDNSD

GPNPD

CTSSD

CRSD

CSSD Monitor

GNSD

CSSD

SCAN

Listener

DB Instance

eONS

ONS

ASM Instance

VIP

SCAN VIP

GNS VIP

Network

GNSD

© Summersky Enterprises LLC | | Murali Vallath | Slide: 9

Clusterware Log Directories

GRID HOMEGRID HOME loglog<nodename>

e.g.. prddb1

<nodename>

e.g.. prddb1

evmd

agentagent

gpnpd

gnsd

client

gipcd

diskmon

srvm

ohasd

crsd

cssd

admin

ctssd

mdnsd

racgracg

ohas

doh

asd

crsd

crsd

orarootagent_root

oragent_oracle

oracssdmonitor_root

oracssdagent_root

orarootagent_root

oragent_oracle

oracssdmonitor_root

racgmain

racgevtf

racgeut

alert<nodename>.log

crscrs

diagdiag

New in 11.2.0.2

acfssec

acfsreplroot

acfsrepl

crflogd

crfmond

© Summersky Enterprises LLC | | Murali Vallath | Slide: 10

Clusterware Log DirectoriesG

RID

HO

ME

GR

ID H

OM

E

loglog diag

diag

tnsl

snr

tnsl

snr

clie

nts

clie

nts

<nod

e><n

ode>

user

_roo

tus

er_r

oot

listener_scan3

listener_scan2

listener_scan1

host

_<nn

nnn>

host

_<nn

nnn>

adrci_dir.mif

crs

crs

node

node

sweep

stage

metadata

lck

incpkg

incident

cdump

alert

trace

stage

metadata

lck

incpkg

incident

cdump

alert

trace

sweep

© Summersky Enterprises LLC | | Murali Vallath | Slide: 11

VIP’s

• Database VIP (also called RAC VIP)

• Application VIP

• HAIP (IC VIP)

© Summersky Enterprises LLC | 11gR2 RAC | Murali Vallath | Slide: 12

New in 11.2.0.2

Cluster Interconnect

• Oracle uses the interconnect for cache synchronization

• Interconnect is also used for– Data blocks– Locks– SCN numbers– Messages

© Summersky Enterprises LLC | 11gR2 RAC | Murali Vallath | Slide: 13

New in 11.2.0.2

Redundant Interconnects

• CLUSTER_INTERCONNECT

• NIC Bonding

• HAIP

© Summersky Enterprises LLC | 11gR2 RAC | Murali Vallath | Slide: 14

New in 11.2.0.2

Verify Deamons$GRID_HOME/bin/crsctl stat res -t -init

-----------------------------------------------------------------------------NAME TARGET STATE SERVER STATE_DETAILS ---------------------------------------------------------------------------ora.asm 1 ONLINE ONLINE devsrv1 Startedora.cluster_interconnect.haip 1 ONLINE ONLINE devsrv1ora.crf 1 ONLINE ONLINE devsrv1ora.crsd 1 ONLINE ONLINE devsrv1ora.cssd 1 ONLINE ONLINE devsrv1ora.cssdmonitor 1 ONLINE ONLINE devsrv1ora.ctssd 1 ONLINE ONLINE devsrv1 OBSERVER

© Summersky Enterprises LLC | | Murali Vallath | Slide: 15

RAC Background Process• ACMS – Atomic Controlfile to Memory Service

• GTX0-j – Global Transaction Process

• RMSn – Oracle RAC Management Processes (RMSn)

• RMSN – Remote Slave Monitor

• LMS – Global Cache Service Processes

• LMON – Global Enqueue Service Monitor

• LMD – Global Enqueue Service Daemon

• LCK – Lock Process

• DBRM – Database Resource Manager

• PING – Response time agent

© Summersky Enterprises LLC | Oracle Real Application Cluster | Murali Vallath | Slide: 16

New in 11.2.0.2

SCAN

• SCAN –Single Client Access Number• Similar to a cluster alias available on Tru64 and VMS

clusters• Helps load balance across the database cluster• Clients do not require VIP information• Removes the requirement to change the client connection

if cluster changes • Must resolve to atleast one address on the public network• Best practice .. resolve to 3 addresses for the entire cluster

SCAN

• Allows clients to use EZConnect or simple JDBC connections

• Each cluster will have 3 SCAN listeners, each having a SCAN VIP defined as cluster resources on network 1

• A SCAN VIP/LISTENER will failover to another node in the cluster

• Instance registers with local listener on its node• Database “REMOTE_LISTENER” registers

instances with all SCAN listeners

Advanced Installation

SCAN/GNS Configuration

GNS configuration

SCAN configuration

Server Pools

Node 5 Node 6 Node 7 Node 8 Node 9 Node 10

oltp5 oltp6 oltp7 dwh8 dwh9 dwh10

Node 1 Node 2 Node 3 Node 4

ssky1 ssky2 ssky3 ssky4

sskypool2Min=3Max=3

sskypool3Min=3Max=3

sskypool1Min=2Max=4

Server Pools

• Logical division of the cluster into pools of servers • Applications (e.g. databases) can be configured to

run in one or more server pools• Managed by crsctl (applications), srvctl

(Oracle) • Defined by 3 attributes:

– MIN - minimum number of servers (default 0)– MAX – maximum number of servers (default 0 or -1) – IMPORTANCE – 0 (least important) to 1000

Server Pools

• One-to-one mapping between a database service and server pool

• A database service can only be defined to operate in one pool – UNIFORM – all servers in the pool– SINGLETON – one server in the pool

• Resources are contained in logical groups of server pools

Types of Server Pools

• System defined– Free– Generic

• User defined

Server Pools

Server Pools

Server Pools

Node 5 Node 6 Node 7 Node 8 Node 9 Node 10

oltp5 oltp6 oltp7 dwh8 dwh9 dwh10

Node 1 Node 2 Node 3 Node 4

ssky1 ssky2 ssky3 ssky4

sskypool2Min=3Max=3

sskypool3Min=3Max=3

sskypool1Min=2Max=4

Node 4

oltp5

Server Pools

Node 5 Node 6 Node 7 Node 8 Node 9 Node 10

oltp5 oltp6 oltp7 dwh8 dwh9 dwh10

Node 1 Node 2 Node 3 Node 4

ssky1 ssky2 ssky3 ssky4

sskypool2Min=3Max=3Importance = 20

sskypool3Min=3Max=3Importance = 30

sskypool1Min=3Max=4Importance = 10

Node 4

oltp5

Node 8

dwh8

Q U E S T I O N SQ U E S T I O N SA N S W E R SA N S W E R S

Complete your evaluations

murali.vallath@summersky.biz

| Murali Vallath | Slide: 30

Thanks for Listening

Recommended