on a .bat program
set ORACLE_SID=
set NLS_DATE_FORMAT=YYYY/MM/DD HH24:MI:SS
rman target / nocatalog @rman_check_logical_database.rms msglog rman_check_logical_database.log
and the rman script is:
run {
# Andrea Dalle Vacche
# BACKUP VALIDATE ver. 1.0 19/07/2010
#
backup validate check logical database;
}
exit;
I’ve put this “.bat” on a scheduled task that run every day and after i execute this query on standby:
select * FROM v$database_block_corruption;
So if the query don’t return rows is everything right, otherwise you’ll get the block/blocks that is/are corrupted.