SlideShare a Scribd company logo
Oracle Active Data Guard 12cR2
Is it the best option?
Ludovico Caldara
Oracle ACE Director
Senior Consultant
@ ludodba DOAG2017
About Ludovico Caldara
Oracle Active Data Guard 12cR2. Is it the best option?2 12/2/2017
■ 18 Years DBA (Not Only Oracle)
▪ I do it everywhere (even Windows)
■ RAC ATTACK Ninja & co-writer
■ President, SOUG & ITOUG Board
■ OCP (11g, 12c, MySQL) & OCE
■ Italian living in Switzerland
■ http://www.ludovicocaldara.net
■ @ludodba ludodba
■ ludovicocaldara
Our company.
Oracle Active Data Guard 12cR2. Is it the best option?3 12/2/2017
Trivadis is a market leader in IT consulting, system integration, solution engineering
and the provision of IT services focusing on and
technologies in Switzerland, Germany, Austria and Denmark.
We offer our services in the following strategic business fields:
Trivadis Services takes over the interactive operation of your IT systems.
O P E R A T I O N
COPENHAGEN
MUNICH
LAUSANNE
BERN
ZURICH
BRUGG
GENEVA
HAMBURG
DÜSSELDORF
FRANKFURT
STUTTGART
FREIBURG
BASEL
VIENNA
With over 600 specialists and IT experts in your region.
Oracle Active Data Guard 12cR2. Is it the best option?4 12/2/2017
14 Trivadis branches and more than
600 employees
200 Service Level Agreements
Over 4,000 training participants
Research and development budget:
CHF 5.0 / EUR 4 million
Financially self-supporting and
sustainably profitable
Experience from more than 1,900
projects per year at over 800
customers
My experiences with German
Oracle Active Data Guard 12cR2. Is it the best option?5 12/2/2017
Ich möchte ein Bier, bitte!
My experiences with German
Oracle Active Data Guard 12cR2. Is it the best option?6 12/2/2017
Es ist nicht ein Problem mit der Datenbank
Duolingo level 3!
Oracle Active Data Guard 12cR2. Is it the best option?7 12/2/2017
Duolingo level 3!
Oracle Active Data Guard 12cR2. Is it the best option?8 12/2/2017
Die Suppe ist schlect.
Duolingo level 3!
Oracle Active Data Guard 12cR2. Is it the best option?9 12/2/2017
Die Suppe ist schlect.
Können Sie bitte aufhören, Rapport-Anfragen
auf den Produktionsdatenbanken zu erstellen?
Sie verlangsamen unser Geschäft.
Oracle Active Data Guard 12cR2. Is it the best option?10 12/2/2017
Oracle
Data Guard?
Why is Oracle Data Guard still relevant?
Oracle Active Data Guard 12cR2. Is it the best option?11 12/2/2017
The best high availability solution in the Oracle ecosystem
– Synchronous (or not)
– One-to-one copy (or one-to-many)
– No single points of failure
– Failover is (almost) transparent to the applications (if well configured)
Rock solid!
Included in Oracle Database Enterprise Edition
Oracle Active Data Guard 12cR2. Is it the best option?12 12/2/2017
Active Data Guard?
Agenda… or which features I will try to cover
Oracle Active Data Guard 12cR2. Is it the best option?13 12/2/2017
Real-time Query
Automatic Block Repair
Fast Incremental Backup on Standby
Advanced topologies (Real-time Cascading Standby, Far Sync Standby, Alternate
destinations)
Application Continuity
Rolling Upgrades
Global Data Services
Subset Standby
Multiple Instance Redo Apply
Agenda… or which features I will try to cover
Oracle Active Data Guard 12cR2. Is it the best option?14 12/2/2017
Real-time Query
Automatic Block Repair
Fast Incremental Backup on Standby
Advanced topologies (Real-time Cascading Standby, Far Sync Standby, Alternate
destinations)
Application Continuity
Rolling Upgrades
Global Data Services
Subset Standby
Multiple Instance Redo Apply
We are talking
about extra-cost
features!
Oracle Active Data Guard 12cR2. Is it the best option?15 12/2/2017
Real-time Query
(11g)
Without Real-Time Query
Oracle Active Data Guard 12cR2. Is it the best option?16 12/2/2017
sour_ludo sour_vico
sour_RW
CLIENTS
MRP0
With Real-Time Query
Oracle Active Data Guard 12cR2. Is it the best option?17 12/2/2017
sour_ludo sour_vico
sour_RW
CLIENTS
MRP0
sour_RO
UPDATES READS
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
SQL> ALTER DATABASE OPEN;
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
Real-Time Query use case: reader farms
Oracle Active Data Guard 12cR2. Is it the best option?18 12/2/2017
PRIMARY
REP1 REP2 REP3
REP4
REP5
REP6
UPDATES
READS
Real-Time Query: Support for GTTs
Oracle Active Data Guard 12cR2. Is it the best option?19 12/2/2017
UNDO
TBS
TEMP
TBS
TEMP_UNDO_ENABLED = TRUE
GLOBAL
TEMPORARY
TABLE
DATA
TBS
SYSTEM
TBS
DATA &
UNDONew in
12c
Real-Time Query: Support for sequences
Oracle Active Data Guard 12cR2. Is it the best option?20 12/2/2017
ASKS FOR A SET OF USABLE
SEQUENCES
PRIMARY STANDBYNew in
12c
It works only if CACHE and NOORDER are set
It does not work on cascade standbys
Take Away
Oracle Active Data Guard 12cR2. Is it the best option?21 12/2/2017
You already pay Enterprise Licenses for the Primary and the Stanby
8CPUs8CPUs
APP Writes
Non Off-loadable Reads
Off-loadable (non-critical) Reads
380K$
Take Away
Oracle Active Data Guard 12cR2. Is it the best option?22 12/2/2017
You already pay Enterprise Licenses for the Primary and the Stanby
8CPUs8CPUs
APP Writes
Non Off-loadable Reads
Off-loadable (non-critical) Reads
4CPUs4CPUs
380K$
236K$
Take Away
Oracle Active Data Guard 12cR2. Is it the best option?23 12/2/2017
You already pay Enterprise Licenses for the Primary and the Stanby
8CPUs8CPUs
APP Writes
Non Off-loadable Reads
Off-loadable (non-critical) Reads
4CPUs4CPUs
4CPUs4CPUs
4CPUs
380K$
354K$
236K$
Take Away
Oracle Active Data Guard 12cR2. Is it the best option?24 12/2/2017
Oracle Active Data Guard 12cR2. Is it the best option?25 12/2/2017
Automatic Block Repair
Corrupted Blocks on Primary
Oracle Active Data Guard 12cR2. Is it the best option?26 12/2/2017
sour_ludo sour_vico
sour_RW
CLIENTS
MRP0
sour_RO
CORRUPT BLOCK!
Corrupted Blocks on Primary
Oracle Active Data Guard 12cR2. Is it the best option?27 12/2/2017
sour_ludo sour_vico
sour_RW
CLIENTS
MRP0
sour_RO
AUTOMATICALLY
FIND THE GOOD COPY
Corrupted Blocks on Primary
Oracle Active Data Guard 12cR2. Is it the best option?28 12/2/2017
sour_ludo sour_vico
sour_RW
CLIENTS
MRP0
sour_RO
(Who said FISH & CHIPS?)
AUTOMATIC SHIP AND FIX!
Corrupted Blocks on Standby
Oracle Active Data Guard 12cR2. Is it the best option?29 12/2/2017
Corrupted Blocks on Standby: you got the point, right?
Oracle Active Data Guard 12cR2. Is it the best option?30 12/2/2017
Oracle Active Data Guard 12cR2. Is it the best option?31 12/2/2017
Fast Incremental Backup
On Standby
(11g)
Block Change Tracking on Primary only
Oracle Active Data Guard 12cR2. Is it the best option?32 12/2/2017
BCT
Incremental Backup on Primary: FAST
Block Change Tracking on Primary only
Oracle Active Data Guard 12cR2. Is it the best option?33 12/2/2017
BCT
Incremental Backup on Primary: FAST Incremental Backup on Standby: SLOW
Block Change Tracking on Primary and Standby
Oracle Active Data Guard 12cR2. Is it the best option?34 12/2/2017
BCT
Incremental Backup on Primary: FAST Incremental Backup on Standby: FAST
BCT
Oracle Active Data Guard 12cR2. Is it the best option?35 12/2/2017
Advanced topologies:
Real-time Cascading Standby
(12cR1)
Real-Time Cascading Standby
Oracle Active Data Guard 12cR2. Is it the best option?36 12/2/2017
PRIMARY CASCADING CASCADED
Real-Time Cascading Standby
Oracle Active Data Guard 12cR2. Is it the best option?37 12/2/2017
SYNC, FASTSYNC or
ASYNC (LGWR)
ASYNC (LGWR)
<none> (ARCH)
Cascade supported by the broker
introduced in 12c
Real-Time Cascading Standby - «RedoRoutes»
Oracle Active Data Guard 12cR2. Is it the best option?38 12/2/2017
PROD
DR
REP
RedoRoutes=‘(LOCAL : DR)’
RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC)
(LOCAL : REP , PROD)’
RedoRoutes=‘(LOCAL:DR)’
Real-Time Cascade use case: again reader farms!
Oracle Active Data Guard 12cR2. Is it the best option?39 12/2/2017
PRIMARY
REP1 REP2 REP3
REP4
REP5
REP6
UPDATES
READS
Real-Time Cascade use case: again reader farms!
Oracle Active Data Guard 12cR2. Is it the best option?40 12/2/2017
PRIMARY
REP1 REP2 REP3
REP4
REP5
REP6
SYNC
UPDATES
READS
Oracle Active Data Guard 12cR2. Is it the best option?41 12/2/2017
Advanced topologies:
Far Sync Standby
(12cR1)
High distances = High latencies
Oracle Active Data Guard 12cR2. Is it the best option?42 12/2/2017
Too far to support SYNC
redo-transport
ASYNC ONLY!!
Without Active Data Guard
Oracle Active Data Guard 12cR2. Is it the best option?43 12/2/2017
ASYNC REMOTE
SYNC
LOCAL
With Active Data Guard
Oracle Active Data Guard 12cR2. Is it the best option?44 12/2/2017
FAR_SYNC
Instance
SYNC
LOCAL
ASYNC
REMOTE
FAR_SYNC instance characteristics
Oracle Active Data Guard 12cR2. Is it the best option?45 12/2/2017
Special controlfile
– ALTER DATABASE CREATE FAR SYNC INSTANCE CONTROLFILE;
NO datafiles and NO redo-apply
Standby logs are written and archived
The redo stream is redirected to the standby
Can’t be opened or converted to standby or primary
Example: one FAR_SYNC for each location
Oracle Active Data Guard 12cR2. Is it the best option?46 12/2/2017
SYNC
LOCAL
FS_PROD
FS_DRPROD
DR
REP
ASYNC
REMOTE
Example: one FAR_SYNC for each location
Oracle Active Data Guard 12cR2. Is it the best option?47 12/2/2017
SYNC
LOCAL
ASYNC
REMOTE
FS_PROD
FS_DRPROD
DR
REP
Oracle Active Data Guard 12cR2. Is it the best option?48 12/2/2017
Advanced topologies:
Enhanced Alternate Destinations
(12cR2)
Enhanced RedoRoutes
Oracle Active Data Guard 12cR2. Is it the best option?49 12/2/2017
PROD
DR
REP
RedoRoutes=‘(LOCAL : DR)’
RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC)
(LOCAL : REP , PROD)’
RedoRoutes=‘(LOCAL:DR)’
Enhanced RedoRoutes
Oracle Active Data Guard 12cR2. Is it the best option?50 12/2/2017
PROD
DR
REP
RedoRoutes=‘(LOCAL : DR)’
RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC)
(LOCAL : REP , PROD)’
RedoRoutes=‘(LOCAL:DR)’
!
Enhanced RedoRoutes
Oracle Active Data Guard 12cR2. Is it the best option?51 12/2/2017
PROD
DR
REP
RedoRoutes=‘(LOCAL : (DR PRIORITY=1, REP PRIORITY=2))’
RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC)
(LOCAL : REP , PROD)’
RedoRoutes=‘(LOCAL:(DR PRIORITY=1, PROD PRIORITY=2))’
Enhanced RedoRoutes
Oracle Active Data Guard 12cR2. Is it the best option?52 12/2/2017
PROD
DR
REP
RedoRoutes=‘(LOCAL : (DR PRIORITY=1, REP PRIORITY=2))’
RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC)
(LOCAL : REP , PROD)’
RedoRoutes=‘(LOCAL:(DR PRIORITY=1, PROD PRIORITY=2))’
Oracle Active Data Guard 12cR2. Is it the best option?53 12/2/2017
Application Continuity
(12cR1)
Application Continuity
Oracle Active Data Guard 12cR2. Is it the best option?
For temporary recoverable outages
Transaction Guard – server side component
– Records transaction state within database
– Available with Oracle 12c Enterprise Edition.
Oracle 12c JDBC Replay Driver – client side component
– Replays the failed request.
– In 12.1 only for JDBC thin client, in 12.2 also OCI and ODP.net.
Requires RAC or RAC One Node or ADG (GG) option.
12/2/201754
Application Continuity
Oracle Active Data Guard 12cR2. Is it the best option?
Example AC/TG interaction with UCP
1
Check-out connection
(Request begin)
Associate LTXID
Send LTXID to the driver
2
3
Work: INS/DEL/UPD/COM
INS
DEL
UPD
COM
Replay Buffer
4
Communication
Break
5
Recoverable Error
SQL Exception
8
Check the last LTXID
outcome
7
If safe, Replay
6
Request new connection
9
Check-in connection
(Request end)
UCP
12/2/201755
Runtime
Re-ConnectReplay
Oracle Active Data Guard 12cR2. Is it the best option?56 12/2/2017
Transparent Application Continuity
(18c)
TAC: Application Continuity at the server side
Oracle Active Data Guard 12cR2. Is it the best option?57 12/2/2017
Oracle Active Data Guard 12cR2. Is it the best option?58 12/2/2017
(easier) Rolling Upgrades
Automatic steps with DBMS_ROLLING!
Oracle Active Data Guard 12cR2. Is it the best option?59 12/2/2017
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(physical SB)
T
R
A
I
L
I
N
G
L
E
A
D
I
I
N
G
DBMS_ROLLING.
INIT_PLAN(SALES_LS)
Automatic steps with DBMS_ROLLING!
Oracle Active Data Guard 12cR2. Is it the best option?60 12/2/2017
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(physical SB)
T
R
A
I
L
I
N
G
L
E
A
D
I
I
N
G
DBMS_ROLLING.
INIT_PLAN(SALES_LS)
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
DBMS_ROLLING.
START_PLAN
Automatic steps with DBMS_ROLLING!
Oracle Active Data Guard 12cR2. Is it the best option?61 12/2/2017
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(physical SB)
T
R
A
I
L
I
N
G
L
E
A
D
I
I
N
G
DBMS_ROLLING.
INIT_PLAN(SALES_LS)
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
DBMS_ROLLING.
START_PLAN
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
Manual
upgrade
Automatic steps with DBMS_ROLLING!
Oracle Active Data Guard 12cR2. Is it the best option?62 12/2/2017
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(physical SB)
T
R
A
I
L
I
N
G
L
E
A
D
I
I
N
G
DBMS_ROLLING.
INIT_PLAN(SALES_LS)
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
DBMS_ROLLING.
START_PLAN
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
Manual
upgrade
SALES_ZH
(logical SB)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(primary)
DBMS_ROLLING.
SWITCHOVER
Automatic steps with DBMS_ROLLING!
Oracle Active Data Guard 12cR2. Is it the best option?63 12/2/2017
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(physical SB)
T
R
A
I
L
I
N
G
L
E
A
D
I
I
N
G
DBMS_ROLLING.
INIT_PLAN(SALES_LS)
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
DBMS_ROLLING.
START_PLAN
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
Manual
upgrade
SALES_ZH
(logical SB)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(primary)
DBMS_ROLLING.
SWITCHOVER
SALES_ZH
(logical SB)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(primary)
Manual
upgrade
Automatic steps with DBMS_ROLLING!
Oracle Active Data Guard 12cR2. Is it the best option?64 12/2/2017
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(physical SB)
T
R
A
I
L
I
N
G
L
E
A
D
I
I
N
G
DBMS_ROLLING.
INIT_PLAN(SALES_LS)
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
DBMS_ROLLING.
START_PLAN
SALES_ZH
(primary)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(logical SB)
Manual
upgrade
SALES_ZH
(logical SB)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(primary)
DBMS_ROLLING.
SWITCHOVER
SALES_ZH
(logical SB)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(primary)
SALES_ZH
(physical SB)
SALES_BS
(physical SB)
SALES_BE
(physical SB)
SALES_LS
(primary)
Manual
upgrade
DBMS_ROLLING.
FINISH_PLAN
What if you have to do it manually?
Oracle Active Data Guard 12cR2. Is it the best option?65 12/2/2017
https://docs.oracle.com/database/121/SBYDB/dbms_rolling_upgrades.htm#SBYDB5230
SQL> SELECT instid, target, phase, description FROM DBA_ROLLING_PLAN;
INSTID TARGET PHASE DESCRIPTION
------ ------------ ------- -----------------------------------------------------
1 seattle START Verify database is a primary
2 seattle START Verify MAXIMUM PROTECTION is disabled
3 boston START Verify database is a physical standby
4 boston START Verify physical standby is mounted
...
93 oakland SWITCH Stop media recovery
94 seattle SWITCH Synchronize plan with new primary
95 seattle FINISH Verify only a single instance is active
96 seattle FINISH Verify database is mounted
...
111 oakland FINISH Wait until upgrade redo has been fully recovered
112 seattle FINISH Drop guaranteed restore point DBMSRU_INITIAL
113 boston FINISH Drop guaranteed restore point DBMSRU_INITIAL
114 oakland FINISH Drop guaranteed restore point DBMSRU_INITIAL
115 atlanta FINISH Drop guaranteed restore point DBMSRU_INITIAL
Oracle Active Data Guard 12cR2. Is it the best option?66 12/2/2017
Global Data Services
Local Data Services (Active Data Guard, no Clustware)
Oracle Active Data Guard 12cR2. Is it the best option?67 12/2/2017
PRIMARY STANDBY
SERVICE_A_RO
CREATE OR REPLACE TRIGGER service_a_ro
after startup on database
DECLARE
role VARCHAR(30);
BEGIN
SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
IF role = 'PRIMARY' THEN
DBMS_SERVICE.START_SERVICE(service_a');
ELSE
DBMS_SERVICE.START_SERVICE(service_a_ro');
END IF;
END;
/DB_SITE1 DB_SITE2
SERVICE_A_RW
Local Data Services (MAA, Active Data Guard, etc.)
Oracle Active Data Guard 12cR2. Is it the best option?68 12/2/2017
Create services for Primary role on ALL the databases
Create services for Standby role on ALL the databases
Define connection descriptors with static address list
Local Data Services: not for complex environments
Oracle Active Data Guard 12cR2. Is it the best option?69 12/2/2017
PRIMARY STANDBY STANDBY
STANDBY
SYNC
ASYNC
ASYNC
Local Data Services: not for complex environments
Oracle Active Data Guard 12cR2. Is it the best option?70 12/2/2017
PRIMARY STANDBY STANDBY
STANDBY
SYNC
ASYNC
ASYNC
SWISS
CLIENTS
READ
HERE
GERMAN
CLIENTS
READ
HERE
Local Data Services: not for complex environments
Oracle Active Data Guard 12cR2. Is it the best option?71 12/2/2017
PRIMARY STANDBY STANDBY
STANDBY
SYNC
ASYNC
ASYNC
IN CASE OF
LAG BOTH
READ HERE
Local Data Services: not for complex environments
Oracle Active Data Guard 12cR2. Is it the best option?72 12/2/2017
PRIMARY STANDBY STANDBY
STANDBY
SYNC
ASYNC
ASYNC
IN CASE OF
PROBLEMS ALL
READ FROM
PRIMARY
Global Data Services – Big Picture
Oracle Active Data Guard 12cR2. Is it the best option?73 12/2/2017
Global Service
Manager 1
Global Service
Manager 2
Global Service
Manager 3
Global Service
Manager 4
SALES SALESSALES SALES SALESSALES
Golden Gate, Active Data Guard, Streams, […]
GDS POOL: SALES (sales_rw, sales_ro, sales_rep, …)
GDS
CATALOG
GDS
CATALOG
Global Data Services – How it works?
Oracle Active Data Guard 12cR2. Is it the best option?74 12/2/2017
SALES SALES SALESSALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1
Request a connection for a global service to a GSM
Service naming: <gs_name>.<gds_pool>.<gds_configuration>
1
Global Data Services – How it works?
Oracle Active Data Guard 12cR2. Is it the best option?75 12/2/2017
SALES SALES SALESSALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1 2
Request a connection for a global service to a GSM
Service naming: <gs_name>.<gds_pool>.<gds_configuration>
GSM returns the local listener address (SCAN is bypassed)
1
2
Global Data Services – How it works?
Oracle Active Data Guard 12cR2. Is it the best option?76 12/2/2017
SALES SALES SALESSALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1 2
3
Request a connection for a global service to a GSM
Service naming: <gs_name>.<gds_pool>.<gds_configuration>
GSM returns the local listener address (SCAN is bypassed)
Connect to the Global Service active locally on the target
1
2
3
Global Database Services - Features
Oracle Active Data Guard 12cR2. Is it the best option?77 12/2/2017
Global Data Services support
– Local Service Attributes (TAF, rlbgoal, clbgoal, commit outcome…)
– Preferred and available databases
– Replication lag threshold (ADG only)
– Region affinity
Global Connection Region Affinity - Anywhere
Oracle Active Data Guard 12cR2. Is it the best option?78 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality ANYWHERE
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
SALES SALES
Global Connection Region Affinity - Anywhere
Oracle Active Data Guard 12cR2. Is it the best option?79 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality ANYWHERE
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1
SALES SALES
1
REMOTE
LOCAL
Global Connection Region Affinity – Local Only
Oracle Active Data Guard 12cR2. Is it the best option?80 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
SALES SALES
Global Connection Region Affinity – Local Only
Oracle Active Data Guard 12cR2. Is it the best option?81 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1
SALES SALES
LOCAL
Global Connection Region Affinity – Local Only
Oracle Active Data Guard 12cR2. Is it the best option?82 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1
2
SALES SALES
LOCAL
CRASH
Global Connection Region Affinity – Local Only
Oracle Active Data Guard 12cR2. Is it the best option?83 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
1
2
3
SALES SALES
LOCAL
CRASH
TNS-12514
Global Connection Region Affinity – Region Failover
Oracle Active Data Guard 12cR2. Is it the best option?84 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY –region_failover
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
SALES SALESSALES SALES
Global Connection Region Affinity – Region Failover
Oracle Active Data Guard 12cR2. Is it the best option?85 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY –region_failover
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
SALES SALESSALES SALES
1
LOCAL
Global Connection Region Affinity – Region Failover
Oracle Active Data Guard 12cR2. Is it the best option?86 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY –region_failover
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
SALES SALESSALES SALES
1
2
LOCAL
CRASH
Global Connection Region Affinity – Region Failover
Oracle Active Data Guard 12cR2. Is it the best option?87 12/2/2017
GDSCTL> ADD SERVICE -gdspool sales
-service sales_rpt -locality LOCAL_ONLY –region_failover
SALES SALES
Golden Gate, Active Data Guard, Streams, […]
GSM03 GSM04
GDS Region: SWITZERLAND
GSM01 GSM02
GDS Region: GERMANY
DATABASE CLIENTS
SALES SALESSALES SALES
1
2
3
LOCAL
CRASH
REMOTE
Role-Based Global Services – Lag Tolerance
Oracle Active Data Guard 12cR2. Is it the best option?88 12/2/2017
Role-based services are supported for pool databases in Data Guard Broker configuration
GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service>
[ -role PRIMARY |
-role PHYSICAL_STANDBY -failover_primary –lag 20
DB1 DB2
PRIMARY
DB3
1 STANDBY STANDBY
Role-Based Global Services – Lag Tolerance
Oracle Active Data Guard 12cR2. Is it the best option?89 12/2/2017
Role-based services are supported for pool databases in Data Guard Broker configuration
GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service>
[ -role PRIMARY |
-role PHYSICAL_STANDBY -failover_primary –lag 20
DB1 DB2
PRIMARY
DB3
1
2
STANDBY STANDBY
STANDBYPRIMARYSTANDBY
Role-Based Global Services – Lag Tolerance
Oracle Active Data Guard 12cR2. Is it the best option?90 12/2/2017
Role-based services are supported for pool databases in Data Guard Broker configuration
GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service>
[ -role PRIMARY |
-role PHYSICAL_STANDBY -failover_primary –lag 20
DB1 DB2
PRIMARY
DB3
1
2
STANDBY STANDBY
STANDBYPRIMARYSTANDBY
3 STANDBYPRIMARYSTANDBY
LAG>20
Role-Based Global Services – Lag Tolerance
Oracle Active Data Guard 12cR2. Is it the best option?91 12/2/2017
Role-based services are supported for pool databases in Data Guard Broker configuration
GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service>
[ -role PRIMARY |
-role PHYSICAL_STANDBY -failover_primary –lag 20
DB1 DB2
PRIMARY
DB3
1
2
STANDBY STANDBY
STANDBYPRIMARYSTANDBY
3
4
STANDBY
STANDBY
PRIMARYSTANDBY
LAG>20
Role-Based Global Services – Lag Tolerance
Oracle Active Data Guard 12cR2. Is it the best option?92 12/2/2017
Role-based services are supported for pool databases in Data Guard Broker configuration
GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service>
[ -role PRIMARY |
-role PHYSICAL_STANDBY -failover_primary –lag 20
DB1 DB2
PRIMARY
DB3
1
2
STANDBY STANDBY
STANDBYPRIMARYSTANDBY
3
4
STANDBY
STANDBY
PRIMARYSTANDBY
LAG>20
PRIMARYSTANDBY STANDBY
LAG<=20
5
Oracle Active Data Guard 12cR2. Is it the best option?93 12/2/2017
So?
Take aways
Oracle Active Data Guard 12cR2. Is it the best option?94 12/2/2017
You pay for your standby: with Active Data Guard you can increase the ROI
You use Active Data Guard for real-time query? There is more!
One standby uses ADG, the others no? License just that server!
If you have Golden Gate, you already have ADG. Use it!
12/2/2017 Oracle Active Data Guard 12cR2. Is it the best option?95
Technology on its own won't help you.
You need to know how to use it properly.
Trivadis @ DOAG 2017
#opencompany
Booth: 3rd Floor – next to the escalator
We share our Know how!
Just come across, Live-Presentations
and documents archive
T-Shirts, Contest and much more
We look forward to your visit
12/2/2017 Oracle Active Data Guard 12cR2. Is it the best option?96

More Related Content

What's hot (20)

PPTX
Get the most out of Oracle Data Guard - OOW version
Ludovico Caldara
 
PDF
Oracle12c data guard farsync and whats new - Nassyam Basha
pasalapudi123
 
PPTX
Oracle database 12c new features
Jakkrapat S.
 
PDF
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
Ludovico Caldara
 
PDF
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Ludovico Caldara
 
PDF
Oracle Database on ACFS: a perfect marriage?
Ludovico Caldara
 
PDF
Oracle GoldenGate for Oracle DBAs
Guatemala User Group
 
PDF
Oracle Drivers configuration for High Availability
Ludovico Caldara
 
PDF
Oracle Drivers configuration for High Availability, is it a developer's job?
Ludovico Caldara
 
PDF
Boost your Oracle RAC manageability with Policy-Managed Databases
Ludovico Caldara
 
PPTX
Oracle Database 12.1.0.2: New Features
Deiby Gómez
 
PPTX
Oracle golden gate 12c New Features
Satishbabu Gunukula
 
PDF
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
Alex Zaballa
 
PDF
Oracle Rac Performance Tunning Tips&Tricks
Zekeriya Besiroglu
 
PPT
Oracle DataGuard Online Training in USA | INDIA
Xoom Trainings
 
PPT
Oracle dataguard overview
aguswahyudi09
 
PDF
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
PPTX
Optimizing your Database Import!
Nabil Nawaz
 
PDF
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
Ludovico Caldara
 
PDF
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Ludovico Caldara
 
Get the most out of Oracle Data Guard - OOW version
Ludovico Caldara
 
Oracle12c data guard farsync and whats new - Nassyam Basha
pasalapudi123
 
Oracle database 12c new features
Jakkrapat S.
 
ORACLE 12C DATA GUARD: FAR SYNC, REAL-TIME CASCADE STANDBY AND OTHER GOODIES
Ludovico Caldara
 
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Ludovico Caldara
 
Oracle Database on ACFS: a perfect marriage?
Ludovico Caldara
 
Oracle GoldenGate for Oracle DBAs
Guatemala User Group
 
Oracle Drivers configuration for High Availability
Ludovico Caldara
 
Oracle Drivers configuration for High Availability, is it a developer's job?
Ludovico Caldara
 
Boost your Oracle RAC manageability with Policy-Managed Databases
Ludovico Caldara
 
Oracle Database 12.1.0.2: New Features
Deiby Gómez
 
Oracle golden gate 12c New Features
Satishbabu Gunukula
 
OTN TOUR 2016 - Oracle Database 12c - The Best Oracle Database 12c New Featur...
Alex Zaballa
 
Oracle Rac Performance Tunning Tips&Tricks
Zekeriya Besiroglu
 
Oracle DataGuard Online Training in USA | INDIA
Xoom Trainings
 
Oracle dataguard overview
aguswahyudi09
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
Optimizing your Database Import!
Nabil Nawaz
 
RACAttack 12c Advanced Lab: Server Pools and Policy-managed databases
Ludovico Caldara
 
Oracle Fleet Patching and Provisioning Deep Dive Webcast Slides
Ludovico Caldara
 

Similar to Oracle Active Data Guard 12cR2. Is it the best option? (20)

PPTX
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
solarisyougood
 
PDF
MOUG17 Keynote: Oracle OpenWorld Major Announcements
Monica Li
 
PDF
Oracle RAC One Node 12c Overview
Markus Michalewicz
 
PPTX
Things learned from OpenWorld 2013
Connor McDonald
 
PPTX
Get the most out of Oracle Data Guard - POUG version
Ludovico Caldara
 
PPTX
Using oracle12c pluggable databases to archive
Secure-24
 
PPTX
Retour d'expérience d'un environnement base de données multitenant
Swiss Data Forum Swiss Data Forum
 
PDF
Oracle data guard for beginners
Pini Dibask
 
PDF
Oracle Data Guard for Beginners
Pini Dibask
 
PDF
IOUG Collaborate 18 - Data Guard for Beginners
Pini Dibask
 
PDF
Oracle RAC 12c Overview
Markus Michalewicz
 
PDF
Ceph's journey at SUSE
Ceph Community
 
PDF
oracle-database-editions-wp-12c-1896124
Arjun Sathe
 
PDF
Migrating to Database 12c Multitenant - New Opportunities To Get It Right!
Performance Tuning Corporation
 
PDF
Oracle database edition-12c
Asha BG
 
PDF
A lab tutorial about How you can get started and automate DB12c Multitenant l...
Hari Srinivasan
 
PDF
Session 203 iouc summit database
OUGTH Oracle User Group in Thailand
 
PDF
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
PDF
ZDLRA in Action
Daniele Massimi
 
PDF
AUSOUG - NZOUG-GroundBreakers-Jun 2019 - 19c RAC
Sandesh Rao
 
Presentation upgrade, migrate &amp; consolidate to oracle database 12c &amp...
solarisyougood
 
MOUG17 Keynote: Oracle OpenWorld Major Announcements
Monica Li
 
Oracle RAC One Node 12c Overview
Markus Michalewicz
 
Things learned from OpenWorld 2013
Connor McDonald
 
Get the most out of Oracle Data Guard - POUG version
Ludovico Caldara
 
Using oracle12c pluggable databases to archive
Secure-24
 
Retour d'expérience d'un environnement base de données multitenant
Swiss Data Forum Swiss Data Forum
 
Oracle data guard for beginners
Pini Dibask
 
Oracle Data Guard for Beginners
Pini Dibask
 
IOUG Collaborate 18 - Data Guard for Beginners
Pini Dibask
 
Oracle RAC 12c Overview
Markus Michalewicz
 
Ceph's journey at SUSE
Ceph Community
 
oracle-database-editions-wp-12c-1896124
Arjun Sathe
 
Migrating to Database 12c Multitenant - New Opportunities To Get It Right!
Performance Tuning Corporation
 
Oracle database edition-12c
Asha BG
 
A lab tutorial about How you can get started and automate DB12c Multitenant l...
Hari Srinivasan
 
Session 203 iouc summit database
OUGTH Oracle User Group in Thailand
 
The Oracle RAC Family of Solutions - Presentation
Markus Michalewicz
 
ZDLRA in Action
Daniele Massimi
 
AUSOUG - NZOUG-GroundBreakers-Jun 2019 - 19c RAC
Sandesh Rao
 
Ad

More from Ludovico Caldara (9)

PDF
Long live to CMAN!
Ludovico Caldara
 
PDF
Let your DBAs get some REST(api)
Ludovico Caldara
 
PDF
Effective Oracle Home Management - UKOUG_Tech18
Ludovico Caldara
 
PDF
Effective Oracle Home Management in the new Release Model era
Ludovico Caldara
 
PDF
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
Ludovico Caldara
 
PPTX
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
Ludovico Caldara
 
PPTX
Database Migration Assistant for Unicode (DMU)
Ludovico Caldara
 
PDF
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
Ludovico Caldara
 
PDF
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
Ludovico Caldara
 
Long live to CMAN!
Ludovico Caldara
 
Let your DBAs get some REST(api)
Ludovico Caldara
 
Effective Oracle Home Management - UKOUG_Tech18
Ludovico Caldara
 
Effective Oracle Home Management in the new Release Model era
Ludovico Caldara
 
ADAPTIVE FEATURES OR: HOW I LEARNED TO STOP WORRYING AND TROUBLESHOOT THE BOMB
Ludovico Caldara
 
Adaptive Features or: How I Learned to Stop Worrying and Troubleshoot the Bomb.
Ludovico Caldara
 
Database Migration Assistant for Unicode (DMU)
Ludovico Caldara
 
Oracle RAC 12c and Policy-Managed Databases, a Technical Overview
Ludovico Caldara
 
Galera Cluster: Synchronous Multi-Master Replication for MySQL HA
Ludovico Caldara
 
Ad

Recently uploaded (20)

PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
July Patch Tuesday
Ivanti
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Complete Network Protection with Real-Time Security
L4RGINDIA
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
July Patch Tuesday
Ivanti
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Complete Network Protection with Real-Time Security
L4RGINDIA
 

Oracle Active Data Guard 12cR2. Is it the best option?

  • 1. Oracle Active Data Guard 12cR2 Is it the best option? Ludovico Caldara Oracle ACE Director Senior Consultant @ ludodba DOAG2017
  • 2. About Ludovico Caldara Oracle Active Data Guard 12cR2. Is it the best option?2 12/2/2017 ■ 18 Years DBA (Not Only Oracle) ▪ I do it everywhere (even Windows) ■ RAC ATTACK Ninja & co-writer ■ President, SOUG & ITOUG Board ■ OCP (11g, 12c, MySQL) & OCE ■ Italian living in Switzerland ■ http://www.ludovicocaldara.net ■ @ludodba ludodba ■ ludovicocaldara
  • 3. Our company. Oracle Active Data Guard 12cR2. Is it the best option?3 12/2/2017 Trivadis is a market leader in IT consulting, system integration, solution engineering and the provision of IT services focusing on and technologies in Switzerland, Germany, Austria and Denmark. We offer our services in the following strategic business fields: Trivadis Services takes over the interactive operation of your IT systems. O P E R A T I O N
  • 4. COPENHAGEN MUNICH LAUSANNE BERN ZURICH BRUGG GENEVA HAMBURG DÜSSELDORF FRANKFURT STUTTGART FREIBURG BASEL VIENNA With over 600 specialists and IT experts in your region. Oracle Active Data Guard 12cR2. Is it the best option?4 12/2/2017 14 Trivadis branches and more than 600 employees 200 Service Level Agreements Over 4,000 training participants Research and development budget: CHF 5.0 / EUR 4 million Financially self-supporting and sustainably profitable Experience from more than 1,900 projects per year at over 800 customers
  • 5. My experiences with German Oracle Active Data Guard 12cR2. Is it the best option?5 12/2/2017 Ich möchte ein Bier, bitte!
  • 6. My experiences with German Oracle Active Data Guard 12cR2. Is it the best option?6 12/2/2017 Es ist nicht ein Problem mit der Datenbank
  • 7. Duolingo level 3! Oracle Active Data Guard 12cR2. Is it the best option?7 12/2/2017
  • 8. Duolingo level 3! Oracle Active Data Guard 12cR2. Is it the best option?8 12/2/2017 Die Suppe ist schlect.
  • 9. Duolingo level 3! Oracle Active Data Guard 12cR2. Is it the best option?9 12/2/2017 Die Suppe ist schlect. Können Sie bitte aufhören, Rapport-Anfragen auf den Produktionsdatenbanken zu erstellen? Sie verlangsamen unser Geschäft.
  • 10. Oracle Active Data Guard 12cR2. Is it the best option?10 12/2/2017 Oracle Data Guard?
  • 11. Why is Oracle Data Guard still relevant? Oracle Active Data Guard 12cR2. Is it the best option?11 12/2/2017 The best high availability solution in the Oracle ecosystem – Synchronous (or not) – One-to-one copy (or one-to-many) – No single points of failure – Failover is (almost) transparent to the applications (if well configured) Rock solid! Included in Oracle Database Enterprise Edition
  • 12. Oracle Active Data Guard 12cR2. Is it the best option?12 12/2/2017 Active Data Guard?
  • 13. Agenda… or which features I will try to cover Oracle Active Data Guard 12cR2. Is it the best option?13 12/2/2017 Real-time Query Automatic Block Repair Fast Incremental Backup on Standby Advanced topologies (Real-time Cascading Standby, Far Sync Standby, Alternate destinations) Application Continuity Rolling Upgrades Global Data Services Subset Standby Multiple Instance Redo Apply
  • 14. Agenda… or which features I will try to cover Oracle Active Data Guard 12cR2. Is it the best option?14 12/2/2017 Real-time Query Automatic Block Repair Fast Incremental Backup on Standby Advanced topologies (Real-time Cascading Standby, Far Sync Standby, Alternate destinations) Application Continuity Rolling Upgrades Global Data Services Subset Standby Multiple Instance Redo Apply We are talking about extra-cost features!
  • 15. Oracle Active Data Guard 12cR2. Is it the best option?15 12/2/2017 Real-time Query (11g)
  • 16. Without Real-Time Query Oracle Active Data Guard 12cR2. Is it the best option?16 12/2/2017 sour_ludo sour_vico sour_RW CLIENTS MRP0
  • 17. With Real-Time Query Oracle Active Data Guard 12cR2. Is it the best option?17 12/2/2017 sour_ludo sour_vico sour_RW CLIENTS MRP0 sour_RO UPDATES READS SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL; SQL> ALTER DATABASE OPEN; SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT;
  • 18. Real-Time Query use case: reader farms Oracle Active Data Guard 12cR2. Is it the best option?18 12/2/2017 PRIMARY REP1 REP2 REP3 REP4 REP5 REP6 UPDATES READS
  • 19. Real-Time Query: Support for GTTs Oracle Active Data Guard 12cR2. Is it the best option?19 12/2/2017 UNDO TBS TEMP TBS TEMP_UNDO_ENABLED = TRUE GLOBAL TEMPORARY TABLE DATA TBS SYSTEM TBS DATA & UNDONew in 12c
  • 20. Real-Time Query: Support for sequences Oracle Active Data Guard 12cR2. Is it the best option?20 12/2/2017 ASKS FOR A SET OF USABLE SEQUENCES PRIMARY STANDBYNew in 12c It works only if CACHE and NOORDER are set It does not work on cascade standbys
  • 21. Take Away Oracle Active Data Guard 12cR2. Is it the best option?21 12/2/2017 You already pay Enterprise Licenses for the Primary and the Stanby 8CPUs8CPUs APP Writes Non Off-loadable Reads Off-loadable (non-critical) Reads 380K$
  • 22. Take Away Oracle Active Data Guard 12cR2. Is it the best option?22 12/2/2017 You already pay Enterprise Licenses for the Primary and the Stanby 8CPUs8CPUs APP Writes Non Off-loadable Reads Off-loadable (non-critical) Reads 4CPUs4CPUs 380K$ 236K$
  • 23. Take Away Oracle Active Data Guard 12cR2. Is it the best option?23 12/2/2017 You already pay Enterprise Licenses for the Primary and the Stanby 8CPUs8CPUs APP Writes Non Off-loadable Reads Off-loadable (non-critical) Reads 4CPUs4CPUs 4CPUs4CPUs 4CPUs 380K$ 354K$ 236K$
  • 24. Take Away Oracle Active Data Guard 12cR2. Is it the best option?24 12/2/2017
  • 25. Oracle Active Data Guard 12cR2. Is it the best option?25 12/2/2017 Automatic Block Repair
  • 26. Corrupted Blocks on Primary Oracle Active Data Guard 12cR2. Is it the best option?26 12/2/2017 sour_ludo sour_vico sour_RW CLIENTS MRP0 sour_RO CORRUPT BLOCK!
  • 27. Corrupted Blocks on Primary Oracle Active Data Guard 12cR2. Is it the best option?27 12/2/2017 sour_ludo sour_vico sour_RW CLIENTS MRP0 sour_RO AUTOMATICALLY FIND THE GOOD COPY
  • 28. Corrupted Blocks on Primary Oracle Active Data Guard 12cR2. Is it the best option?28 12/2/2017 sour_ludo sour_vico sour_RW CLIENTS MRP0 sour_RO (Who said FISH & CHIPS?) AUTOMATIC SHIP AND FIX!
  • 29. Corrupted Blocks on Standby Oracle Active Data Guard 12cR2. Is it the best option?29 12/2/2017
  • 30. Corrupted Blocks on Standby: you got the point, right? Oracle Active Data Guard 12cR2. Is it the best option?30 12/2/2017
  • 31. Oracle Active Data Guard 12cR2. Is it the best option?31 12/2/2017 Fast Incremental Backup On Standby (11g)
  • 32. Block Change Tracking on Primary only Oracle Active Data Guard 12cR2. Is it the best option?32 12/2/2017 BCT Incremental Backup on Primary: FAST
  • 33. Block Change Tracking on Primary only Oracle Active Data Guard 12cR2. Is it the best option?33 12/2/2017 BCT Incremental Backup on Primary: FAST Incremental Backup on Standby: SLOW
  • 34. Block Change Tracking on Primary and Standby Oracle Active Data Guard 12cR2. Is it the best option?34 12/2/2017 BCT Incremental Backup on Primary: FAST Incremental Backup on Standby: FAST BCT
  • 35. Oracle Active Data Guard 12cR2. Is it the best option?35 12/2/2017 Advanced topologies: Real-time Cascading Standby (12cR1)
  • 36. Real-Time Cascading Standby Oracle Active Data Guard 12cR2. Is it the best option?36 12/2/2017 PRIMARY CASCADING CASCADED
  • 37. Real-Time Cascading Standby Oracle Active Data Guard 12cR2. Is it the best option?37 12/2/2017 SYNC, FASTSYNC or ASYNC (LGWR) ASYNC (LGWR) <none> (ARCH) Cascade supported by the broker introduced in 12c
  • 38. Real-Time Cascading Standby - «RedoRoutes» Oracle Active Data Guard 12cR2. Is it the best option?38 12/2/2017 PROD DR REP RedoRoutes=‘(LOCAL : DR)’ RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC) (LOCAL : REP , PROD)’ RedoRoutes=‘(LOCAL:DR)’
  • 39. Real-Time Cascade use case: again reader farms! Oracle Active Data Guard 12cR2. Is it the best option?39 12/2/2017 PRIMARY REP1 REP2 REP3 REP4 REP5 REP6 UPDATES READS
  • 40. Real-Time Cascade use case: again reader farms! Oracle Active Data Guard 12cR2. Is it the best option?40 12/2/2017 PRIMARY REP1 REP2 REP3 REP4 REP5 REP6 SYNC UPDATES READS
  • 41. Oracle Active Data Guard 12cR2. Is it the best option?41 12/2/2017 Advanced topologies: Far Sync Standby (12cR1)
  • 42. High distances = High latencies Oracle Active Data Guard 12cR2. Is it the best option?42 12/2/2017 Too far to support SYNC redo-transport ASYNC ONLY!!
  • 43. Without Active Data Guard Oracle Active Data Guard 12cR2. Is it the best option?43 12/2/2017 ASYNC REMOTE SYNC LOCAL
  • 44. With Active Data Guard Oracle Active Data Guard 12cR2. Is it the best option?44 12/2/2017 FAR_SYNC Instance SYNC LOCAL ASYNC REMOTE
  • 45. FAR_SYNC instance characteristics Oracle Active Data Guard 12cR2. Is it the best option?45 12/2/2017 Special controlfile – ALTER DATABASE CREATE FAR SYNC INSTANCE CONTROLFILE; NO datafiles and NO redo-apply Standby logs are written and archived The redo stream is redirected to the standby Can’t be opened or converted to standby or primary
  • 46. Example: one FAR_SYNC for each location Oracle Active Data Guard 12cR2. Is it the best option?46 12/2/2017 SYNC LOCAL FS_PROD FS_DRPROD DR REP ASYNC REMOTE
  • 47. Example: one FAR_SYNC for each location Oracle Active Data Guard 12cR2. Is it the best option?47 12/2/2017 SYNC LOCAL ASYNC REMOTE FS_PROD FS_DRPROD DR REP
  • 48. Oracle Active Data Guard 12cR2. Is it the best option?48 12/2/2017 Advanced topologies: Enhanced Alternate Destinations (12cR2)
  • 49. Enhanced RedoRoutes Oracle Active Data Guard 12cR2. Is it the best option?49 12/2/2017 PROD DR REP RedoRoutes=‘(LOCAL : DR)’ RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC) (LOCAL : REP , PROD)’ RedoRoutes=‘(LOCAL:DR)’
  • 50. Enhanced RedoRoutes Oracle Active Data Guard 12cR2. Is it the best option?50 12/2/2017 PROD DR REP RedoRoutes=‘(LOCAL : DR)’ RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC) (LOCAL : REP , PROD)’ RedoRoutes=‘(LOCAL:DR)’ !
  • 51. Enhanced RedoRoutes Oracle Active Data Guard 12cR2. Is it the best option?51 12/2/2017 PROD DR REP RedoRoutes=‘(LOCAL : (DR PRIORITY=1, REP PRIORITY=2))’ RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC) (LOCAL : REP , PROD)’ RedoRoutes=‘(LOCAL:(DR PRIORITY=1, PROD PRIORITY=2))’
  • 52. Enhanced RedoRoutes Oracle Active Data Guard 12cR2. Is it the best option?52 12/2/2017 PROD DR REP RedoRoutes=‘(LOCAL : (DR PRIORITY=1, REP PRIORITY=2))’ RedoRoutes=‘ (PROD : REP ASYNC) (REP : PROD ASYNC) (LOCAL : REP , PROD)’ RedoRoutes=‘(LOCAL:(DR PRIORITY=1, PROD PRIORITY=2))’
  • 53. Oracle Active Data Guard 12cR2. Is it the best option?53 12/2/2017 Application Continuity (12cR1)
  • 54. Application Continuity Oracle Active Data Guard 12cR2. Is it the best option? For temporary recoverable outages Transaction Guard – server side component – Records transaction state within database – Available with Oracle 12c Enterprise Edition. Oracle 12c JDBC Replay Driver – client side component – Replays the failed request. – In 12.1 only for JDBC thin client, in 12.2 also OCI and ODP.net. Requires RAC or RAC One Node or ADG (GG) option. 12/2/201754
  • 55. Application Continuity Oracle Active Data Guard 12cR2. Is it the best option? Example AC/TG interaction with UCP 1 Check-out connection (Request begin) Associate LTXID Send LTXID to the driver 2 3 Work: INS/DEL/UPD/COM INS DEL UPD COM Replay Buffer 4 Communication Break 5 Recoverable Error SQL Exception 8 Check the last LTXID outcome 7 If safe, Replay 6 Request new connection 9 Check-in connection (Request end) UCP 12/2/201755 Runtime Re-ConnectReplay
  • 56. Oracle Active Data Guard 12cR2. Is it the best option?56 12/2/2017 Transparent Application Continuity (18c)
  • 57. TAC: Application Continuity at the server side Oracle Active Data Guard 12cR2. Is it the best option?57 12/2/2017
  • 58. Oracle Active Data Guard 12cR2. Is it the best option?58 12/2/2017 (easier) Rolling Upgrades
  • 59. Automatic steps with DBMS_ROLLING! Oracle Active Data Guard 12cR2. Is it the best option?59 12/2/2017 SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (physical SB) T R A I L I N G L E A D I I N G DBMS_ROLLING. INIT_PLAN(SALES_LS)
  • 60. Automatic steps with DBMS_ROLLING! Oracle Active Data Guard 12cR2. Is it the best option?60 12/2/2017 SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (physical SB) T R A I L I N G L E A D I I N G DBMS_ROLLING. INIT_PLAN(SALES_LS) SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) DBMS_ROLLING. START_PLAN
  • 61. Automatic steps with DBMS_ROLLING! Oracle Active Data Guard 12cR2. Is it the best option?61 12/2/2017 SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (physical SB) T R A I L I N G L E A D I I N G DBMS_ROLLING. INIT_PLAN(SALES_LS) SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) DBMS_ROLLING. START_PLAN SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) Manual upgrade
  • 62. Automatic steps with DBMS_ROLLING! Oracle Active Data Guard 12cR2. Is it the best option?62 12/2/2017 SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (physical SB) T R A I L I N G L E A D I I N G DBMS_ROLLING. INIT_PLAN(SALES_LS) SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) DBMS_ROLLING. START_PLAN SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) Manual upgrade SALES_ZH (logical SB) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (primary) DBMS_ROLLING. SWITCHOVER
  • 63. Automatic steps with DBMS_ROLLING! Oracle Active Data Guard 12cR2. Is it the best option?63 12/2/2017 SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (physical SB) T R A I L I N G L E A D I I N G DBMS_ROLLING. INIT_PLAN(SALES_LS) SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) DBMS_ROLLING. START_PLAN SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) Manual upgrade SALES_ZH (logical SB) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (primary) DBMS_ROLLING. SWITCHOVER SALES_ZH (logical SB) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (primary) Manual upgrade
  • 64. Automatic steps with DBMS_ROLLING! Oracle Active Data Guard 12cR2. Is it the best option?64 12/2/2017 SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (physical SB) T R A I L I N G L E A D I I N G DBMS_ROLLING. INIT_PLAN(SALES_LS) SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) DBMS_ROLLING. START_PLAN SALES_ZH (primary) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (logical SB) Manual upgrade SALES_ZH (logical SB) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (primary) DBMS_ROLLING. SWITCHOVER SALES_ZH (logical SB) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (primary) SALES_ZH (physical SB) SALES_BS (physical SB) SALES_BE (physical SB) SALES_LS (primary) Manual upgrade DBMS_ROLLING. FINISH_PLAN
  • 65. What if you have to do it manually? Oracle Active Data Guard 12cR2. Is it the best option?65 12/2/2017 https://docs.oracle.com/database/121/SBYDB/dbms_rolling_upgrades.htm#SBYDB5230 SQL> SELECT instid, target, phase, description FROM DBA_ROLLING_PLAN; INSTID TARGET PHASE DESCRIPTION ------ ------------ ------- ----------------------------------------------------- 1 seattle START Verify database is a primary 2 seattle START Verify MAXIMUM PROTECTION is disabled 3 boston START Verify database is a physical standby 4 boston START Verify physical standby is mounted ... 93 oakland SWITCH Stop media recovery 94 seattle SWITCH Synchronize plan with new primary 95 seattle FINISH Verify only a single instance is active 96 seattle FINISH Verify database is mounted ... 111 oakland FINISH Wait until upgrade redo has been fully recovered 112 seattle FINISH Drop guaranteed restore point DBMSRU_INITIAL 113 boston FINISH Drop guaranteed restore point DBMSRU_INITIAL 114 oakland FINISH Drop guaranteed restore point DBMSRU_INITIAL 115 atlanta FINISH Drop guaranteed restore point DBMSRU_INITIAL
  • 66. Oracle Active Data Guard 12cR2. Is it the best option?66 12/2/2017 Global Data Services
  • 67. Local Data Services (Active Data Guard, no Clustware) Oracle Active Data Guard 12cR2. Is it the best option?67 12/2/2017 PRIMARY STANDBY SERVICE_A_RO CREATE OR REPLACE TRIGGER service_a_ro after startup on database DECLARE role VARCHAR(30); BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE; IF role = 'PRIMARY' THEN DBMS_SERVICE.START_SERVICE(service_a'); ELSE DBMS_SERVICE.START_SERVICE(service_a_ro'); END IF; END; /DB_SITE1 DB_SITE2 SERVICE_A_RW
  • 68. Local Data Services (MAA, Active Data Guard, etc.) Oracle Active Data Guard 12cR2. Is it the best option?68 12/2/2017 Create services for Primary role on ALL the databases Create services for Standby role on ALL the databases Define connection descriptors with static address list
  • 69. Local Data Services: not for complex environments Oracle Active Data Guard 12cR2. Is it the best option?69 12/2/2017 PRIMARY STANDBY STANDBY STANDBY SYNC ASYNC ASYNC
  • 70. Local Data Services: not for complex environments Oracle Active Data Guard 12cR2. Is it the best option?70 12/2/2017 PRIMARY STANDBY STANDBY STANDBY SYNC ASYNC ASYNC SWISS CLIENTS READ HERE GERMAN CLIENTS READ HERE
  • 71. Local Data Services: not for complex environments Oracle Active Data Guard 12cR2. Is it the best option?71 12/2/2017 PRIMARY STANDBY STANDBY STANDBY SYNC ASYNC ASYNC IN CASE OF LAG BOTH READ HERE
  • 72. Local Data Services: not for complex environments Oracle Active Data Guard 12cR2. Is it the best option?72 12/2/2017 PRIMARY STANDBY STANDBY STANDBY SYNC ASYNC ASYNC IN CASE OF PROBLEMS ALL READ FROM PRIMARY
  • 73. Global Data Services – Big Picture Oracle Active Data Guard 12cR2. Is it the best option?73 12/2/2017 Global Service Manager 1 Global Service Manager 2 Global Service Manager 3 Global Service Manager 4 SALES SALESSALES SALES SALESSALES Golden Gate, Active Data Guard, Streams, […] GDS POOL: SALES (sales_rw, sales_ro, sales_rep, …) GDS CATALOG GDS CATALOG
  • 74. Global Data Services – How it works? Oracle Active Data Guard 12cR2. Is it the best option?74 12/2/2017 SALES SALES SALESSALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 Request a connection for a global service to a GSM Service naming: <gs_name>.<gds_pool>.<gds_configuration> 1
  • 75. Global Data Services – How it works? Oracle Active Data Guard 12cR2. Is it the best option?75 12/2/2017 SALES SALES SALESSALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 2 Request a connection for a global service to a GSM Service naming: <gs_name>.<gds_pool>.<gds_configuration> GSM returns the local listener address (SCAN is bypassed) 1 2
  • 76. Global Data Services – How it works? Oracle Active Data Guard 12cR2. Is it the best option?76 12/2/2017 SALES SALES SALESSALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 2 3 Request a connection for a global service to a GSM Service naming: <gs_name>.<gds_pool>.<gds_configuration> GSM returns the local listener address (SCAN is bypassed) Connect to the Global Service active locally on the target 1 2 3
  • 77. Global Database Services - Features Oracle Active Data Guard 12cR2. Is it the best option?77 12/2/2017 Global Data Services support – Local Service Attributes (TAF, rlbgoal, clbgoal, commit outcome…) – Preferred and available databases – Replication lag threshold (ADG only) – Region affinity
  • 78. Global Connection Region Affinity - Anywhere Oracle Active Data Guard 12cR2. Is it the best option?78 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality ANYWHERE SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS SALES SALES
  • 79. Global Connection Region Affinity - Anywhere Oracle Active Data Guard 12cR2. Is it the best option?79 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality ANYWHERE SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 SALES SALES 1 REMOTE LOCAL
  • 80. Global Connection Region Affinity – Local Only Oracle Active Data Guard 12cR2. Is it the best option?80 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS SALES SALES
  • 81. Global Connection Region Affinity – Local Only Oracle Active Data Guard 12cR2. Is it the best option?81 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 SALES SALES LOCAL
  • 82. Global Connection Region Affinity – Local Only Oracle Active Data Guard 12cR2. Is it the best option?82 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 2 SALES SALES LOCAL CRASH
  • 83. Global Connection Region Affinity – Local Only Oracle Active Data Guard 12cR2. Is it the best option?83 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS 1 2 3 SALES SALES LOCAL CRASH TNS-12514
  • 84. Global Connection Region Affinity – Region Failover Oracle Active Data Guard 12cR2. Is it the best option?84 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY –region_failover SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS SALES SALESSALES SALES
  • 85. Global Connection Region Affinity – Region Failover Oracle Active Data Guard 12cR2. Is it the best option?85 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY –region_failover SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS SALES SALESSALES SALES 1 LOCAL
  • 86. Global Connection Region Affinity – Region Failover Oracle Active Data Guard 12cR2. Is it the best option?86 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY –region_failover SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS SALES SALESSALES SALES 1 2 LOCAL CRASH
  • 87. Global Connection Region Affinity – Region Failover Oracle Active Data Guard 12cR2. Is it the best option?87 12/2/2017 GDSCTL> ADD SERVICE -gdspool sales -service sales_rpt -locality LOCAL_ONLY –region_failover SALES SALES Golden Gate, Active Data Guard, Streams, […] GSM03 GSM04 GDS Region: SWITZERLAND GSM01 GSM02 GDS Region: GERMANY DATABASE CLIENTS SALES SALESSALES SALES 1 2 3 LOCAL CRASH REMOTE
  • 88. Role-Based Global Services – Lag Tolerance Oracle Active Data Guard 12cR2. Is it the best option?88 12/2/2017 Role-based services are supported for pool databases in Data Guard Broker configuration GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service> [ -role PRIMARY | -role PHYSICAL_STANDBY -failover_primary –lag 20 DB1 DB2 PRIMARY DB3 1 STANDBY STANDBY
  • 89. Role-Based Global Services – Lag Tolerance Oracle Active Data Guard 12cR2. Is it the best option?89 12/2/2017 Role-based services are supported for pool databases in Data Guard Broker configuration GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service> [ -role PRIMARY | -role PHYSICAL_STANDBY -failover_primary –lag 20 DB1 DB2 PRIMARY DB3 1 2 STANDBY STANDBY STANDBYPRIMARYSTANDBY
  • 90. Role-Based Global Services – Lag Tolerance Oracle Active Data Guard 12cR2. Is it the best option?90 12/2/2017 Role-based services are supported for pool databases in Data Guard Broker configuration GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service> [ -role PRIMARY | -role PHYSICAL_STANDBY -failover_primary –lag 20 DB1 DB2 PRIMARY DB3 1 2 STANDBY STANDBY STANDBYPRIMARYSTANDBY 3 STANDBYPRIMARYSTANDBY LAG>20
  • 91. Role-Based Global Services – Lag Tolerance Oracle Active Data Guard 12cR2. Is it the best option?91 12/2/2017 Role-based services are supported for pool databases in Data Guard Broker configuration GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service> [ -role PRIMARY | -role PHYSICAL_STANDBY -failover_primary –lag 20 DB1 DB2 PRIMARY DB3 1 2 STANDBY STANDBY STANDBYPRIMARYSTANDBY 3 4 STANDBY STANDBY PRIMARYSTANDBY LAG>20
  • 92. Role-Based Global Services – Lag Tolerance Oracle Active Data Guard 12cR2. Is it the best option?92 12/2/2017 Role-based services are supported for pool databases in Data Guard Broker configuration GDSCTL> ADD SERVICE -gdspool <gds_pool> -service <service> [ -role PRIMARY | -role PHYSICAL_STANDBY -failover_primary –lag 20 DB1 DB2 PRIMARY DB3 1 2 STANDBY STANDBY STANDBYPRIMARYSTANDBY 3 4 STANDBY STANDBY PRIMARYSTANDBY LAG>20 PRIMARYSTANDBY STANDBY LAG<=20 5
  • 93. Oracle Active Data Guard 12cR2. Is it the best option?93 12/2/2017 So?
  • 94. Take aways Oracle Active Data Guard 12cR2. Is it the best option?94 12/2/2017 You pay for your standby: with Active Data Guard you can increase the ROI You use Active Data Guard for real-time query? There is more! One standby uses ADG, the others no? License just that server! If you have Golden Gate, you already have ADG. Use it!
  • 95. 12/2/2017 Oracle Active Data Guard 12cR2. Is it the best option?95 Technology on its own won't help you. You need to know how to use it properly.
  • 96. Trivadis @ DOAG 2017 #opencompany Booth: 3rd Floor – next to the escalator We share our Know how! Just come across, Live-Presentations and documents archive T-Shirts, Contest and much more We look forward to your visit 12/2/2017 Oracle Active Data Guard 12cR2. Is it the best option?96