COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: mycognos on 30 Oct 2008 06:43:28 AM

Title: Environmental Variable setting in Linux server
Post by: mycognos on 30 Oct 2008 06:43:28 AM
My cognos server is in linux machine. Is there any way to set the environmental  variables like LD_LIBRARY_PATH, ORACLE_SID etc in cognos configuration?
I have set these from command prompt and each time when I restart the cognos service the variable needto be set again. I need to find a permanent solution for teh same so that i dont want to set the variable again and again.
Title: Re: Environmental Variable setting in Linux server
Post by: kolonell on 30 Oct 2008 01:57:48 PM
Hi,

That depends what shell you're using but I guess the most common is Bash

csh, tcsh       Examine your .cshrc file in the home folder of the user account starting Cognos 8
sh, ksh        Examine your .profile file in the home folder of the user account starting Cognos 8
bash           Examine you .bashrc file in the home folder of the user account starting Cognos 8

In that file you can set your variables like this: 'export LD_LIBRARY_PATH=...' (omit the quotes offcourse) 

Hope this helps