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?
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.
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.
Then you need to use the RPD Connection Script settings for the connection pool which is used to access your data:
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?
Yes. Same thing as the one in the RPD but request-based.
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)
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]
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)
The following is from BICS, but a quick look leads me to believe something similar can be done in Answers ...
http://www.ateam-oracle.com/executing-a-stored-procedure-from-oracle-business-intelligence-cloud-service-bics/
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
Where AI meets business outcomes Oracle AI World brings the Oracle community together to explore how AI and other technology innovations are driving real business outcomes across industries. Discover what’s new through: Mainstage keynotes to hear the latest directly from Oracle leadership Product demonstrations Customer…
I creates a parameter "Role Name" and then I put the Role name field in the filter and made a bind to the parameter, When I add the value in the parameter, it works. When I delete it from the parameter it give me <empty> How do I get rid of the <empty>
Hi Team, Has anyone upgrade OAS system from the 2024 to 2026 version? if yes, could you please share the resposne files. Regards, Chand
We need to download a report with the order number as the file name. In the main report, we have a data action (hyperlink) on each order number. When we click an order number, the linked report is downloaded with the corresponding order details. Currently, the file is downloaded using the report name. We need to download…
I tried the following expression and it blows up when I select more that one value in the list see image
We are using Oracle Analytics Server 2026 with WebLogic Server 14.1.2. Our Account Statement report is accessed through '/xmlpserver'. We need to capture the following details in the OAS/Publisher log files whenever a user runs the report: Username Report name and path Report execution timestamp Account Number From Date To…