Hi everyone!
Is it possible to get the physical sql query generated programmatically?
I mean, I want a script or something like that, to get the sql right after report runs.
Any idea?
You can get that (if you have the proper privileges) via Administration --> Manage Sessions.
Select the action that you want to see the physical SQL of. You can see in the information column which item has generated the sql.
Down below in the log will be the physical SQL statement(s).
An other way to get the same is to copy the logical SQL from the advanced tab when you are editing an analysis. You can issue this sql via Administration --> Issue SQL which will also generate a log entry containing the Physical SQL.
EDIT: Also, your logging level needs to be set to 2
In addition to what @Martin van Donselaar has suggested, you can get this information from your Usage Tracking tables if you have enabled Usage Tracking.
Thanks Martin, but I don't want to do it manually. I need a way to automate this action...
Hi Joel,
I like your suggestion, I will investigate.
Thank you!
Hi,
For more hints on how to achieve what you are asking it would help if you set a context ...
As it's a client-server architecture the concept of "right after report runs" is a bit vague, as you can have none, one or 1258 concurrent users.
Well, that's one of the things that usage tracking does as Joel already said. Really wondering what exactly you want to achieve?
@TomasJuarez-Oracle since you do not state what you are trying to achieve in spite of multiple questions...
https://www.rittmanmead.com/blog/2014/01/automated-regression-testing-for-obiee/
^-- the command line can automate just about anything
Explore how to build agents using code in AI Data Platform. We'll create an agent that examines and analyzes the contents of a Github repository and reports its findings. The session demonstrates how to use different developer tools to create agents including the AIDP extension for VS Code and Codex. Using these tools we…
The user icon in the upper-right corner of OAC (DV) is displaying more menu options for our non-admin users than we wish to display. We would like to restrict these to only "Profile" and "Sign Out" for regular users. Is there a way to customize these menu items? Especially if we can control this via security, that would be…
What is wrong with this code
Am I missing something or is there no way to search through previous posts to make sure I don't duplicate a question? All I see on the filter options are tags or status… a general search for a word or phrase would be helpful.
We were under the impression that when exporting a visualization in DV to CSV format hidden columns would be include from the grammar panel. This is not happening. See below for a screenshot showing 3 hidden columns that do not appear when exporting the pivot table to CSV. This seems to have worked a month or so back but…
Migrated RPD from obiee12c to OAS 2024. post migration when we try to access dashboards on OAS we are getting below error: State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. (HY000) State: HY000. Code: 43275. [nQSError: 43275] Message returned from OBIS…