You are on page 1of 25

Oracle 11g RAC Architecture overview

DBA Team 12/11/2012

We will cover
Oracle Database Architecture

Memory Background processes


Cluster Scan Storage Services Failovers

RAC Architecture

ASM Architecture RAC Installation


Presteps for Installation Installation

Patching/Upgrades. Backups and Restore Planning and Strategy Monitoring for Performance Pro Active and Reactive.
Yahoo! Presentation, Internal 2 2/1/2014

Database Architecture

Logical and Physical Structure

Yahoo! Presentation, Internal

2/1/2014

Oracle Database Architecture

Yahoo! Presentation, Internal

2/1/2014

Memory Structure
Server Process 1

PGA

Server Process 2

PGA

Background Process

PGA

Shared SQL Area

Data Dictionary Cache Others

Library Cache Redo Log Buffer

Shared Pool I/O Buffer


Free Memory Request Queue

Database buffer Cache

Java Pool

Streams Pool

Response Queue

Large Pool
6 2/1/2014

Yahoo! Presentation, Confidential

Background Processes
User Process : -Is Started when a database process or batch process connect to a database. Database Processes : -Server Process : Connect to the Oracle instance and is started when a user establishes a session -Background process - are started when oracle instance is started.

Instance Database Buffer Cache Background process Shared Pool Redo Library Cache Log Buffer
Data Dictionary Cache
PGA

Background Process
User Process Server Process
DBWn CKPT LGWR SMON PMON ARCn Others

Yahoo! Presentation, Confidential

2/1/2014

Physical Files.

Yahoo! Presentation, Confidential

2/1/2014

Real Application Cluster 11gR2

RAC Software Stack

Yahoo! Presentation, Confidential

10

2/1/2014

GI and process dependencies

Yahoo! Presentation, Confidential

11

2/1/2014

Its important with RAC


OCR Oracle Cluster Registry

Contains all information about cluster resources


Node membership Heart beat. Local only Oracle Local Registry Stores important security context used by OHAS Locate Voting disk.

Voting Disk

OLR

Cache Fusion Read Consistency SCN. GRD, GCS and GES


12 2/1/2014

Yahoo! Presentation, Confidential

GRD, GES and GCS - Simplified

Yahoo! Presentation, Confidential

13

2/1/2014

Scan Listener

Yahoo! Presentation, Confidential

14

2/1/2014

ASM Architecture

ASM Automatic storage management

Yahoo! Presentation, Internal

16

2/1/2014

ASM to DB Instance Connection.

DBW0

ASMB

ARB0

ARBa

RBAL

FG

RBAL

GMON

A S M
ASM Disks

d i s k g r o u p
ASM Disks ASM Disks

A S M
ASM Disks

d i s k g r o u p
ASM Disks ASM Disks

Yahoo! Presentation, Confidential

17

2/1/2014

Grid Infrastructure Install

Yahoo! Presentation, Confidential

18

2/1/2014

Patches/Upgrades
One-Off Patch Merge Level Request Patch MLR Critical Update Patch CPU Patch Set Updates PSU Patch Set Major Release update.

Yahoo! Presentation, Confidential

19

2/1/2014

Example of RAC Database - Wilson Database


Wilson Production AC4

ac4-ngdrptdb001
RDBMS Instance SPNGD1

ac4-ngdrptdb002
RDBMS Instance SPNGD2

ac4-ngdrptdb003
RDBMS Instance SPNGD3

ac4-ngdrptdb004
RDBMS Instance SPNGD4

ac4-ngdrptdb005
RDBMS Instance SPNGD5

ac4-ngdrptdb006
RDBMS Instance SPNGD6

ASM Instance +ASM1

ASM Instance +ASM2

ASM Instance +ASM3

ASM Instance +ASM4

ASM Instance +ASM5

ASM Instance +ASM6

Disk Group1

Disk Group2

Disk Group3

Disk1

Disk2

Disk3 Physical Device


2/1/2014

Physical Device
Yahoo! Presentation, Confidential

Physical Device
20

Instance Service mapping.


Database
spngd

Instances

spngd1

spngd2

spngd3

spngd4

spngd5

spngd6

Loaders

Critical Loader

Non Critical Loader ngd_nc_d alo_svc

Loaders services

ngd_dalo _svc

Reporting - SARQ

Network

IO

Creative

Misc

Yahoo! Presentation, Confidential

21

2/1/2014

Load Balancing and Failovers


Load Balancing Client Side Server Side Transparent Application Failover Failover Modes Session Failover Select Failover None ( default ) Failover Methods Basic Pre connect Fast Application Notification. Up and down events for Cluster reconfig

Instance 1 Preferred Node


Batch_svc

Instance 2

Available Node

Service
Yahoo! Presentation, Confidential 22 2/1/2014

Performance Reactive and Proactive


Wait Events on Active Sessions Long Running Queries Explain plans for queries

Resource intensive
Adivsors ASH Report AWR Report

Yahoo! Presentation, Confidential

23

2/1/2014

Backups - Strategy
Snapshot Daily / Incremental Daily / Full weekly

Tape

Disk
Lun Based Snap mirror Backup

RMAN Backups

Yahoo! Presentation, Confidential

24

2/1/2014

Presentation Complete.

Any Questions ?

Yahoo! Presentation, Confidential

25

2/1/2014

You might also like