Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing Package from SQL PLUS

Status
Not open for further replies.

IT4EVR

Programmer
Feb 15, 2006
462
US
I seem to be getting an error whenever I try to run a package stored procedure that returns a REF CURSOR.

For example:
Code:
 TYPE T_CURSOR IS REF CURSOR; 
 PROCEDURE proc_sel_URLLINK(LINKCURSOR OUT NOCOPY T_CURSOR);

I then try to call it in SQL PLUS as
Code:
SQL> BEGIN
  2  PKG_URLLINKS.proc_sel_URLLINK;
  3  END;
  4  /
PKG_URLLINKS.proc_sel_URLLINK;

PLS-00306: wrong number or types of arguments in call to proc_sel_URLLINK

There is probably something I am forgetting here.
 
Why would I need to supply an argument if I have an OUT Parameter?
 

If you do not supply an argument, where is the procedure supposed to return the value? [3eyes]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Thanks for the clarification. I guess I looked like an idiot on that one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top