Detect Cognos Reports Issues
Problem:
When a large queries fired from Cognos to Application database, there is always question or confusion who is client running the query ( Adhoc run) or identify which one of scheduled jobs running on same database.
Solution:
DB2 is backend database for reporting queries, WLM_SET_CLIENT_INFO procedure can be added to Cognos Data source Command line parameter.
In Cognos, this procedure command with user account parameter can be added in data source so that with each query, Client account name is sent as well.
Now DBA can create script to capture information at DB end:
- Server ID
- Client ID
- DB ID
- Volume Read
- Rows Returned
- Cost of Query
Cognos Team will get email for any volume breach happens and it is easy to detect and engage user to take further for fine tuning queries/model to prevent issues and improve performance.