how to check if archive logs are applied to standby database