fix the ramdom sample selection in Oracle