最具影响力的数字化技术在线社区

168大数据

 找回密码
 立即注册

QQ登录

只需一步,快速开始

1 2 3 4 5
开启左侧

[综合] 【顶】cognos大牛多年问题总结

[复制链接]
发表于 2014-9-30 09:27:18 | 显示全部楼层 |阅读模式

马上注册,结交更多数据大咖,获取更多知识干货,轻松玩转大数据

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
本帖最后由 乔帮主 于 2014-9-30 09:37 编辑

文档请下载:
链接: http://pan.baidu.com/s/1c0CgCG4 密码: o45g

1、在cognos 的transfer中如何做环比同比(如何增加计算列调用cognos自带的函数)在FrameManage里面又是如何做?
答复:在transformer里面对指标表重复引用,将时间维度字段PRD_ID修改成不一样的别名PRD_ID(LAST_MONTH),然后新增一个字段取原时间维度字段进行增减操作add_month('PRD_ID(LAST_MONTH)',1)并命名为  PRD_ID,这样,从重复指标表里取的指标值就是上期指标值

2、在cognos中使用frameManage创建维度时,时间维度如何设置
答复:时间维度不需要单独设立,直接使用PRD_ID即可

3、在transfer中产生了cube文件后发布报错,测试连接失败 ,但是在idq文件能够连接上,所有都能过通过,到发布这里测试失败。



答复:请核查是否使用的UTF-8字符集保存的模型文件以及模型文件是否存在错误,transformer里面有核查按钮
4、时间列的数据类型为number类型,如何在上面建立维度,是否是先转化为日期类型 然后再设定维度,如何设定?
答复:可以先选择日期字段,右键属性里改成日期型,再拖拉到显示区使用,也可以直接选择数字型日期字段拖拉到显示区,然后在显示区进行日期型属性的设置,前者方便些
5、
安装日期来发布立方体进行增量更新时,没有数据的日期 即还没有到的日期也建立了立方体 如果设置没有数据的日期不建立立方体?
答复:在维度显示区里对月,日维度的点属性选择TIME页签把 all categories的勾去掉
6、cognos在linux环境下的部署问题:
Cognos安装成功以后也安装了apache服务器来作为web服务器 ,但是配置将cognos发布到apache上去失败: 通过浏览器访问cognos服务时,出现cognos了LOGO,但是一闪而过,地址栏显示调用cognos8/cgi-bin下的cgi程序,或者提示下载文件。
安装文档进行操作:问题分析与解决方案:无法执行cgi程序,把cgi程序当做是要下载的文件。检查web server的配置虚拟目录/cognos8/cgi-bin是否有执行cgi的功能。Apache的Options要设为ExecCGI,默认Indexes是不行的。详情可翻查apache或tomcat的配置手册。在windows上应注意window 2003 server在IIS6.0中新增了“web程序扩展”,而里面的很多服务默认都是禁止的,因此诸如ASP,CGI,WEBDAV(服务器目录浏览)等等都必须在该项中手动"启动"。
--------但是不能解决问题。。请确认是否还有其他的地方需要配置?
答复:这个没有遇到过,看是否是所有机器访问都是如此还是个别机器,个别机器看能否通过降低安全级别来访问
7、在FrameManage中创建维度时,add Hierarchy和add level区别 然后分别是增加什么,如何使用?


同事默认角色这里要求都选择bisunessKey,表示什么含义,其他是什么意思,请介绍!
答复:这个功能没有使用过,OLAP的层级关系可以直接在transformer里面实现
8、在transfer中如何给指标加入自定义的单位,如万元之类的?
答复:这个好像没有自定义的格式的设置
9、cognos权限控制时,需要目录服务器的配置,在配置目录服务器时必要的参数设置如何设定,能否介绍里面几个重要的参数的设置。

答复:参考方法如下
(一)设置 COGNOS服务器上名字空间的配置流程如下,Steps:
  • On every computer where you installed Content Manager, open Cognos Configuration.
  • In the Explorer window, under Security, right-click Authentication, and then click New resource, Namespace.
  • In the Name box, type a name for your authentication namespace.
  • In the Type list, click LDAP and then click OK.

The new authentication namespace resource appears in the Explorer window, under the Authentication component.
  • In the Properties window, for the NamespaceID property, specify a unique identifier for the namespace.

Tip: Do not use colons ( in the Namespace ID property.
  • Specify the values for all other required properties to ensure that Cognos 8 can locate and use your existing authentication namespace.

The following settings are examples:
  • For User lookup, type (uid=${userID})
  • If you use single signon, for Use external identity, set the value to True.
  • If you use single signon, for External identity mapping, specify any attribute, such as the NT user domain ID or the user ID:

(ntuserdomainid=$environment("REMOTE_USER")})
(uid=${environment("REMOTE_USER")})
  • For Unique identifier, type nsuniqueid
  • If you want the LDAP authentication provider to bind to the directory server using a specific Bind user DN and password when performing searches, then specify these values.

If no values are specified, the LDAP authentication namespace binds as anonymous.
  • If you do not use external identity mapping, use bind credentials for searching the LDAP directory server by doing the following:

    • Ensure that Use external identity is set to False.
    • Set Use bind credentials for search to True.
    • Specify the user ID and password for Bind user DN and password.

  • To configure the LDAP advanced mapping properties for use with Sun Java System Directory Server objects, use the values specified in the following table.

LDAP attributes that are mapped to the Name property in Folder mappings, Group mappings, and Account mappings must be accessible to all authenticated users. In addition, the Name property must not be blank.
Mappings
LDAP property
LDAP value
Folder
Object class
organizationalUnit,organization

Description
description

Name
ou,o
Group
Object class
groupofuniquenames

Description
description

Member
uniquemember

Name
cn
Account
Object class
inetorgperson

Business phone
telephonenumber

Content locale
preferredlanguage

Description
description

Email
mail

Fax/Phone
facsimiletelephonenumber

Given name
givenname

Home phone
homephone

Mobile phone
mobile

Name
cn

Pager phone
pager

Password
userPassword

Postal address
postaladdress

Product locale
preferredlanguage

Surname
sn

Username
uid
These mapping properties represent changes based on a default Sun Java System Directory Server installation. If you have modified the schema, you may have to make additional mapping changes.

  • From the File menu, click Save.

   (二)在SUNONE上配置用户组与用户
        1.打开
        2.选择,在下建立用户组与用户
        3.NEW一个,选择OTHER,然后根据前面COGNOS服务器上的Object class设置类型进行选择;
        4.给用户组添加用户作为MEMBERS
        5.设置COGNOS服务器的非默认登陆
     (三)设置权限
        1.在COGNOS CONNECTION上载入权限;
        2.设置文件夹以及报表的访问权限(报表级>文件夹>公用文件夹)

10、能否简单讲解cognos自己的几个重要的函数及使用。如计算环比等都需要使用到的。
答复:一般用到比较多的都是一些数据库函数,COGNOS自带的函数一般在特定情况下使用

11、在计算环比的时候 或者是计算平均指标时 有一个除法动作 如何保证除数不会为0或者如果为0 如何解决这个判断



问题总结:
添加如下字符可以加入数据验证
&run.outputFormat=&run.prompt=false&CAMNamespace=OpenDS&CAMUsername=admin&CAMPassword=admin
1、如果出现了用localhost可以访问 而ip不能访问需要将configuration中的所有hocalhost修改为ip地址在重启
2、如果出现了CM-REQ-4158类的错误 或者报表用路径访问发现不能连接 权限也没有问题 可以修改ie的设置 将此ip加入到信任站点
3、自动增量更新命定
./cogtr -kVIET_OLAP=bi71/bi71 -c -s -m /bi1/MDL/Vietnam/Demo/the customized file name.mdl
在windows下加入了-n 但是还是不能完成增量更新的任务。
如何做到自动更新
Linux下和window下有和区别 比如-n
解决办法: windows下增量更新的命定为cogtr -kVIET_OLAP=bi71/bi71 -c -s /bi1/MDL/Vietnam/Demo/the customized file name.mdl 不需要-m参数
\cognos\c8\bin>cogtr -c -n -s -m"c:\Talent_TR.mdl"   
####-m后直接跟路径,不加空格######
命令注释:
(-c Generates categories and creates cubes.
-n Runs cogtr in batch mode在批处理模式下运行
-s Save the model保存模型
-m Opens the specified .mdl file or accepts Model Definition Language (MDL) statements)


4、在更新cognos 的cube文件是如何设定更新维度信息 和不更新维度信息 默认好像是一直不更新。如果增量更新的时候更新了维度 在前台是否会体现出来? 新增呢?
增量更新以后是否需要重新发布

5、Cognos生成的cube文件在发布以后发现部分数据数据库里面的数据有出入,但是统一列上的部分数据确实正确的,删除了所有的mdc文件重新生成错误还是存在,一般这个问题是什么原因引起
部分数据展现时报错





需要sunone的安装介质


新问题:
Cube直接钻取到数据库的分析型报表---?
Cube上面如何支持西班牙文?

更新cube 时需要停掉cognos服务 更新完成以后再启动cognos服务:启动服务的命定和停服务的命定,还有增量更新的命定
OpenoLap做目录服务器

自动生成了部分维度的等级 如何去掉?


开发调度程序并行处理cube的生成。。如果遇到性能瓶颈问题的话。
性能问题:
Cognos configuration cognos8 service新建一个配置源—选择大配置的内存 然后将内存调小 这样就会让cognos加快内存的回收

问题:客户端工具配置了数据源后即getway.Ini里面配置了后不能连接cognos服务器  transfer也不能导入iqd文件作为配置元 提示不能加密加密信息
找到客户端工具的安装目录,进入安装目录下的configuration文件夹
将configuration文件夹下的encryptkeypair、signkeypair两个加密文件夹删去或者更名

字段取值格式配置:
不需保留小数位的数据 全部取0



需要保留两位小数位的数据:


需要保留两位小数位同时展示为百分比的数据:


计算列的数据:


展示为数字 而不是百分比


如果需要展示为百分比 那么仅仅需要选择百分比就可以了 其他的也是同数字一样的展示



启动错误:
'LogService', 'StartService', 'Success'.
2. 09:48:03, 'ContentManagerService', 'StartService', 'Success'.
3. 09:48:03, CM-SYS-5160 Content Manager is running in standby mode.
4. 09:48:25, 'com.cognos.pogo.contentmanager.coordinator.CMBootstrap', 'pogo', 'Failure'.
DPR-DPR-1035 调度程序检测到错误。
5. 09:48:25, 'com.cognos.pogo.contentmanager.coordinator.CMBootstrap', 'pogo', 'Failure'.
DPR-DPR-1035 调度程序检测到错误。
删除这些:






你也可以打开Cognos的trace来得到更多的信息去确定错误。

步骤如下:

1. rename the CQEconfig.xml.samples file to CQEconfig.xml。(located in the Cognos 8 configuration directory)
2. restart Cognos 8.
3. find more detailed error messages in the cogserver.log file (located in the Cognos 8 logs directory)


openDs服务器配置




windows下的cognos自动运行脚本
echo off
cls
cd D:/对应的cognosbin目录
cogtr -c -n2 -mD:/对应的mdl -ldabaseName=username/pass

-----
自动生成cube后,通过批处理程序自动把cube更新到publishCubes的目录下:
首先停止cognos8服务 然后复制最新的cube文件,之后启动cognos8服务

脚本为:
echo off
cls
net stop "cognos 8"
net stop "Cognos Content Database"
cd D:/cubes的发布目录
del mdc名字.mdc
copy  /y D:发布的cube的mdc.mdc D:/发布目录
net start "Cognos 8"
net start "Cognos Content Database"
exit







Cognos8.4在Linux不支持IQD,支持包。
1,在Windows服务器上打开MDL模型,分别点击每个IQD数据源属性窗口,将Data Source Location从“Local”改成“On the server”,更改文件路径为Linux服务器路径
2,分别进入每个PowerCube的属性,在Processing标签页中将“Processed”属性改成“On the server”,将Output标签页中的Cube存放路径改成Linux服务器路径。
3,以Ascii方式将此mdl文件ftp到Linux服务器,假设模型存放路径为/opt/cognos/test.mdl。
4,在linux服务器上配置数据源连接,数据源包。
5,假设Linux服务器上Transformer安装路径为/opt/cognos/c8,使用下面的命令将mdl模型编译成pyj模型。
./cogtr -m/app/Cognos_Project/4_pyj/zongcaishi/1.mdl -s/app/Cognos_Project/4_pyj/zongcaishi/1.pyj
6,此后,使用下面的命令更新模型
./cogtr -f/app/Cognos_Project/4_pyj/zongcaishi/abc.xml -c -p/app/Cognos_Project/4_pyj/zongcaishi/1.pyj


环境变量配置不对,导致web界面不能建立数据源的问题的解决:(还是环境变量的问题)
export NLS_LANG=american_america.ZHS16GBK


export COGNOS_HOME=/opt/cognos/c8
export JAVA_HOME=/home/cognos/cognos/jdk1.6.0_20

export CLASSPATH=.JAVA_HOME/lib
export Oracle_HOME=/opt/oracle/product/10.2/db_1

PATH=$COGNOS_HOME/bin:/usr/sbin:/usr/local/bin:/usr/binORACLE_HOME/binPATHHOME/bin:/sbin
ORACLE_BASE=/opt/oracle
ORACLE_SID=DWH
export ORACLE_BASE ORACLE_HOME ORACLE_SID
export PATH
export LIBPATH=$ORACLE_HOME/lib32


###c#ognos
export LD_LIBRARY_PATH=$COGNOS_HOME/binORACLE_HOME/lib32LD_LIBRARY_PATH
export ModelWorkDirectory=/home/cognos/cognos/cube/mdl
export ModelSaveDirectory=/home/cognos/cognos/cube/mdl
export DataSourceDirectory=/home/cognos/cognos/cube/iqd
export CubeSaveDirectory=/home/cognos/cognos/cube/mdc
export LogFileDirectory=/home/cognos/cognos/cube/temp
export DataWorkDirectory=/home/cognos/cognos/cube/temp














楼主热帖
 楼主| 发表于 2014-9-30 09:40:25 | 显示全部楼层
顶一个 绝对经典
发表于 2014-9-30 10:03:49 | 显示全部楼层
很好的,正需要,谢谢

点评

多帮忙分享下这个帖子啊  详情 回复 发表于 2014-9-30 10:14
 楼主| 发表于 2014-9-30 10:14:21 | 显示全部楼层
swl1210 发表于 2014-9-30 10:03
很好的,正需要,谢谢

多帮忙分享下这个帖子啊
发表于 2016-8-10 14:35:18 | 显示全部楼层
谢谢分享。。。。。。。。。。很实用
发表于 2016-8-10 14:35:29 | 显示全部楼层
谢谢分享。。。。。。。。。。很实用。。。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

关于我们|小黑屋|Archiver|168大数据 ( 京ICP备14035423号|申请友情链接

GMT+8, 2024-3-29 04:54

Powered by BI168大数据社区

© 2012-2014 168大数据

快速回复 返回顶部 返回列表