oracle stored procedure with select statement