High Availability Data Guard, Sharding and Global Data Services (MOSC)

MOSC Banner

null values in v$dataguard_stats

Hi,

The below query is returning null values in the standby and because of this we are unable to monitor lag in standby

SELECT SUM(DECODE(name, 'apply finish time', value, null)) FOT, SUM(DECODE(name, 'apply lag', value, null)) LAG,

SUM(DECODE(name, 'transport lag', value, null)) PDL

  2    3  from (SELECT name, extract(day from p.val) *86400 + extract(hour from p.val) *3600 + extract(minute from p.val) *60 + extract(second from p.val) value

  4  from (SELECT name,to_dsinterval(value) val from v$dataguard_stats) p);

       FOT        LAG        PDL

---------- ---------- ----------

Best regards,

Vishal

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center