How to Fix Data Guard Lag in Oracle 19c: Step-by-Step Troubleshooting Guide
Oracle Database: 19.18.0.0.0 Enterprise Edition • Standby Type: Physical Standby (Active Data Guard) • Protection Mode: Maximum Availability (SYNC/AFFIRM)
Primary: 2-Node RAC, 4.8 TB OLTP • Network: Dedicated 1 GbE WAN, RTT 1.8 ms • Peak Load: 2,800 TPS
Data Guard lag is one of the most stressful production alerts a DBA receives. The standby is falling behind the primary. Every second of lag is a second of potential data loss if the primary fails right now. The pressure to fix it quickly is real.
The problem is that "Data Guard lag" is not one problem. It is five different problems that all show the same symptom. Applying the wrong fix wastes time and can make things worse. This guide gives you the exact decision path, the exact diagnostic queries, and the exact fix commands for each root cause, in the order you should check them.
Follow the steps in order. Each step either identifies your problem and gives you the fix, or clears that cause and moves you to the next. Most Data Guard lag issues are resolved within Steps 1 to 3.
- Before You Start: Run These 4 Queries First
- Step 1: Check for Transport Lag vs Apply Lag
- Step 2: Fix Missing Standby Redo Logs (Most Common Root Cause)
- Step 3: Enable Parallel Apply to Fix MRP Bottleneck
- Step 4: Fix Network Latency and Bandwidth
- Step 5: Resolve RMAN vs MRP I/O Conflict
- Step 6: Fix Protection Mode Mismatch
- Fix for Active Data Guard (ADG) Apply Lag
- After the Fix: Verify and Monitor
- Prevent Lag From Returning: Configuration Checklist
- FAQ
- Related Reading