Suponiendo que está utilizando Oracle 12c con un cliente 12c:
create or replace procedure testsproc
( username in varchar2 )
as
resultset sys_refcursor;
begin
open resultset for
select * from test_table
where name = username;
dbms_sql.return_result(resultset);
end testsproc;
Entonces llámalo con
exec testsproc('Phil')
o
call testsproc('Phil');
o
begin
testsproc('Phil');
end;
dependiendo de desde dónde lo estés llamando.