SlideShare a Scribd company logo
Data Guard 
The Actual Insurance of Data 
Navneet Upneja
Agenda 
•Disaster Types 
•Disaster Plan 
•Data Guard Overview 
•Standby Databases 
•Data Guard Services 
•Role Transitions 
•Cascading Redo 
•Far Sync
Disaster – Doesn’t need an Invitation
•No Disaster Recovery Plan? 
So What do need?
Data Guard – Insurance of your Database 
Efficient business operations, high quality customer service and safeguarding corporate information assets all require the highest possible level of data protection and data availability. Thus it is no surprise that data protection and data availability are among the top priorities for companies of all sizes and industries. 
•Oracle Data Guard ensures high availability, data protection, and disaster recovery for enterprise data. 
•Data Guard provides a comprehensive set of services that create, maintain, manage, and monitor one or more standby databases. 
•Data Guard maintains these standby databases as transactionally consistent copies of the production database. 
•if the production database becomes unavailable because of a planned or an unplanned outage, Data Guard can switch any standby database to the production role, minimizing the downtime associated with the outage
DATA GUARD - Overview 
•A Data Guard configuration consists of one production database and one or more standby databases. 
•The databases in a Data Guard configuration are connected by Oracle Net and may be dispersed geographically. 
•There are no restrictions on where the databases are located, provided they can communicate with each other 
•Operates on a simple principle: 
•Ship Redo 
•Apply Reo
What is a 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.
What is a Standby database? 
•A standby database is a transactionally consistent copy of the primary database. 
•Using a backup copy of the primary database, you can create standby databases and incorporate them in a Data Guard configuration. 
•Once created, Data Guard automatically maintains each standby database by transmitting redo data from the primary database and then applying the redo to the standby database. 
•Physical Standby Database 
•Logical Standby Database 
•Snapshot Standby database
Physical Standby Database 
•A physical standby database is an exact, block-for-block copy of a primary database. 
•A physical standby is maintained as an exact copy through a process called Redo Apply, in which redo data received from a primary database is continuously applied to a physical standby database using the database recovery mechanisms. 
•A physical standby database can be opened for read-only access and used to offload queries from a primary database. 
•If a license for the Oracle Active Data Guard option has been purchased, Redo Apply can be active while the physical standby database is open, thus allowing queries to return results that are identical to what would be returned from the primary database. This capability is known as the real-time query feature
Logical Standby Database 
•A logical standby database is initially created as an identical copy of the primary database, but it later can be altered to have a different structure. 
•The logical standby database is updated by executing SQL statements. This allows users to access the standby database for queries and reporting at any time. 
•Data Guard automatically applies information from the archived redo log file or standby redo log file to the logical standby database by transforming the data in the log files into SQL statements and then executing the SQL statements on the logical standby database. 
• Because the logical standby database is updated using SQL statements, it must remain open. 
•While data that is being maintained by SQL Apply cannot be modified, additional objects can be created.
Snapshot Standby Database 
•A Snapshot standby database is a type of updatable standby database that provides full data protection for a primary database. 
•A Snapshot standby database receives redo and archives, but does not apply redo data from its primary database. 
• Redo data received from the primary database is applied when a snapshot standby database is converted back into a physical standby database, after discarding all local updates to the snapshot standby database
Data Guard Services 
There are three types of Services: - 
•Redo Transport Services : - Control the automated transfer of redo data from the production database to one or more archival destinations. 
•LNSn 
•ARCH 
•Log Apply Services: - Apply redo data on the standby database to maintain transactional synchronization with the primary database. 
•Redo Apply (Log Apply) 
•SQL Apply 
•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. 
•Failover 
•Switchover
Data Guard - ARCH
Data Guard – LGWR (LNS)
Creating Physical Standby Database 
On Primary Database 
1.Enable Force Logging “ALTER DATABASE FORCE LOGGING;” 
2.LOG_ARCHIVE_CONFIG='DG_CONFIG=(ORCL,ORCLDB)‘ 
3.LOG_ARCHIVE_DEST_2='SERVICE=ORCL NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ORCLDB'; 
4.FAL_SERVER=ORCLDB 
5.TNS Entries 
6.Backup Primary Database 
7.Add Standby Redo Logs.
Cont.. 
On Standby Server 
1.Copy Pfile from Primary and change the required parameters. 
2.db_unique_name=‘ORCLDB‘ 
3.fal_server=‘ORCL’ 
4.log_archive_dest_2='SERVICE=ORCL ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ORCL‘ 
5.Create Standby Database using RMAN Duplicate Command.
Data Guard – Protection Modes 
•Maximum Performance 
Emphasis on Performance of Primary Database. 
Redo Transport Mode is : ASYNC 
LGWR in Primary NEVER waits for acknowledgement from Standby. 
Default Mode of Redo Transfer in Oracle 11g using LGWR method of sending Redo data 
If no standby database is available processing continues on primary. 
log_archive_dest_2='service="orcldb", LGWR ASYNC NOAFFIRM delay=0 optional db_unique_name="orcldb" ';
Cont.. 
•Maximum Availability 
Availability as First Priority. 
ZERO data loss as close but still second priority. 
Redo Transport Mode : SYNC 
Primary Performance can get impacted depending upon the time taken to receive acknowledgement from Standby Server. 
Primary Database wait for maximum of time defined using “NET_TIMEOUT” parameter of LOG_ARCHIVE_DEST_n parameter. 
Defaults to 30secs
Cont.. 
•Maximum Protection 
Utmost priority is DATA Protection 
Redo Transport Mode : SYNC 
Very much similar to Maximum Availability 
Except, it does not consider NET_TIMEOUT Parameter 
Continues to wait for Acknowledgement from Standby Server. 
Till then, LGWR remain stalled. 
Can impact Performance of Primary Database.
ROLE TRANSITIION 
•SWITCHOVER 
Planned Event 
Reverses the role of Primary and Standby databases. 
Minimizes downtime during planned Maintenance. 
Process of Switchover 
Notifies Primary database about Switchover. 
Disconnects users . 
Generates special redo record “End of Redo” (EOR). 
Convert Primary into Standby. 
Apply EOR on standby and then converts standby into primary.
Cont.. 
On Primary Database 
1.ALTER DATABASE COMMIT TO SWITCHOVER TO STANDBY; 
2.STARTUP MOUNT; 
3.ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT; 
On Standby Database 
1.ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY; 
2.SHUTDOWN IMMEDIATE; 
3.Startup
Cont.. 
FAILOVER 
•Role Transition due to unplanned event. 
•Similar to SWITCHOVER except Primary database did not get chance to generate EOR. 
•Standby database apply last redo that is available on standby site. 
•Anything after that is LOST. 
•Data Lost depends upon the Protection mode in which Primary database was running. 
•No Data Loss in case of Maximum Protection. 
•Failover can be Manual or Automatic.
Cascade Redo Transport 
•Need to be using 11.2.0.2 or higher. 
•Also known as Terminal Destination. 
•Receives Redo from Standby Database rather than from Primary Database, Also known as “Indirect Redo”. 
•Useful in cases where we have multiple standby databases 
•In 12c, Cascading Redo can be done real Time. 
•Only Physical standby databases can cascade redo.
Far Sync Standby Database 
•New in Oracle 12c database. 
•Remote Data guard destination that receive redo from Primary Database. 
•Ships redo to other conventional standby databases. 
•Have Controlfile, Standby Redo Log Files 
•Consume little disk and other system resources. 
•Can be useful where actual Physical standby is places at far away location from Primary Database geographically.
Automatic Archive Gap Resolution
DataGuard - Oracle's Time Machine

More Related Content

What's hot

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
Mario Redón Luz
 
Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
Satishbabu Gunukula
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
Manoj Kumar
 
Active / Active configurations with Oracle Active Data Guard
Active / Active configurations with Oracle Active Data GuardActive / Active configurations with Oracle Active Data Guard
Active / Active configurations with Oracle Active Data Guard
Aris Prassinos
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard
Uwe Hesse
 
Oracle Data Guard Broker Webinar
Oracle Data Guard Broker WebinarOracle Data Guard Broker Webinar
Oracle Data Guard Broker Webinar
Zohar Elkayam
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
aguswahyudi09
 
Optimizing your Database Import!
Optimizing your Database Import! Optimizing your Database Import!
Optimizing your Database Import!
Nabil Nawaz
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to Z
Zohar Elkayam
 
Dataguard implementation
Dataguard implementationDataguard implementation
Dataguard implementation
Rajshekar Patil
 
Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
Borsaniya Vaibhav
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
Jakkrapat S.
 
Exadata Smart Scan - What is so smart about it?
Exadata Smart Scan  - What is so smart about it?Exadata Smart Scan  - What is so smart about it?
Exadata Smart Scan - What is so smart about it?
Uwe Hesse
 
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
 
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)
Satishbabu Gunukula
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
Sandeep Sharma IIMK Smart City,IoT,Bigdata,Cloud,BI,DW
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
satish Gaddipati
 
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
Satishbabu Gunukula
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
Paresh Patel
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methods
Satishbabu Gunukula
 

What's hot (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
 
Ioug tip book11_gunukula
Ioug tip book11_gunukulaIoug tip book11_gunukula
Ioug tip book11_gunukula
 
Active dataguard
Active dataguardActive dataguard
Active dataguard
 
Active / Active configurations with Oracle Active Data Guard
Active / Active configurations with Oracle Active Data GuardActive / Active configurations with Oracle Active Data Guard
Active / Active configurations with Oracle Active Data Guard
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard
 
Oracle Data Guard Broker Webinar
Oracle Data Guard Broker WebinarOracle Data Guard Broker Webinar
Oracle Data Guard Broker Webinar
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Optimizing your Database Import!
Optimizing your Database Import! Optimizing your Database Import!
Optimizing your Database Import!
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to Z
 
Dataguard implementation
Dataguard implementationDataguard implementation
Dataguard implementation
 
Fast Start Failover DataGuard
Fast Start Failover DataGuardFast Start Failover DataGuard
Fast Start Failover DataGuard
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Exadata Smart Scan - What is so smart about it?
Exadata Smart Scan  - What is so smart about it?Exadata Smart Scan  - What is so smart about it?
Exadata Smart Scan - What is so smart about it?
 
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’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)
 
153 Oracle dba interview questions
153 Oracle dba interview questions153 Oracle dba interview questions
153 Oracle dba interview questions
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
 
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
 
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_DatabaseNoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
NoCOUG_201411_Patel_Managing_a_Large_OLTP_Database
 
Oracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methodsOracle database upgrade to 12c and available methods
Oracle database upgrade to 12c and available methods
 

Similar to DataGuard - Oracle's Time Machine

Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
Ram Naani
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
Martin Meyer
 
less08.ppt
less08.pptless08.ppt
zdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdfzdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdf
Ahmed Abdellatif
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
Jade Global
 
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...
Jade Global
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
Dan Glasscock
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recovery
Sqlperfomance
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
Sandesh Rao
 
Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
mabessisindu
 
dgintro (1).ppt
dgintro (1).pptdgintro (1).ppt
dgintro (1).ppt
Ans Sembiring
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
Nabi Abdul
 
AUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointAUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePoint
Michael Noel
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
HODCA1
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
Moeen_uddin
 
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
Emre Baransel
 
The Good, The Bad and the Ugly
The Good, The Bad and the UglyThe Good, The Bad and the Ugly
The Good, The Bad and the Ugly
Roy Salazar
 
Oracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam BashaOracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam Basha
pasalapudi123
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
Nassyam Basha
 
Dg broker & client connectivity - High Availability Day 2015
Dg broker & client connectivity -  High Availability Day 2015Dg broker & client connectivity -  High Availability Day 2015
Dg broker & client connectivity - High Availability Day 2015
aioughydchapter
 

Similar to DataGuard - Oracle's Time Machine (20)

Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
less08.ppt
less08.pptless08.ppt
less08.ppt
 
zdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdfzdlra-db-migration-5188715.pdf
zdlra-db-migration-5188715.pdf
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
 
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...
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 
Sql disaster recovery
Sql disaster recoverySql disaster recovery
Sql disaster recovery
 
Top 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous DatabaseTop 20 FAQs on the Autonomous Database
Top 20 FAQs on the Autonomous Database
 
Oracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active databaseOracle presentations RAC dataguard active database
Oracle presentations RAC dataguard active database
 
dgintro (1).ppt
dgintro (1).pptdgintro (1).ppt
dgintro (1).ppt
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
AUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePointAUSPC 2013 - Business Continuity Management in SharePoint
AUSPC 2013 - Business Continuity Management in SharePoint
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
 
D17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sqlD17316 gc20 l05_phys_sql
D17316 gc20 l05_phys_sql
 
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
 
The Good, The Bad and the Ugly
The Good, The Bad and the UglyThe Good, The Bad and the Ugly
The Good, The Bad and the Ugly
 
Oracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam BashaOracle12c data guard farsync and whats new - Nassyam Basha
Oracle12c data guard farsync and whats new - Nassyam Basha
 
Oracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats newOracle12c data guard farsync and whats new
Oracle12c data guard farsync and whats new
 
Dg broker & client connectivity - High Availability Day 2015
Dg broker & client connectivity -  High Availability Day 2015Dg broker & client connectivity -  High Availability Day 2015
Dg broker & client connectivity - High Availability Day 2015
 

More from Navneet Upneja

Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Navneet Upneja
 
Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)
Navneet Upneja
 
Sql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA'sSql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA's
Navneet Upneja
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-life
Navneet Upneja
 
ORACLE 12C-New-Features
ORACLE 12C-New-FeaturesORACLE 12C-New-Features
ORACLE 12C-New-Features
Navneet Upneja
 
Flashback - The Time Machine..
Flashback - The Time Machine..Flashback - The Time Machine..
Flashback - The Time Machine..
Navneet Upneja
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
Navneet Upneja
 
An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1
Navneet Upneja
 

More from Navneet Upneja (8)

Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
Database option SDO mismatch: PDB installed version 12.1.0.2.0. CDB installed...
 
Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)Effecitvely testing Oracle SQL (sql tuning)
Effecitvely testing Oracle SQL (sql tuning)
 
Sql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA'sSql developer - Powerful Free tool for Developers and DBA's
Sql developer - Powerful Free tool for Developers and DBA's
 
Role of-analytics-in-db as-life
Role of-analytics-in-db as-lifeRole of-analytics-in-db as-life
Role of-analytics-in-db as-life
 
ORACLE 12C-New-Features
ORACLE 12C-New-FeaturesORACLE 12C-New-Features
ORACLE 12C-New-Features
 
Flashback - The Time Machine..
Flashback - The Time Machine..Flashback - The Time Machine..
Flashback - The Time Machine..
 
Oracle 12 c new-features
Oracle 12 c new-featuresOracle 12 c new-features
Oracle 12 c new-features
 
An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1An Approach to Sql tuning - Part 1
An Approach to Sql tuning - Part 1
 

Recently uploaded

Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
Techgropse Pvt.Ltd.
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
FODUU
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
SitimaJohn
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 

Recently uploaded (20)

Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Things to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUUThings to Consider When Choosing a Website Developer for your Website | FODUU
Things to Consider When Choosing a Website Developer for your Website | FODUU
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptxOcean lotus Threat actors project by John Sitima 2024 (1).pptx
Ocean lotus Threat actors project by John Sitima 2024 (1).pptx
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 

DataGuard - Oracle's Time Machine

  • 1. Data Guard The Actual Insurance of Data Navneet Upneja
  • 2. Agenda •Disaster Types •Disaster Plan •Data Guard Overview •Standby Databases •Data Guard Services •Role Transitions •Cascading Redo •Far Sync
  • 3. Disaster – Doesn’t need an Invitation
  • 4. •No Disaster Recovery Plan? So What do need?
  • 5. Data Guard – Insurance of your Database Efficient business operations, high quality customer service and safeguarding corporate information assets all require the highest possible level of data protection and data availability. Thus it is no surprise that data protection and data availability are among the top priorities for companies of all sizes and industries. •Oracle Data Guard ensures high availability, data protection, and disaster recovery for enterprise data. •Data Guard provides a comprehensive set of services that create, maintain, manage, and monitor one or more standby databases. •Data Guard maintains these standby databases as transactionally consistent copies of the production database. •if the production database becomes unavailable because of a planned or an unplanned outage, Data Guard can switch any standby database to the production role, minimizing the downtime associated with the outage
  • 6. DATA GUARD - Overview •A Data Guard configuration consists of one production database and one or more standby databases. •The databases in a Data Guard configuration are connected by Oracle Net and may be dispersed geographically. •There are no restrictions on where the databases are located, provided they can communicate with each other •Operates on a simple principle: •Ship Redo •Apply Reo
  • 7. What is a 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.
  • 8. What is a Standby database? •A standby database is a transactionally consistent copy of the primary database. •Using a backup copy of the primary database, you can create standby databases and incorporate them in a Data Guard configuration. •Once created, Data Guard automatically maintains each standby database by transmitting redo data from the primary database and then applying the redo to the standby database. •Physical Standby Database •Logical Standby Database •Snapshot Standby database
  • 9. Physical Standby Database •A physical standby database is an exact, block-for-block copy of a primary database. •A physical standby is maintained as an exact copy through a process called Redo Apply, in which redo data received from a primary database is continuously applied to a physical standby database using the database recovery mechanisms. •A physical standby database can be opened for read-only access and used to offload queries from a primary database. •If a license for the Oracle Active Data Guard option has been purchased, Redo Apply can be active while the physical standby database is open, thus allowing queries to return results that are identical to what would be returned from the primary database. This capability is known as the real-time query feature
  • 10. Logical Standby Database •A logical standby database is initially created as an identical copy of the primary database, but it later can be altered to have a different structure. •The logical standby database is updated by executing SQL statements. This allows users to access the standby database for queries and reporting at any time. •Data Guard automatically applies information from the archived redo log file or standby redo log file to the logical standby database by transforming the data in the log files into SQL statements and then executing the SQL statements on the logical standby database. • Because the logical standby database is updated using SQL statements, it must remain open. •While data that is being maintained by SQL Apply cannot be modified, additional objects can be created.
  • 11. Snapshot Standby Database •A Snapshot standby database is a type of updatable standby database that provides full data protection for a primary database. •A Snapshot standby database receives redo and archives, but does not apply redo data from its primary database. • Redo data received from the primary database is applied when a snapshot standby database is converted back into a physical standby database, after discarding all local updates to the snapshot standby database
  • 12. Data Guard Services There are three types of Services: - •Redo Transport Services : - Control the automated transfer of redo data from the production database to one or more archival destinations. •LNSn •ARCH •Log Apply Services: - Apply redo data on the standby database to maintain transactional synchronization with the primary database. •Redo Apply (Log Apply) •SQL Apply •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. •Failover •Switchover
  • 13. Data Guard - ARCH
  • 14. Data Guard – LGWR (LNS)
  • 15. Creating Physical Standby Database On Primary Database 1.Enable Force Logging “ALTER DATABASE FORCE LOGGING;” 2.LOG_ARCHIVE_CONFIG='DG_CONFIG=(ORCL,ORCLDB)‘ 3.LOG_ARCHIVE_DEST_2='SERVICE=ORCL NOAFFIRM ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ORCLDB'; 4.FAL_SERVER=ORCLDB 5.TNS Entries 6.Backup Primary Database 7.Add Standby Redo Logs.
  • 16. Cont.. On Standby Server 1.Copy Pfile from Primary and change the required parameters. 2.db_unique_name=‘ORCLDB‘ 3.fal_server=‘ORCL’ 4.log_archive_dest_2='SERVICE=ORCL ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ORCL‘ 5.Create Standby Database using RMAN Duplicate Command.
  • 17.
  • 18. Data Guard – Protection Modes •Maximum Performance Emphasis on Performance of Primary Database. Redo Transport Mode is : ASYNC LGWR in Primary NEVER waits for acknowledgement from Standby. Default Mode of Redo Transfer in Oracle 11g using LGWR method of sending Redo data If no standby database is available processing continues on primary. log_archive_dest_2='service="orcldb", LGWR ASYNC NOAFFIRM delay=0 optional db_unique_name="orcldb" ';
  • 19. Cont.. •Maximum Availability Availability as First Priority. ZERO data loss as close but still second priority. Redo Transport Mode : SYNC Primary Performance can get impacted depending upon the time taken to receive acknowledgement from Standby Server. Primary Database wait for maximum of time defined using “NET_TIMEOUT” parameter of LOG_ARCHIVE_DEST_n parameter. Defaults to 30secs
  • 20. Cont.. •Maximum Protection Utmost priority is DATA Protection Redo Transport Mode : SYNC Very much similar to Maximum Availability Except, it does not consider NET_TIMEOUT Parameter Continues to wait for Acknowledgement from Standby Server. Till then, LGWR remain stalled. Can impact Performance of Primary Database.
  • 21. ROLE TRANSITIION •SWITCHOVER Planned Event Reverses the role of Primary and Standby databases. Minimizes downtime during planned Maintenance. Process of Switchover Notifies Primary database about Switchover. Disconnects users . Generates special redo record “End of Redo” (EOR). Convert Primary into Standby. Apply EOR on standby and then converts standby into primary.
  • 22. Cont.. On Primary Database 1.ALTER DATABASE COMMIT TO SWITCHOVER TO STANDBY; 2.STARTUP MOUNT; 3.ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT; On Standby Database 1.ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY; 2.SHUTDOWN IMMEDIATE; 3.Startup
  • 23. Cont.. FAILOVER •Role Transition due to unplanned event. •Similar to SWITCHOVER except Primary database did not get chance to generate EOR. •Standby database apply last redo that is available on standby site. •Anything after that is LOST. •Data Lost depends upon the Protection mode in which Primary database was running. •No Data Loss in case of Maximum Protection. •Failover can be Manual or Automatic.
  • 24. Cascade Redo Transport •Need to be using 11.2.0.2 or higher. •Also known as Terminal Destination. •Receives Redo from Standby Database rather than from Primary Database, Also known as “Indirect Redo”. •Useful in cases where we have multiple standby databases •In 12c, Cascading Redo can be done real Time. •Only Physical standby databases can cascade redo.
  • 25. Far Sync Standby Database •New in Oracle 12c database. •Remote Data guard destination that receive redo from Primary Database. •Ships redo to other conventional standby databases. •Have Controlfile, Standby Redo Log Files •Consume little disk and other system resources. •Can be useful where actual Physical standby is places at far away location from Primary Database geographically.
  • 26. Automatic Archive Gap Resolution