And little simple SQL query I wrote the other day.
This little sniplet shows how long ago the last archive log was applied.
select
round((sysdate-max(completion_time))*60*24) min_ago
from
v$archived_log;
I used this query to write a simple Nagios plugin to make sure our Oracle Dataguard standby machines do actually keep receiving logs.
The script in full here.
No comments:
Post a Comment