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
Logged in the Oracle Interactive Dashboard :
Locate :
The rest of the file contains information such as query status, number of rows returned, and so forth.
To be able to access to the Session Management, the user must have the privileges :
in order to see the log.
If when clicking on the link “View log”, you obtain this message :
No Log Found
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