You are on page 1of 2

https://support.oracle.com/epmos/faces/DocumentDisplay?

_afrLoop=219043308112689&id=1902667.1&_afrWindowMode=0&_adf.ctrlstate=d02jxztig_302

Applies to:
Business Intelligence Server Enterprise Edition - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Goal
Unable to see the physical SQL in a particular report. Can see logical query, but not the physical
query. How can the physical query created from an analysis in OBIEE be seen?

Solution
The physical query should be seen in the NQQuery.log or the session log, however it is not
always seen there. One method to obtain the physical SQL (ie. the 'Sending query to database'
part of the log) for an individual Analysis is:
1. Log into OBIEE as an administrator user.
2. Open the analysis in Answers.
3. Move to the Advanced tab.
4. Enter the following in the Prefix box at the bottom of the screen:
o

set variable LOGLEVEL=7, DISABLE_CACHE_HIT=1;

5. Click Issue SQL


6. Go back to the results tab.
7. Select Administration--> Manage Sessions from the menu bar.
8. Identify the cursor for your session.
9. Click on the View Log button for your cursor.
10. Look for the section ''Sending query to database'
It may be necessary to clear the cache and then try these steps once or twice more before it
appears in the log.

You might also like