This is a migrated thread and some comments may be shown as answers.

Executing oracle stored procedures in packages

1 Answer 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Håvard
Top achievements
Rank 1
Håvard asked on 27 Aug 2015, 11:14 AM

Hello, I am trying to run a stored procedure which is located within an oracle package. The report wizard does not locate these stored procedures, so I have tried to write an SQL statement which should execute it. However when I test it, no rows are returned (no error messages given).

What is the correct syntax to achieve this? 

 

This is my current attempt:

DECLARE 
  P_VAR1 NUMBER;
  P_VAR2 NUMBER;
  p_cursor sys_refcursor;

BEGIN 
  ​P_VAR1 := 123;
  P_VAR2 := 456;
  p_cursor:= NULL;

  NII.​MYPACKAGE.MY_PROCEDURE( P_VAR1, P_VAR2, p_cursor);
  COMMIT; 
END; 

 

 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 01 Sep 2015, 07:17 AM
Hello Håvard,

Please check if the issue is related to the package configuration as described in this thread.

Also, try to execute the stored procedure programmatically and then return the retrieved data to the report using the ObjectDataSource Component.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Håvard
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or