Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 211 Oracle Analytics News
- 41 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 77 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Calling Oracle Stored Procedure from OBIEE 11g

Hi
I need to execute below procedure before the report query gets executed to display data -
EXEC APPS.MO_GLOBAL.SET_POLICY_CONTEXT('S',1103);
How can i do that from report level? can i use EVALUATE function?
Answers
-
2969455 wrote:HiI need to execute below procedure before the report query gets executed to display data -EXEC APPS.MO_GLOBAL.SET_POLICY_CONTEXT('S',1103);How can i do that from report level? can i use EVALUATE function?
Depends - what's the result of the stored procedure? If it's just a value then yes you can use EVALUATE.
If you want to test what it yields in OBI you can just create a Direct Database Request with your SQL query. If it is somehting that needs to be integrated into your model then the story's different of course.
0 -
Hi Christian
Thank you for your reply.
This procedure does not return any value. But we need to execute this first thing whenever a new database session is opened in order to see data from some Oracle Apps tables. As my OBIEE report queries those tables, I need to execute this procedure from OBIEE as well before the execution of report query.
0 -
Then you need to use the RPD Connection Script settings for the connection pool which is used to access your data:
0 -
Thanks again for the reply.
But if I use RPD Connection Script then I think this query will be executed for all the reports which uses this connection pool. This requirement is for only one report. Can I use the "Prefix" option in "Advanced" tab?
0 -
Yes. Same thing as the one in the RPD but request-based.
0 -
Ok. Can you please help me to write the correct script that I can run from 'Prefix'? I am trying the one below and it is not working -
EVALUATE('APPS.MO_GLOBAL.SET_POLICY_CONTEXT(%1,%2)','S',1103)
0 -
EVALUATE was for columnar usage if you need the result embedded in a data set. That's why I asked for what the return of the stored proc is.
Haven't gotten the precise syntax lieing around (somewhere in my notes) but sht along the lines of EXECUTE PHYSICAL CONNECTION POOL "Fully Qualified"."Connection Pool Name" [yourstatementgoeshere]
0 -
I tried below script , but did not work -
EXECUTE PHYSICAL CONNECTION POOL "Oracle EBS OLTP Connection Pool"
EXECUTE APPS.MO_GLOBAL.SET_POLICY_CONTEXT(''S'',1103)
0 -
The following is from BICS, but a quick look leads me to believe something similar can be done in Answers ...
0 -
Thanks for adding that @Thomas Dodds !
Actually gave me another idea. Just add a filter with "Based on another analysis" main one and put an a single column with the EVALUATE in the analysis called by the filter. Runs first. Executes the package. Main analysis runs. Bob's your uncle
0