0% found this document useful (0 votes)
13 views

Active data Guard -19c-new-features-5515417

Apresentação Oracle ADG

Uploaded by

jlchiappa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Active data Guard -19c-new-features-5515417

Apresentação Oracle ADG

Uploaded by

jlchiappa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Oracle (Active) Data Guard 19c

Best Practices for a Selection of New Features

Markus Michalewicz, Senior Director,


Pieter Van Puymbroeck, Principal Product Manager,
Database High Availability & Scalability Product Management

March 06, 2019

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, timing, and pricing of any
features or functionality described for Oracle’s products may change and remains at the
sole discretion of Oracle Corporation.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 2


Data Guard: Real-time Data Protection and Availability
Included with Oracle Database Enterprise Edition

Primary Data Center DR Data Center

Automatic Block Repair

Data Guard Broker


(Enterprise Manager Cloud Control or DGMGRL)

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 3


Active Data Guard: Advanced Capabilities
A licensable option to the Oracle Database Enterprise Edition

Primary Data Center DR Data Center


Offload read-only
workload to open
standby database

Zero data loss at any distance

Automatic Block Repair

Offload Fast
Data Guard Broker Incremental
(Enterprise Manager Cloud Control or DGMGRL) Backups

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 4


Active Data Guard: Advanced Capabilities
Getting most of your Active Data Guard DR site

Primary Data Center DR Data Center Offload read-


DML Redirection mostly workload
to open standby
database
Zero data loss at any distance

Automatic Block Repair

Offload Fast
Data Guard Broker Incremental
(Enterprise Manager Cloud Control or DGMGRL) Backups

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 5


Tunable Automatic Outage Resolution
• Data Guard maintains internal mechanisms that detect and correct issues
with its redo transport and gap resolution processes
– In case of network or disk I/O problems, these mechanisms prevent those processes
from hanging and causing unnecessarily long gaps

• Use the following parameters to influence the outage resolution:


– DATA_GUARD_MAX_IO_TIME
• Sets the maximum number of seconds that can elapse before a process is considered hung while
performing reads, writes, and status operations.
– DATA_GUARD_MAX_LONGIO_TIME
• Sets the maximum number of seconds as above, but for operations such as open and close

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 6


Data Guard and Flashback
Standbys automatically follow the primary after a RESETLOGS operation
– Today, after a flashback database and subsequent “resetlogs” operation has been
performed on the primary, the standby database will follow the new incarnation,
assuming the user first performs the same flashback operation on the standbys.

– With Oracle Database 19c,


flashback operations are propagated to the standbys automatically
• Requires that the standbys are configured for flashback database and in MOUNT state first
• Standbys must have the same or larger setting for DB_FLASHBACK_RETENTION_TARGET

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 7


Data Guard and Flashback
Restore Points automatically propagate from the primary to the standbys
– Today, restore points are set on each Data Guard database individually
• Requires multiple operations if the same restore point across the configuration is desired

– With Oracle Database 19c,


the primary restore points are automatically created on each standby
• Identified by a prefix to the name of “PRI_”

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 8


Preserve Buffer Cache During Role Change
Read/Write Read • The database buffer cache state
is preserved on an ADG standby
during a role change.

• Automatically enabled
Primary Active Data Guard
Standby – Configure services so that users can stay
connected on a service that is valid in both
Read/Write PHYSICAL_STANDBY and PRIMARY roles.

• Supported versions:
– Oracle Database 18c – Single Instance
Failed Primary Primary – Oracle Database 19c – Oracle RAC Support

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 9


Multi-Instance Redo Apply Enhancements
Parallel redo log apply on Oracle RAC standby
• Supported versions:
– Introduced with Oracle Database 12c Rel. 2
– Oracle Database 18c added support for Block Change Tracking enabled (ADG feature)
– Oracle Database 19c supports the In Memory Column Store (IMCS)

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 10


Multi-Instance Redo Apply Performance
Lower Latency Active Data Guard Standby Databases
– Utilizes all RAC nodes on the Standby database to parallelize recovery
– OLTP workload on Exadata show great scalability

7000
6000
Standby
5000
Apply
Rate
4000 5000 Batch
3000
MB/sec 2752
2000
1000 1400
1480
OLTP
700 740
0 190 380
1 Instance 2 Instances 4 Instances 8 Instances

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 11


Extend the Footprint of Active Data Guard Applications
Creating Private Temporary Tables on Active Data Guard

• Private (Local) Temporary Tables on an Active Data Guard standby database


– Are stored in memory on the standby
– Visible only to the session that created it
– Dropped at the end of a transaction or session

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 12


Extend the Footprint of Active Data Guard Applications
Creating Global Temporary Tables on Active Data Guard

• Global Temporary Tables (GTT) on an Active Data Guard standby database


• Are Enabled by setting parameter “_enable_proxy_adg_redirect=TRUE”
and appropriate connectivity parameters using log_archive_dest_x
• Requires Standby to be caught up, with Real Time Apply running
• Create the GTT on the primary over an internal link
• Wait for the GTT redo to be replicated and applied to the Active Data Guard standby
• Return control to the user

• Supported with Oracle Database 18c

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 13


Extend the Footprint of Active Data Guard Applications
Support for DML Re-direction
• DML Re-direction is automatically performed from
an Active Data Guard standby to the primary without compromising ACID
– New documented parameter ADG_REDIRECT_DML controls DML Redirection
– New alter session ADG_REDIRECT_DML allows for per-session override
– New ADG_REDIRECT_PLSQL commands

• Supported with Oracle Database 19c


– Targeted for “Read-Mostly,
Occasional Updates” applications

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 14


Active Data Guard DML Redirect – Demo

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 15


Active Data Guard Security Enhancements

• Automatically update passwd file on standby databases


– Changing Admin password on primary automatically updates standby database
• Standby-first encryption
– Can encrypt tablespaces on standby first, switchover, then encrypt on the old primary
• New DG redo authentication protocol - uses SSL certificate for
‘redo_transport_user’
• Track login failures across all databases in a Data Guard configuration.
Logins anywhere will be denied when the max login count is reached

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 18


Control Login-Attempts on Active Data Guard
• The ADG_ACCOUNT_INFO_TRACKING parameter extends the control of
user account security information and reaction

– ‘LOCAL’ (default value) continues to enforce the existing behavior


• Maintains local copy of users account information in the standby's in-memory view
– Login failures are only tracked locally on a per database basis
– Logins are denied when the failure maximum is reached

– ‘GLOBAL’ triggers the new, secure behavior


• Maintains a single global copy of users account information across all Data Guard databases
– Login failures across all databases in the Data Guard configuration count towards the maximum count
– Logins anywhere will be denied when the count is reached

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 19


Data Guard Broker
(Enterprise Manager Cloud Control or DGMGRL)

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 20


SET TRACE_LEVEL USER|SUPPORT
• Replaces the DEBUG qualifier in Oracle Database 18c starting with 19c
– More expandable in future, if new levels are necessary
– ‘USER’ is the default

• SHOW ALL changes to display the TRACE_LEVEL instead of DEBUG

DGMGRL> show all;


trace_level USER
echo OFF
time OFF
observerconfigfile = observer.ora

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 21


Fast-Start Failover (FSFO): Observe-Only Mode
• Test fast-start failover without impacting the production database
– Determine when a failover or other interaction would have occurred during
normal production processing
– Discover what circumstances would cause an automatic failover to occur
– Tune FSFO properties more precisely
– Easier justify using Fast-Start Failover s to reduce the recovery time for failovers

DGMGRL> ENABLE FAST_START FAILOVER OBSERVE ONLY;


Enabled in Observe-Only mode.
DGMGRL>

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 22


SHOW CONFIGURATION LAG
• Conveniently view lag information for all members
DGMGRL> SHOW CONFIGURATION LAG;
Configuration – HA_Config
Protection Mode: MaxPerformance
Members:
boston - Primary database
chicago - Physical standby database
Transport Lag: 0 seconds (computed 1 second ago)
Apply Lag: 0 seconds (computed 1 second ago)
newyork - Physical standby database
Transport Lag: 0 seconds (computed 1 second ago)
Apply Lag: 0 seconds (computed 1 second ago)
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 26


SET FAST_START FAILOVER TARGET [NOWAIT]
• Today, if the current target fails, the Observer moves to the next target
– Moving the target back to a previous standby requires disabling and enabling FSFO
• Starting with Oracle Database 19c, users can execute the
SET FAST_START FAILOVER TARGET command
– Disabling and enabling FSFO will not be required

DGMGRL> SET FAST_START FAILOVER TARGET TO boston;


Waiting for Fast-Start Failover target to change to ”boston"...
Succeeded.

DGMGRL> SET FAST_START FAILOVER TARGET TO boston NOWAIT ;


Succeeded.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 27


Export and Import the Broker Metadata File
• Users will be able to save a Broker readable copy of the configuration file
• Allows a lost Broker configuration to be rebuilt without having to have all
individual commands used at the start and during configuration lifetime

DGMGRL> EXPORT CONFIGURATION TO 'meta.xml' ;


Succeeded.
DGMGRL>

DGMGRL> IMPORT CONFIGURATION FROM 'meta.xml' ;


Succeeded. Run ENABLE CONFIGURATION to enable the imported configuration.
DGMGRL>

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | 28

You might also like