Twee remedies tegen systeemuitval en datacorruptie [RAC en Data Guard] SPREKER : E-MAIL : DATUM : Jos van den Oord Jos.van.den.Oord@transfer-solutions.com 14 oktober 2010 WWW.TRANSFER-SOLUTIONS.COM
Inleiding: Twee remedies tegen systeemuitval en datacorruptie Data Guard (DG) DG Structuur DG Proces Architectuur DG Concept Real Application Clusters (RAC) RAC Structuur RAC Proces Architectuur RAC Concept RAC en Data Guard Complementaire HA/DR overzicht COPYRIGHT TRANSFER SOLUTIONS B.V. 2
Data Guard Primary Site Standby Site Switch Primary Data Guard Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 4
Data Guard (san nas) Primary Site Standby Site Data Guard Switch Primary Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 5
Data Guard HBA s Primary Site Standby Site Data Guard Switch Primary Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 6
Data Guard Nodes Primary Site Standby Site Switch Primary Data Guard Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 7
Data Guard Redo Log Apply Primary Site Standby Site Data Guard Switch Primary Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 8
Data Guard Monitor en Primary Site Standby Site Data Guard Switch Primary Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 9
Data Guard Load Balance TAF - role Primary Site Standby Site Data Guard Switch Primary Physical or Logical Standby COPYRIGHT TRANSFER SOLUTIONS B.V. 10
Data Guard Proces Architectuur Transactions Oracle Net (Active) Standby Redo Buffer SGA SYNC ASYNC LNS RFS MRP LSP Primary Online Redo Logs LGWR Standby Redo Logs ARCH ping Archive logs voor oplossen log file gap RFS ARCH Queries Reports Testing Backups Archived Redo Logs COPYRIGHT TRANSFER SOLUTIONS B.V. 11
Data Guard Concept Redo transport Protection mode Data Guard Mode Risk of data loss Redo Transport Bij geen bevestiging van de standby: Maximum Performance Potential for Minimal Data Loss ASYNC Primaire DB wacht nooit op een bevestiging van de standby. Maximum Availability Zero Data Loss Single Failure Protection SYNC Primaire DB wacht op bevestiging van de standby DB of op een gedefineerde netwerk timeout Maximum Protection Zero Data Loss Double Failure Protection SYNC Primaire DB wacht op bevestiging van de standby DB. COPYRIGHT TRANSFER SOLUTIONS B.V. 12
Data Guard Concept Physical standby Logical Standby Active Data Guard (Read Farm) Data Guard Snapshot Standby Rolling Upgrades Switchover en Failover COPYRIGHT TRANSFER SOLUTIONS B.V. 13
Real Application Cluster High Speed Switch or Interconnect Interconnect Cluster Shared cache Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 15
Real Application Cluster Shared disks (san, nas) High Speed Switch of Interconnect Interconnect Cluster Shared cache Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 16
Real Application Cluster HBA s High Speed Switch of Interconnect Interconnect Cluster Shared cache Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 17
Real Application Cluster Nodes High Speed Switch of Interconnect Interconnect Cluster Shared cache Hub or Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 18
Real Application Cluster Shared Cache High Speed Switch of Interconnect Interconnect Cluster Shared cache Hub or Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 19
Real Application Cluster High Speed Switch High Speed Switch of Interconnect Interconnect Cluster Shared cache Hub or Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 20
Real Application Cluster Monitor en High Speed Switch of Interconnect Interconnect Cluster Shared cache Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 21
Real Application Cluster Load balance TAF High Speed Switch of Interconnect Interconnect Cluster Shared cache Hub or Switch Storage area network COPYRIGHT TRANSFER SOLUTIONS B.V. 22
RAC 11gR2 Proces Architectuur Cluster VIP VIP s Node 1 Node n SCAN listener SCAN listener Listener Instance 1 ASM 1 Oracle Clusterware Operating System interconnect Listener Instance n ASM n Oracle Clusterware Operating System Managed by ASM Redo / Archive log All Instances / control files OCR / Voting disks ACFS COPYRIGHT TRANSFER SOLUTIONS B.V. 23
RAC 11gR2 Concept Schaalbaarheid Cluster Node 1 Node n SGA SGA Cache Fusion BGP BGP BGP BGP Managed by ASM Redo / Archive log All Instances / control files OCR / Voting disks ACFS COPYRIGHT TRANSFER SOLUTIONS B.V. 24
RAC 11g Concept Schaalbaarheid Nodes Load balancing Consolidatie COPYRIGHT TRANSFER SOLUTIONS B.V. 25
RAC en Data Guard Complementaire Resource Nodes Instance Data Site Oorzaak Component fout Software fout Menselijke fout Omgevings fouten Protection RAC RAC Data Guard Data Guard COPYRIGHT TRANSFER SOLUTIONS B.V. 26
HA/DR overzicht Technologie HA/Standby Toepassing Installatie en Beheer Complexiteit Data Guard Physical Standby Data Guard Logical Standby Real Application Cluster Site failover Alleen lees acties en rapporten QA testing Backups Data corruptie Lees-schrijf acties voor rapporterende applicatie Replicatie naast een bestaande schema In een database. Data corruptie Load- Balancing Nodes Schaalbaarheid Nodes Node failover Nodes Activiteit DR 1 1 3 2 2 2 3 3 - COPYRIGHT TRANSFER SOLUTIONS B.V. 27
V r a g e n A n t w o o r d e n CONSULTING MANAGED SERVICES EDUCATION WWW.TRANSFER-SOLUTIONS.COM COPYRIGHT TRANSFER SOLUTIONS B.V. 28