Copyright
Copyright © 2008 Cognos ULC (formerly Cognos Incorporated). Cognos ULC
is an IBM Company. While every attempt has been made to ensure that the
information in this document is accurate and complete, some typographical
errors or technical inaccuracies may exist. Cognos does not accept
responsibility for any kind of loss resulting from the use of information
contained in this document. This document shows the publication date. The
information contained in this document is subject to change without notice.
Any improvements or changes to the information contained in this document
will be documented in subsequent editions. This document contains
proprietary information of Cognos. All rights are reserved. No part of this
document may be copied, photocopied, reproduced, stored in a retrieval
system, transmitted in any form or by any means, or translated into another
language without the prior written consent of Cognos. Cognos and the
Cognos logo are trademarks of Cognos ULC (formerly Cognos Incorporated)
in the United States and/or other countries. IBM and the IBM logo are
trademarks of International Business Machines Corporation in the United
States, or other countries, or both. All other names are trademarks or
registered trademarks of their respective companies. Information about
Cognos products can be found at www.cognos.com
This document is maintained by the Best Practices, Product and Technology
team. You can send comments, suggestions, and additions to
cscogpp@ca.ibm.com.
Contents
1 INTRODUCTION ............................................................................................ 4
1.1 PURPOSE ............................................................................................................4
1.2 SCOPE ...............................................................................................................4
1.3 DEFINITIONS, ACRONYMS, AND ABBREVIATIONS .............................................................4
1.4 REFERENCES ........................................................................................................4
1.5 ASSUMPTIONS ......................................................................................................4
2 COGNOS 8 INSTALLATION WIZARD ............................................................. 5
2.1 COGNOS 8 INSTALLATION WIZARD .............................................................................5
2.1.1 Launch the Cognos 8 Installation Wizard ..............................................................5
2.1.2 Installation Location...........................................................................................5
2.1.3 Component Selection .........................................................................................7
2.1.4 Finish ...............................................................................................................8
3 COGNOS 8 UPDATES ..................................................................................... 8
4 GENERAL ENVIRONMENT SETUP .................................................................. 9
4.1 INSTALL DATABASE CLIENT(S) ..................................................................................9
4.2 INSTALL SECURITY PROVIDER FILES ............................................................................9
5 COGNOS CONFIGURATION ......................................................................... 12
5.1 SETUP THE ENVIRONMENT ..................................................................................... 12
5.2 AIX SPECIFIC ENVIRONMENT VARIABLES .................................................................... 12
5.3 LAUNCH COGNOS CONFIGURATION ........................................................................... 14
5.4 COGNOS CONFIGURATION SETTINGS ......................................................................... 16
5.4.1 Change URI Values .......................................................................................... 16
5.4.2 Delete the Tomcat Service Configuration ............................................................ 20
5.4.3 Remaining Cognos Configuration Changes .......................................................... 21
5.4.4 Save Cognos 8 Configuration Changes ............................................................... 21
5.5 BUILD APPLICATION FILES WIZARD .......................................................................... 22
5.5.1 Start the Build Application Files Wizard............................................................... 22
5.5.2 Select the Application Archives to be Built .......................................................... 22
5.5.3 Application File Type, Location and Context Root ................................................ 23
5.5.4 Build Application Files in Progress ...................................................................... 27
6 COGNOS 8 BUSINESS INTELLIGENCE MODELING...................................... 28
7 TROUBLESHOOTING / TIPS........................................................................ 29
1 Introduction
1.1 Purpose
The purpose of this document is to detail the steps necessary to complete the transfer and configuration
phases of a Cognos 8 install to allow for a single server or a distributed implementation in an
application server environment.
The steps in this document represent common tasks that must be completed irrespective of the
application server being used.
1.2 Scope
Cognos 8 installation and general configuration will be covered in this document.
1.4 References
Ref. ID Author/Paper Location
Cognos 8 Installation and
Configuration Guide
<Cognos 8>/webcontent/documentation
1.5 Assumptions
• Single server install: The application server has been installed and configured with a single
server instance into which Cognos 8 will be deployed. The servlet gateway will not be used.
• Distributed install: The application server has been installed and configured with multiple
server instances into which Cognos 8 will be deployed.
• The hostname and port for each application server / JVM instance is known to the installer.
• The installation location has sufficient storage space to handle the install, the associated
application archive files, and temporary working space.
• If a web server is being used in the environment, that it is already installed and working.
• All required database clients are installed and tested.
A single server install represents installing all the Cognos 8 components into a single location and
running ithin a single Java instance. This is ideal for demonstrations and low impact cases. The Cognos
8 Servlet Gteway cannot be used in a single server install as it must run in an isolated JVM instance. In
order to acess the Cognos 8 portal in a single server environment, a separate web server must be used,
or the Cognos 8 dispatcher can be accessed directly if the application is built with the static webcontent
option enabled.
A distributed install can comprise a variety of configurations. The examples in this document will
outline separating the Cognos 8 components in three distinct installs. The three components are
comprised of the Content Manager, Application Tier Components and the Gateway.
Many of these steps are similar for all Cognos 8 installs, even those that will run under Tomcat.
• Select the language that you wish to use to perform the install
• Read and accept or decline the license agreement. If you decline, the installation will not
continue.
the DOS 8.3 naming convention where necessary to reference the install
path. (ie c:\program files\cognos\c8 would become
c:\progra~1\cognos\c8)
In a distributed install where each component will run in a distinct JVM, each
component must be installed into a unique install location. There will be a direct one-
to-one correlation between the application server instance and the Cognos 8
installation. The Cognos 8 Installation Wizard must be run multiple times to
transfer the files to multiple locations.
The installation location does not have to exist prior to executing the Cognos 8
installation. If the path does not exist, you will be prompted to create it during the
install.
Other distributed install combinations are possible and may be implemented in your
environment.
• Shortcut Folder (Windows only) - For Windows, you may enter/change the
shortcut folder name to be used for Cognos 8 or accept the default value.
• Installation Summary - After all the selections have been made, you will be
presented with a summary page. Be sure to check the space requirements
carefully and allow for extra space for the application files and temporary
working space.
2.1.4 Finish
Once the installation is complete, you will be presented with a final page that will
indicate success or failure. You may select to view the logs and readme files at this
time.
3 Cognos 8 Updates
If you have any updates to Cognos 8 such as hotsite fixes or other patch files, now is
the time to apply them. They must be applied to each instance of Cognos 8 that
you have installed. It is critical that these be installed prior to building the web
application files.
Please refer to the documentation supplied with the update to obtain the correct
installation procedure.
It is recommended that you verify access to the database using an appropriate tool
(such as sqlplus) to ensure the client software is installed and configured correctly.
Keep in mind that this environment must be available to the user running the
application server and Cognos 8 and should therefore be setup in such a way that it
is set automatically and will be available if the server is restarted.
Important: Ensure that any java database client files are in place prior to
proceeding so that they will be properly included in the application archive
file that will be built later in this document. (example: classes12.jar for
Oracle Database) See the Cognos 8 documentation for more information
on setting up database clients.
For a distributed environment, this step only needs to be performed once per
application server/JRE installation.
Note that each application server product will/may have a different location of the
JRE and the screen shot are provided only as examples. Some application servers do
not ship with a JRE and it must be installed separately.
Example: Oracle Application Server (Windows) JRE location after the security files
have been copied.
5 Cognos Configuration
For most simple installations, it is recommended that the value be set as global
system environment variable (windows) or in a script (Unix). Many application
servers set this value in an environment script and this script can be run to setup
your environment. A reminder for Unix users, be sure to set the variables correctly
which may necessitate the “export” command as well. Different platforms and
different shell environments use slightly different syntax to accomplish this task.
On Unix, the JAVA_HOME variable can be set for the terminal session, in the user
profile or whatever means is appropriate for your environment.
LDR_CNTRL MAXDATA=0x40000000
MALLOCMULTIHEAP true
SPINLOOPTIME 50000
IBM_JAVA_MMAP_JAVA_HEAP true
This must be done for each shell or environment in which Cognos 8 will run. So, set
these in the profile or common environment setup script that runs in each instance.
• Once the Cognos 8 Content Manager is running, repeat the steps making the
appropriate changes and start the Cognos 8 Application Tier Components.
• Finally, repeat the steps making the appropriate changes and configure the
Cognos 8 Gateway component.
If the security provider files were not copied to the correct location, you may
encounter an error.
The batch file (Windows) or script file (Unix) will also indicate which JRE was found
based on the JAVA_HOME environment variable. This should be checked to ensure
the correct one is being used.
If Cognos Configuration was run previously and there are existing encryption keys,
then you may encounter a warning dialogue. This dialogue indicates that an
alternative JRE vendor or version was used previously and the keys are not
compatible with the current JRE vendor or version.
If the correct JRE is indeed referenced, then you may select the option to
automatically regenerate new encryption keys. This is typical when switching
between a Tomcat environment and an application server environment.
Ensure that all steps complete successfully during the regeneration process prior to
proceeding. If the automatic regeneration of the encryption keys fails for any reason,
it may be necessary to follow the manual key recreation steps outlined in the Cognos
8 Installation and Configuration Guide, Chapter 8.
The default values in Cognos Configuration represent the out-of-box Tomcat solution
and therefore there are a number of settings that must be changed to suit your
application server environment. Obviously there are many other options that you
may have to alter that will not be covered in this document.
protocol://host_name_or_IP:port/context_root/alias_path
protocol://host_name_or_IP:port/virtual_directory/gateway_application
or
protocol://host_name_or_IP:port/context_root/alias_path
Protocol
This element specifies whether standard (http) or secure (https) communication is
used when transmitting or receiving information.
Host Name or IP
The host name is the name of the server as it is identified on the network. You may
use an IP address if name resolution is not possible. You must change the localhost
element of a URI to a server name, fully qualified domain name, or IP address in a
distributed installation. In a mixed environment of UNIX and Windows servers,
ensure that host names can be resolved to IP addresses by all servers in the
environment. Also ensure that the application server is configured to listen on the
value entered.
Port
This element specifies the port on which the host system has a socket open to listen
for requests. The value entered must match the value in your Web server, Tomcat,
or application server configuration.
Context Root
The context root element is used by the Web server, Tomcat, or the application
server to route requests to the appropriate Java application. The context root can
only be changed if you are using an application server. In a distributed Cognos 8
environment, the context root for all application deployments must be the same,
with the exception that the Servlet Gateway application can have a unique value.
The context root must be a single entity, i.e. it may not contain slashes (“/”).
Alias Path
This portion of the URI must not be modified or Cognos 8 components will not
function correctly. The value is defined and used internally by Cognos 8.
Virtual Directory
This element must indicate the virtual directory alias exactly as it is defined in your
Web server configuration. For example, in the default Gateway URI of
http://localhost:80/cognos8/cgi-bin/cognos.cgi, the virtual directory is cognos8/cgi-
bin.
Gateway Application
The Gateway URI must include a reference to the gateway application. For example,
if you are accessing Cognos 8 components using a Common Gateway Interface
(CGI), then the default gateway application would be cognos.cgi.
In the Cognos Configuration Explorer window, under environment, set the appropriate values for all
URI entries used in your environment.
Example: Single Server - Cognos Configuration Default Values (Tomcat)
Example: Distributed Content Application Tier - Cognos Configuration Default Values (Tomcat)
As a safety measure, you will be prompted to confirm the removal of the Cognos 8
service. Should you wish to return to run under Tomcat, this service can be added
back into Cognos Configuration at a later time.
• Navigate to the Content Manager Content Store field and enter the appropriate values for your
environment. Please see the Cognos 8 customer documentation for creating other Content
Store types.
• At this time you should make any other changes within Cognos Configuration
that are necessary for proper operation in your environment. Depending on
your setup, no other changes may be required.
During the Save operation, encryption keys will be created using the JRE referenced
by the JAVA_HOME variable. Other actions such as backing up the configuration files
will also take place.
Reminder: For an Application Tier distributed install, the Content Manager must be
up and running in order for the Save operation to complete successfully.
Reminder: For a Gateway distributed install, the Content Manager and the
Application Tier must be up and running in order for the Save operation to complete
successfully.
Important: The Application file does not contain any of the configuration
information as entered into the Cognos Configuration UI and therefore the
application files does not have to be rebuild or redeployed should you wish to make
configuration changes. It does however contain a reference link to the actual
Cognos 8 installation directory and therefore you should not manually rename or
move the Cognos 8 install. Since the Cognos 8 install path is embedded in the
application file, the application file should not be used to deploy into multiple
application server installs or the one-to-one relationship will not be maintained. The
exception to this statement is deployment into a WebSphere cluster and the
configuration for that is covered in a separate document.
The Wizard can be initiated by selecting the Build Application Files option located in
the Actions menu.
The main application, “Cognos 8” represents either or both the Content Manager and
Application Tier Components.
• If you are going to use the application server as a Web Server and service
the Cognos 8 static content (images, javascripts, etc) from the application
server then select the option to include the static files into the application file.
If you are using a separate Web Server or the Servlet Gateway, then it is not
necessary to include this content and the resulting application file will be
much smaller and faster to deploy.
The Servlet Gateway can be selected, built and deployed to your application server
to replace the Web Server and gateway combination.
You may select to build the main Cognos 8 application, the Cognos 8 Servlet
Gateway application, or both applications.
You may select a file type. An application server may require a specific file type for
proper deployment and management in its own environment. The Cognos 8
customer documentation and the application server vendor documentation should be
consulted. In most cases, an Enterprise Application Archive (EAR) file may be
selected. Older application servers may not support EAR files and therefore a Web
Archive (WAR) file is an alternative. Some application servers such as BEA WebLogic
also permit an application to be placed directly into a folder that it will manage. In
this case, the third file type, expand files into a folder, should be selected.
The Location entry represents the path and filename of the application file that will
be created by the wizard.
Only if necessary, you may also change the context root value. Keep in mind that the
context root value for the Cognos 8 application must be consistent across your entire
install if you are performing a distributed install. In addition the value entered here
must match the value entered in the URI entries on the main Cognos Configuration
page as well as be identical to the context root value that you enter when deploying
the application file into the application server. Application servers that use the
Expand files into a folder option will use the folder name as a context root value.
WAR files will not store the context root value and it must be manually entered when
deploying the application into the application server.
Similar to the Cognos 8 application, the Cognos 8 Servlet Gateway will also allow you
to specify the file type, location and name of the application file as well as the
context root. Note that the context root in this case is not the same as the context
root of the Cognos 8 application above.
After making the appropriate selections, the Build Application File Wizard will indicate
its progress as it builds the application files.
Example: Building the Cognos 8 application and the servlet gateway application
A number of files must be copied, manipulated and packaged into the application file
by the wizard so this step may take a few moments to complete based on your
selections.
This concludes the basic portion of the transfer and setup of Cognos 8 for a single
server installation.
7 Troubleshooting / Tips
If you encounter any encryption key issues, you can verify which JRE was actually used by Cognos
Configuration by looking at <cognos8>/configuration/cogconfig.prefs in both Windows and Unix. The
JRE path, vendor and version will be listed in the text file. This file must not be manually edited unless
directed by Cognos support.
Example: cogconfig.prefs text file