add error metrics for oracle