Just create a PL/SQL procedure.