create or replace procedure p_test(p_cur out sys_refcursor) as begin open p_cur for select * from emp; end p_test;