Oracle 19c Active Data Guard Configuration on Linux – Step by Step
Oracle Active Data Guard provides high availability, data protection, and disaster recovery by maintaining a synchronized copy of the primary database on a standby system. In this guide, we will configure Oracle 19c Active Data Guard between two Linux servers.
1. Environment Setup
Primary Database: primary.localdomain (192.168.0.187)
Standby Database: standby.localdomain (192.168.0.188)
Update /etc/hosts on both servers:
Disable firewall & SELinux (if required):
2. Enable FORCE LOGGING & ARCHIVELOG Mode on Primary
On the Primary Database:
If not in ARCHIVELOG mode:
3. Configure Primary Initialization Parameters
Update the parameters using ALTER SYSTEM:
4. Configure tnsnames.ora on Both Servers
Edit $ORACLE_HOME/network/admin/tnsnames.ora:
5. Create Standby Redo Logs on Primary
Add standby redo logs (same size as primary redo logs, +1 group):
6. Create Password File & Transfer to Standby
On Primary:
7. Take RMAN Backup & Transfer to Standby
On Primary:
8. Restore Database on Standby
On Standby:
9. Configure Standby Initialization Parameters
Set parameters (reverse role values compared to primary):
10. Start Managed Recovery
On Standby Database:
For Active Data Guard (read-only + apply mode):
11. Verify Configuration
Run these checks on both Primary and Standby:
Expected output:
-
Primary DB →
PRIMARY,READ WRITE -
Standby DB →
PHYSICAL STANDBY,READ ONLY WITH APPLY
Conclusion
With this configuration, your Oracle 19c Active Data Guard environment is now up and running. Always validate in a test environment before production deployment. Active Data Guard ensures business continuity by providing real-time failover, load balancing for queries, and disaster recovery capabilities.