SlideShare a Scribd company logo
Our Awards:
UKOUG Technology Conference 2013
By Marcin Przepiorowski, Senior Oracle DBA
December 2013
Data Guard - Implementation Tips
Marcin Przepiorowski
Oracle Capability Group
Core
Technology
Development
Tools
E-Business
Suite
Business
Intelligence
Java/SOA
About Version 1
Technology Leadership
Architectural Oversight
Knowledge Sharing
Certification and Training
Peer Support and Mentoring
Lessons Learned
Marcin Przepiorowski
About me
Working with Oracle technology since 2001
@pioro
marcin.przepiorowski
oracleprof.blogspot.com
Marcin Przepiorowski
Agenda
• Configuration
• RMAN
• Role Change
• Client connectivity
• Standby database performance
• Monitoring / issues
• Oracle Restart
• Active Data Guard
• Oracle 12c – Far Sync
Marcin Przepiorowski
DataGuard: Configuration
• Database protection mode
– Maximum Performance
– Maximum Availability
– Maximum Protection
Marcin Przepiorowski
DataGuard: Configuration
• Log transport
– synchronous - since 11g done by child processes spawned by LGWR
– asynchronous - ARCn processes
Marcin Przepiorowski
DataGuard: Configuration
• NET_TIMEOUT
– SYNC mode only
– Default value 30 sec – LGWR will hang for 30 sec waiting for confirmation
– Recommended value 10 sec
Marcin Przepiorowski
DataGuard: Configuration
• COMPRESSION
– Support current redo logs (11.2+) and gap resolution
– Additional licence required
– Details ID 729551.1
Marcin Przepiorowski
DataGuard: Configuration
• MAX_CONNECTIONS
– Default is 1 connection
– Leave the default until you really need to change it – in 11.1 it disable real time apply
– Helping resolve gap (sometimes)
Marcin Przepiorowski
DataGuard: Configuration
• Listener separation
– Application
– Data Guard
• Static entries for Data Guard Broker services:
– Deafult <db_unique_name>_DGMGRL
– Name can be customized
Marcin Przepiorowski
DataGuard: Configuration
• Register your application in listeners using “local_listeners”
or static entries
• Use “listener_network” parameter to configure dedicated
network for Data Guard in RAC configuration to avoid
wrong load balancer redirection
Marcin Przepiorowski
DataGuard: Configuration
• Changes of Data Guard related parameters in Broker
will be pushed into instance parameter file
• Changes of Data Guard related parameters in instance
will be NOT pushed into Broker configuration
• Differences will be reported and some of them can be overwritten
by Broker
Marcin Przepiorowski
DataGuard: Configuration
• Flashback database
– Required for Fast Start Fail-over
– Re-instance database
– Snapshot database
Marcin Przepiorowski
DataGuard: RMAN
• Create standby using RMAN
– Duplicate from active database – no backup required
12c is using using network backup set from service
– Duplicate from existing backup
Marcin Przepiorowski
• Resolving standby GAPs using RMAN in 11g
– Find oldest SCN applied into standby data files from these two sources
MIN ( CHECKPOINT_CHANGE# ) from V$DATAFILE
CURRENT_SCN from V$DATABASE
DataGuard: RMAN
Marcin Przepiorowski
Primary
backup incremental from scn XXXXXXXXX database format ‘bck_%d_%s…’
backup current control file for standby format ‘control_........’
Standby
catalog start with ‘/…..’
recover database noredo;
Restart instance into nomount
Restore controlfile from ‘/backup/……….’;
DataGuard: RMAN – 11g
Marcin Przepiorowski
Primary
backup current control file for standby format ‘control_........’
Standby
recover database from service <primary> using compressed backupset;
restore control file from ‘/backup/……….’;
restart instance
DataGuard: RMAN - 12c
Marcin Przepiorowski
• Fast switchover
– Make sure listeners are up on standby
– Stop applications listeners on primary
– Check if Primary / Standby are in sync
– Kill all sessions from Oracle / OS
– Switch redo log file on primary database
– Start switchover
DataGuard: Role change
Marcin Przepiorowski
DataGuard: Role change
• Fast failover
– Make sure listeners are up on standby
– Check if Primary / Standby are in sync
– Switch redo log file on primary database
– Shutdown abort primary database
– Failover database using Broker
Marcin Przepiorowski
DataGuard: Client connectivity
• Use services to access database
• Control services with triggers
• Transparent Application Failover can work with Data Guard
– Connection time failover
– Session / Select failover
• Data Guard has support for WebLogic connection pools
• Data Guard has support for ONS / FAN
• DNS alias to connect to primary / standby database
Marcin Przepiorowski
DataGuard: Client connectivity
exec dbms_service.create_service('testrac_taf','testrac_taf');
exec DBMS_SERVICE.START_SERVICE('testrac_taf');
create trigger start_service_trg after startup on database
…
if v_role = 'PRIMARY' then
DBMS_SERVICE.START_SERVICE('testrac_taf');
else
DBMS_SERVICE.STOP_SERVICE('testrac_taf');
end if;
…
Marcin Przepiorowski
DataGuard: Standby database performance
• Standby is just another Oracle database
• Remote Statspack is possible if standby is in open mode
• V$SESSION / V$SYSTEM_EVENT / V$SESSION_EVENT
• Write your own script or find a one working in mount state
Marcin Przepiorowski
DataGuard: Standby database performance
• There are two main phases on standby
– Applying logs
– Checkpoints
• Play with number of parallel processes applying logs P0xx
• Make sure all data are in buffer cache
• Check hardware statistics ( CPU / disks / network )
• Consider disabling flashback mode on standby if your disk are overloaded
Marcin Przepiorowski
DataGuard: Standby database performance
Problem – standby is behind primary
• Database is switching 2 GB logs once per minute
• 20 sec spend during apply process
• 40 sec spend doing checkpoint on standby
– checkpoint is done after every switch
Solution
• Increase size of redo / standby logs from 2 GB to 19 GB
less time will be spend for checkpoints
Marcin Przepiorowski
DataGuard: Monitoring / Issues
v$dataguard_stats;
v$dataguard_status;
v$recovery_progress;
alert.log, trace files
Marcin Przepiorowski
DataGuard: Monitoring / Issues
• Bounce ARCH process on primary
• Make sure you have same password file on both nodes
• Recreate standby control file
• Delete and recreate broker configuration
• Search for know bugs
Marcin Przepiorowski
DataGuard: Oracle Restart
• If you are not using 11.2.0.4 PSU OCT 2014 be aware of wrong open mode
after fail/switch over if there is no Active Data Guard License in place
Check bug / enhancement request - 9375220 and Note ID 1522542.1
• To avoid manual intervention CRS script can be used
check my blog for details - http://oracleprof.blogspot.ie/2012/08/dataguard-
and-oracle-restart-how-to.html
Marcin Przepiorowski
DataGuard: Active Data Guard
• Standby database is open for read only queries
and log applying is still running in background
• Additional licence but you can use your standby database
for reports
• Queries can wait until standby will be synchronized
and maximum delay when query will run can be defined
Marcin Przepiorowski
DataGuard: Active Data Guard
• With some work (using instead of triggers and db links)
Active Data Guard can be treat like Read Write
• RMAN can use standby to recover corrupted blocks
Marcin Przepiorowski
DataGuard: Oracle 12c – Far Sync
• Synchronous mode for longer distance between primary
and standby
Marcin Przepiorowski
DataGuard: Oracle 12c – Far Sync
DC 1 DC 2
Round trip – 32 ms – SYNC mode increase commit time
5000 km
Round trip – local network – no problems with SYNC and commit time
Marcin Przepiorowski
Q & A
www.version1.com
oracleprof.blogspot.com

More Related Content

What's hot

Oracle Database 12.1.0.2: New Features
Oracle Database 12.1.0.2: New FeaturesOracle Database 12.1.0.2: New Features
Oracle Database 12.1.0.2: New Features
Deiby Gómez
 
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
 
JPA and Coherence with TopLink Grid
JPA and Coherence with TopLink GridJPA and Coherence with TopLink Grid
JPA and Coherence with TopLink Grid
James Bayer
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
aguswahyudi09
 
Basic Archive System overview
Basic Archive System overviewBasic Archive System overview
Basic Archive System overview
Jan-Ivar Bøyum
 
Boost your Oracle RAC manageability with Policy-Managed Databases
Boost your Oracle RAC manageability with Policy-Managed DatabasesBoost your Oracle RAC manageability with Policy-Managed Databases
Boost your Oracle RAC manageability with Policy-Managed Databases
Ludovico Caldara
 
Oracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&TricksOracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&Tricks
Zekeriya Besiroglu
 
Rapid Home Provisioning
Rapid Home ProvisioningRapid Home Provisioning
Rapid Home Provisioning
Ludovico Caldara
 
Using Netezza Query Plan to Improve Performace
Using Netezza Query Plan to Improve PerformaceUsing Netezza Query Plan to Improve Performace
Using Netezza Query Plan to Improve Performace
Biju Nair
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With Coherence
James Bayer
 
Oracle_Sivaram_Resume
Oracle_Sivaram_ResumeOracle_Sivaram_Resume
Oracle_Sivaram_Resume
sivaramakumar dasari
 
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Ravikumar Nandigam
 
Database Security Threats - MariaDB Security Best Practices
Database Security Threats - MariaDB Security Best PracticesDatabase Security Threats - MariaDB Security Best Practices
Database Security Threats - MariaDB Security Best Practices
MariaDB plc
 
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databasesRACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
Ludovico Caldara
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
satish Gaddipati
 
NCache 3.8 SP3
NCache 3.8 SP3NCache 3.8 SP3
NCache 3.8 SP3
wesnoor
 
Sayed database system_architecture
Sayed database system_architectureSayed database system_architecture
Sayed database system_architecture
Sayed Ahmed
 
Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability, is it a developer's job?Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability, is it a developer's job?
Ludovico Caldara
 

What's hot (18)

Oracle Database 12.1.0.2: New Features
Oracle Database 12.1.0.2: New FeaturesOracle Database 12.1.0.2: New Features
Oracle Database 12.1.0.2: New Features
 
Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012Data Guard Deep Dive UKOUG 2012
Data Guard Deep Dive UKOUG 2012
 
JPA and Coherence with TopLink Grid
JPA and Coherence with TopLink GridJPA and Coherence with TopLink Grid
JPA and Coherence with TopLink Grid
 
Oracle dataguard overview
Oracle dataguard overviewOracle dataguard overview
Oracle dataguard overview
 
Basic Archive System overview
Basic Archive System overviewBasic Archive System overview
Basic Archive System overview
 
Boost your Oracle RAC manageability with Policy-Managed Databases
Boost your Oracle RAC manageability with Policy-Managed DatabasesBoost your Oracle RAC manageability with Policy-Managed Databases
Boost your Oracle RAC manageability with Policy-Managed Databases
 
Oracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&TricksOracle Rac Performance Tunning Tips&Tricks
Oracle Rac Performance Tunning Tips&Tricks
 
Rapid Home Provisioning
Rapid Home ProvisioningRapid Home Provisioning
Rapid Home Provisioning
 
Using Netezza Query Plan to Improve Performace
Using Netezza Query Plan to Improve PerformaceUsing Netezza Query Plan to Improve Performace
Using Netezza Query Plan to Improve Performace
 
App Grid Dev With Coherence
App Grid Dev With CoherenceApp Grid Dev With Coherence
App Grid Dev With Coherence
 
Oracle_Sivaram_Resume
Oracle_Sivaram_ResumeOracle_Sivaram_Resume
Oracle_Sivaram_Resume
 
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
 
Database Security Threats - MariaDB Security Best Practices
Database Security Threats - MariaDB Security Best PracticesDatabase Security Threats - MariaDB Security Best Practices
Database Security Threats - MariaDB Security Best Practices
 
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databasesRACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
 
Analyzing awr report
Analyzing awr reportAnalyzing awr report
Analyzing awr report
 
NCache 3.8 SP3
NCache 3.8 SP3NCache 3.8 SP3
NCache 3.8 SP3
 
Sayed database system_architecture
Sayed database system_architectureSayed database system_architecture
Sayed database system_architecture
 
Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability, is it a developer's job?Oracle Drivers configuration for High Availability, is it a developer's job?
Oracle Drivers configuration for High Availability, is it a developer's job?
 

Viewers also liked

Animals in danger5A
Animals in danger5AAnimals in danger5A
Animals in danger5A
Julián Sanz Mamolar
 
Vocabulary food
Vocabulary foodVocabulary food
Vocabulary food
Julián Sanz Mamolar
 
гигиена зрения 8 класс
гигиена зрения 8 классгигиена зрения 8 класс
гигиена зрения 8 классElena409
 
классный час великая победа
классный час великая победаклассный час великая победа
классный час великая победаElena409
 
Wvpresentation
WvpresentationWvpresentation
Wvpresentation
rburnsppl
 
One Source Solution
One Source SolutionOne Source Solution
One Source Solution
dxgreen
 
International communications-ppt
International communications-pptInternational communications-ppt
International communications-ppt
gshirdan
 
Broker otw.pptx
Broker otw.pptxBroker otw.pptx
Broker otw.pptx
Marcin Przepiórowski
 
формула здоровья
формула здоровьяформула здоровья
формула здоровьяElena409
 
Attributes of mushrooms and toadstools presentation
Attributes of mushrooms and toadstools presentationAttributes of mushrooms and toadstools presentation
Attributes of mushrooms and toadstools presentation
Julián Sanz Mamolar
 
The life of macroscophic or higher fungi
The life of macroscophic or higher fungiThe life of macroscophic or higher fungi
The life of macroscophic or higher fungi
Julián Sanz Mamolar
 
Classroom language, redXXI
Classroom language, redXXIClassroom language, redXXI
Classroom language, redXXI
Julián Sanz Mamolar
 
Awr doag
Awr doagAwr doag
Avoid boring work_v2
Avoid boring work_v2Avoid boring work_v2
Avoid boring work_v2
Marcin Przepiórowski
 
Vocabulary of food
Vocabulary of foodVocabulary of food
Vocabulary of food
Julián Sanz Mamolar
 
Animals in danger 5th B
Animals in danger 5th BAnimals in danger 5th B
Animals in danger 5th B
Julián Sanz Mamolar
 
International communications-ppt
International communications-pptInternational communications-ppt
International communications-ppt
gshirdan
 

Viewers also liked (17)

Animals in danger5A
Animals in danger5AAnimals in danger5A
Animals in danger5A
 
Vocabulary food
Vocabulary foodVocabulary food
Vocabulary food
 
гигиена зрения 8 класс
гигиена зрения 8 классгигиена зрения 8 класс
гигиена зрения 8 класс
 
классный час великая победа
классный час великая победаклассный час великая победа
классный час великая победа
 
Wvpresentation
WvpresentationWvpresentation
Wvpresentation
 
One Source Solution
One Source SolutionOne Source Solution
One Source Solution
 
International communications-ppt
International communications-pptInternational communications-ppt
International communications-ppt
 
Broker otw.pptx
Broker otw.pptxBroker otw.pptx
Broker otw.pptx
 
формула здоровья
формула здоровьяформула здоровья
формула здоровья
 
Attributes of mushrooms and toadstools presentation
Attributes of mushrooms and toadstools presentationAttributes of mushrooms and toadstools presentation
Attributes of mushrooms and toadstools presentation
 
The life of macroscophic or higher fungi
The life of macroscophic or higher fungiThe life of macroscophic or higher fungi
The life of macroscophic or higher fungi
 
Classroom language, redXXI
Classroom language, redXXIClassroom language, redXXI
Classroom language, redXXI
 
Awr doag
Awr doagAwr doag
Awr doag
 
Avoid boring work_v2
Avoid boring work_v2Avoid boring work_v2
Avoid boring work_v2
 
Vocabulary of food
Vocabulary of foodVocabulary of food
Vocabulary of food
 
Animals in danger 5th B
Animals in danger 5th BAnimals in danger 5th B
Animals in danger 5th B
 
International communications-ppt
International communications-pptInternational communications-ppt
International communications-ppt
 

Similar to Dg v1 3 ukoug_sg.pptx

Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard Broker
Zohar Elkayam
 
Dg broker &amp; client connectivity - High Availability Day 2015
Dg broker &amp; client connectivity -  High Availability Day 2015Dg broker &amp; client connectivity -  High Availability Day 2015
Dg broker &amp; client connectivity - High Availability Day 2015
aioughydchapter
 
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptxThink_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Payal Singh
 
Oracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptxOracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptx
naveencl4
 
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
 
Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
Guenadi JILEVSKI
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
Pini Dibask
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
Martin Meyer
 
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
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
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
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
Nabi Abdul
 
Oracle Data Guard for Beginners
Oracle Data Guard for BeginnersOracle Data Guard for Beginners
Oracle Data Guard for Beginners
Pini 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 Beginners
Pini Dibask
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
Dan Glasscock
 
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
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
Neaman Ahmed MBA ITIL OCP Automic
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
Satishbabu Gunukula
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
Vimlendu Kumar
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
Jade Global
 

Similar to Dg v1 3 ukoug_sg.pptx (20)

Introduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard BrokerIntroduction to Oracle Data Guard Broker
Introduction to Oracle Data Guard Broker
 
Dg broker &amp; client connectivity - High Availability Day 2015
Dg broker &amp; client connectivity -  High Availability Day 2015Dg broker &amp; client connectivity -  High Availability Day 2015
Dg broker &amp; client connectivity - High Availability Day 2015
 
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptxThink_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
Think_your_Postgres_backups_and_recovery_are_safe_lets_talk.pptx
 
Oracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptxOracle-12cData-Guard-Broker-Session-4.pptx
Oracle-12cData-Guard-Broker-Session-4.pptx
 
High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2High Availability And Oracle Data Guard 11g R2
High Availability And Oracle Data Guard 11g R2
 
Data Guard25 August
Data Guard25 AugustData Guard25 August
Data Guard25 August
 
Oracle data guard for beginners
Oracle data guard for beginnersOracle data guard for beginners
Oracle data guard for beginners
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 
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
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
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
 
Rman 12c new_features
Rman 12c new_featuresRman 12c new_features
Rman 12c new_features
 
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
 
Oow14 con7681-rman-1
Oow14 con7681-rman-1Oow14 con7681-rman-1
Oow14 con7681-rman-1
 
Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
con8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdfcon8832-cloudha-2811114.pdf
con8832-cloudha-2811114.pdf
 
Data Guard Architecture & Setup
Data Guard Architecture & SetupData Guard Architecture & Setup
Data Guard Architecture & Setup
 
Dataguard presentation
Dataguard presentationDataguard presentation
Dataguard presentation
 
Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012Disaster Recovery Infrastructure Whitepaper 2012
Disaster Recovery Infrastructure Whitepaper 2012
 

Recently uploaded

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
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
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
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
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Finale of the Year: Apply for Next One!
Finale of the Year: Apply for Next One!Finale of the Year: Apply for Next One!
Finale of the Year: Apply for Next One!
GDSC PJATK
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 

Recently uploaded (20)

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
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
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Finale of the Year: Apply for Next One!
Finale of the Year: Apply for Next One!Finale of the Year: Apply for Next One!
Finale of the Year: Apply for Next One!
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 

Dg v1 3 ukoug_sg.pptx

  • 1. Our Awards: UKOUG Technology Conference 2013 By Marcin Przepiorowski, Senior Oracle DBA December 2013 Data Guard - Implementation Tips
  • 2. Marcin Przepiorowski Oracle Capability Group Core Technology Development Tools E-Business Suite Business Intelligence Java/SOA About Version 1 Technology Leadership Architectural Oversight Knowledge Sharing Certification and Training Peer Support and Mentoring Lessons Learned
  • 3. Marcin Przepiorowski About me Working with Oracle technology since 2001 @pioro marcin.przepiorowski oracleprof.blogspot.com
  • 4. Marcin Przepiorowski Agenda • Configuration • RMAN • Role Change • Client connectivity • Standby database performance • Monitoring / issues • Oracle Restart • Active Data Guard • Oracle 12c – Far Sync
  • 5. Marcin Przepiorowski DataGuard: Configuration • Database protection mode – Maximum Performance – Maximum Availability – Maximum Protection
  • 6. Marcin Przepiorowski DataGuard: Configuration • Log transport – synchronous - since 11g done by child processes spawned by LGWR – asynchronous - ARCn processes
  • 7. Marcin Przepiorowski DataGuard: Configuration • NET_TIMEOUT – SYNC mode only – Default value 30 sec – LGWR will hang for 30 sec waiting for confirmation – Recommended value 10 sec
  • 8. Marcin Przepiorowski DataGuard: Configuration • COMPRESSION – Support current redo logs (11.2+) and gap resolution – Additional licence required – Details ID 729551.1
  • 9. Marcin Przepiorowski DataGuard: Configuration • MAX_CONNECTIONS – Default is 1 connection – Leave the default until you really need to change it – in 11.1 it disable real time apply – Helping resolve gap (sometimes)
  • 10. Marcin Przepiorowski DataGuard: Configuration • Listener separation – Application – Data Guard • Static entries for Data Guard Broker services: – Deafult <db_unique_name>_DGMGRL – Name can be customized
  • 11. Marcin Przepiorowski DataGuard: Configuration • Register your application in listeners using “local_listeners” or static entries • Use “listener_network” parameter to configure dedicated network for Data Guard in RAC configuration to avoid wrong load balancer redirection
  • 12. Marcin Przepiorowski DataGuard: Configuration • Changes of Data Guard related parameters in Broker will be pushed into instance parameter file • Changes of Data Guard related parameters in instance will be NOT pushed into Broker configuration • Differences will be reported and some of them can be overwritten by Broker
  • 13. Marcin Przepiorowski DataGuard: Configuration • Flashback database – Required for Fast Start Fail-over – Re-instance database – Snapshot database
  • 14. Marcin Przepiorowski DataGuard: RMAN • Create standby using RMAN – Duplicate from active database – no backup required 12c is using using network backup set from service – Duplicate from existing backup
  • 15. Marcin Przepiorowski • Resolving standby GAPs using RMAN in 11g – Find oldest SCN applied into standby data files from these two sources MIN ( CHECKPOINT_CHANGE# ) from V$DATAFILE CURRENT_SCN from V$DATABASE DataGuard: RMAN
  • 16. Marcin Przepiorowski Primary backup incremental from scn XXXXXXXXX database format ‘bck_%d_%s…’ backup current control file for standby format ‘control_........’ Standby catalog start with ‘/…..’ recover database noredo; Restart instance into nomount Restore controlfile from ‘/backup/……….’; DataGuard: RMAN – 11g
  • 17. Marcin Przepiorowski Primary backup current control file for standby format ‘control_........’ Standby recover database from service <primary> using compressed backupset; restore control file from ‘/backup/……….’; restart instance DataGuard: RMAN - 12c
  • 18. Marcin Przepiorowski • Fast switchover – Make sure listeners are up on standby – Stop applications listeners on primary – Check if Primary / Standby are in sync – Kill all sessions from Oracle / OS – Switch redo log file on primary database – Start switchover DataGuard: Role change
  • 19. Marcin Przepiorowski DataGuard: Role change • Fast failover – Make sure listeners are up on standby – Check if Primary / Standby are in sync – Switch redo log file on primary database – Shutdown abort primary database – Failover database using Broker
  • 20. Marcin Przepiorowski DataGuard: Client connectivity • Use services to access database • Control services with triggers • Transparent Application Failover can work with Data Guard – Connection time failover – Session / Select failover • Data Guard has support for WebLogic connection pools • Data Guard has support for ONS / FAN • DNS alias to connect to primary / standby database
  • 21. Marcin Przepiorowski DataGuard: Client connectivity exec dbms_service.create_service('testrac_taf','testrac_taf'); exec DBMS_SERVICE.START_SERVICE('testrac_taf'); create trigger start_service_trg after startup on database … if v_role = 'PRIMARY' then DBMS_SERVICE.START_SERVICE('testrac_taf'); else DBMS_SERVICE.STOP_SERVICE('testrac_taf'); end if; …
  • 22. Marcin Przepiorowski DataGuard: Standby database performance • Standby is just another Oracle database • Remote Statspack is possible if standby is in open mode • V$SESSION / V$SYSTEM_EVENT / V$SESSION_EVENT • Write your own script or find a one working in mount state
  • 23. Marcin Przepiorowski DataGuard: Standby database performance • There are two main phases on standby – Applying logs – Checkpoints • Play with number of parallel processes applying logs P0xx • Make sure all data are in buffer cache • Check hardware statistics ( CPU / disks / network ) • Consider disabling flashback mode on standby if your disk are overloaded
  • 24. Marcin Przepiorowski DataGuard: Standby database performance Problem – standby is behind primary • Database is switching 2 GB logs once per minute • 20 sec spend during apply process • 40 sec spend doing checkpoint on standby – checkpoint is done after every switch Solution • Increase size of redo / standby logs from 2 GB to 19 GB less time will be spend for checkpoints
  • 25. Marcin Przepiorowski DataGuard: Monitoring / Issues v$dataguard_stats; v$dataguard_status; v$recovery_progress; alert.log, trace files
  • 26. Marcin Przepiorowski DataGuard: Monitoring / Issues • Bounce ARCH process on primary • Make sure you have same password file on both nodes • Recreate standby control file • Delete and recreate broker configuration • Search for know bugs
  • 27. Marcin Przepiorowski DataGuard: Oracle Restart • If you are not using 11.2.0.4 PSU OCT 2014 be aware of wrong open mode after fail/switch over if there is no Active Data Guard License in place Check bug / enhancement request - 9375220 and Note ID 1522542.1 • To avoid manual intervention CRS script can be used check my blog for details - http://oracleprof.blogspot.ie/2012/08/dataguard- and-oracle-restart-how-to.html
  • 28. Marcin Przepiorowski DataGuard: Active Data Guard • Standby database is open for read only queries and log applying is still running in background • Additional licence but you can use your standby database for reports • Queries can wait until standby will be synchronized and maximum delay when query will run can be defined
  • 29. Marcin Przepiorowski DataGuard: Active Data Guard • With some work (using instead of triggers and db links) Active Data Guard can be treat like Read Write • RMAN can use standby to recover corrupted blocks
  • 30. Marcin Przepiorowski DataGuard: Oracle 12c – Far Sync • Synchronous mode for longer distance between primary and standby
  • 31. Marcin Przepiorowski DataGuard: Oracle 12c – Far Sync DC 1 DC 2 Round trip – 32 ms – SYNC mode increase commit time 5000 km Round trip – local network – no problems with SYNC and commit time
  • 32. Marcin Przepiorowski Q & A www.version1.com oracleprof.blogspot.com