denrepo

OracleData Guard

Transport and apply lag

How far behind the standby is in receiving and applying redo. A growing apply lag with no transport lag points at the apply process, not the network.

Run on standby

Not yet verified. How scripts are tested

ora-dg-lag.sql
1CLEAR COLUMNS2SET LINESIZE 120 PAGESIZE 100 TRIMOUT ON TAB OFF3COLUMN name          FORMAT A204COLUMN value         FORMAT A185COLUMN time_computed HEADING "COMPUTED" FORMAT A206COLUMN datum_time    HEADING "DATUM"    FORMAT A207 8SELECT name, value, time_computed, datum_time9FROM v$dataguard_stats10WHERE name IN ('transport lag', 'apply lag', 'apply finish time');

Save it as ora-dg-lag.sql and run it with SQL> @ora-dg-lag.

Open in denrepo

Part of these runbooks

More Oracle scripts: Data Guard