SlideShare une entreprise Scribd logo
1  sur  41
Prepared By :
Vaibhav B. Borsaniya
FSFO
(Fast_Start
Failover)
Datagurad.
Types Of
Datagurad.
Protection
Modes.
FSFO With
Physical
Standby
Datagurad
Broker.
Observer
Process.
1 2 3 4 5 6 7
Introduction:
Business continuity and disaster recovery are top
priorities for the senior management of most
global enterprise. Economic fluctuations, rapid
changes in market trends, and competitive
pressures imply that the global enterprise of
today must operate in a 24x7 environment, and
must be able to swiftly and efficiently deal with
unforeseen business interruptions.
So, just what is Data Guard?
 Oracle’s disaster recovery solution for Oracle data
 Feature of Oracle Database Enterprise Edition
 Automates the creation and maintenance of one or more transactionally consistent
copies (standby) of the production (or primary) database
 If the primary database becomes unavailable (disasters, maintenance), a standby
database can be activated and assume the primary role
 “An application-transparent high-performance low-impact asymmetrical online reliable
Redo or SQL level background standby database transaction exchange utility capable of
reporting, switchover and Failover.”
 What?
Simply put…
 Data Guard helps you protect your Data.
 Takes your data and automatically puts it elsewhere
Makes it available for Failover in case of failure.
 The other capabilities are pure bonus.
 Switchover for Maintenance
 Reporting
 Off-loading Queries
 Backups
Oracle Data Guard Focus
Data Failures & Site Disasters:
– Data Protection
– Data Availability
– Data Recovery
Data is the core asset of
the enterprise!All 3 are important!
• Also addresses human errors & planned maintenances
Data Guard Overview
What data guard can be used for?
 System, hardware and cluster upgardes
 Migration to ASM ,RAC
 same platforms(windows/ Linux and some mixed DG support)
 Patchset or database upgrade
 Testing for development , upgrades
Why Data Guard?
1.Disaster Recovery & High Availability
 Easy failover/switchover between primary and standby databases
2. Complete data protection
 Enables zero data loss, safeguard against data corruptions
3. Efficient utilization of system resources
 Standby databases can be used for reporting, backups, queries
4. Balance data availability against performance
 Flexible data protection/synchronization modes
5. Automatic resynchronization after restoration of network connectivity
 Automatic archive gap detection and resolution with no manual intervention
6. Centralized and simple management
 Push-button graphical interface for management and monitoring
Unplanned(failover)
Site
Failure
Data
Corrup
tion
Planned(switchover)
Types Of Data Guard
1. Primary
Database
2. Standby
Databases
The 2 types of standby
databases
Physical
standby
database
Logical
standby
database
Primary Database
 A Data Guard configuration contains one production
database, also referred to as the primary database,
that functions in the primary role. This is the database
that is accessed by most of your applications.
 The primary database can be either a single-instance
Oracle database or an Oracle Real Application Clusters
database.
Standby Database
 A standby database is a transactionally consistent copy of the
primary database.
 Maintained automatically using redo data.
 Similar to a primary database, a standby database can be either a
single-instance Oracle database or an Oracle Real Application
Clusters database.
The three types of standby databases
Physical standby database
 Block-for-block identical with the primary
database.
 Synchronized with the primary database by
application of redo data
 Not open while redo is being applied.
 Can be opened temporarily for read-only.
 From 11g, can be left open read-only for
reporting .
 MUST NOT be opened read-write!.
 Logical standby database:
 Shares the same schema definition.
 Synchronized with the primary database by
transforming redo into SQL statements.
 Database is open while redo-SQL is being applied.
 May contain additional indexes and materialized
views to support reporting.
 Does NOT support all data types (eg. rowid,
nested table, varray, object type REF, XML type).
Data Guard Services
Log apply services:
 Redo Apply (Physical Standby)
 Recovers the redo data received from the primary database
and applies the redo to the physical standby database.
 SQL Apply (Logical Standby)
 Transforms the data in the redo received from the primary
database into SQL statements and then executes the SQL
statements on the standby database.
 Redo Transport Services:
 Control the automated transfer of redo data
from the production database to one or more
archival destinations.
 Configurable using ARCH or LGWR
 Used by Data Guard and Streams
 Role Transitions:
Change the role of a database from a standby database
to a primary database, or from a primary database to a
standby database using either a switchover or a failover
operation.
Switchover & Failover
 Oracle Data Guard offers two easy-to-use methods to handle
planned and unplanned outages of the production site. These
methods are called switchover and failover.
1. Switchover:
 A switchover is typically used to reduce primary database
downtime during planned outages, such as operating system or
hardware upgrades, or rolling upgrades of the Oracle database
software and patch sets.
 A switchover guarantees no data loss .
During a switchover, the primary database transitions to a
standby role, and the standby database transitions to the
primary role.
After a switchover, each database continues to participate
in the Data Guard configuration with its new role.
Data Guard Switchover
2. Failover:
 A failover is typically used only when the
primary database becomes unavailable,
and there is no possibility of restoring it to
service within a reasonable period of time.
 A failover is done when the primary
database fails or has become unreachable
and one of the standby databases is
transitioned to take over the primary role.
 Unplanned failover to standby database
 Original standby becomes new primary
 Original primary may need to be rebuilt
 Possible data loss
In short……
Data Guard Failover
Protection modes
 Data Guard protection modes are simply a set of rules.
 A protection mode is only set on the primary database.
 And also defines the way Oracle Data Guard will maximize a Data
Guard configuration for performance, availability, or protection in
order to achieve the maximum amount of allowed data loss that
can occur when the primary database or site fails.
 Each of the three modes provide a high degree of data protection
 A Data Guard configuration will always run in one of
the three protection modes listed below:
1. Maximum Protection
2.Maximum Availability
3.Maximum performance
Protection
Mode
Risk of Data Loss In the Event
of a Disaster
Redo Transport
Mechanism
Maximum
Protection
Maximum
Availability
Maximum
Performance
Zero data loss; Double failure
protection
Zero data loss; Single failure
protection
Minimal data loss – usually 0
to few seconds
LGWR SYNC
LGWR SYNC
LGWR ASYNC or ARCH
1. Maximum Protection
 Zero Data Loss!
 Highest Level of Protection
 Configuration: LGWR SYNC, SRLs
 Enforces protection of every transaction
 If last standby is unavailable, processing stops at primary
 Good for financial systems where no data loss is acceptable
 Primary database changes are not committed until it has been
confirmed that the data is available on at least one standby
database.
 If Oracle determines that the redo data cannot be transferred
from the primary server to the standby server, it will
automatically stop the primary database instance.
2.Maximum Availability
 Zero Data Loss as long as the network stays up!
 Enforces protection of every transaction
 Configuration: LGWR SYNC, do not need SRLs
 If last standby is unavailable, processing continues at primary
 When the standby becomes available again, synchronization with
the primary is automatic
 Primary database tolerates one transmission failure.
 minimal data loss,Similar to maximum protection mode.
 If the standby database becomes unavailable for any reason, the
protection mode is temporarily lowered to maximum performance
until the problem has been corrected.
 Like maximum protection mode, a transaction will not commit until
the redo needed to recover that transaction is written to the local
online redo log and to at least one remote standby redo log.
 Unlike maximum protection mode, the primary database does not
shut down if a fault prevents it from writing its redo stream to a
remote standby redo log.
 Instead , the primary database operates in maximum performance
mode until the fault is corrected and all gaps in redo log files are
resolved. When all gaps are resolved, the primary database
automatically resumes operating in maximum availability mode.
3.Maximum performance
 Highest level of performance
 Configuration: LGWR ASYNC, or ARCH
 Protects from failure of any single component
 Least impact on production system
 Useful for applications that can tolerate some data loss
 This is the default mode, we get the highest performance but the lowest protection.
 If all of the standby servers become unavailable, processing will continue on the
primary database.
 PRIMARY DATABASE ships directly from the primary log buffer to STANDBY
DATABASE.
 PRIMARY DATABASE's performance is at maximum, but there is no guarantee that a
small amount of data loss.
 Data loss depend on how well our network can handle the amount of redo and also
redo rate.
Active data guard
 Active Data Guard is 100% compatible with Data Guard functionality included
with Oracle Database 11g Enterprise Edition.
 Active Data Guard 11g Release 2 enables the automatic repair of corrupt blocks
transparent to the user and application.
 Block-level data loss usually results from intermittent, random I/O errors, as well
as memory corruptions that get written to disk. However, if the corruption occurs
on a primary database that has an Active Data Guard standby, block media
recovery is performed automatically, transparent to the application, using a good
copy of the block from the standby database.
 Conversely, bad blocks on the standby database are automatically repaird using
the good version from the primary database.
Functionality of active data guard
 Real-Time Query - offload read-only workloads to
an up-to-date standby database
 Automatic Block Repair - automatic repair of
physical corruption transparent to the user
 Far Sync - zero data loss protection across any
distance
 Standby Block Change Tracking - enable
incremental backups on an active standby
 Active Data Guard Rolling Upgrade - make it
simple to reduce planned downtime
 Global Database Services - load balancing and
service management across replicated databases.
 Application Continuity - make outages
transparent to users.
 Separately licensed option
 Updates applied to primary
 Changes can be read immediately on standby databases
 Standby database can be opened in read-only mode
 Redo can continue to be applied
Data guard broker
 The Data Guard broker is a distributed management framework
that automates the creation, maintenance, and monitoring of
Data Guard configurations.
 Introduced in Oracle 9.2
 Stable in Oracle 10.2 and above
 Managed using DGMGRL utility
 Contains Data Guard configuration
 Used by Enterprise Manager to manage standby
 Mandatory for some new functionality e.g.Fast Start Failover.
 You can use either the Oracle Enterprise Manager
graphical user interface (GUI) or the Data Guard
command-line interface (DGMGRL) .
 Manage and monitor Data Guard configurations
that contain Real Application Clusters primary or
standby databases.
Fast start failover
Oracle introduced the Fast-Start Failover (FSF) feature set
in Release 10gR2.
Failover is a one way process where your primary
database goes down due to some reasons and to get back
the production live without any data loss, you convert
your existing Physical
Standby database to start behaving as Primary database.
it has been installed on a separate server, the FSFO can
only be managed via the DGMGRL utility.
The Dataguard Broker Observer is used when fast start failover is
required. Fast start failover is simply an automatic failover to the
standby database.
The Observer is a component of the DGMGRL interface, which
monitors the availability of the primary database.
FSFO uses Flashback Database as part of the process of reinstating a
failed primary as a standby. It provides a way to quickly restore a
database to a previous point in time or SCN.
Dis advantage of data guard
 Same release of Oracle Database Enterprise Edition must be
installed on the primary database and all standby database in
a Data Guard configuration.
 Data Guard is not an extra cost option, but you do have to pay
for a full oracle license at the standby node.
 For standby database you need another oracle server, which
adds extra costs in company’s investment.
Thank You

Contenu connexe

Tendances

Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
Vimlendu 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
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
Satishbabu Gunukula
 
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
オラクルエンジニア通信
 

Tendances (20)

Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 
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
 
Oracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous DatabaseOracle RAC 19c - the Basis for the Autonomous Database
Oracle RAC 19c - the Basis for the Autonomous Database
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
 
Exadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13cExadata SMART Monitoring - OEM 13c
Exadata SMART Monitoring - OEM 13c
 
Oracle Data Guard for Beginners
Oracle Data Guard for BeginnersOracle Data Guard for Beginners
Oracle Data Guard for Beginners
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
Data guard oracle
Data guard oracleData guard oracle
Data guard oracle
 
AlwaysON Basics
AlwaysON BasicsAlwaysON Basics
AlwaysON Basics
 
Oracle 資料庫檔案介紹
Oracle 資料庫檔案介紹Oracle 資料庫檔案介紹
Oracle 資料庫檔案介紹
 
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)
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
Oracle Transparent Data Encryption (TDE) 12c
Oracle Transparent Data Encryption (TDE) 12cOracle Transparent Data Encryption (TDE) 12c
Oracle Transparent Data Encryption (TDE) 12c
 
Oracle管理藝術第1章 在Linux作業體統安裝Oracle 11g
Oracle管理藝術第1章 在Linux作業體統安裝Oracle 11gOracle管理藝術第1章 在Linux作業體統安裝Oracle 11g
Oracle管理藝術第1章 在Linux作業體統安裝Oracle 11g
 
Understand oracle real application cluster
Understand oracle real application clusterUnderstand oracle real application cluster
Understand oracle real application cluster
 
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
[Oracle DBA & Developer Day 2016] しばちょう先生の特別講義!!ストレージ管理のベストプラクティス ~ASMからExada...
 
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
Oracle Real Application Clusters 19c- Best Practices and Internals- EMEA Tour...
 
Zero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャ
Zero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャZero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャ
Zero Data Loss Recovery Applianceによるデータベース保護のアーキテクチャ
 
Understanding oracle rac internals part 1 - slides
Understanding oracle rac internals   part 1 - slidesUnderstanding oracle rac internals   part 1 - slides
Understanding oracle rac internals part 1 - slides
 

Similaire à Fast Start Failover DataGuard

Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
mabessisindu
 
Golden gate disaster recovery  tips
Golden gate disaster recovery  tipsGolden gate disaster recovery  tips
Golden gate disaster recovery  tips
kolleru
 
Configuring Oracle Enterprise Manager Cloud Control 12c for HA White Paper
Configuring Oracle Enterprise Manager Cloud Control 12c for HA White PaperConfiguring Oracle Enterprise Manager Cloud Control 12c for HA White Paper
Configuring Oracle Enterprise Manager Cloud Control 12c for HA White Paper
Leighton Nelson
 

Similaire à Fast Start Failover DataGuard (20)

Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
 
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
 
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
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to Z
 
Golden gate disaster recovery  tips
Golden gate disaster recovery  tipsGolden gate disaster recovery  tips
Golden gate disaster recovery  tips
 
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
Getting Most Out of Your Disaster Recovery Infrastructure Using Active Data G...
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
 
DataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineDataGuard - Oracle's Time Machine
DataGuard - Oracle's Time Machine
 
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
 
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
 
Configuring oracle enterprise manager cloud control 12 c for high availability
Configuring oracle enterprise manager cloud control 12 c for high availabilityConfiguring oracle enterprise manager cloud control 12 c for high availability
Configuring oracle enterprise manager cloud control 12 c for high availability
 
Configuring Oracle Enterprise Manager Cloud Control 12c for HA White Paper
Configuring Oracle Enterprise Manager Cloud Control 12c for HA White PaperConfiguring Oracle Enterprise Manager Cloud Control 12c for HA White Paper
Configuring Oracle Enterprise Manager Cloud Control 12c for HA White Paper
 
SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)SQL Server High Availability Solutions (Pros & Cons)
SQL Server High Availability Solutions (Pros & Cons)
 
Maximize Availability With Oracle Database 12c
Maximize Availability With Oracle Database 12cMaximize Availability With Oracle Database 12c
Maximize Availability With Oracle Database 12c
 
Migration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication TechnologyMigration to Oracle 12c Made Easy Using Replication Technology
Migration to Oracle 12c Made Easy Using Replication Technology
 
Data guard
Data guardData guard
Data guard
 
Availability Considerations for SQL Server
Availability Considerations for SQL ServerAvailability Considerations for SQL Server
Availability Considerations for SQL Server
 
Db lec 07_new
Db lec 07_newDb lec 07_new
Db lec 07_new
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Dernier (20)

Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 

Fast Start Failover DataGuard

  • 1. Prepared By : Vaibhav B. Borsaniya
  • 3. Introduction: Business continuity and disaster recovery are top priorities for the senior management of most global enterprise. Economic fluctuations, rapid changes in market trends, and competitive pressures imply that the global enterprise of today must operate in a 24x7 environment, and must be able to swiftly and efficiently deal with unforeseen business interruptions.
  • 4. So, just what is Data Guard?  Oracle’s disaster recovery solution for Oracle data  Feature of Oracle Database Enterprise Edition  Automates the creation and maintenance of one or more transactionally consistent copies (standby) of the production (or primary) database  If the primary database becomes unavailable (disasters, maintenance), a standby database can be activated and assume the primary role  “An application-transparent high-performance low-impact asymmetrical online reliable Redo or SQL level background standby database transaction exchange utility capable of reporting, switchover and Failover.”  What?
  • 5. Simply put…  Data Guard helps you protect your Data.  Takes your data and automatically puts it elsewhere Makes it available for Failover in case of failure.  The other capabilities are pure bonus.  Switchover for Maintenance  Reporting  Off-loading Queries  Backups
  • 6. Oracle Data Guard Focus Data Failures & Site Disasters: – Data Protection – Data Availability – Data Recovery Data is the core asset of the enterprise!All 3 are important! • Also addresses human errors & planned maintenances
  • 8. What data guard can be used for?  System, hardware and cluster upgardes  Migration to ASM ,RAC  same platforms(windows/ Linux and some mixed DG support)  Patchset or database upgrade  Testing for development , upgrades
  • 9. Why Data Guard? 1.Disaster Recovery & High Availability  Easy failover/switchover between primary and standby databases 2. Complete data protection  Enables zero data loss, safeguard against data corruptions 3. Efficient utilization of system resources  Standby databases can be used for reporting, backups, queries 4. Balance data availability against performance  Flexible data protection/synchronization modes 5. Automatic resynchronization after restoration of network connectivity  Automatic archive gap detection and resolution with no manual intervention 6. Centralized and simple management  Push-button graphical interface for management and monitoring
  • 12. Types Of Data Guard 1. Primary Database 2. Standby Databases The 2 types of standby databases Physical standby database Logical standby database
  • 13. Primary Database  A Data Guard configuration contains one production database, also referred to as the primary database, that functions in the primary role. This is the database that is accessed by most of your applications.  The primary database can be either a single-instance Oracle database or an Oracle Real Application Clusters database.
  • 14. Standby Database  A standby database is a transactionally consistent copy of the primary database.  Maintained automatically using redo data.  Similar to a primary database, a standby database can be either a single-instance Oracle database or an Oracle Real Application Clusters database.
  • 15. The three types of standby databases Physical standby database  Block-for-block identical with the primary database.  Synchronized with the primary database by application of redo data  Not open while redo is being applied.  Can be opened temporarily for read-only.  From 11g, can be left open read-only for reporting .  MUST NOT be opened read-write!.
  • 16.  Logical standby database:  Shares the same schema definition.  Synchronized with the primary database by transforming redo into SQL statements.  Database is open while redo-SQL is being applied.  May contain additional indexes and materialized views to support reporting.  Does NOT support all data types (eg. rowid, nested table, varray, object type REF, XML type).
  • 17. Data Guard Services Log apply services:  Redo Apply (Physical Standby)  Recovers the redo data received from the primary database and applies the redo to the physical standby database.  SQL Apply (Logical Standby)  Transforms the data in the redo received from the primary database into SQL statements and then executes the SQL statements on the standby database.
  • 18.  Redo Transport Services:  Control the automated transfer of redo data from the production database to one or more archival destinations.  Configurable using ARCH or LGWR  Used by Data Guard and Streams  Role Transitions: Change the role of a database from a standby database to a primary database, or from a primary database to a standby database using either a switchover or a failover operation.
  • 19. Switchover & Failover  Oracle Data Guard offers two easy-to-use methods to handle planned and unplanned outages of the production site. These methods are called switchover and failover. 1. Switchover:  A switchover is typically used to reduce primary database downtime during planned outages, such as operating system or hardware upgrades, or rolling upgrades of the Oracle database software and patch sets.  A switchover guarantees no data loss .
  • 20. During a switchover, the primary database transitions to a standby role, and the standby database transitions to the primary role. After a switchover, each database continues to participate in the Data Guard configuration with its new role.
  • 22. 2. Failover:  A failover is typically used only when the primary database becomes unavailable, and there is no possibility of restoring it to service within a reasonable period of time.  A failover is done when the primary database fails or has become unreachable and one of the standby databases is transitioned to take over the primary role.
  • 23.  Unplanned failover to standby database  Original standby becomes new primary  Original primary may need to be rebuilt  Possible data loss In short……
  • 25. Protection modes  Data Guard protection modes are simply a set of rules.  A protection mode is only set on the primary database.  And also defines the way Oracle Data Guard will maximize a Data Guard configuration for performance, availability, or protection in order to achieve the maximum amount of allowed data loss that can occur when the primary database or site fails.  Each of the three modes provide a high degree of data protection
  • 26.  A Data Guard configuration will always run in one of the three protection modes listed below: 1. Maximum Protection 2.Maximum Availability 3.Maximum performance
  • 27. Protection Mode Risk of Data Loss In the Event of a Disaster Redo Transport Mechanism Maximum Protection Maximum Availability Maximum Performance Zero data loss; Double failure protection Zero data loss; Single failure protection Minimal data loss – usually 0 to few seconds LGWR SYNC LGWR SYNC LGWR ASYNC or ARCH
  • 28. 1. Maximum Protection  Zero Data Loss!  Highest Level of Protection  Configuration: LGWR SYNC, SRLs  Enforces protection of every transaction  If last standby is unavailable, processing stops at primary  Good for financial systems where no data loss is acceptable  Primary database changes are not committed until it has been confirmed that the data is available on at least one standby database.  If Oracle determines that the redo data cannot be transferred from the primary server to the standby server, it will automatically stop the primary database instance.
  • 29. 2.Maximum Availability  Zero Data Loss as long as the network stays up!  Enforces protection of every transaction  Configuration: LGWR SYNC, do not need SRLs  If last standby is unavailable, processing continues at primary  When the standby becomes available again, synchronization with the primary is automatic  Primary database tolerates one transmission failure.  minimal data loss,Similar to maximum protection mode.  If the standby database becomes unavailable for any reason, the protection mode is temporarily lowered to maximum performance until the problem has been corrected.
  • 30.  Like maximum protection mode, a transaction will not commit until the redo needed to recover that transaction is written to the local online redo log and to at least one remote standby redo log.  Unlike maximum protection mode, the primary database does not shut down if a fault prevents it from writing its redo stream to a remote standby redo log.  Instead , the primary database operates in maximum performance mode until the fault is corrected and all gaps in redo log files are resolved. When all gaps are resolved, the primary database automatically resumes operating in maximum availability mode.
  • 31. 3.Maximum performance  Highest level of performance  Configuration: LGWR ASYNC, or ARCH  Protects from failure of any single component  Least impact on production system  Useful for applications that can tolerate some data loss  This is the default mode, we get the highest performance but the lowest protection.  If all of the standby servers become unavailable, processing will continue on the primary database.  PRIMARY DATABASE ships directly from the primary log buffer to STANDBY DATABASE.  PRIMARY DATABASE's performance is at maximum, but there is no guarantee that a small amount of data loss.  Data loss depend on how well our network can handle the amount of redo and also redo rate.
  • 32. Active data guard  Active Data Guard is 100% compatible with Data Guard functionality included with Oracle Database 11g Enterprise Edition.  Active Data Guard 11g Release 2 enables the automatic repair of corrupt blocks transparent to the user and application.  Block-level data loss usually results from intermittent, random I/O errors, as well as memory corruptions that get written to disk. However, if the corruption occurs on a primary database that has an Active Data Guard standby, block media recovery is performed automatically, transparent to the application, using a good copy of the block from the standby database.  Conversely, bad blocks on the standby database are automatically repaird using the good version from the primary database.
  • 33. Functionality of active data guard  Real-Time Query - offload read-only workloads to an up-to-date standby database  Automatic Block Repair - automatic repair of physical corruption transparent to the user  Far Sync - zero data loss protection across any distance  Standby Block Change Tracking - enable incremental backups on an active standby  Active Data Guard Rolling Upgrade - make it simple to reduce planned downtime  Global Database Services - load balancing and service management across replicated databases.  Application Continuity - make outages transparent to users.
  • 34.  Separately licensed option  Updates applied to primary  Changes can be read immediately on standby databases  Standby database can be opened in read-only mode  Redo can continue to be applied
  • 35.
  • 36. Data guard broker  The Data Guard broker is a distributed management framework that automates the creation, maintenance, and monitoring of Data Guard configurations.  Introduced in Oracle 9.2  Stable in Oracle 10.2 and above  Managed using DGMGRL utility  Contains Data Guard configuration  Used by Enterprise Manager to manage standby  Mandatory for some new functionality e.g.Fast Start Failover.
  • 37.  You can use either the Oracle Enterprise Manager graphical user interface (GUI) or the Data Guard command-line interface (DGMGRL) .  Manage and monitor Data Guard configurations that contain Real Application Clusters primary or standby databases.
  • 38. Fast start failover Oracle introduced the Fast-Start Failover (FSF) feature set in Release 10gR2. Failover is a one way process where your primary database goes down due to some reasons and to get back the production live without any data loss, you convert your existing Physical Standby database to start behaving as Primary database. it has been installed on a separate server, the FSFO can only be managed via the DGMGRL utility.
  • 39. The Dataguard Broker Observer is used when fast start failover is required. Fast start failover is simply an automatic failover to the standby database. The Observer is a component of the DGMGRL interface, which monitors the availability of the primary database. FSFO uses Flashback Database as part of the process of reinstating a failed primary as a standby. It provides a way to quickly restore a database to a previous point in time or SCN.
  • 40. Dis advantage of data guard  Same release of Oracle Database Enterprise Edition must be installed on the primary database and all standby database in a Data Guard configuration.  Data Guard is not an extra cost option, but you do have to pay for a full oracle license at the standby node.  For standby database you need another oracle server, which adds extra costs in company’s investment.