how ro execute package in sql*plus [message #10849] |
Fri, 20 February 2004 05:48 |
Jeff
Messages: 63 Registered: July 1999
|
Member |
|
|
I'm vb user and have to call oracle package.
I've got ora-06550, wrong number or types of arguments.
How can I call this package from sql*plus in order to check this package.
thanks
|
|
|
|
Re: how ro execute package in sql*plus [message #10851 is a reply to message #10849] |
Fri, 20 February 2004 06:59 |
Jeff
Messages: 63 Registered: July 1999
|
Member |
|
|
I have two parameters, one - input , ID_ORDER,
and second output - O_RESULT_SET OUT CURSOR_TYPE,
when I execute like
execute WRONG_ORDER.GET_IDS(476878,O_RESULT_SET);
I've got error,
identifier 'O_RESULT_SET' must be declared
Thanks.
|
|
|
|
|
|
Re: how ro execute package in sql*plus [message #10857 is a reply to message #10849] |
Fri, 20 February 2004 08:18 |
Jeff
Messages: 63 Registered: July 1999
|
Member |
|
|
I created this procedure:
create or replace procedure test_order
as
TYPE CURSOR_TYPE IS REF CURSOR;
O_RESULT_SET CURSOR_TYPE;
IN_ORDER NUMBER := 476878;
BEGIN
WRONG_ORDER.GET_IDS(IN_ORDER,O_RESULT_SET);
end;
/
How can I see O_RESULT_SET,
everything I tryed as O_RESULT_SET%recordcount,
gives me error.
Thanks.
|
|
|
|