It's all about the answers!

Ask a question

Environment Variable on linux


Leesen Padayachee (9962120) | asked Jun 18 '15, 9:05 a.m.
 Hi

I am currently busy with a Jazz installation on Linux. I am stuck on this step:

e. Create an environment variable named SQLSERVER_JDBC_DRIVER_FILE and point to the sqljdbc4.jar JDBC driver. The location of the driver varies depending on your
installation.
i. Open a shell window.
ii. Enter the following environment variable declaration:
SQLSERVER_JDBC_DRIVER_FILE =.:Path_to_JDBC_dirver/sqljdbc4.jar

Is there any documentation on how to do this properly? 

Thanks

Leesen

One answer



permanent link
Christian Hoerst (48147) | answered Jun 18 '15, 9:57 a.m.
The location of your JDBC driver depends on which Database you're using in your backend.
So, first of all you should figure out which database you use, and obtain a JDBC driver for it.

As an example, let's say you obtained the appropriate JDBC driver for your database and it resides at
/opt/db/driver/sqljdbc4.jar

Once this is settled, setting an environment variable in Linux can be done multiple ways.
To set it permanently for the user that will run the RTC server later (For example 'rtcuser')

Edit the file:
/home/rtcuser/.bashrc
Append the line:
export SQLSERVER_JDBC_DRIVER_FILE=/opt/db/driver/sqljdbc4.jar

Make your change active for the current shell:
source /home/rtcuser/.bashrc

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.