IBM Support

How to trace native SQL for relational DQM datasources or Dynamic Cubes in Cognos Analytics 11

Troubleshooting


Problem

This technote describes how to enable a native SQL trace when using Dynamic Query Mode. By default Report Studio or XQE trace files will show MDX for DMR or Dynamic Cubes. This requires a restart of the Query Service in the IBM CA environment.

Cause

Determine what SQL is sent to the database.

Resolving The Problem

This needs to be done for all dispatchers with Query Service enabled.
1. Locate the following file in your IBM Cognos installation directory and create a backup
: ..\configuration\xqe.diagnosticlogging.xml
2. Open it in an editor.
3. Search for the section <component name="XQE">
4. In that section look for <eventGroup name="JDBC"/>
5. Change it to <eventGroup name="JDBC" level="info"/>
6. From Cognos Administration restart the Query services. Please make sure the correct Java process disappears in Task Manager. If you are unsure restart the complete Service from Cognos Configuration.
After the restart, start the Dynamic Cube or run the affected report. The native SQL is then located in the XQE trace files. They can be located in ..\logs\XQE. The filename starts with xqelog.

Disable the trace by restoring the original XML file after collecting the required logs and restart the Query Service again.

[{"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Administration and Configuration v11x","Platform":[{"code":"PF033","label":"Windows"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg22001047