Oracle 19c Active Data Guard-DML Redirection

Oracle 19c Active Data Guard-DML Redirection

DataGuard DML Redirection

Hello friends, in this article we are going to discuss the oracle 19c DML Redirection feature with DataGuard.

ACTIVE DATAGUARD DML REDIRECTION is a new feature in Oracle 19c which enables the Data Manipulation Language (DML) operations on the standby server to be redirected and run on the production (Primary) database. The updated data will be streamed back to standby to maintain redundancy.

Which DML we fire on standby database that operations actually executing on Primary. It might be impacted database performance so we need to avoid too many DML operation execution on standby.

Steps to Understand DML Redirection on Standby Database, Listed below

  • Once DML executes on open standby database.
  • DML automatically redirects to the primary DB.
  • The DML is executes on the primary DB.
  • Then updated data is streamed back to the standby DB.
  • Now data is available for the client.

Oracle 19c Active DataGuard DML Redirection

We have two methods to configure DML Redirection with the help of ADG_REDIRECT_DML.

  • SYSTEM LEVEL
  • SESSION LEVEL

How to Enable DML Redirection

Using the below commands you can enable DML Redirection in Oracle 19c Active Data Guard.

Enable SYSTEM LEVEL DML Redirection

SQL> alter system set ADG_REDIRECT_DML=TRUE scope=both;

Enable SESSION LEVEL DML Redirection

SQL>alter session enable adg_redirect_dml; 

Note:- You must be remembered, the session-level redirection overwrites the system-level redirection.

Read - Oracle 19c Data Guard Configuration step by step

Connect with me on:

Instagram: https://www.instagram.com/shripaldba
Linkedin: 
https://www.linkedin.com/in/shripal-singh
Twitter: 
https://twitter.com/ocptechnology
Facebook: 
https://www.facebook.com/ocptechnology
YouTube:
https://www.youtube.com/ocptechnology

For more details, you can visit here.

2 thoughts on “Oracle 19c Active Data Guard-DML Redirection

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top