SlideShare ist ein Scribd-Unternehmen logo
1 von 64
Oracle Data Guard 11g Release 2 with Oracle Enterprise Manager 11g Grid Control
Oracle Data Guard 11g Release 2 with Oracle Enterprise Manager 10g Grid Control  Introduction to High Availability Data Guard Concepts Managing Data Guard with OEM  Setup Data Guard without OEM
Introduction to High Availability Availability is the degree of accessibility of an application, service or system.  It is measured as the percentage of uptime in a given year. Characteristics of a highly available systems ,[object Object]
Resiliency
No single point of failure (SPOF)
Recoverability
Timely error detection
Continuous operation,[object Object]
Introduction to High Availability Resiliency and protection from failures Unplanned Site failure Cluster failure Computer failure System failure Storage failure Data corruption Human error Hang or slowdown Natural disaster Planned System and database changes Data changes Application changes
Introduction to High Availability Present demand for high availability Oracle HA solutions as response Oracle RAC Oracle Data Guard Oracle Flashback Oracle Streams Oracle Goldengate How we benefit leveraging Oracle RAC, Oracle Data Guard and Oracle Flashback implementing MAA?  How Oracle RAC, Oracle Data Guard, Oracle Flashback work in tandem in implementing MAA solutions. Data Guard Configurations Fast Start failover Flashback as a way to avoid restoring the primary from backup in case of a failover, converting it to standby and synching it with the new primary. OEM as a primary tool for managing MAA solutions.
Data Guard Concepts Oracle Data Guard provides the managements,  monitoring and automation software to create and maintain one or more standby databases to protect Oracle data from failures, disasters, human errors and data corruption Data Guard configuration consist of one primary database and one or more standby databases. The databases in a Data Guard configuration may be dispersed geographically. Managing primary and standby databases can be done using SQL command-line interfaces, Data Guard broker interfaces or using a GUI interface provided with OEM Grid Control.
Data Guard Concepts Primary database:  accessed by most applications, can be a single instance or RAC database Standby database:  consistent copy of the primary database. Maintained automatically using redo data. Can be a single-instance or RAC database.
Data Guard Concepts Physical Standby database ,[object Object]
Synchronized  through Redo Apply. Redo records are shipped and applied to the standby database.
Benefits:Switchover and failover Standby database can be open in read only mode while redo apply continues ( Active data Guard). Can not be used when with reporting tools requiring read-write access such as repository creation. Can be used as a robust DR implementation. Logical Standby database ,[object Object]
Synchronized via SQL Apply. Redo records are shipped to the standby database and mined and applied as a SQL to the standby database.
Additional structures can be created to optimize the reporting workload.
Some restrictions on data types, types of tables and types of DDL and DML operations.
Benefits:Switchover and failover Standby database open in read-write mode. Offload production when apps need read-write access but do not modify primary data such as when repositories are created. Can be used to perform upgrades to primary database with near zero downtime.
Data Guard Concepts Switchover :  the primary database transition to a standby role and the  standby database transition to the primary role. It is used during the course of a planned maintenance of the primary database and ensure no data loss. Final EOR is applied on the standby database. Failover: Occurs when the primary database is unavailable. Failover is performed only in case of a failure of the primary database and the failover results in a transition of a standby database to the primary role. Final EOR is not applied on the standby database.
Data Guard Concepts Maximum availability: Archive destination is mandatory with log writer sync and affirm. Set by ‘alter database set standby to maximize availability’. Transactions do not commit until all redo data needed to recover the transactions has been written to the online redo log and to the standby redo log on at least one synchronized standby database. Ensures zero data loss except in case of certain failures when standby can not receive redo from primary. Maximum performance: Archive destination is either mandatory/optional and transport is log writer or archive process and synchronous or asynchronous. Set by ‘alter database set standby to maximize performance’ .Is the default protection mode. Transactions commit as soon as redo data generated by those transactions has been written to the online log. Offers less data protection than maximum availability mode. Maximum protection: Archive destination is mandatory with log writer sync and affirm. Set by ‘alter database set standby to maximize protection’. Redo data needed to recover as a transaction must be written to both the online redo log and to the standby database redo log on at least one synchronized standby database before the transaction commits. Ensures zero data loss.
Data Guard Concepts New features in 11gR1 ,[object Object]
Real time query capability of physical standby database (New Active Data Guard) feature.
User configurable conditions to initiate fast-start failover.
New Snapshot Data Guard feature.
Transport of redo data using SSL
Support of TDE with Data Guard SQL Apply.New features in 11gR2 ,[object Object]
Integrated support for Application failover.
Compressed table support in logical standby databases.
Automatic redo corruption detection and repair.,[object Object]
Managing Data Guard with OEM  Add physical or logical standby database. Crate a new physical or logical standby database Add an existing standby database for management with Data Guard Broker. Flexible options for creating standby database based on RMAN features for backup and cloning. Direct cloning using the primary database as a source. Using a staged backup Created with create standby database wizard Created as level 0 and level 1 regular backup Monitor performance of a standby database Redo Generation Rate Redo Apply Rate Transport Lag Apply Lag Monitor the archiving and application of redo log Verify structure of a Data Guard Perform Switchover or Failover Set the type of a standby database (Active Data Guard & Snapshot Data Guard) Manage a Data Guard configuration and set fast-start failover.
Managing Data Guard with OEM  Add physical or logical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database.
Managing Data Guard with OEM  Add physical standby database. After adding a standby database new options under Data Guard hyperlink appears What we gain?
Managing Data Guard with OEM  Verify structure of a Data Guard
Managing Data Guard with OEM  Verify structure of a Data Guard What OEM do for us? What we need to do if we do it ourselves? Initializing Connected to instance oel55.gj.com:D11P Starting alert log monitor... Updating Data Guard link on database homepage... Skipping verification of fast-start failover static services check. Data Protection Settings:   Protection mode : Maximum Performance   Redo Transport Mode settings:     D11P: ASYNC     D11P1: ASYNC   Checking standby redo log files.....OK Checking Data Guard status   D11P : Normal   D11P1 : Normal Checking inconsistent properties Checking agent status Checking applied log on D11P1...OK Processing completed.
Managing Data Guard with OEM  Monitor performance of a standby database
Managing Data Guard with OEM  Monitor performance of a standby database
Managing Data Guard with OEM  Manage a Data Guard configuration
Managing Data Guard with OEM  Manage a Data Guard configuration
Managing Data Guard with OEM  Manage a Data Guard configuration
Managing Data Guard with OEM  Manage a Data Guard configuration
Managing Data Guard with OEM  Manage a Data Guard configuration
Managing Data Guard with OEM  Manage a Data Guard configuration – Perform a switchover
Managing Data Guard with OEM  Manage a Data Guard configuration – Perform a Failover
Managing Data Guard with OEM  Manage a Data Guard configuration – Perform a Failover
Managing Data Guard with OEM  Manage a Data Guard configuration – Perform a Failover & Reinstate the old physical database
Managing Data Guard with OEM  Manage a Data Guard configuration – Perform a Failover & Reinstate the old physical database
Managing Data Guard with OEM  Manage a Data Guard configuration –  Configure fast-start failover ,[object Object]
Configure observer ( specify observer host and observer ORACLE_HOME)
Set failover properties
Enable flashback logging
Enable observer
Fast start failover does NOT work in maximum protection role. In 10g only max availability role was supported for FSFO.  Since 11g both maximum performance and maximum availability are supported.,[object Object]
Managing Data Guard with OEM  Manage a Data Guard configuration –  Enable flashback logging
Managing Data Guard with OEM  Manage a Data Guard configuration –  complete fast-start failover configuration

Weitere ähnliche Inhalte

Was ist angesagt?

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
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
Anar Godjaev
 

Was ist angesagt? (20)

Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to Z
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Oracle Dataguard
Oracle DataguardOracle Dataguard
Oracle Dataguard
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard
 
Dataguard physical stand by setup
Dataguard physical stand by setupDataguard physical stand by setup
Dataguard physical stand by setup
 
Oracle data guard configuration in 12c
Oracle data guard configuration in 12cOracle data guard configuration in 12c
Oracle data guard configuration in 12c
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
 
Oracle Data Guard Broker Webinar
Oracle Data Guard Broker WebinarOracle Data Guard Broker Webinar
Oracle Data Guard Broker Webinar
 
Backup and recovery in oracle
Backup and recovery in oracleBackup and recovery in oracle
Backup and recovery in oracle
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
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)
 
DataGuard - Oracle's Time Machine
DataGuard - Oracle's Time MachineDataGuard - Oracle's Time Machine
DataGuard - Oracle's Time Machine
 
What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)What’s new in oracle 12c recovery manager (rman)
What’s new in oracle 12c recovery manager (rman)
 
Oracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New FeaturesOracle Active Data Guard 12c New Features
Oracle Active Data Guard 12c New Features
 
Oracle Active Data Guard 12cR2. Is it the best option?
Oracle Active Data Guard 12cR2. Is it the best option?Oracle Active Data Guard 12cR2. Is it the best option?
Oracle Active Data Guard 12cR2. Is it the best option?
 
Backup and Recovery Procedure
Backup and Recovery ProcedureBackup and Recovery Procedure
Backup and Recovery Procedure
 

Andere mochten auch

D17316 gc20 l04_phys_em
D17316 gc20 l04_phys_emD17316 gc20 l04_phys_em
D17316 gc20 l04_phys_em
Moeen_uddin
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
Moeen_uddin
 
D17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emD17316 gc20 l03_broker_em
D17316 gc20 l03_broker_em
Moeen_uddin
 
D17316 gc20 l02_architecture
D17316 gc20 l02_architectureD17316 gc20 l02_architecture
D17316 gc20 l02_architecture
Moeen_uddin
 
D17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtransD17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtrans
Moeen_uddin
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overview
moin_azeem
 
Tutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan Virtualmin
Tutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan VirtualminTutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan Virtualmin
Tutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan Virtualmin
Beni Krisbiantoro
 
پروژه هوشمند سازی دانشکده برق و الکترونیک
پروژه هوشمند سازی دانشکده برق و الکترونیکپروژه هوشمند سازی دانشکده برق و الکترونیک
پروژه هوشمند سازی دانشکده برق و الکترونیک
شرکت مهندسی نوآوران تحقیق
 

Andere mochten auch (20)

D17316 gc20 l04_phys_em
D17316 gc20 l04_phys_emD17316 gc20 l04_phys_em
D17316 gc20 l04_phys_em
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
 
D17316 gc20 l03_broker_em
D17316 gc20 l03_broker_emD17316 gc20 l03_broker_em
D17316 gc20 l03_broker_em
 
D17316 gc20 l02_architecture
D17316 gc20 l02_architectureD17316 gc20 l02_architecture
D17316 gc20 l02_architecture
 
D17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtransD17316 gc20 l06_dataprot_logtrans
D17316 gc20 l06_dataprot_logtrans
 
Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard Broker
 
Upgrading To 11g
Upgrading To 11gUpgrading To 11g
Upgrading To 11g
 
Oracle database 12c sql worshop 1 student guide vol 2
Oracle database 12c sql worshop 1 student guide vol 2Oracle database 12c sql worshop 1 student guide vol 2
Oracle database 12c sql worshop 1 student guide vol 2
 
Cooper Oracle 11g Overview
Cooper Oracle 11g OverviewCooper Oracle 11g Overview
Cooper Oracle 11g Overview
 
Tutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan Virtualmin
Tutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan VirtualminTutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan Virtualmin
Tutorial Installasi Ubuntu 11.04 untuk Webhost dengan Webmin dan Virtualmin
 
Oracle enterprise manager 12c migrate to pluggable database
Oracle enterprise manager 12c   migrate to pluggable databaseOracle enterprise manager 12c   migrate to pluggable database
Oracle enterprise manager 12c migrate to pluggable database
 
oracle enterprise manager training | oracle enterprise manager course | orac...
oracle enterprise manager training | oracle enterprise manager course |  orac...oracle enterprise manager training | oracle enterprise manager course |  orac...
oracle enterprise manager training | oracle enterprise manager course | orac...
 
پروژه هوشمند سازی دانشکده برق و الکترونیک
پروژه هوشمند سازی دانشکده برق و الکترونیکپروژه هوشمند سازی دانشکده برق و الکترونیک
پروژه هوشمند سازی دانشکده برق و الکترونیک
 
Linux webmin
Linux webminLinux webmin
Linux webmin
 
Social Networks for Education - SMK Yanisba
Social Networks for Education - SMK YanisbaSocial Networks for Education - SMK Yanisba
Social Networks for Education - SMK Yanisba
 
Cloud computing nasr
Cloud computing nasrCloud computing nasr
Cloud computing nasr
 
- Quran Hints Islam Shia @quranhints @daliliali - امام 6 = معصوم 8 = جع
  - Quran Hints Islam Shia @quranhints @daliliali - امام 6 = معصوم 8 = جع  - Quran Hints Islam Shia @quranhints @daliliali - امام 6 = معصوم 8 = جع
- Quran Hints Islam Shia @quranhints @daliliali - امام 6 = معصوم 8 = جع
 
Occc overview
Occc overviewOccc overview
Occc overview
 
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
MySQL Webinar Series 3/4 - MySQl Monitoring With Enterprise Monitor + Query A...
 
Configure the dbase using em in oracle 11g
Configure the dbase using em in oracle 11gConfigure the dbase using em in oracle 11g
Configure the dbase using em in oracle 11g
 

Ähnlich wie Data Guard25 August

Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
mabessisindu
 
Disaster recovery with sql server
Disaster recovery with sql serverDisaster recovery with sql server
Disaster recovery with sql server
Rajib Kundu
 
Golden gate disaster recovery  tips
Golden gate disaster recovery  tipsGolden gate disaster recovery  tips
Golden gate disaster recovery  tips
kolleru
 
TECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability Attributes
TECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability AttributesTECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability Attributes
TECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability Attributes
Symantec
 

Ähnlich wie Data Guard25 August (20)

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
 
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 for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
 
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
 
Oracle Data Guard for Beginners
Oracle Data Guard for BeginnersOracle Data Guard for Beginners
Oracle Data Guard for Beginners
 
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
 
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
 
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
 
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)
 
Maximize Availability With Oracle Database 12c
Maximize Availability With Oracle Database 12cMaximize Availability With Oracle Database 12c
Maximize Availability With Oracle Database 12c
 
Data guard
Data guardData guard
Data guard
 
FOISDBA-Ver1.1.pptx
FOISDBA-Ver1.1.pptxFOISDBA-Ver1.1.pptx
FOISDBA-Ver1.1.pptx
 
Database Upgrades Automation using Enterprise Manager 12c
Database Upgrades Automation using Enterprise Manager 12cDatabase Upgrades Automation using Enterprise Manager 12c
Database Upgrades Automation using Enterprise Manager 12c
 
Disaster recovery with sql server
Disaster recovery with sql serverDisaster recovery with sql server
Disaster recovery with sql server
 
Golden gate disaster recovery  tips
Golden gate disaster recovery  tipsGolden gate disaster recovery  tips
Golden gate disaster recovery  tips
 
Oracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for ConsolidationOracle Database 12c Multitenant for Consolidation
Oracle Database 12c Multitenant for Consolidation
 
Presentation automating failover with data guard in the cloud
Presentation   automating failover with data guard in the cloudPresentation   automating failover with data guard in the cloud
Presentation automating failover with data guard in the cloud
 
TECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability Attributes
TECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability AttributesTECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability Attributes
TECHNICAL WHITE PAPER▶NetBackup 5330 Resiliency/High Availability Attributes
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Data Guard25 August

  • 1. Oracle Data Guard 11g Release 2 with Oracle Enterprise Manager 11g Grid Control
  • 2. Oracle Data Guard 11g Release 2 with Oracle Enterprise Manager 10g Grid Control Introduction to High Availability Data Guard Concepts Managing Data Guard with OEM Setup Data Guard without OEM
  • 3.
  • 5. No single point of failure (SPOF)
  • 8.
  • 9. Introduction to High Availability Resiliency and protection from failures Unplanned Site failure Cluster failure Computer failure System failure Storage failure Data corruption Human error Hang or slowdown Natural disaster Planned System and database changes Data changes Application changes
  • 10. Introduction to High Availability Present demand for high availability Oracle HA solutions as response Oracle RAC Oracle Data Guard Oracle Flashback Oracle Streams Oracle Goldengate How we benefit leveraging Oracle RAC, Oracle Data Guard and Oracle Flashback implementing MAA? How Oracle RAC, Oracle Data Guard, Oracle Flashback work in tandem in implementing MAA solutions. Data Guard Configurations Fast Start failover Flashback as a way to avoid restoring the primary from backup in case of a failover, converting it to standby and synching it with the new primary. OEM as a primary tool for managing MAA solutions.
  • 11. Data Guard Concepts Oracle Data Guard provides the managements, monitoring and automation software to create and maintain one or more standby databases to protect Oracle data from failures, disasters, human errors and data corruption Data Guard configuration consist of one primary database and one or more standby databases. The databases in a Data Guard configuration may be dispersed geographically. Managing primary and standby databases can be done using SQL command-line interfaces, Data Guard broker interfaces or using a GUI interface provided with OEM Grid Control.
  • 12. Data Guard Concepts Primary database: accessed by most applications, can be a single instance or RAC database Standby database: consistent copy of the primary database. Maintained automatically using redo data. Can be a single-instance or RAC database.
  • 13.
  • 14. Synchronized through Redo Apply. Redo records are shipped and applied to the standby database.
  • 15.
  • 16. Synchronized via SQL Apply. Redo records are shipped to the standby database and mined and applied as a SQL to the standby database.
  • 17. Additional structures can be created to optimize the reporting workload.
  • 18. Some restrictions on data types, types of tables and types of DDL and DML operations.
  • 19. Benefits:Switchover and failover Standby database open in read-write mode. Offload production when apps need read-write access but do not modify primary data such as when repositories are created. Can be used to perform upgrades to primary database with near zero downtime.
  • 20. Data Guard Concepts Switchover : the primary database transition to a standby role and the standby database transition to the primary role. It is used during the course of a planned maintenance of the primary database and ensure no data loss. Final EOR is applied on the standby database. Failover: Occurs when the primary database is unavailable. Failover is performed only in case of a failure of the primary database and the failover results in a transition of a standby database to the primary role. Final EOR is not applied on the standby database.
  • 21. Data Guard Concepts Maximum availability: Archive destination is mandatory with log writer sync and affirm. Set by ‘alter database set standby to maximize availability’. Transactions do not commit until all redo data needed to recover the transactions has been written to the online redo log and to the standby redo log on at least one synchronized standby database. Ensures zero data loss except in case of certain failures when standby can not receive redo from primary. Maximum performance: Archive destination is either mandatory/optional and transport is log writer or archive process and synchronous or asynchronous. Set by ‘alter database set standby to maximize performance’ .Is the default protection mode. Transactions commit as soon as redo data generated by those transactions has been written to the online log. Offers less data protection than maximum availability mode. Maximum protection: Archive destination is mandatory with log writer sync and affirm. Set by ‘alter database set standby to maximize protection’. Redo data needed to recover as a transaction must be written to both the online redo log and to the standby database redo log on at least one synchronized standby database before the transaction commits. Ensures zero data loss.
  • 22.
  • 23. Real time query capability of physical standby database (New Active Data Guard) feature.
  • 24. User configurable conditions to initiate fast-start failover.
  • 25. New Snapshot Data Guard feature.
  • 26. Transport of redo data using SSL
  • 27.
  • 28. Integrated support for Application failover.
  • 29. Compressed table support in logical standby databases.
  • 30.
  • 31. Managing Data Guard with OEM Add physical or logical standby database. Crate a new physical or logical standby database Add an existing standby database for management with Data Guard Broker. Flexible options for creating standby database based on RMAN features for backup and cloning. Direct cloning using the primary database as a source. Using a staged backup Created with create standby database wizard Created as level 0 and level 1 regular backup Monitor performance of a standby database Redo Generation Rate Redo Apply Rate Transport Lag Apply Lag Monitor the archiving and application of redo log Verify structure of a Data Guard Perform Switchover or Failover Set the type of a standby database (Active Data Guard & Snapshot Data Guard) Manage a Data Guard configuration and set fast-start failover.
  • 32. Managing Data Guard with OEM Add physical or logical standby database.
  • 33. Managing Data Guard with OEM Add physical standby database.
  • 34. Managing Data Guard with OEM Add physical standby database.
  • 35. Managing Data Guard with OEM Add physical standby database.
  • 36. Managing Data Guard with OEM Add physical standby database.
  • 37. Managing Data Guard with OEM Add physical standby database.
  • 38. Managing Data Guard with OEM Add physical standby database.
  • 39. Managing Data Guard with OEM Add physical standby database.
  • 40. Managing Data Guard with OEM Add physical standby database.
  • 41. Managing Data Guard with OEM Add physical standby database.
  • 42. Managing Data Guard with OEM Add physical standby database. After adding a standby database new options under Data Guard hyperlink appears What we gain?
  • 43. Managing Data Guard with OEM Verify structure of a Data Guard
  • 44. Managing Data Guard with OEM Verify structure of a Data Guard What OEM do for us? What we need to do if we do it ourselves? Initializing Connected to instance oel55.gj.com:D11P Starting alert log monitor... Updating Data Guard link on database homepage... Skipping verification of fast-start failover static services check. Data Protection Settings: Protection mode : Maximum Performance Redo Transport Mode settings: D11P: ASYNC D11P1: ASYNC Checking standby redo log files.....OK Checking Data Guard status D11P : Normal D11P1 : Normal Checking inconsistent properties Checking agent status Checking applied log on D11P1...OK Processing completed.
  • 45. Managing Data Guard with OEM Monitor performance of a standby database
  • 46. Managing Data Guard with OEM Monitor performance of a standby database
  • 47. Managing Data Guard with OEM Manage a Data Guard configuration
  • 48. Managing Data Guard with OEM Manage a Data Guard configuration
  • 49. Managing Data Guard with OEM Manage a Data Guard configuration
  • 50. Managing Data Guard with OEM Manage a Data Guard configuration
  • 51. Managing Data Guard with OEM Manage a Data Guard configuration
  • 52. Managing Data Guard with OEM Manage a Data Guard configuration – Perform a switchover
  • 53. Managing Data Guard with OEM Manage a Data Guard configuration – Perform a Failover
  • 54. Managing Data Guard with OEM Manage a Data Guard configuration – Perform a Failover
  • 55. Managing Data Guard with OEM Manage a Data Guard configuration – Perform a Failover & Reinstate the old physical database
  • 56. Managing Data Guard with OEM Manage a Data Guard configuration – Perform a Failover & Reinstate the old physical database
  • 57.
  • 58. Configure observer ( specify observer host and observer ORACLE_HOME)
  • 62.
  • 63. Managing Data Guard with OEM Manage a Data Guard configuration – Enable flashback logging
  • 64. Managing Data Guard with OEM Manage a Data Guard configuration – complete fast-start failover configuration
  • 65. Managing Data Guard with OEM Manage a Data Guard configuration – complete fast-start failover configuration
  • 66.
  • 71.
  • 72. Managing Data Guard with OEM Manage a Data Guard configuration – Create logical standby database
  • 73. Managing Data Guard with OEM Monitor a Data Guard configuration
  • 74. Managing Data Guard with OEM Monitor a Data Guard configuration Redo logs archived and applied
  • 75. Managing Data Guard with OEM Active Data Guard What is Active Data Guard? How to set Active Data Guard?
  • 76. Managing Data Guard with OEM Snapshot Data Guard What is Snapshot Data Guard? How to set Snapshot Data Guard? Set Redo Transport Off Enable Flash back Database Set Redo Transport On Use Convert to toggle between Snapshot Database and Physical Database
  • 77.
  • 78. Select ‘Add standby database screen’
  • 79. Specify the standby database to be enabled for management with Data Guard Broker and specify the additional properties (login credentials, archive destination, FRA).
  • 80.
  • 81. Select a standby database you want removed from the Data Guard configuration
  • 83. Acknowledge that you want to remove it at the confirmation page (database remains on ASM or disk).
  • 84. Remove a Data Guard configuration
  • 85. Click at the ‘Remove Data Guard Configuration’ link
  • 86. Acknowledge that you want to remove the configuration at the confirmation page.
  • 87.
  • 88. Managing Data Guard without OEM Configure primary database Make sure the primary database has a spfile; Enable force logging on primary: SQL> alter database force logging; Configure database to have standby redo logs on primary: SQL> alter database add standby logfile; Configure database initialization parameters LOG_ARCHIVE_CONFIG and LOG_ARCHIVE_DEST_n on primary: SQL>alter system set log_archive_config=’dg_config=(d11p,d11s)’; SQL>alter system set log_archive_dest_2=’service=d11s ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=d11s’; Configure the primary database in ARCHIVELOG mode SQL> alter database arhivelog;
  • 89. Managing Data Guard without OEM Configure Oracle NET Create an alias for the standby in tnsnames.ora D11S = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = oel55.gj.com)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = D11S) ) )   On the standby site configure an entry for the standby database in listener.ora SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = D11S) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1 ) (SID_NAME = D11S) ) )
  • 90. Managing Data Guard without OEM Prepare Standby site for D11S standby database Create the directories required for the standby database D11S. Copy the orapw from the primary site and rename it to orapwD11S to match the name of the standby instance. Create initD11S.ora with a line db_name=D11S Set environment variables. Start the standby database in nomount using the initD11S.ora
  • 91. Managing Data Guard without OEM Run RMAN to create the standby database D11S from D11P On the primary site: Run RMAN for creating the standby database rman target / auxiliary sys@D11S execute the script:  run { allocate channel d11gp1 type disk; allocate channel d111p2 type disk; allocate auxiliary channel stby type disk; duplicate target database for standby from active database spfile parameter_value_convert ‘d11p,d11s’ set db_unique_name=’d11’ set db_file_name_convert=’/d11p/’,’/d11s/’ set log_file_name_convert=’/d11p/’,’/d11s/’ set log_archive_max_processe=’5’ set fal_client=’d11s’ set fal_server=’d11p’ set standby_file_management=’AUTO’ set log_archive_config=’dg_config=(d11p,d11s)’ set log_archive_dest_2=’service=d11p SYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=d11p’; }
  • 92. Managing Data Guard without OEM Verify the standby database creation. Make sure redo is received and archived on standby On the standby database check the sequence# of the last received log by issuing:  SQL> select sequence#, first_time, next_time, applied from v$archive_log order by sequence#; Perform a log switch on the primary SQL> alter system switch logfile; Check if the log is received and archived on the standby site by verifying that the sequence is increments by one. SQL> select sequence#, first_time, next_time, applied from v$archive_log order by sequence#;
  • 93. Managing Data Guard without OEM Create a data Guard Broker configuration using DGMGRL utility Set the DG_BROKER_START=TRUE on both primary and standby database  SQL> alter system set dg_broker_start=true; Modify the listener to work with Data Guard Broker by adding a static entry for DGMGRL to avoid ORA-12154 errors. Errors can be observed on startup of the standby database after performing a switchover. Reload the listener. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = D11P_DGMGRL) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1 ) (SID_NAME = D11P) ) (SID_DESC = (GLOBAL_DBNAME = D11S_DGMGRL) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1 ) (SID_NAME = D11S) ) ) Invoke the DGMGRL and connect to the primary database. Create the Data Guard Broker configuration that includes a profile for the primary database. DGMGRL>create configuration ‘DR1’ as primary database is ‘D11P’ connect identifier is D11P; Add the physical standby database to the broker configuration. DGMGRL>add database ‘D11S’ as connect identifier is D11S; Enable the configuration.  DGMGRL> enable configuration; Verify the configuration. DGMGRL> show configuration;
  • 94. Managing Data Guard without OEM Create a data Guard Broker configuration using DGMGRL utility How to setup Active Data Guard?  On the standby database perform:  DGMGRL> edit database ‘D11S’ set state=’apply-off’; SQL>alter database open read only; DGMGRL>edit database ‘D11S’ set state=’apply-on’;
  • 95. Managing Data Guard without OEM Create a data Guard Broker configuration using DGMGRL utility How to enable Fast start failover?  Enable flashback on the primary and standby databases Verify we configured standby redo log files  Ensure the LogXptMode Property is set to SYNC. These commands will succeed only if database is configured with standby redo logs. DGMGRL> EDIT DATABASE D11P SET PROPERTY 'LogXptMode'='SYNC'; DGMGRL> EDIT DATABASE D11S SET PROPERTY 'LogXptMode'='SYNC'; Specify the FastStartFailoverTarget property DGMGRL> EDIT DATABASE D11P SET PROPERTY FastStartFailoverTarget='D11S'; DGMGRL> EDIT DATABASE D11S SET PROPERTY FastStartFailoverTarget='D11P';
  • 96. Managing Data Guard without OEM Create a data Guard Broker configuration using DGMGRL utility How to enable Fast start failover? (cont.)  Make sure maximum protection is not set. Enable Fast Start Failover DGMGRL>enable fast_start failover Verify configuration DGMGRL>show fast_start failover DGMGRL>show database D11P DGMGRL>show database D11S Perform switchover to the standby database  DGMGRL>switchover to D11S; Check changes to the configuration DGMGRL>show configuration; SQL> select database_role from v$database; Perform switchover to the original primary DGMGRL>switchover to D11P; Check changes to the configuration DGMGRL>show configuration; SQL> select database_role from v$database;
  • 97. Oracle Data Guard 11g Release 2 with Oracle Enterprise Manager 11g Grid Control Questions?