Oracle Fusion reporting guides
ORACLE FUSION OTBI GUIDE
How to see the physical SQL behind an OTBI analysis
To find the database SQL behind an Oracle Fusion OTBI analysis, run the analysis and open its query log in Administration → Manage Sessions → View Log. This requires Business Intelligence Administrator access.
Find the OTBI query log
- Run the analysis with the filters you want to investigate. Note the user and approximate run time so you can identify the request.
- In OTBI, open Administration. Under Session Management, choose Manage Sessions.
- Find the request for your analysis. In the Action column, click View Log.
- Look for the SQL sent to the database. If the log contains several statements, review the ones for the request you ran.
If you cannot open Manage Sessions, ask a BI administrator to review the request. If the log has no physical query, ask the administrator to check whether the request was served from cache or whether query logging captured the database statement.
Logical SQL vs. physical SQL in OTBI
Logical SQL shows what the analysis asks for using subject-area columns and expressions. Physical SQL shows how the BI Server retrieves the data from its source. For example, an analysis filtered by invoice number may show the presentation column in logical SQL and a database predicate in the query log. Check the log from your own run for the actual joins and filters.
Oracle documentation on reviewing SQL statements in analyses
Explore the logical request
Use the OTBI logical SQL guide to see the request for a saved analysis. To explore a new subject-area selection, choose the columns in QueryBridge and review its logical SQL.