Saturday 15 October 2011

Cognos 10 Installation on Windows

Steps

Make sure that the user who is installin cognos has admin right on system .This will ensure that framework manager,LDAP are able to communicate with cognos BI reporting properly . If you are installing on your laptop make sure that the user-PC and authenticated users has full permission to folders where you are installing cognos .To give full access right click on folder and go to security tab and click on advanced and check full access option there.

Step 1

Install Cognos components. This will take a lot and I recommend to restart the computer between every three components or so, in order to clear the cache, or whatever it is that it makes it run slower.

Step 2

Download OracleXEUniv.exe from Oraclesite and install it. Create a new user “cognos” with any password (I chose "cognos" as well) and grant all privileges to it. (NOTE - Character Set of the Database should be UNICODE)

Step 3

Locate ojdbc14.jar in oraclexe\app\oracle\product\10.2.0\server\jdbc\lib and copy it to cognos\c8\webapps\p2pd\WEB-INF\lib
If classes12.jar exists in this folder, delete it or rename it.

Step 4

Download Apache 2.2 webserver free from Apache Webserver Projectpage and install it.
Locate the file 'httpd.conf' in the \Conf and add the following text at the bottom:
# cognos
Include conf/extra/cognos8.conf
Create the file conf/extras/cognos8.conf with the following contents:
## Cognos 8
#ScriptAlias /cognos8/cgi-bin "C:/Program Files/Cognos/c8/cgi-bin"
AllowOverride None
Options None
Order Allow,Deny
Allow from All
Alias /cognos8 "C:/Program Files/Cognos/c8/webcontent"
Options None
AllowOverride None
Order Allow,Deny
Allow from All

Options None
AllowOverride None
Order Allow,Deny
Allow from All

Replace c: with d: or whatever drive letter you installed the Cognos software to.
Restart the Apache service.

Step 5

Start Cognos Configuration.
Delete whatever it is under Content Manager and create a new item called “Content Store”, of type Oracle.
Edit the user and password by clicking the pen that appears when selecting the field. User “cognos”, password “cognos”.
Service name is “XE”.
Right click on Content Store and Test.
If all’s right click the green play button to start the service.
You can close Cognos Configuration now, as the service will continue to run in the background.

Step 6

Test that Cognos Connection is working by calling the link http://127.0.0.1/cognos8 or http://localhost/cognos8.
I strongly advise to right click on the Apache icon in the tray bar and select “Open Services”. From this window, set all the Cognos, Oracle and Apache services to start manually instead of automatically. Otherwise all these services will attempt to start automatically on Windows startup and this takes a lot of time.
To start the services manually you have to (in this order):
Click “Start Database” from Oracle start menu
Start Cognos Configuration and click the play button
Start the Apache service from the tray icon
If you want to start the services manually rather than allowing then to start automatically at system restart then create a Windows batch command file to start Cognos as follows:
start_cognos.bat


net start "Oracle"net start "Cognos 8"
net start "Apache2"
If you don't want to keep all these services running when you have finished your work then create a Windows batch command file to stop the services when you have finished:
stop_cognos.bat


net stop "Apach2"net stop "Cognos 8"
net stop "Oracle"
You may want to clear up some of the Cognos server logs as part of your startup/shutdown processing, just add the line to your startup or shutdown scripts.
erase /f /q "C:\Program Files\Cognos\c8\logs\*.*" Don't forget that Apache also has its own log files that can grow quite large and you may want to clear these out quite frequently.
NB - if you are using Cgonso 8.4 then you should change the name to "IBM Cognos 8"

Step 7

You should now import the samples.
Create five users in OracleXE called gosales, gosalesdw, gosaleshr, gosalesmr and gosalesrt. The password should be the same as the user id. Make sure to grant them all the privileges.
Go to cognos\c8\webcontent\samples\datasources\oracle and extract the .gz files.
Under this folder run the following commands:
(Atcommand prompt not at sqlplus command window)
imp gosales/gosales file = GOSALES.dmp full=y log=log.txt
imp gosaleshr/gosaleshr file = GOSALESHR.dmp full=y log=log.txt
imp gosalesdw/gosalesdw file = GOSALESDW.dmp full=y log=log.txt
imp gosalesmr/gosalesmr file = GOSALESMR.dmp full=y log=log.txt
imp gosalesrt/gosalesrt file = GOSALESRT.dmp full=y log=log.txt
imp CSTATD/CSTATD file =CSTATD.dmp full=y log=log.txt -- this is important for statistics reporting examples

If you are getting ora-1031 .Not enough privileges for Alter.You can put ignore=y after log statemt this will import data but constraint wont be created that is ok as sample will work.

In cognos 10 we do not have separate models for gosaleshr,gosalesmr,gosalesrt .All of them come under gosales . you need to give read permission to gosales users in this 3 schema .

If you check the model you will see there are 3 datasources there ,gosales, gosales1,gosales2 all of them are pointing to different schema but using same datasource .


grant all privileges to gosales;
Step 8

In Cognos Connection select Cognos Administration and then Configuration.
Click the “New Data Source” button.
Type “gosales” for name and click Next.
Select “Oracle” for type and click Next.
Type “xe” for connection string (small caps needed). Select User ID and Password checkboxes. Enter “gosales” for user ID and the same for password.
Test the connection. In case of failure restart the Oracle database.
If all goes well click Finish.
Repeat the steps for gosalesdw, and the rest.

Step 9

Open Framework Manager.
Open project C:\Program Files\cognos\c8\webcontent\samples\Models\ great_outdoors_sales\ great_outdoors_sales.cpf
If you get an error during opening try replacing localhost:80 with 127.0.0.1:80in Cognos Configuration gateway URI.
Expand Data Sources and for each data source check that the “Content Manager Datasource” and “Schema” have the same value (gosales, gosalesdw,…).
Also modify the Interface (under Type) to “OR” instead of “OL”.
Test each Data Source. In case of failure restart the Oracle database. Save your changes to the project file.
Expand Packages and publish each package (right click -> publish packages..).
Ignore the errors.
Save and exit.
Do the same for project C:\Program Files\cognos\c8\webcontent\samples\Models\ great_outdoors_warehouse\great_outdoors_warehouse.cpf

Step 10

Copy Cognos_Samples.zip from c8\webcontent\samples\content to c8\deployment.
Open Cognos Connection and select Cognos Administration -> Configuration -> Content Administration.
Click New Import icon.
Cognos_Samples should appear in the list. Select Next, then Next again.
On the ‘Select the Public Folders Content’ page, select the checkbox to the left of the Cognos_Samples package.
Select Next, Next again, then Import Now.

Step 11

You should be able to see the sample database folders under local folders in Cognos Connection.
Reply Forward



Please use below link in case you face issue .I have listed all my issue with their solution

Issue faced by Me and their solutions


4 comments:

  1. Hey Kapil, suman in here. I want to know that,
    is there any difference in configuration of 8.4 and 10.1.1 version or both the same look and feel. Please let me know. I have to start it from monday in my company. Working as admin for the first time.

    ReplyDelete
  2. Hi Suman

    Installations is basically same. Not much difference apart from steps mentioned you can install statistics package .Its a separate licence and does not come with cognos default.

    ReplyDelete
  3. Somewhere you are writing c8. somewhere you are writing c10.
    can you clearly write step 4 again with # signs correctly assigned.

    Thanks.

    ReplyDelete