KRACOEUS-7005 : Fix sql for oracle.