`
vase
  • 浏览: 418831 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Congos在Linux服务器上安装步骤

阅读更多

Cognos在Linux上同Windows上一样很容易安装,但是对于访问mysql和Greenplum数据库方面或许比较麻烦。这里记录下之前的经验

一、报表服务器安装

  1. 首先安装JDK,并且在JRE下增加字体;否则在报表图表中的汉字会变成大方块的乱码。
    ①.复制所使用的中文字体文件(如simsun.ttc)到此目录中(如果没有fallback目录,请手动建立。)
    $JAVA_HOME/jre/lib/fonts/fallback
    ②.或者将Linux系统的字体目录作为JDK下面的一个字体目录连接。
    ln -s $FONTS_PATH/FONT_DIR $JAVA_HOME/jre/lib/fonts/fallback
    为何要建立fallback目录请参照下面的连接:http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html
  2. 将cognos报表服务器软件包上传至linux服务器,并进行解压
  3. 因Linux服务器默认没有安装xterm,不能直接通过xmanager或其他工具连接后用图形界面安装,这里先介绍如何通过无人值守方式安装:

     cognos安装目录下有个安装向导文件叫“response.ats”,打开编辑该文件,会发现里边就是步骤描述。第一步建议选中文,安装后图形界面、web等待页都会是中文,否则有的还

    是英文;第二、三步将n改为y,表示同意安装条款、协议;第四步编辑APPDIR安装目录,BACKUP是在覆盖安装过程中,对同名文件进行备份的目录(没试过是否好用);

    第五步勾选要安装的组件,这里我们全部选择,即将0都改为1

  4. [root@tjhy42-142 ibm]# cd /data/software/CognosX86-64/
    [root@tjhy42-142 CognosX86-64]# ls
    documentation  linuxi38664h  zipfiles
    [root@tjhy42-142 CognosX86-64]# cd linuxi38664h/
    [root@tjhy42-142 linuxi38664h]# vi response.ats
    ; Licensed Materials - Property of IBM
    ; BI and PM: is
    ; (C) Copyright IBM Corp. 2004, 2010
    ; US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule
    ; Contract with IBM Corp
    [Dialog1]
    Title=Welcome to the Installation Wizard
    DE=0
    EN=0
    FR=0
    JA=0
    ES=0
    NL=0
    SV=0
    FI=0
    IT=0
    PT_BR=0
    KO=0
    ZH_CN=1
    ZH_TW=0
    [Dialog2]
    Title=IBM License Agreement
    ;Failure to accept the license agreement and non-IBM terms, if any, will abort the installation.
    ;Please return the software to the point of acquisition and obtain a refund, if applicable.
    I Agree=y
    [Dialog3]
    Title=Non IBM License Agreement
    ;Failure to accept the license agreement and non-IBM terms, if any, will abort the installation.
    ;Please return the software to the point of acquisition and obtain a refund, if applicable.
    I Agree=y
    [Dialog4]
    Title=Installation Location
    APPDIR=/data/opt/ibm/cognos/c10_64
    BACKUP=0
    [Component List]
    C8BISRVR_APP=1
    C8BISRVR_APPLICATION_TIER=1
    C8BISRVR_GATEWAY=1
    C8BISRVR_CONTENT_MANAGER=1
    C8BISRVR_CONTENT_DATABASE=1
    ~                                     
     

    用上边的向导文件进行无人值守式安装。注意,参数-s表示silence,不需要人工交互;如果不输入参数,直接运行./issetup,在xmanager中支持图形界面的情况下会弹出安装界面向导,

    在SercureCRT下会报错。

  5. [root@localhost linuxi38664h]# ./issetup -s /tmp/response.ats    
    ./issetup: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory
    安装时缺少库文件libXm.so.3
    需要32位,cognos不会使用64位lib下的
    yum -y install openmotif.i686
    安装完后是libXm.so.4 把它软链成libXm.so.3
    cd /usr/lib
    [root@localhost lib]# ln -s libXm.so.4.0.3 libXm.so.3
     
    或者直接安装yum -y install openmotif22 ,这时就有 libXm.so.3了。
     
    [root@tjhy42-142 linuxi38664h]# ./issetup -s response.ats
    Licensed Materials - Property of IBM, BI and PM: is,
    (C) Copyright IBM Corp. 2004, 2011. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
    UNIX IBM InstallStream Version 10.1
    Preparing for unattended install.
    Reading archive information - /data/software/CognosX86-64/linuxi38664h/setup.csp. Please wait...
    Total 407 components to install.
    ###################################################################################################################################
    ###################################################################################################################################
    ###################################################################################################################################
    ##############
    Transfer is complete.
    The Installation Wizard is complete.
    The IBM Cognos Installation Wizard End Time: Fri 15 Mar 2013 11:36:03 AM CST
    All selected components were transferred successfully.
    [root@tjhy42-142 linuxi38664h]# cd /data/opt/ibm/cognos/c10_64/
    [root@tjhy42-142 c10_64]# ls
    bin    bind64   cgi-bin        contentstore  deployment     instlog  migdeploy   rendition.dat  schemas  temp       uninstall     war
    bin64  bundles  cmplst.txt     cps           derby10.1.2.1  license  msgsdk      reportstyles   sds      templates  v5dataserver  webapps
    bind   caf      configuration  data          dropins        maps     properties  res            search   tomcat     vers          webcontent
     
  6. 若不支持图形界面,只能从其他已安装好的并且支持图形启动界面的服务器上导出一份配置,替换configuration目录下的 cogstartup.xml(注:不能直接从其他服务器的configuration目录copy,因为copy文件里边的密码都是密文,是不能用的)
    [root@tjhy42-142 c10_64]# cd configuration/
    [root@tjhy42-142 configuration]# mv cogstartup.xml cogstartup.xml.bak
    [root@tjhy42-142 configuration]# cp /tmp/cogstartupexp.xml cogstartup.xml
     
  7. 将$COGNOS_HOME/webcontent目录下的所有文件copy到$COGNOS_HOME/webapps/p2pd/目录下(这个是cognos的工程,若不copy,需要编辑tomcat的虚拟目录到webcontent)
    [root@tjhy42-142 c10_64]# cd webapps/p2pd/
    [root@tjhy42-142 p2pd]# ls
    version.xml  WEB-INF
    [root@tjhy42-142 p2pd]# ls ../../webcontent/
    ags        ccl  cm_tester.htm     common  default.htm    dojotoolkit  explore  fragments  index.html  mdsrv                onebox     ps   relmd         samples  skins
    camcrypto  ccs  cmUpgradeLog.xsl  cps4    documentation  drill        flex     hal        isapi       migration            pat        qfw  reportstyles  schemas  tm1
    cchl       cgi  cognoslaunch.js   cr1     dojo15         dtds         fmmd     icd        iwidget     NagMessageXForm.xsl  prompting  qs   rv            servlet  version.xml
    [root@tjhy42-142 p2pd]# \cp -rf ../../webcontent/* .
     
  8. 启动cognos服务。这里也是加参数-s ,同安装。
    [root@tjhy42-142 c10_64]# cd bin64
    [root@tjhy42-142 bin64]# ./cogconfig.sh -s
     
  9. 安装unixODBC、mysqlodbc驱动

    这里注意,一定要安装unixODBC-devel,否则安装完成后,isql测试可以连接,但cognos无法连接。

    yum install unixODBC.i686 unixODBC-devel.i686

     去MySQL官网下载最新版的Linux通用版驱动:mysql-connector-odbc-5.1.12-linux-glibc2.5-x86-32bit.tar.gz,32位,解压;检查驱动so链接库的完整性:ldd libmyodbc.so,yum安装缺少的lib;类库存在文件名不吻合可以做软链,例如unixODBC版本;更新ODBC配置,测试输出。

  10. 安装greenplum-odbc驱动;目前发现直接用rpm包安装的,isql可以使用,但cognos无法连接。需要用源码编译32位驱动,64位不支持。先安装postgresql-dev、postgresql-lib 库,需要32位库,否则无法编译
    yum install postgresql-lib.i686 postgresql-devel.i686
    在64位系统下编译32位程序时,在命令前加linux32
    linux32 ./configure CCFLAGS=-m32 CPPFLAGS=-m32 CXXFLAGS=-m32 CFLAGS=-m32 --prefix=/tmp/pgdriver/lib --with-unixodbc=/usr
     不要加--disable-unicode,否则在配置数据源处勾选使用unicode时会报错。
    make && make install
     
  11. 在CentOS6.5 版或其他版本上可能会编译失败,查看config.log中发现找不到crt1.o ,是因为缺少glibc,通过yum search glibc查找可安装的库文件,把可装几个都装上(主要是32位的),然后再执行上边语句即可

  12. 配置odbc。编辑/etc/odbcinst.ini和/etc/odbc.ini两个文件
  13. 在cognos中配置数据源

二、Transformer安装

    1. 步骤同Cognos报表服务器。

    2. 安装完成后,把报表服务器配置目录下的文件copy到Transformer的配置目录下即可。

三、安装xterm

    yum install openssl-devel.i686 libX11 libX11-devel xorg-x11-xauth xterm

    安装xterm后,就可以用类似xmanager的支持图形连接的工具进行连接,用图形界面进行cognos配置

四、重置分派器密码

    安装完成后,在图形界面下,选择“环境”-> “分派器密码”,重新输入一个新的密码; 若忽略这步,后期运行时可能会遇到因密码问题导致的DPR-DPR-1035错误(1035错误也可能是其他原因导致,具体问题具体分析)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics