Focal Point
[SOLVED] Native SQL using user defined Oracle functions

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

March 26, 2019, 01:52 PM
Kathy P
[SOLVED] Native SQL using user defined Oracle functions
Can you use your native sql to create Oracle functions and run them? The functions were included in their where statements within their select statement. We are in 8.1.05. Has anyone done this successfully? Thank you.

This message has been edited. Last edited by: FP Mod Chuck,


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
March 26, 2019, 03:22 PM
FP Mod Chuck
Kathy

Did you try to use SQL Passthru?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 26, 2019, 03:50 PM
Kathy P
Of course. She gets an error saying it can't find the function that is being used in the SQL passthru. Sorry, I should have said passthru instead of native SQL. Is there a way for the passthru to see the libraries where the functions are?


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows
March 26, 2019, 04:50 PM
FP Mod Chuck
Kathy

I don't know the answer to that. It is based on a database connection so I kind of doubt it. You can wait to see if anyone else has done it or open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
March 27, 2019, 04:05 PM
SeyedG
Hi Kathy,
If your question is which schema the function is in, then you can run something like the following in the SQL pass-thru:

SELECT OWNER AS "SCHEMA", OBJECT_TYPE, OBJECT_NAME, STATUS
FROM ALL_OBJECTS
WHERE OBJECT_TYPE='FUNCTION'
END


Just add 'AND OBJECT_NAME = 'XXXX' where 'XXXX' is the name of the function you are looking for.


WebFOCUS 8.0.09
App Studio 8009
Linux Kernel-2.6
DBMS: Oracle 11g
all output (Excel, HTML, AHTML, PDF)
April 03, 2019, 07:37 AM
Kathy P
This has been resolved. The user did not have the proper access per the user. Thank you!


Kathy Phillips
Web FOCUS 8.2.05.14, 8.1.05, 8.08, 8.0.7, 8.0.5,8.0.2m, 7.6.10,7.7.03
Windows