0.确定COGNOS_HOME目录 $HOME/c8_64
1.查看java -version 版本,并确定JAVA_HOME
2.查看ORACLE_BASE,ORACLE_HOME,TNS_ADMIN
3.设置LD_LIBRARY_PATH,重点$ORACLE_HOME/lib:$COGNOS_HOME/bin64
4.设置PATH,重点$ORACLE_HOME/bin:$COGNOS_HOME/bin
5.安装Cognos,使用交互安装或者静默安装,./issetup -s
6.拷贝加密文件bcprov-jdk14-134.jar 到$JAVA_HOME/jre/lib/ext
7.拷贝Oracle jdbc驱动文件 ojdbc14.jar 到$COGNOS_HOME/webapps/p2pd/WEB-INF/lib
8.拷贝$ORACLE_HOME/lib32/libclntsh.so.10.1到$COGNOS_HOME/bin
9.ldd libcogudaor10.so |grep not --->查看连接Oracle 10g 报表数据库 链接库是否正常
10.启动 $COGNOS_HOME/bin64/cogconfig.sh --->交互式,这里使用xManager 字段DISPLAY
11.删除默认Content Store内容库,添加连接Oracle 内容库.并测试连接.
11.编写脚本自动化完成文件拷贝和权限设定.
cp bcprov-jdk14-134.jar $JAVA_HOME/jre/lib/ext
cp $COGNOS_HOME/bin/jre/1.5.0/lib/ext/bcprov-jdk14-134.jar $JAVA_HOME/jre/lib/ext
cp $ORACLE_HOME/jdbc/lib/ojdbc14.jar $COGNOS_HOME/webapps/p2pd/WEB-INF/lib
ln -s $ORACLE_HOME/lib32/libclntsh.so.10.1 $COGNOS_HOME/bin/libclntsh.so.10.1
ln -s $ORACLE_HOME/lib/libclntsh.so /home/cognos/c8_64/bin/libclntsh.so.11.1
cd ~/c8_64/bin
ln -s $ORACLE_HOME/lib32/libclntsh.so.11.1 libclntsh.so.11.1
ln -s $ORACLE_HOME/lib32/libnnz11.so libnnz11.so
cd /home/cognos/c8_64/bin/
ldd libcogudaor11.so |grep not
vi .bash_profile --->修改cognos用户环境变量.
export JAVA_HOME=/usr/java/jdk1.6.0_14
#export JAVA_OPTS=-Xms8192M
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export CLASSPATH
export ORACLE_BASE=/home/oracle/oracle
#export ORACLE_BASE=/oracle
#export ORACLE_HOME=$ORACLE_BASE/product/10g
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export TNS_ADMIN=$ORACLE_HOME/network/admin
export COGNOS_HOME=/home/cognos/c8_64
#export LANG=zh_CN.UTF8
export NLS_LANG=AMERICAN_CHINA.ZHS16GBK
export LANG=en_US.UTF-8
#export NLS_LANG='SIMPLIFIED CHINESE_CHINA.UTF8'
export NLS_DATE_FORMAT="YYYY-MM-DD"
export NLS_TIMESTAMP_FORMAT="YYYY-MM-DD HH24:MI:SS"
export ORA_NLS11=$ORACLE_HOME/nls/data
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$COGNOS_HOME/bin64:$JAVA_HOME/bin:$COGNOS_HOME/bin64/cognos_auth.jar
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:$JAVA_HOME/bin:$COGNOS_HOME/bin
export LD_LIBRARY_PATH PATH
alias cogcfg=$COGNOS_HOME/cogconfig.sh
12.拷贝webcontent静态文件,到webapp目录下.
cd /home/cognos/c8_64/webcontent
cp -Ru * ~/c8_64/webapps/p2pd/