Table of Contents

OBIEE 10G/11G - How to see the Physical SQL generated by a request in Presentation Service ?

Quick Way

A quickway to see the content of the Nqquery.log to grab the SQL information is to follow this quick instructions.

Click Settings > Administration > Manage Sessions > View Log to view the query log and examine the Physical SQL generated by the request.

To be able to see the log, you must set the log level at least with the level 2. See this article : OBIEE 10G/11G - Setting a Query Logging Level

Detail Way

Logged in the Oracle Interactive Dashboard :

Obiee Setting Admnistration

Obiee Admin Manage Sessions

Obiee Query Log

Locate :

The rest of the file contains information such as query status, number of rows returned, and so forth.

Security

To be able to access to the Session Management, the user must have the privileges :

Support

No Log Found

If when clicking on the link “View log”, you obtain this message :

No Log Found

Obiee Bi Server Nolog Found

Log Could Not Be Retrieved

Error
Log Could Not Be Retrieved
Odbc driver returned an error (SQLExecDirectW).
  Error Details
Error Codes: OPR4ONWY:U9IM8TAC
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] 
[nQSError: 10058] A general error has occurred. 
[nQSError: 43113] Message returned from OBIS.
[nQSError: 43100] Log Viewer process reported error 107:@Û.à�. (HY000)

When you click on the log link, you are calling the log viewer utility. Verify that you can call it from the command line. In my case, the file permissions was not good.

It was:

[oracle@Exalytics-01 bin]$ ls -l|grep nqlog
-rw-r--r-- 1 oracle oinstall  1671920 Jan 24 16:41 nqlogviewer

As you can see the script as no permission to execute. After giving the right to execute on the owner (0744), the problem disappeared.

[oracle@Exalytics-01 bin]$ ls -l|grep nqlog
-rwxr--r-- 1 oracle oinstall  1671920 Jan 24 16:41 nqlogviewer

Reference