stored procedure for oracle, first shot