Web 服务器(Web Server)层包括一到多个 Web 服务器和一到多个 Cognos8
网关(Gateways)。Cognos8 网关是 Web 服务器的扩展,它把从 Web
服务器接收到的信息传递给应用(Application)层的服务器。Web 服务器可以用 IBM Http Server 或者
Apache,在安装 Cognos8 BI Server 的时候需要单独安装 Web 服务器,本文采用 IBM Http Server
作为 Web 服务器。
应用(Application)层包括一个应用服务器和一到多个 Cognos8 服务器,它是
Cognos 的核心层。Cognos8
服务器执行从网关(Gateways)发过来的请求(Requests),比如:报表(Reports),分析(Analyses)和查询(Queries)。应用服务器可以用
Cognos 自带的 tomcat,也可以用 WAS,本文采用 WAS 作为应用服务器。
数据(Data)层包括 Content Store,数据源(Data Source)和 Metric
Store。Content Store 是一个关系型数据库,用来存储 Cognos 8
所需的元数据,比如:报表的规格,已发布的模型和包,数据源的连接信息等。Content Store 可以用 Cognos
自带的轻量级数据库 Derby,也可以用别的关系型数据库。本文将采用 DB2 作为 Content Store。数据源(Data
Source)和 Metric Store 在安装的时候不用考虑。
Cognos8 BI 用户接口层(User Interface)在服务器端包括 Query Studio,Analysis
Studio,Report Studio,Event Studio 等组件。
Cognos BI Server 可以安装在以下操作系统:
Windows
UNIX(Sun Solaris, HP-UX, IBM AIX)
Linux
机器内存最小为 2G,可用硬盘空间最小为 3.5G,其中 2.5G 为软件安装所需,1G 为 Cognos BI Server
各组件作为临时文件夹所用。
在安装 Cognos BI Server 之前,必须先安装一个 Web 服务器,并且 Web
服务器需处于启动状态。(请参照“参考资源”对应资源)
在配置 Cognos BI Server 之前,必须先安装一个应用服务器。(请参照“参考资源”对应资源)
在配置 Cognos BI Server 之前,必须创建一个可以作为 Content Store
的关系型数据库。(请参照“参考资源”对应资源)
如代码 1 所示创建作为 Content Store 的数据库,并查看这个数据库的代码页。作为 Content Store
的数据库的代码页必须为 1208。
清单 1. 创建数据库
db2inst1@cognos-heyuan:~> db2 create db content using codeset UTF-8 territory US
DB20000I The CREATE DATABASE command completed successfully.
db2inst1@cognos-heyuan:~> db2 get db cfg for content | grep "code page"
Database code page
作为 Content Store 的数据库需要有页面大小分别为 4k,8k,16k 和 32k 的缓冲池(buffer
pool),创建数据库的时候会默认创建页面大小为 4k 缓冲池,还需创建页面大小为 8k,16k 和 32k 的缓冲池,如代码 2
所示。
清单 2. 创建 buffer pool
db2inst1@cognos-heyuan:~> db2 connect to content
Database Connection Information
Database server = DB2/LINUX 9.5.0
SQL authori