SlideShare ist ein Scribd-Unternehmen logo
1 von 55
Downloaden Sie, um offline zu lesen
Oracle Data Guard for BeginnersProduct Manager for Database Tools
April 23rd , 2018
Pini Dibask
IOUG
Collaborate
2018
Confidential2
• Pini Dibask, Product Manager for Database Tools, Quest Software
• Oracle ACE
• Oracle Certified Professional DBA (OCP)
• Public Speaker: Oracle OpenWorld, IOUG Collaborate, DOAG, OUGN, AOUG
• Blogger: OracleDBPro.BlogSpot.com
Pini.Dibask@Quest.com
http://Linkedin.com/in/pinidibask
@pini_dibask
About the Speaker
Confidential3
Who is Quest Software?
9 0 % o f
F o r t u n e 1 0 0
using our
software
1 , 5 0 0
engineers building
quality products
4 M
c o m m u n i t y
m e m b e r s
sharing best practices
3 , 5 0 0
employees focused
on customers
Quest is a global software provider trusted by
100,000 customers and 6,000 partners in 100
countries.
We help IT organizations spend less time on
administration and more time on innovation.
6 , 0 0 0
partners selling
our software
Confidential4
• Toad database development &
management tools
• Foglight & Spotlight database
performance monitoring
solutions
• SharePlex for heterogeneous
database replication
Quest Database Management Solutions
Confidential5
Agenda
• HA & DR Basic Concepts
• High-Level Overview of Oracle Data Guard
• Types, Modes, and Options
• Data Guard Limitations
• Monitoring
• New Features
HA and DR
Basic Concepts01
Confidential7
 Ensuring high level of SLA (Service Level Agreement)
 Enforcing the organization’s Data Protection policy
 RPO (Recovery Point Objective)
 RTO (Recovery Time Objective)
RPO RTO
Disaster OccursRestore Point Up and Running
Maximum amount of data a
business can allow itself to lose
Maximum amount of downtime
a business can incur until the
system is up and running again
16:3016:00 17:00
Recovery Service Objectives
Confidential8
Oracle Database HA & DR Solutions
Server Failures
Storage Failures
Site Failures
Corrupted Files
Missing Files
Human Errors
RAC & RAC One Node
Failover Clusters
ASM Normal Redundancy
ASM High Redundancy
Oracle Golden Gate
RMAN
User Managed Backups
Flashback Features
In which types of
failures Data Guard
can help?
Overview of Oracle
Data Guard
02
Confidential10
What is Oracle Data Guard (High Level)?
Primary
database
Standby
database
Database Database copy
Redo transport
OracleNet
Confidential11
Why Use Oracle Data Guard?
 Complete data protection against corruption and data loss
 Continuous service during disasters or crippling data failures
 Efficient use of system resources
 Flexible configuration to meet business requirements
 Centralized management
 Integration with Oracle Database
Data Guard Types,
Modes and Options
03
Confidential13
Standby Database Types
 Physical Standby Database
o Identical to the primary on a block-by-block basis (redo apply)
 Logical Standby Database
o Not identical at the block level (SQL Apply)
 Snapshot Standby Database
o Fully read/write standby database
o Created by converting a physical standby database
Confidential14
Physical Standby – Redo Apply Architecture
Production
database
Physical standby
database
Redo
apply
Redo
stream
Redo
transport
Backup
Physical standby
database
Primary
database
Confidential15
Logical Standby – SQL Apply Architecture
Primary
database
Redo transport
Transform redo
information into
SQL
SQL
Apply
Reports
Production
database
Logical standby
database
Logical standby
database
Confidential16
Standby Database Types
Parameter Physical Standby Logical Standby
Methodology Identical to primary on a
block-by-block basis
Shares same logical information
How it works? Redo Apply SQL Apply
Can be used for reporting? With extra licensing Yes (open read-write mode)
Fast incremental backups via
change tracking
Yes No
Performance Best - redo apply Doesn’t bypass SQL code layers
Support all Data Types? Yes No
Confidential17
Active Data Guard
 Introduced in Oracle Database 11g
 Receives and applies redo while standby is open for read-only access
 Enables physical standby to be used for both protection and reporting
 Automatic corruption repair
 Option for Oracle Enterprise Edition
Confidential18
Snapshot Standby Databases
 Fully updatable (read/write) standby database
 Can be used for testing purposes
 Created by converting a physical standby database
 Receives redo from the primary database, but does not apply the redo
 When testing is finished, can be converted by using flashback database
Confidential19
Types of Data Guard Services
Redo Transport Services
oControls the automated transmittal of redo from primary to standby
Apply Services
oRedo Apply
oSQL Apply
Role Management Services
oChanges primary & standby roles due to planned or unplanned transition
Confidential20
Applying Services Configurations
 Real-Time Apply
 By default, apply services wait for redo log to be archived before applying
 It’s possible to apply redo immediately via standby redo logs
 Specifying Time Delay
 Option to create a time lag
 Specified in minutes
 Protects against undesired DMLs/DDLs
Confidential21
Oracle Data Guard Architecture
Primary database
transactions
MRP or
LSP
Standby
database
Archived redo
logs
Backup
Online
redo
logs
ARC0
RFS
Archived redo
logs
ARC0 Reports
Standby
redo logs
Oraclenet
LNSn
(Real-time
apply)
LGWR
Redo
buffer
Gap resolution
Confidential22
Primary Database Processes
Primary database
transactions
MRP or
LSP
Standby
database
Archived redo
logs
Backup
Online
redo
logs
ARC0
RFS
Archived redo
logs
ARC0 Reports
Standby
redo logs
Oraclenet
LNSn
(Real-time
apply)
LGWR
Redo
buffer
Gap resolution
Confidential23
Standby Database Processes
Primary database
transactions
MRP or
LSP
Standby
database
Archived redo
logs
Backup
Online
redo
logs
ARC0
RFS
Archived redo
logs
ARC0 Reports
Standby
redo logs
Oraclenet
LNSn
(Real-time
apply)
LGWR
Redo
buffer
Gap resolution
Confidential24
 Switchover
oPlanned role reversal
oUsed for OS or hardware maintenance
 Failover
oUnplanned role reversal
oEmergency use
oZero or minimal data loss (depending on choice of data protection mode)
oCan be initiated automatically when fast-start failover is enabled
Role Transitions
Confidential25
Switchover : Before
Standby
database
Read/write
transactions
Primary
database
San Francisco
Boston
Oracle Net
Application
Application
Read-only
reports
Confidential26
Switchover : After
Standby
database
Read/write
transactions
Primary
database
Application
Application
Read-only
reports
San Francisco
Boston
Oracle Net
Confidential27
Failover
Standby
database becomes
primary database.
Read/write
transactions
Online redo
logs
Local
archiving
San Francisco
Boston
Archived redo
logs
Application
Online Redo
Logs
Local
Archiving
Archived redo
logs
Primary database
Confidential28
Types of Failover
 Manual failover: Invoked by the DBA
o Complete: Minimize data loss by applying all available redo on the standby database
o Immediate: No additional data is applied on the standby database
 Fast-start failover: Invoked automatically by the Data Guard broker
 Uses observer - separate client side component
 Monitors fast-start failover environments
Confidential29
Oracle Observer
Confidential30
Failover Considerations
 Failover should be used only in an emergency
 Old primary database will no longer be a part of the configuration
 Possible data loss - depends on the data protection mode
 When choosing standby to failover, use the most current
Confidential31
Data Protection Modes
 Maximum Performance (Default)
o Transaction commits as soon as redo written to the local redo log (ASYNC)
o Data Loss: Possible
 Maximum Protection
o Transaction commits only when redo written to at least one standby redo log (SYNC)
o If no acknowledge from standby, Oracle shuts down primary database
o Data Loss: Not Possible
 Maximum Availability
o Highest level of data protection without compromising the availability of the primary database
o If primary cannot write redo to at least one standby, it operates as in maximum performance
o Data Loss: Possible
Confidential32
Data Protection Modes - Summary
Mode Risk of data loss Transport If no acknowledge from standby
Maximum
Protection
Zero Data Loss SYNC Stall primary until acknowledgement
received from standby
Maximum
Availability
Possible Data
Loss
SYNC Stall primary until acknowledgement
received from standby or timeout
threshold expires
Maximum
Performance
Possible Data
Loss
ASYNC Primary never waits for acknowledge
Confidential33
Data Protection Modes - Key Considerations
 Maximum Performance = compromise on protection
 Maximum Protection = compromise on performance (usually)
 Better to use at least 2 standby databases when running maximum protection
 NET_TIMEOUT parameter of LOG_ARCHIVE_DEST_n=30 seconds (default)
 How to address the trade-off between Protection and Performance?
Confidential34
FAR Sync - 12c Feature
Far Sync
Primary Remote
Standby
ASYNC - Alternate
Confidential35
FAR Sync - 12c Feature
Redo
Far Sync
ASYNC
25ms
SYNCPrimary Standby
 Great for long-distance replication if data loss in not acceptable
 Lightweight and easy to deploy
 Requires Active Data Guard option
Data Guard Broker04
Confidential37
Data Guard Broker Overview
 Distributed Data Guard management framework
 Automates the creation and maintenance of Data Guard environments
 Performs all management operations locally or remotely:
o DGMGRL (command-line interface)
o Oracle Enterprise Manager
Confidential38
Data Guard Broker Architecture
Primary site
Standby site 9
Standby site 2
Graphical user interface
or
command-line interface
DMON
Archived
redo logs
Online
redo logs
Standby site 1
Oracle
Net Standby
redo logs
Archived
redo logs
Log
apply
services
Data Guard Configuration
Log
transport
services
Primary
database
DMON
Configuration
files
Configuration
files Standby
database
Standby
redo logs
Online
redo logs
 Client Side
o DGMGRL
o OEM
 Server Side
o DMON process
o Configuration files
Confidential39
Configuration Management With vs. Without Data Guard Broker
Parameter With Broker Without Broker
General Manage Databases as
one
Manage Databases separately
Creation of the standby database Intuitive via OEM Manual process
Configuration & Management Configure and manage
from a single interface
Each database separately
Control role transitions Invoke role transition
with a single command
Coordinate sequences of multiple
commands across database sites
Data Guard
Limitations05
Confidential41
Data Guard will NOT be the right choice when…
 Replica database must be open read-write while synchronizing with the primary
 Active data guard is open read-only, not read-write
 Logical standby is open read-write, but target tables are available only for read-only operations
 Replication from recent to older Oracle release (for example - 12c to 11g)
o Compatible parameter must be set the to the same value on physical standby
o When using logical standby, compatible can have a lower value in the primary database
 Multi-master and bi-directional replication
 Cross-platform which are not supported by DataGuard (e.g. cross-endian replication)
 Oracle to Non-Oracle replication
 Non-Enterprise edition Databases
Consider alternatives when Data Guard does not fit
Flexible, industrial
strength replication
Half the total cost
of Oracle$ Unrivaled, award
winning support
Data Guard
Monitoring06
Confidential44
Data Guard Monitoring via Dictionary Views
V$DATABASE - Displays general data guard information
Primary
Confidential45
Data Guard Monitoring via Dictionary Views
V$DATABASE - Displays general data guard information Physical
Standby
Confidential46
Data Guard Monitoring via Dictionary Views
V$ARCHIVE_DEST - View standby destination status
Confidential47
Data Guard Monitoring via Dictionary Views
V$ARCHIVED_LOG - Archived redo logs that have been applied
Confidential48
Data Guard Monitoring with Tools
Confidential49
Data Guard Monitoring with Tools
Confidential50
Data Guard Monitoring with Tools
Confidential51
Additional Data Guard New Features
 Fast sync
 Multi-instance redo apply
 AWR Support for Standby Database
Confidential52
Data Guard Summary
 Powerful and simple HA & DR solution
 Active Data Guard is my favorite option (requires a special license)
 Choose the right protection mode according to the business SLAs
 Use Data Guard Broker
 Be aware of Data Guard limitations
 Don’t forget to monitor…
Confidential53
Quest provides your team with the tools to cover all of your
database platforms…
* Platform support varies from tool to tool
Questions?
Thank you

Weitere ähnliche Inhalte

Was ist angesagt?

Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
Yogiji Creations
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
Manoj Kumar
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
Satishbabu Gunukula
 

Was ist angesagt? (20)

Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdfOracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
Oracle_Multitenant_19c_-_All_About_Pluggable_D.pdf
 
Performance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and UnderscoresPerformance Stability, Tips and Tricks and Underscores
Performance Stability, Tips and Tricks and Underscores
 
Backup & recovery with rman
Backup & recovery with rmanBackup & recovery with rman
Backup & recovery with rman
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Oracle RAC 12c Overview
Oracle RAC 12c OverviewOracle RAC 12c Overview
Oracle RAC 12c Overview
 
Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
Oracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLONOracle RAC 19c and Later - Best Practices #OOWLON
Oracle RAC 19c and Later - Best Practices #OOWLON
 
Oracle backup and recovery
Oracle backup and recoveryOracle backup and recovery
Oracle backup and recovery
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
 
Oracle Extended Clusters for Oracle RAC
Oracle Extended Clusters for Oracle RACOracle Extended Clusters for Oracle RAC
Oracle Extended Clusters for Oracle RAC
 
Maximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19cMaximum Availability Architecture - Best Practices for Oracle Database 19c
Maximum Availability Architecture - Best Practices for Oracle Database 19c
 
Zero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャ
Zero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャZero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャ
Zero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャ
 
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RACThe Top 5 Reasons to Deploy Your Applications on Oracle RAC
The Top 5 Reasons to Deploy Your Applications on Oracle RAC
 
Standard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & HowStandard Edition High Availability (SEHA) - The Why, What & How
Standard Edition High Availability (SEHA) - The Why, What & How
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
 

Ähnlich wie Oracle Data Guard for Beginners

Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
mabessisindu
 
4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...
Dr. Wilfred Lin (Ph.D.)
 

Ähnlich wie Oracle Data Guard for Beginners (20)

High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
 
Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Why oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19cWhy oracle data guard new features in oracle 18c, 19c
Why oracle data guard new features in oracle 18c, 19c
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)
Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)
Oracle databáze - zkonsolidovat, ochránit a ještě ušetřit! (2. část)
 
Data guard oracle
Data guard oracleData guard oracle
Data guard oracle
 
Tendencias Storage
Tendencias StorageTendencias Storage
Tendencias Storage
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
dgintro (1).ppt
dgintro (1).pptdgintro (1).ppt
dgintro (1).ppt
 
Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
 
C7 engineered data_protection_for_oracle_databases
C7 engineered data_protection_for_oracle_databasesC7 engineered data_protection_for_oracle_databases
C7 engineered data_protection_for_oracle_databases
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
 
OVHcloud – Enterprise Cloud Databases
OVHcloud – Enterprise Cloud DatabasesOVHcloud – Enterprise Cloud Databases
OVHcloud – Enterprise Cloud Databases
 
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
 
4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...4 facing explosive data growth five ways to optimize storage for oracle datab...
4 facing explosive data growth five ways to optimize storage for oracle datab...
 

Mehr von Pini Dibask

Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
Pini Dibask
 
Database Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitectureDatabase Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant Architecture
Pini Dibask
 

Mehr von Pini Dibask (18)

Winning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editionsWinning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editions
 
Winning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editionsWinning performance challenges in oracle standard editions
Winning performance challenges in oracle standard editions
 
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
IOUG Collaborate 18 - Get the Oracle Performance Diagnostics Capabilities You...
 
IOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - Data Guard for BeginnersIOUG Collaborate 18 - Data Guard for Beginners
IOUG Collaborate 18 - Data Guard for Beginners
 
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best PracticesIOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
IOUG Collaborate 18 - ASM Concepts, Architecture and Best Practices
 
RMOUG 18 - Oracle Database Locking Mechanism Demystified
RMOUG 18 - Oracle Database Locking Mechanism DemystifiedRMOUG 18 - Oracle Database Locking Mechanism Demystified
RMOUG 18 - Oracle Database Locking Mechanism Demystified
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle Multitenant
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecture
 
Oracle database locking mechanism demystified (AOUG)
Oracle database locking mechanism demystified (AOUG)Oracle database locking mechanism demystified (AOUG)
Oracle database locking mechanism demystified (AOUG)
 
OUGN winning performnace challenges in oracle Multitenant
OUGN   winning performnace challenges in oracle MultitenantOUGN   winning performnace challenges in oracle Multitenant
OUGN winning performnace challenges in oracle Multitenant
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...
 
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
Pini Dibask - Oracle Database Locking Mechanism Demystified (Presentation)
 
DOAG - Oracle Database Locking Mechanism Demystified
DOAG - Oracle Database Locking Mechanism Demystified DOAG - Oracle Database Locking Mechanism Demystified
DOAG - Oracle Database Locking Mechanism Demystified
 
Database Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitectureDatabase Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant Architecture
 
Database Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantDatabase Consolidation using Oracle Multitenant
Database Consolidation using Oracle Multitenant
 
Ensuring Data Protection Using Oracle Flashback Features - Presentation
Ensuring Data Protection Using Oracle Flashback Features - PresentationEnsuring Data Protection Using Oracle Flashback Features - Presentation
Ensuring Data Protection Using Oracle Flashback Features - Presentation
 
Best New Features of Oracle Database 12c
Best New Features of Oracle Database 12cBest New Features of Oracle Database 12c
Best New Features of Oracle Database 12c
 
Ensuring Data Protection Using Oracle Flashback Features
Ensuring Data Protection Using Oracle Flashback FeaturesEnsuring Data Protection Using Oracle Flashback Features
Ensuring Data Protection Using Oracle Flashback Features
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Kürzlich hochgeladen (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Oracle Data Guard for Beginners

  • 1. Oracle Data Guard for BeginnersProduct Manager for Database Tools April 23rd , 2018 Pini Dibask IOUG Collaborate 2018
  • 2. Confidential2 • Pini Dibask, Product Manager for Database Tools, Quest Software • Oracle ACE • Oracle Certified Professional DBA (OCP) • Public Speaker: Oracle OpenWorld, IOUG Collaborate, DOAG, OUGN, AOUG • Blogger: OracleDBPro.BlogSpot.com Pini.Dibask@Quest.com http://Linkedin.com/in/pinidibask @pini_dibask About the Speaker
  • 3. Confidential3 Who is Quest Software? 9 0 % o f F o r t u n e 1 0 0 using our software 1 , 5 0 0 engineers building quality products 4 M c o m m u n i t y m e m b e r s sharing best practices 3 , 5 0 0 employees focused on customers Quest is a global software provider trusted by 100,000 customers and 6,000 partners in 100 countries. We help IT organizations spend less time on administration and more time on innovation. 6 , 0 0 0 partners selling our software
  • 4. Confidential4 • Toad database development & management tools • Foglight & Spotlight database performance monitoring solutions • SharePlex for heterogeneous database replication Quest Database Management Solutions
  • 5. Confidential5 Agenda • HA & DR Basic Concepts • High-Level Overview of Oracle Data Guard • Types, Modes, and Options • Data Guard Limitations • Monitoring • New Features
  • 6. HA and DR Basic Concepts01
  • 7. Confidential7  Ensuring high level of SLA (Service Level Agreement)  Enforcing the organization’s Data Protection policy  RPO (Recovery Point Objective)  RTO (Recovery Time Objective) RPO RTO Disaster OccursRestore Point Up and Running Maximum amount of data a business can allow itself to lose Maximum amount of downtime a business can incur until the system is up and running again 16:3016:00 17:00 Recovery Service Objectives
  • 8. Confidential8 Oracle Database HA & DR Solutions Server Failures Storage Failures Site Failures Corrupted Files Missing Files Human Errors RAC & RAC One Node Failover Clusters ASM Normal Redundancy ASM High Redundancy Oracle Golden Gate RMAN User Managed Backups Flashback Features In which types of failures Data Guard can help?
  • 10. Confidential10 What is Oracle Data Guard (High Level)? Primary database Standby database Database Database copy Redo transport OracleNet
  • 11. Confidential11 Why Use Oracle Data Guard?  Complete data protection against corruption and data loss  Continuous service during disasters or crippling data failures  Efficient use of system resources  Flexible configuration to meet business requirements  Centralized management  Integration with Oracle Database
  • 12. Data Guard Types, Modes and Options 03
  • 13. Confidential13 Standby Database Types  Physical Standby Database o Identical to the primary on a block-by-block basis (redo apply)  Logical Standby Database o Not identical at the block level (SQL Apply)  Snapshot Standby Database o Fully read/write standby database o Created by converting a physical standby database
  • 14. Confidential14 Physical Standby – Redo Apply Architecture Production database Physical standby database Redo apply Redo stream Redo transport Backup Physical standby database Primary database
  • 15. Confidential15 Logical Standby – SQL Apply Architecture Primary database Redo transport Transform redo information into SQL SQL Apply Reports Production database Logical standby database Logical standby database
  • 16. Confidential16 Standby Database Types Parameter Physical Standby Logical Standby Methodology Identical to primary on a block-by-block basis Shares same logical information How it works? Redo Apply SQL Apply Can be used for reporting? With extra licensing Yes (open read-write mode) Fast incremental backups via change tracking Yes No Performance Best - redo apply Doesn’t bypass SQL code layers Support all Data Types? Yes No
  • 17. Confidential17 Active Data Guard  Introduced in Oracle Database 11g  Receives and applies redo while standby is open for read-only access  Enables physical standby to be used for both protection and reporting  Automatic corruption repair  Option for Oracle Enterprise Edition
  • 18. Confidential18 Snapshot Standby Databases  Fully updatable (read/write) standby database  Can be used for testing purposes  Created by converting a physical standby database  Receives redo from the primary database, but does not apply the redo  When testing is finished, can be converted by using flashback database
  • 19. Confidential19 Types of Data Guard Services Redo Transport Services oControls the automated transmittal of redo from primary to standby Apply Services oRedo Apply oSQL Apply Role Management Services oChanges primary & standby roles due to planned or unplanned transition
  • 20. Confidential20 Applying Services Configurations  Real-Time Apply  By default, apply services wait for redo log to be archived before applying  It’s possible to apply redo immediately via standby redo logs  Specifying Time Delay  Option to create a time lag  Specified in minutes  Protects against undesired DMLs/DDLs
  • 21. Confidential21 Oracle Data Guard Architecture Primary database transactions MRP or LSP Standby database Archived redo logs Backup Online redo logs ARC0 RFS Archived redo logs ARC0 Reports Standby redo logs Oraclenet LNSn (Real-time apply) LGWR Redo buffer Gap resolution
  • 22. Confidential22 Primary Database Processes Primary database transactions MRP or LSP Standby database Archived redo logs Backup Online redo logs ARC0 RFS Archived redo logs ARC0 Reports Standby redo logs Oraclenet LNSn (Real-time apply) LGWR Redo buffer Gap resolution
  • 23. Confidential23 Standby Database Processes Primary database transactions MRP or LSP Standby database Archived redo logs Backup Online redo logs ARC0 RFS Archived redo logs ARC0 Reports Standby redo logs Oraclenet LNSn (Real-time apply) LGWR Redo buffer Gap resolution
  • 24. Confidential24  Switchover oPlanned role reversal oUsed for OS or hardware maintenance  Failover oUnplanned role reversal oEmergency use oZero or minimal data loss (depending on choice of data protection mode) oCan be initiated automatically when fast-start failover is enabled Role Transitions
  • 25. Confidential25 Switchover : Before Standby database Read/write transactions Primary database San Francisco Boston Oracle Net Application Application Read-only reports
  • 27. Confidential27 Failover Standby database becomes primary database. Read/write transactions Online redo logs Local archiving San Francisco Boston Archived redo logs Application Online Redo Logs Local Archiving Archived redo logs Primary database
  • 28. Confidential28 Types of Failover  Manual failover: Invoked by the DBA o Complete: Minimize data loss by applying all available redo on the standby database o Immediate: No additional data is applied on the standby database  Fast-start failover: Invoked automatically by the Data Guard broker  Uses observer - separate client side component  Monitors fast-start failover environments
  • 30. Confidential30 Failover Considerations  Failover should be used only in an emergency  Old primary database will no longer be a part of the configuration  Possible data loss - depends on the data protection mode  When choosing standby to failover, use the most current
  • 31. Confidential31 Data Protection Modes  Maximum Performance (Default) o Transaction commits as soon as redo written to the local redo log (ASYNC) o Data Loss: Possible  Maximum Protection o Transaction commits only when redo written to at least one standby redo log (SYNC) o If no acknowledge from standby, Oracle shuts down primary database o Data Loss: Not Possible  Maximum Availability o Highest level of data protection without compromising the availability of the primary database o If primary cannot write redo to at least one standby, it operates as in maximum performance o Data Loss: Possible
  • 32. Confidential32 Data Protection Modes - Summary Mode Risk of data loss Transport If no acknowledge from standby Maximum Protection Zero Data Loss SYNC Stall primary until acknowledgement received from standby Maximum Availability Possible Data Loss SYNC Stall primary until acknowledgement received from standby or timeout threshold expires Maximum Performance Possible Data Loss ASYNC Primary never waits for acknowledge
  • 33. Confidential33 Data Protection Modes - Key Considerations  Maximum Performance = compromise on protection  Maximum Protection = compromise on performance (usually)  Better to use at least 2 standby databases when running maximum protection  NET_TIMEOUT parameter of LOG_ARCHIVE_DEST_n=30 seconds (default)  How to address the trade-off between Protection and Performance?
  • 34. Confidential34 FAR Sync - 12c Feature Far Sync Primary Remote Standby ASYNC - Alternate
  • 35. Confidential35 FAR Sync - 12c Feature Redo Far Sync ASYNC 25ms SYNCPrimary Standby  Great for long-distance replication if data loss in not acceptable  Lightweight and easy to deploy  Requires Active Data Guard option
  • 37. Confidential37 Data Guard Broker Overview  Distributed Data Guard management framework  Automates the creation and maintenance of Data Guard environments  Performs all management operations locally or remotely: o DGMGRL (command-line interface) o Oracle Enterprise Manager
  • 38. Confidential38 Data Guard Broker Architecture Primary site Standby site 9 Standby site 2 Graphical user interface or command-line interface DMON Archived redo logs Online redo logs Standby site 1 Oracle Net Standby redo logs Archived redo logs Log apply services Data Guard Configuration Log transport services Primary database DMON Configuration files Configuration files Standby database Standby redo logs Online redo logs  Client Side o DGMGRL o OEM  Server Side o DMON process o Configuration files
  • 39. Confidential39 Configuration Management With vs. Without Data Guard Broker Parameter With Broker Without Broker General Manage Databases as one Manage Databases separately Creation of the standby database Intuitive via OEM Manual process Configuration & Management Configure and manage from a single interface Each database separately Control role transitions Invoke role transition with a single command Coordinate sequences of multiple commands across database sites
  • 41. Confidential41 Data Guard will NOT be the right choice when…  Replica database must be open read-write while synchronizing with the primary  Active data guard is open read-only, not read-write  Logical standby is open read-write, but target tables are available only for read-only operations  Replication from recent to older Oracle release (for example - 12c to 11g) o Compatible parameter must be set the to the same value on physical standby o When using logical standby, compatible can have a lower value in the primary database  Multi-master and bi-directional replication  Cross-platform which are not supported by DataGuard (e.g. cross-endian replication)  Oracle to Non-Oracle replication  Non-Enterprise edition Databases
  • 42. Consider alternatives when Data Guard does not fit Flexible, industrial strength replication Half the total cost of Oracle$ Unrivaled, award winning support
  • 44. Confidential44 Data Guard Monitoring via Dictionary Views V$DATABASE - Displays general data guard information Primary
  • 45. Confidential45 Data Guard Monitoring via Dictionary Views V$DATABASE - Displays general data guard information Physical Standby
  • 46. Confidential46 Data Guard Monitoring via Dictionary Views V$ARCHIVE_DEST - View standby destination status
  • 47. Confidential47 Data Guard Monitoring via Dictionary Views V$ARCHIVED_LOG - Archived redo logs that have been applied
  • 51. Confidential51 Additional Data Guard New Features  Fast sync  Multi-instance redo apply  AWR Support for Standby Database
  • 52. Confidential52 Data Guard Summary  Powerful and simple HA & DR solution  Active Data Guard is my favorite option (requires a special license)  Choose the right protection mode according to the business SLAs  Use Data Guard Broker  Be aware of Data Guard limitations  Don’t forget to monitor…
  • 53. Confidential53 Quest provides your team with the tools to cover all of your database platforms… * Platform support varies from tool to tool