COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Cognoster on 29 Mar 2010 06:37:12 AM

Title: To trace Cognos queries
Post by: Cognoster on 29 Mar 2010 06:37:12 AM
Suppose a  report was created by getting data items from a content store which is by writing a user defined query.Can I check the query and the user information from back-end without accessing the report studio
Title: Re: To trace Cognos queries
Post by: blom0344 on 29 Mar 2010 04:29:36 PM
Sure, but you would need to start a database trace to capture the SQL involved. What are you after? The actual SQL executed against the content store would yield no information on the 'real' data to be fetched. You will need to run the trace against the source DB.
Unfortunately , traces generate A LOT of entries to be checked and you need to have the proper rights to start them..
Title: Re: To trace Cognos queries
Post by: Cognoster on 30 Mar 2010 04:52:09 AM
many thanks blom, I am a beginner at using cognos, hope you will bear with me.
where should we start the trace on the Cognos side or DB side like checking DB sessions will that help...just guessing

Peace
Cognoster
Title: Re: To trace Cognos queries
Post by: blom0344 on 30 Mar 2010 08:18:55 AM
Hard to fathom were you are after. Are you interested in how and when Cognos is used? Then look for the audit database Cognos provides. If you want to catch 'loose' reports that include straight SQL (with potential performance issues) , then you will perhaps need to work with DB traces. The actual approach would also depend on the RDBMS you are working with. This would usually mean finding a friendly and cooperative DBA (unless you have sysadm rights)