cognos安裝教程

IIS配置

1.      安裝JDK,配置相應的環境變量;

2.      安裝oracle數據庫,創建一個新的數據庫,字符集爲UTF8類型(包括國家集);

3.      安裝IIS服務;

4.      安裝cognos8服務端軟件;

5.      將D:\Program Files\cognos\c8\bin\jre\1.5.0\lib\ext目錄下的bcprov-jdk14-134.jar複製到D:\ProgramFiles\Java\jdk1.5.0\jre\lib\ext目錄下;

6.      配置IIS服務虛擬目錄;

7.      配置JAVA_HOME環境變量(若有第5步,則該步驟省略);

8.      將D:\oracle\product\10.1.0\Db_1\jdbc\lib\ojdbc14.jar複製到
D:\Program Files\cognos\c8\webapps\p2pd\WEB-INF\lib目錄下

9.  運行cognos8,修改Security-Authentication-Cognos爲匿名訪問,值爲true,關閉防火牆CognosApplication Firewall;刪除缺省資料庫,選擇“Data Access-Content Manager選擇“Content Store”擊右鍵選擇“delete”刪除缺省的資料庫。Content Manager 必須配置唯一資料庫。新建合適資料庫,以oracle爲例選擇“Data Access-Content Manager選擇“Content Store”擊右鍵選擇“New resource”-“Database”;

10.  測試連接;

11.  安裝客戶端。

 

Tomcat配置

1.      安裝JDK,配置相應的環境變量;

2.      安裝oracle數據庫,創建一個新的數據庫,字符集爲UTF8類型(包括國家集);

3.      安裝cognos8服務端軟件;

4.      將D:\Program Files\cognos\c8\bin\jre\1.5.0\lib\ext目錄下的bcprov-jdk14-134.jar複製到D:\ProgramFiles\Java\jdk1.5.0\jre\lib\ext目錄下;

5.      將D:\oracle\product\10.1.0\db_1\jdbc\lib\ojdbc14.jar複製到
D:\Program Files\cognos\c8\webapps\p2pd\WEB-INF\lib目錄下

6.      將D:\Program Files\cognos\c8\webcontent目錄下所有文件拷到D:\Program Files\cognos\c8\webapps\p2pd目錄下;

7.      修改表權限,若不成功則將數據庫表刪除後再重新修改表權限,修改如下:

(sqlplus

 輸入用戶名和密碼

System/cognos8

conn sys/sys sysdba
grant connect to scott;

grant dba toscott;

grant resourceto scott;

grant unlimitedtablespace to scott;

grantdelete_catalog_role to scott;

grant ejbclientto scott;

grantexecute_catalog_role to scott;

grantexp_full_database to scott;

grantgather_system_statistics to scott;

grantimp_full_database to scott;

grant resourceto scott;

grantselect_catalog_role to scott;

-- Grant/Revokesystem privileges

grant create anymaterialized view to scott;

grant create anytable to scott;

grant create anyview to scott;

grant createtable to scott;

grant drop anymaterialized view to scott;

grant drop anytable to scott;

grant unlimitedtablespace to scott;

若重新創建用戶,則:

create userscott

  identified by scott

  default tablespace USERS

  temporary tablespace TEMP

  profile DEFAULT;

 

grant connect toscott;

grant dba toscott;

grant resourceto scott;

grant unlimitedtablespace to scott;

grantdelete_catalog_role to scott;

grant ejbclientto scott;

grantexecute_catalog_role to scott;

grantexp_full_database to scott;

grantgather_system_statistics to scott;

grantimp_full_database to scott;

grant resourceto scott;

grant select_catalog_roleto scott;

-- Grant/Revokesystem privileges

grant create anymaterialized view to scott;

grant create anytable to scott;

grant create anyview to scott;

grant createtable to scott;

grant drop anymaterialized view to scott;

grant drop anytable to scott;

grant unlimitedtablespace to scott;

8. 運行cognos8,修改Security-Authentication-Cognos爲匿名訪問,值爲true,關閉防火牆CognosApplication Firewall;刪除缺省資料庫,選擇“Data Access-Content Manager選擇“Content Store”擊右鍵選擇“delete”刪除缺省的資料庫。Content Manager 必須配置唯一資料庫。新建合適資料庫,以oracle爲例選擇“Data Access-Content Manager選擇“Content Store”擊右鍵選擇“New resource”-“Database”;

9.   安裝客戶端

10.CognosConfiguration 客戶端中對Environment項進行配置:
Gateway URIhttp://localhost:80/cognos8/cgi-bin/cognos.cgi
替換爲:http://localhost:9300/p2pd/servlet/dispatch

tomcat環境下發布時將D:\Program Files\cognos\c8\webcontent目錄下所有文件拷到D:\Program Files\cognos\c8\webapps\p2pd目錄下

 

tomcat安裝注意:

客戶端修改Gateway URI地址爲服務端地址,如:http://cognos.management.ccb:9300/p2pd/servlet/dispatch

 

修改客戶端URI時需刪除客戶端C:\ProgramFiles\cognos\c8\configuration目錄下三個文件:encryptkeypairsignkeypaircsk

CFG-ERR-0106 CognosConfiguration did not receive a response from the Cognos 8 service in the timeallotted.

Check that Cognos 8service is available and properly configured.

服務端:

1、        oracle下數據庫實例配成utf-8

oracle字符集要是:SIMPLIFIED CHINESE_CHINA.AL32UTF8

     (可以通過:selectuserenv('language') from dual;查詢)

2、安裝cognos服務

3、設置jdk

客戶端安裝:

 

第一步cognos configuration裏的Gateway ,保存時要刪除encryptkeypairsignkeypaircsk三個文件

第二步打開framwork manager 創建工程、設置數據源、創建物理及視圖模型(按規則)

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章