Professional Documents
Culture Documents
Introduction
Overview
I-2
Course Objectives
I-3
Typical Schedule
Topics
Lessons
Day
I, 1, 2, 3
4, 5, 6
7, 8
9, 10
11, 12
Advanced topics
Workshop: Cloning
I-4
A History of Innovation
Automatic
Workload
Management
Automatic
Storage
Management
Enterprise
Grids
Grid
Control
RAC
Data
Guard
Nonblocking
queries
Low-cost
commodity
clusters
Resource
manager
OPS
I-5
Oracle
Clusterware
What Is a Cluster?
Interconnected nodes
act as a single server.
Cluster software
hides the structure.
Public
Disks are available
network
for read and
write by all nodes.
Operating system
is the same on each Clusterware
machine.
on each node
Private Interconnect
Node
Public
network
Public
network
Disks
I-6
Public
network
Multiple instances
accessing the same
database
One instance
per node
Physical or
logical access
to each
database file
Software-controlled
data access
Interconnect
Shared
cache
Instances
spread
across nodes
Database
files
I-7
I-8
RAC model
Shared
storage
Memory
Cache
Cache
SGA
SGA
CPU CPU
CPU CPU
BGP BGP
BGP BGP
Cache coherency
Cache fusion
BGP (background process)
I-9
Levels of Scalability
I - 10
Original system
Hardware Time
Hardware
I - 11
Time
Up to
200%
of
task
100% of task
Up to
300%
of
task
Hardware
Hardware
Time
100%
of task
Time/2
I - 12
Workload
Speedup
Scaleup
No
Yes
Yes
Yes
Batch (mixed)
Possible
Yes
FC-switch
Disk
array 1
I - 13
Disk
array 2
Disk
array 3
HBA1
HBA2
HBA1
HBA2
HBA1
HBA2
HBA1
HBA2
Disk
array 4
Disk
array 5
Disk
array 6
Disk
array 7
Disk
array 8
1 Gbit/s 80 Mbytes/s
I - 14
Applications
Membership
I - 15
Connectivity
Connectivity
Hardware/OS kernel
Hardware/OS kernel
Management APIs
Services framework
Event Services
Volume Manager
file system
System Management
Event Services
Cluster control
Applications/RAC
SGA2
SGA1
SGA2
1008
1008
1008
SGA1
SGA2
SGA1
1009
1008
1009
Lost
updates!
1008
SGA2
1008
4
I - 16
Node1
Instance1
GRD Master
LMON
LMD0
LMSx
LCK0
DIAG
Noden
Instancen
Cache
GES
GCS
Global
resources
Interconnect
GRD Master
GES
GCS
Cache
LMON
LMD0
LMSx
LCK0
DIAG
I - 17
Node1
Instance1
Cache
LMON
LMD0
LMSx
LCK0
DIAG
2
Block mastered
by instance 1
Node2
Instance2
1009
1009 Cache
Instance 2 has
the current version of the block.
GCS
1008
I - 18
LMON
LMD0
LMSx
LCK0
DIAG
1
Which instance
masters the block?
No disk I/O
Node1
Instance1
Cache
Node2
Instance2
1009
LMON
LMD0
LMSx
LCK0
DIAG
1
Need to make room
in my cache.
Who has the current version
of that block?
1010 Cache
LMON
LMD0
LMSx
LCK0
DIAG
GCS
1010
I - 19
Only one
disk I/O
Dynamic Reconfiguration
Reconfiguration remastering
Node1
Node2
Instance1
Instance2
Instance3
masters granted
masters granted
masters granted
R1
R2
1, 2, 3
1, 3
Node1
R3
R4
2, 3
1, 2
Node2
R5
R6
2
1, 2, 3
Node3
Instance1
Instance2
Instance3
masters granted
masters granted
masters granted
R1
R2
R3
I - 20
Node3
1, 3
1, 3
3
R3
R4
2, 3
1, 2
R5
R6
R4
1, 3
1
Node1
Instance1
Before
dynamic
remastering
Instance2
Read from
disk
Object
Node2
After
dynamic
remastering
Instance1
Instance2
Node1
I - 21
Cluster
Node1
Instance1
GV$INSTANCE
V$INSTANCE
I - 22
Noden
Instancen
V$INSTANCE
UPDATE
UPDATE
Node1
Node2
Node1
Node2
Instance1
Instance2
Instance1
Instance2
No block-level
lock
COMMIT
UPDATE
Node1
Node2
Node1
Node2
Instance1
Instance2
Instance1
Instance2
3
I - 24
Node 1
Node 2
Node 3
Node 4
Execution
coordinator
Shared disks
I - 25
Parallel
execution
server
Node1
Instance1
Instancen
Cache
Cache
Global
resources
LMON
LMD0
LMSx
LCK0
DIAG
Oracle Clusterware
CRSD & RACGIMON
EVMD
Cluster
interface
I - 26
Noden
LMON
LMD0
LMSx
LCK0
DIAG
Oracle Clusterware
CRSD & RACGIMON
EVMD
OCSSD & OPROCD
Global
management:
SRVCTL, DBCA, EM
Applications
ASM, DB, Services, OCR
VIP, ONS, EMD, Listener
Noden
Instance1
Node1
Noden
Instancen
Instance1
CRS_HOME
ORACLE_HOME
ASM_HOME
CRS_HOME
ORACLE_HOME
ASM_HOME
CRS_HOME
CRS_HOME
Local storage
Local storage
Local storage
Local storage
Instancen
Voting files
Voting files
OCR files
OCR files
Shared storage
ORACLE_HOME
ASM_HOME
Shared storage
Node1
Instance1
Archived
log files
Archived
log files
Local storage
Undo tablespace
files for
instance1
Online
redo log files
for instance1
Local storage
Data files
Temp files
Control files
Flash recovery area files
Change tracking file
SPFILE
TDE Wallet
Shared storage
I - 28
Noden
Instancen
Undo tablespace
files for
instancen
Online
redo log files
for instancen
I - 29
I - 31
I - 32
CFS or Raw?
Using CFS:
Simpler management
Use of OMF with RAC
Single Oracle software installation
Autoextend
Using raw:
I - 33
Performance
Use when CFS not available
Cannot be used for archivelog files
ASM eases work
RAC
Linux
Windows
RAC
Linux
Windows
ASM
OCFS
RAW
RAC
AIX, HP-UX, Solaris
ASM
Proprietary
Proprietary
OS C/W
RAW CFS
OS CVM
1.
2.
3.
4.
5.
I - 35
Listeners
Connection load balancing
RAC instances
ERP
ERP
CRM
CRM
Backup
Priority
Alerts
Tuning
ERP
ERP
CRM
CRM
Oracle Clusterware
Up/down/LBA events notification engine
Restart failed components
I - 36
CRM
ERP
Available Demonstrations
http://www.oracle.com/technology/obe/demos/admin/demos.html
I - 37