I came across these queries that can give you good insight on the data and maintenance of Content Store in Cognos 8/10. You can also leverage the CMTools utility that comes with cognos install. ..\Cognos\bin\utilities\cm\CMTools\CMTools.exe select count(*) as "total number of objects" from CMOBJECTS; select c.NAME as "class name", count(*) as "number of objects" from CMOBJECTS o, CMCLASSES cgroup by o.CLASSID, c.CLASSID, C.NAME having c.CLASSID=o.CLASSID order by c.NAME ; select c.NAME as "class name", count(*) as "number of secured objects" from CMOBJECTS o, CMCLASSES c, CMPOLICIES pwhere o.CMID=p.CMID and p.POLICIES is not null group by o.CLASSID, c.CLASSID, C.NAME having c.CLASSID=o.CLASSID order by c.NAME ; select count(*) as "Total number of outputs", SUM(cast(coalesce(DATALENGTH(DATAPROP),0) as bigint)) as "Total size of outputs" from CMDATA where DATAPROP is not NULL; select ...
I came across this slick KB article on how to get the list of active sessions/users currently on any cognos environment and implemented it. https://www-304.ibm.com/support/docview.wss?uid=swg21385278 After I got this to work the servlet that runs only retrieves the CAMID and the session start time. I started looking around in the content store tables and was able to successfully retrieve the CAMID and the associated LDAP ID/User ID. I made this a query subject in the Audit model and joined it to the security groups table and created a report that will give me User ID, CAMID, AD Group, Name , Email. Query : SELECT distinct ldap_id, last_name, first_name, email, objid as CAMID FROM (SELECT c33.cmid user_id, UPPER (c33.NAME) ldap_id, c1.surname last_name, c1.givenname first_...
I recently had a requirement where the user wanted data from an existing Crosstab report to repeat every line so he can use the output in excel for comparison/analysis. It must be an old trick for most of us as I see so many posts around but none of them are straight forward and are hard to follow so i thought why not log it here, besides its only been 10 months since I shared anything. Sorry guys I'm in support right now so no time to explore new tips and tricks or maybe i'm being lazy ;) By default Crosstab groups columns nested based on the position on the cross tab, the trick here is to identify your lowest and highest level of data granularity. Lets pick the below crosstab as an example with PRODUCT, DESCRIPTION, LOCATION as nested dimension columns and default measure of SALES $ across MONTHS. Measure: Sales $ MONTH 1 | MONTH 2 .................................... Product | Descripti...
Comments
Post a Comment