Oracle Database / Data Guard & High Availability
Measure Data Guard transport lag with fresh timestamps
A standby may receive redo late or stop receiving it entirely. Interpret the lag value with the age of its source data.
Environment and inputs: Oracle Database 19c baseline · SQL*Plus-compatible SQL unless RMAN, DGMGRL, ADRCI or a host shell is specified. Check release, patch level, edition and container first.
Start with this diagnostic
Run each example in the tool named in the guide: SQL, RMAN, DGMGRL or the host command shell. Replace example names with approved values. To query DBA and V$ views, use authorized catalog access in the correct database container. Do not add broad permissions just to run an example.
SELECT name, value, unit, time_computed, datum_time FROM v$dataguard_stats WHERE name = 'transport lag';
What the results mean
On the standby, DATUM_TIME indicates when source data used for the metric was received. An unchanged timestamp can make a displayed lag misleading.
Fix the cause and check again
Compare repeated samples with primary redo generation and destination errors. Repair the transport dependency and confirm new redo arrives.
Before you make a change
Do not report zero lag as healthy without checking timestamp freshness and the actual destination.