Focal Point
[Resolved]How to call Oracle store procedure in WebFOCUS procedure script?

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5497096726

January 07, 2013, 04:40 AM
Pippen
[Resolved]How to call Oracle store procedure in WebFOCUS procedure script?
Hi,

I have to call a Oracle store procedure in WebFOCUS procedure(fex file). I am googling the result how to call the SQL sever store procedure, but did not find how to call the Oracle store procedure.

I could execute the Oracle store procedure in Oracle SQL Developer like this:
begin
SL_NO_INCEDENT('185', '185', 'EDIT');
end;

I've tried
SQL EX SL_NO_INCEDENT('185', '185', 'EDIT');
but it is not working.

do not worry about the input parameters,any help on this?

Thanks!

2013-01-09 update:
Question answered by MattC.

This message has been edited. Last edited by: Pippen,


WebFOCUS 7.7.03, Windows 7 64bit, IE8
January 07, 2013, 10:11 AM
MattC
This is what I use to call an Oracle procedure

SQL
CALL SCHEMA.PROCEDURE();
-RUN
  


It works fine for me.


WebFOCUS 8.1.05
January 07, 2013, 10:54 AM
Mary Watermann
I have used this syntax in the past:
 
-SET &QUALIFIER   = &DB_OWNER_ID |'.'| &DB_PACKAGE |'.';

ENGINE SQLORA SET DEFAULT_CONNECTION &CONNECTION_NAME
SQL SQLORA EX &QUALIFIER.storedprocedure_name ¶meter ;
 



WF 7.6.10, Windows, PDF, Excel
January 08, 2013, 10:49 PM
Pippen
quote:
Originally posted by MattC:
This is what I use to call an Oracle procedure

SQL
CALL SCHEMA.PROCEDURE();
-RUN
  


It works fine for me.


Hi MattC,

Thanks for the answer, it works for me !
by the way, I have to mention the agent name SQLORA after SQL, so all my execute script would be like this:

 
ENGINE SQLORA SET DEFAULT_CONNECTION conntion_name
SQL SQLORA
CALL MY_SCHEMA_NAME.SL_NO_INCEDENT(160, 160, 'EDIT');
END 


Question closed.
Thanks again.


WebFOCUS 7.7.03, Windows 7 64bit, IE8
January 09, 2013, 10:21 AM
MattC
We use an -INCLUDE that has the connection string that has the SQLORA in there. That way we don't have to change in several places in each procedure.

Glad it works!


WebFOCUS 8.1.05