SlideShare a Scribd company logo
1 of 48
Introduction to Data Guard
NY SIG Meeting
October 7th, 2003
Mr. Paranoid
(It’s my job)
Larry M. Carpenter
Senior Principal Consultant
Data Guard Development
Server Technologies
Oracle Corporation
Disaster Recovery Food Chain
Users Applications Databases
Networks
D
A
T
A
G
U
A
R
D
Servers
Oracle
So, just what is Data Guard?
 “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
Data Guard ‘Pyramid’
Physical and
Logical Standby
Databases
Production / Primary
Databases
Broker and CLI
EM Data Guard
Manager
High Level
 Data Guard comprises of two parts
– REDO APPLY (DR)
 Maintains a physical, block for block copy of the
Production (also called Primary) database.
– SQL APPLY (Reporting)
 Maintains a logical, transaction for transaction copy of
the Production database.
Data Guard Redo Apply: Best for DR
 Physical Standby Database is a block-for-block copy of the primary database
 Uses the database recovery functionality to apply changes
 Can be opened in read-only mode for reporting/queries
 Can also perform backup, offloading production database
 The best solution for DR
Data Guard Broker
Primary
Database
Physical Standby
Database
Optional
Delay
Sync or Async
Redo Shipping
Network
Redo Apply
DIGITAL DATA STORAGE
Backup
Data Guard SQL Apply
 Logical Standby Database is an open, independent, active database
 Contains the same logical information (rows) as the production database
 Physical organization and structure can be very different
 Can host multiple schemas
 Can be queried for reports while logs are being applied via SQL
 Can create additional indexes and materialized views for better query performance
 Not all Data Types supported (See the manual for a list)
Optional
Delay
Additional
Indexes &
Materialized Views
Sync or Async
Redo Shipping
Network
Continuously
Open for Reports
Transform Redo
to SQL and Apply
Data Guard Broker
Primary
Database Logical Standby
Database
Standby Databases Are Not Idle
Standby database can be used to
offload the primary database, increasing the ROI
Standby
Server
Standby
Database
Reporting
Backups
Tape
Protection from Human Errors and
Data Corruptions
 The application of changes received from the primary can be delayed
at standby to allow for the detection of user errors and prevent standby
to be affected
 The apply process also revalidates the log records to prevent
application of any log corruptions
Primary Site
Standby
Database
Standby Site
Production
Database
Optional Delayed Apply
TANSTAAFL
There Ain’t No Such Thing As A Free Lunch!
‘The Moon is a Harsh Mistress” – Robert Heinlein
Not Rocket Science!
 "Data Guard now has many sophisticated DR/HA features,
but still the thing that impresses me the most is its ease of
implementation and long term reliability. We don't have to
baby sit it. If there are problems, we don't have to dig through
documentation to remember how it works. Our management
has told us to do more with less DBAs, and Data Guard has
helped us implement a solid DR/HA solution without adding
DBAs.“
 Darl Kuhn – Lead DBA Sun IT
Setup Overview
 Step 1 - Prepare the Primary for Standby
 Step 2 - Copy the necessary files to standby system
 Step 3 - Configure the Standby Parameters
 Step 4 - Configure OracleNet
 Step 5 - Startup the Standby Site
 Step 6 - Begin Shipping and Applying Redo
Setup the Production Database
Check Archiving and Force Logging
Copy the Data files to the Standby
Standby Control file and Init file
Setup the Standby Init Parameters
Setup the Production Side TNS
Setup the Standby Side TNS
Launch the Standby Database
Start Sending Redo!
Verify the Primary is sending Redo
Add in the Standby Redo Log Files
Make sure they are being used
We’re Done!
 Well, I thought that was easy.
Of Course You Could use the GUI
Installation and Configuration
Considerations
 Enterprise Edition only for the Server
 Requires the same version and release of the Oracle
database server for the primary and all standby sites.
– Each primary database and standby database must have
its own control file.
– The primary database must run in ARCHIVELOG mode.
 Requires the same hardware architecture on the
primary and all standby sites.
 Does not require the same version and release of the
operating system on the primary and all standby sites.
Minimum Database
Requirements
 What do you need at a minimum?
– An Oracle9i primary database.
 Release 1 – 9.0.1.3 or higher
 Release 2 – 9.2.0.2 or higher if possible
- There are several patches to 9.2.0.2 if you do not
have 9.2.0.3
- Trust me, you need them
 At Oracle9i Release 2 if you want SQL Apply
– A standby database
 Same version as the primary
 With Standby Redo Logs if it’s a Physical standby
Minimum Environment
Requirements
 What else do you need?
– A network between the two!
 Primary system tnsname to the standby listener
 Standby system tnsname to the primary listener
 If the pipe isn’t big enough to send the redo it isn’t going
to work!
- And no, I do not recommend sneaker net!
– Redo Transport Services on the Primary
 Defines how the redo gets shipped to the standby
– A set of rules for the configuration to follow
 Which defines how you expect it to operate
Some other Gotcha’s
 Force Logging
– If you are at Release 2 use the force logging
command
 ALTER DATABASE FORCE LOGGING;
– If it isn’t in the redo stream, it isn’t in the standby.
 Know your Production Database!
– If you are using a Physical standby everything is
supported provided you force logging!
– If you want to use a Logical standby there are several
unsupported data types and other considerations
Data Guard and RAC
 RAC: high availability and scalability solution
within a data center, implemented on a single set
of storage
 Data Guard: Disaster Recovery and Data
Protection solution that can span data centers,
implemented on multiple storage systems
 Data Guard and RAC are complementary and
should be used together as foundations of a
Maximum Availability Architecture
Data Guard and Streams
 Streams and Data Guard are independent
features of Oracle Database Enterprise Edition,
based on some common underlying technology
 Data Guard: Disaster Recovery & Data Protection
– Transactionally consistent standby databases
– Zero data loss
 Streams: Information Sharing/Distribution
– Fine granularity and control over what is replicated
– Heterogeneous platforms
Basic Physical Standby
Configuration
LOG_ARCHIVE_DEST_1=‘LOCATION=location1_directory’
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_2=‘SERVICE=location2’
LOG_ARCHIVE_DEST_STATE_2=ENABLE
LOG_ARCHIVE_DEST_1=‘LOCATION=location2_directory’
LOG_ARCHIVE_DEST_STATE_1=ENABLE
LOG_ARCHIVE_DEST_2=‘SERVICE=location1’
LOG_ARCHIVE_DEST_STATE_2=DEFER
Primary
Database
Physical
Standby
Database
Redo Data Enabled
Redo Data Deferred
Location 1 Location 2
 One physical standby location provides basic disaster protection (a
remote block-for-block copy of the primary database), but there is no
additional protection in effect if either location fails
 Physical standby database can be used for reporting (redo apply must
be temporarily paused)
Improved Physical Standby
Configuration
 Two physical standby locations maintain full disaster protection after any
one location (primary or standby) fails
 One standby can be kept current with the primary database to facilitate fast
failover while the other can be configured with a redo apply delay to create
a “window of protection” against user error
Primary
Database
Location 1
Location 2
Location 3
Physical
Standby
Database
Physical
Standby
Database
Getting More From Your Standby
Systems
Primary
Database
Location 1
Location 2
Physical
Standby
Database
Logical
Standby
Database
Remote Archived Logs
 Physical standby (in recovery mode):
– Maintains block-for-block copy of all primary data for disaster protection
– Offloads database backups from primary
 Logical standby is optimized for continuous reporting, with additional:
– Indexes
– Materialized Views
Getting More From Your Standby
Systems (cont’d)
 Another physical standby can be used to provide disaster
protection for the logical standby
Primary
Database
Location 1
Location 2
Location 3
Physical
Standby
Database
Physical
Standby
Database
Logical
Standby
Database
Physical
Standby
Database
Cascaded Redo Destinations
 Standby databases optionally can receive redo data from another standby
database instead of the original primary database
 Primary database sends redo data only to selected standby databases and not
to all standby databases
 Reduces the load on the primary system, and also reduces network traffic and
use of valuable network resources around the primary site
Primary
Database
Regenerated
Redo Data
Logical
Standby
Database
Standby
Database
Retransmitted
Redo Data
Physical
Standby
Database
Standby
Database
Q U E S T I O N S
A N S W E R S
Oracle presentations RAC dataguard active database

More Related Content

Similar to Oracle presentations RAC dataguard active database

Oracle Data Guard for Beginners
Oracle Data Guard for BeginnersOracle Data Guard for Beginners
Oracle Data Guard for BeginnersPini Dibask
 
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 BeginnersPini Dibask
 
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 12cHari Srinivasan
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architectureVimlendu Kumar
 
OVHcloud – Enterprise Cloud Databases
OVHcloud – Enterprise Cloud DatabasesOVHcloud – Enterprise Cloud Databases
OVHcloud – Enterprise Cloud DatabasesOVHcloud
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.pptHODCA1
 
Data guard logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1Ram Naani
 
FOISDBA-Ver1.1.pptx
FOISDBA-Ver1.1.pptxFOISDBA-Ver1.1.pptx
FOISDBA-Ver1.1.pptxssuser20fcbe
 
Dataguard first apply patch
Dataguard first apply patchDataguard first apply patch
Dataguard first apply patchPalash Sarkar
 
Oaklands college: Protecting your data.
Oaklands college: Protecting your data.Oaklands college: Protecting your data.
Oaklands college: Protecting your data.JISC RSC Eastern
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to ZZohar Elkayam
 
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Toronto-Oracle-Users-Group
 
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 Glen Hawkins
 
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdfOracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdfEqunix Business Solutions
 
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Joel Oleson
 
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02malonzo
 
Failure analysis buisness impact-backup-archive
Failure analysis buisness impact-backup-archiveFailure analysis buisness impact-backup-archive
Failure analysis buisness impact-backup-archiveDavin Abraham
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1Dan Glasscock
 

Similar to Oracle presentations RAC dataguard active database (20)

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
 
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
 
Data guard architecture
Data guard architectureData guard architecture
Data guard architecture
 
OVHcloud – Enterprise Cloud Databases
OVHcloud – Enterprise Cloud DatabasesOVHcloud – Enterprise Cloud Databases
OVHcloud – Enterprise Cloud Databases
 
D79232GC10_les01.ppt
D79232GC10_les01.pptD79232GC10_les01.ppt
D79232GC10_les01.ppt
 
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 logical_r3.1
Data guard logical_r3.1Data guard logical_r3.1
Data guard logical_r3.1
 
FOISDBA-Ver1.1.pptx
FOISDBA-Ver1.1.pptxFOISDBA-Ver1.1.pptx
FOISDBA-Ver1.1.pptx
 
Data guard oracle
Data guard oracleData guard oracle
Data guard oracle
 
Dataguard first apply patch
Dataguard first apply patchDataguard first apply patch
Dataguard first apply patch
 
Oaklands college: Protecting your data.
Oaklands college: Protecting your data.Oaklands college: Protecting your data.
Oaklands college: Protecting your data.
 
Oracle Data Guard A to Z
Oracle Data Guard A to ZOracle Data Guard A to Z
Oracle Data Guard A to Z
 
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
 
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
 
Oracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdfOracle to PostgreSQL, Challenges to Opportunity.pdf
Oracle to PostgreSQL, Challenges to Opportunity.pdf
 
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007Tech Ed Africa Demystifying Backup Restore In Share Point 2007
Tech Ed Africa Demystifying Backup Restore In Share Point 2007
 
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
Techedafricademystifyingbackuprestoreinsharepoint2007 090805103250 Phpapp02
 
Failure analysis buisness impact-backup-archive
Failure analysis buisness impact-backup-archiveFailure analysis buisness impact-backup-archive
Failure analysis buisness impact-backup-archive
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 

Recently uploaded

Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxmavinoikein
 
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@vikas rana
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...NETWAYS
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Pooja Nehwal
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )Pooja Nehwal
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
SBFT Tool Competition 2024 -- Python Test Case Generation Track
SBFT Tool Competition 2024 -- Python Test Case Generation TrackSBFT Tool Competition 2024 -- Python Test Case Generation Track
SBFT Tool Competition 2024 -- Python Test Case Generation TrackSebastiano Panichella
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...NETWAYS
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...NETWAYS
 
LANDMARKS AND MONUMENTS IN NIGERIA.pptx
LANDMARKS  AND MONUMENTS IN NIGERIA.pptxLANDMARKS  AND MONUMENTS IN NIGERIA.pptx
LANDMARKS AND MONUMENTS IN NIGERIA.pptxBasil Achie
 
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSebastiano Panichella
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...henrik385807
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Salam Al-Karadaghi
 
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)Basil Achie
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxFamilyWorshipCenterD
 

Recently uploaded (20)

Work Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptxWork Remotely with Confluence ACE 2.pptx
Work Remotely with Confluence ACE 2.pptx
 
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Rohini Delhi 💯Call Us 🔝8264348440🔝
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
OSCamp Kubernetes 2024 | SRE Challenges in Monolith to Microservices Shift at...
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
 
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Vaishnavi 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Vaishnavi 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
SBFT Tool Competition 2024 -- Python Test Case Generation Track
SBFT Tool Competition 2024 -- Python Test Case Generation TrackSBFT Tool Competition 2024 -- Python Test Case Generation Track
SBFT Tool Competition 2024 -- Python Test Case Generation Track
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
Open Source Camp Kubernetes 2024 | Monitoring Kubernetes With Icinga by Eric ...
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
LANDMARKS AND MONUMENTS IN NIGERIA.pptx
LANDMARKS  AND MONUMENTS IN NIGERIA.pptxLANDMARKS  AND MONUMENTS IN NIGERIA.pptx
LANDMARKS AND MONUMENTS IN NIGERIA.pptx
 
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with AerialistSimulation-based Testing of Unmanned Aerial Vehicles with Aerialist
Simulation-based Testing of Unmanned Aerial Vehicles with Aerialist
 
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
 
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
Exploring protein-protein interactions by Weak Affinity Chromatography (WAC) ...
 
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
NATIONAL ANTHEMS OF AFRICA (National Anthems of Africa)
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
 

Oracle presentations RAC dataguard active database

  • 1.
  • 2. Introduction to Data Guard NY SIG Meeting October 7th, 2003
  • 3. Mr. Paranoid (It’s my job) Larry M. Carpenter Senior Principal Consultant Data Guard Development Server Technologies Oracle Corporation
  • 4.
  • 5. Disaster Recovery Food Chain Users Applications Databases Networks D A T A G U A R D Servers Oracle
  • 6. So, just what is Data Guard?  “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? ?
  • 7. 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
  • 8. Data Guard ‘Pyramid’ Physical and Logical Standby Databases Production / Primary Databases Broker and CLI EM Data Guard Manager
  • 9. High Level  Data Guard comprises of two parts – REDO APPLY (DR)  Maintains a physical, block for block copy of the Production (also called Primary) database. – SQL APPLY (Reporting)  Maintains a logical, transaction for transaction copy of the Production database.
  • 10. Data Guard Redo Apply: Best for DR  Physical Standby Database is a block-for-block copy of the primary database  Uses the database recovery functionality to apply changes  Can be opened in read-only mode for reporting/queries  Can also perform backup, offloading production database  The best solution for DR Data Guard Broker Primary Database Physical Standby Database Optional Delay Sync or Async Redo Shipping Network Redo Apply DIGITAL DATA STORAGE Backup
  • 11. Data Guard SQL Apply  Logical Standby Database is an open, independent, active database  Contains the same logical information (rows) as the production database  Physical organization and structure can be very different  Can host multiple schemas  Can be queried for reports while logs are being applied via SQL  Can create additional indexes and materialized views for better query performance  Not all Data Types supported (See the manual for a list) Optional Delay Additional Indexes & Materialized Views Sync or Async Redo Shipping Network Continuously Open for Reports Transform Redo to SQL and Apply Data Guard Broker Primary Database Logical Standby Database
  • 12. Standby Databases Are Not Idle Standby database can be used to offload the primary database, increasing the ROI Standby Server Standby Database Reporting Backups Tape
  • 13. Protection from Human Errors and Data Corruptions  The application of changes received from the primary can be delayed at standby to allow for the detection of user errors and prevent standby to be affected  The apply process also revalidates the log records to prevent application of any log corruptions Primary Site Standby Database Standby Site Production Database Optional Delayed Apply
  • 14.
  • 15. TANSTAAFL There Ain’t No Such Thing As A Free Lunch! ‘The Moon is a Harsh Mistress” – Robert Heinlein
  • 16.
  • 17. Not Rocket Science!  "Data Guard now has many sophisticated DR/HA features, but still the thing that impresses me the most is its ease of implementation and long term reliability. We don't have to baby sit it. If there are problems, we don't have to dig through documentation to remember how it works. Our management has told us to do more with less DBAs, and Data Guard has helped us implement a solid DR/HA solution without adding DBAs.“  Darl Kuhn – Lead DBA Sun IT
  • 18. Setup Overview  Step 1 - Prepare the Primary for Standby  Step 2 - Copy the necessary files to standby system  Step 3 - Configure the Standby Parameters  Step 4 - Configure OracleNet  Step 5 - Startup the Standby Site  Step 6 - Begin Shipping and Applying Redo
  • 20. Check Archiving and Force Logging
  • 21. Copy the Data files to the Standby
  • 22. Standby Control file and Init file
  • 23. Setup the Standby Init Parameters
  • 25. Setup the Standby Side TNS
  • 26. Launch the Standby Database
  • 28. Verify the Primary is sending Redo
  • 29. Add in the Standby Redo Log Files
  • 30. Make sure they are being used
  • 31. We’re Done!  Well, I thought that was easy.
  • 32. Of Course You Could use the GUI
  • 33.
  • 34. Installation and Configuration Considerations  Enterprise Edition only for the Server  Requires the same version and release of the Oracle database server for the primary and all standby sites. – Each primary database and standby database must have its own control file. – The primary database must run in ARCHIVELOG mode.  Requires the same hardware architecture on the primary and all standby sites.  Does not require the same version and release of the operating system on the primary and all standby sites.
  • 35. Minimum Database Requirements  What do you need at a minimum? – An Oracle9i primary database.  Release 1 – 9.0.1.3 or higher  Release 2 – 9.2.0.2 or higher if possible - There are several patches to 9.2.0.2 if you do not have 9.2.0.3 - Trust me, you need them  At Oracle9i Release 2 if you want SQL Apply – A standby database  Same version as the primary  With Standby Redo Logs if it’s a Physical standby
  • 36. Minimum Environment Requirements  What else do you need? – A network between the two!  Primary system tnsname to the standby listener  Standby system tnsname to the primary listener  If the pipe isn’t big enough to send the redo it isn’t going to work! - And no, I do not recommend sneaker net! – Redo Transport Services on the Primary  Defines how the redo gets shipped to the standby – A set of rules for the configuration to follow  Which defines how you expect it to operate
  • 37. Some other Gotcha’s  Force Logging – If you are at Release 2 use the force logging command  ALTER DATABASE FORCE LOGGING; – If it isn’t in the redo stream, it isn’t in the standby.  Know your Production Database! – If you are using a Physical standby everything is supported provided you force logging! – If you want to use a Logical standby there are several unsupported data types and other considerations
  • 38.
  • 39. Data Guard and RAC  RAC: high availability and scalability solution within a data center, implemented on a single set of storage  Data Guard: Disaster Recovery and Data Protection solution that can span data centers, implemented on multiple storage systems  Data Guard and RAC are complementary and should be used together as foundations of a Maximum Availability Architecture
  • 40. Data Guard and Streams  Streams and Data Guard are independent features of Oracle Database Enterprise Edition, based on some common underlying technology  Data Guard: Disaster Recovery & Data Protection – Transactionally consistent standby databases – Zero data loss  Streams: Information Sharing/Distribution – Fine granularity and control over what is replicated – Heterogeneous platforms
  • 41.
  • 42. Basic Physical Standby Configuration LOG_ARCHIVE_DEST_1=‘LOCATION=location1_directory’ LOG_ARCHIVE_DEST_STATE_1=ENABLE LOG_ARCHIVE_DEST_2=‘SERVICE=location2’ LOG_ARCHIVE_DEST_STATE_2=ENABLE LOG_ARCHIVE_DEST_1=‘LOCATION=location2_directory’ LOG_ARCHIVE_DEST_STATE_1=ENABLE LOG_ARCHIVE_DEST_2=‘SERVICE=location1’ LOG_ARCHIVE_DEST_STATE_2=DEFER Primary Database Physical Standby Database Redo Data Enabled Redo Data Deferred Location 1 Location 2  One physical standby location provides basic disaster protection (a remote block-for-block copy of the primary database), but there is no additional protection in effect if either location fails  Physical standby database can be used for reporting (redo apply must be temporarily paused)
  • 43. Improved Physical Standby Configuration  Two physical standby locations maintain full disaster protection after any one location (primary or standby) fails  One standby can be kept current with the primary database to facilitate fast failover while the other can be configured with a redo apply delay to create a “window of protection” against user error Primary Database Location 1 Location 2 Location 3 Physical Standby Database Physical Standby Database
  • 44. Getting More From Your Standby Systems Primary Database Location 1 Location 2 Physical Standby Database Logical Standby Database Remote Archived Logs  Physical standby (in recovery mode): – Maintains block-for-block copy of all primary data for disaster protection – Offloads database backups from primary  Logical standby is optimized for continuous reporting, with additional: – Indexes – Materialized Views
  • 45. Getting More From Your Standby Systems (cont’d)  Another physical standby can be used to provide disaster protection for the logical standby Primary Database Location 1 Location 2 Location 3 Physical Standby Database Physical Standby Database Logical Standby Database Physical Standby Database
  • 46. Cascaded Redo Destinations  Standby databases optionally can receive redo data from another standby database instead of the original primary database  Primary database sends redo data only to selected standby databases and not to all standby databases  Reduces the load on the primary system, and also reduces network traffic and use of valuable network resources around the primary site Primary Database Regenerated Redo Data Logical Standby Database Standby Database Retransmitted Redo Data Physical Standby Database Standby Database
  • 47. Q U E S T I O N S A N S W E R S