IBM Support

Dynamic Query Mode does not respect the Isolation Level setting of a Data Source

Troubleshooting


Problem

When creating a data source, there is an option to manually specify the Isolation Level for that data source (e.g. Read Uncommitted). If you set this, when running Compatible Query Mode reports against the data source you see the correct isolation level used. If you run a Dynamic Query Mode report against the same data source, it does not set the specified Isolation level.

Cause

As documented in the IBM Cognos Business Intelligence Administration and Security Guide under the Data Source Creation section, isolation levels are not implemented for JDBC connections.

Resolving The Problem

An alternate way to set the isolation level is to add an Open Connection command block to the data source which issues a command specific to your database to set the transaction isolation level. Use the following steps:


1) Launch IBM Cognos Administration -> Configuration -> Data Source Connections
2) Click on the data source to drill into it, then click on the Properties icon for the Connection object.
3) Expand the Commands link, then click the "Set..." link for the "Open connection commands" entry
4) Paste the following XML into the XML Database Commands box:
.
<commandBlock>
<commands>
<sqlCommand>
<sql>set transaction isolation level read uncommitted</sql>
</sqlCommand>
</commands>
</commandBlock>
.
5) Click OK twice to save the changes.

Note that the command syntax here is specific to Microsoft SQL Server - replace "set transaction isolation level read uncommitted" with the appropriate command to set the isolation level for your database.

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"10.2.1;10.2.1.1;10.2.2","Edition":"Edition Independent","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21665985