Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execute Package - Display results?

505977May 11 2006 — edited Jun 20 2007

How do I execute a package in SQL Developer? Here is my package body. I am trying to see the results of the cursor which I am assumming is going to have the rows returned in it. I am new to Oracle and so I am having a hard time with the syntax and what it is looking for.

create or replace package custom_pkg
as
TYPE t_cursor IS REF CURSOR;
procedure usp_customdisplay_sel (p_cursor out t_cursor);
end;

create or replace package body custom_pkg
as
	procedure usp_CustomDisplay_Sel (p_cursor out t_cursor)
	as
	begin
		open p_cursor for select * from gp2.PM_REPORTS;
	end usp_customdisplay_sel;
end;

I want to see the resuls for the select statement. Isn't there an easier way to do this with procedures?

Thanks,
Greg

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 1 2006
Added on May 11 2006
3 comments
4,931 views