Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 212 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Physical SQL Query

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?
Answers
-
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
0 -
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.
0 -
Thanks Martin, but I don't want to do it manually. I need a way to automate this action...
0 -
Hi Joel,
I like your suggestion, I will investigate.
Thank you!
0 -
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.
0 -
Well, that's one of the things that usage tracking does as Joel already said. Really wondering what exactly you want to achieve?
0 -
@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
0