How To Set Up Multiple UNIX T24 Environments On A Single Server
How To Set Up Multiple UNIX T24 Environments On A Single Server
Overview
It is usually necessary to create multiple T24 environments as a part of any
implementation for the purposes of environmental and change management, for
example, the necessity to set up Development, Test, UAT, and Live environments on
a user site.
This document aims to cover the steps necessary to implement this type of multiple
environment model.
Example structure –
/sb/sys/
You also need a separate TCS for each instance of Model Bank eg –
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
/sb/sys/jbase509
Only a single Websphere or Tomcat is required but within that separate Browser
instances are needed eg –
/sb/sys/WebSphere/AppServer/profiles/AppSrv01/installedApps/bpfitst/t24test.ear
/sb/sys/WebSphere/AppServer/profiles/AppSrv01/installedApps/bpfitst/
BrowserWeb_MB2_war.ear
Within each *.ear directory there is a *.war directory. Within that (and below it) are
the parameterisation files –
helpParameters.xml
….WEB-INF/conf/channels.xml
T24
The change necessary in T24 is straightforward, navigate to the bnk.run directory
of the newly cloned instance (see diagram of Instance 2 in Caveats and
Assumptions section) and open .profile with vi. Replace all occurrences of any
absolute paths that go to MB (in this case) with MB2, file and save. NB –
Normally all paths within t24 are RELATIVE paths so there should be nothing that
needs to be changed. You will see absolute paths for vi, oracle and jbase. These
are OK because we only need one instance of each (nb there is one instance of
oracle but there needs to be a separate oracle database for each instance of
t24).
Make sure ORACLE_SID and TWO_TASK are set to the correct name (check this
with the oracle dba) eg –
export ORACLE_SID=TDET6
export TWO_TASK=tdet5.world
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
t24_oradb to t24_oradb
/sb/sys/MB3/bnk/bnk.run/jedi_config
. .profile
this will ensure that all environmental variables are populated. At the START
GLOBUS Y/N prompt enter N <cr> which will drop you to the jSHELL prompt.
config-XMLORACLE
Take option 1)
1.2) tdet6
1.3) t24_oradb
1.4) t24_oradb
Take option 2)
2.2) t24_user
2.3) t24_pass
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
Take option 3) – this should show the date and time if everything is working
7. When you have finished the configuration enter exit at the jSHELL prompt
and the command window will close.
TCS
It is possible to use one instance of TCS to control multiple instances of T24, but
for the sake of KISS (Keep It Simple, Stupid and my own experience levels) this
document will focus on the use of one instance of TCS for each instance of T24,
this will keep the entire software set self-contained save for Apache Tomcat /
Websphere, which is a system-wide application anyway. TCS will be installed on
the same level as the main installation folder.
1. Navigate to the home directory of the new environment and run the .profile.
(this will set the ENVIRONMENT VARIABLES – NB – DON’T use $HOME to go
to the home directory – it won’t have the right value).
2. Invoke env and make sure that the paths look OK. NB – it may be best to exit
from unix and start a new session, go straight to the home directory and then
run .profile to make sure that none of the variables have false values (eg -
$HOME is derived from $PWD initially).
3. Navigate to the xxx/TCS2/TC_Server/tcserver/conf/TCServer folder. Go to the
ksh and do…
mv environment.vars environment_save.vars
to make sure the environment vars for Browser match the ones for classic
(NB – you must do this from a unix shell, it won’t work from jsh because the
“>” means “greater than” in the jshell). In the same directory, there is also a
file tcserver.xml
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
We MUST change all ports that are in use to unique numbers, as you will get
physical hardware port clashes if you don’t.
Last, but by no means least, replace any occurrences of MB (in this case) with
MB2, save and file.
If any of the listeners come up [FAILED], you have entered an incorrect port
number somewhere, you will need to go back and check tcserver.xml as detailed
previously in this document. This will be due to port clashes, you should also
start the TCServer in the other environment and check for the same thing.
If everything works properly (both TCServers are started and running with no
failed listeners), stop the new TCSERVER again and use vi to change TCServer.sh
so that it runs in the background (you just need to comment out the line that
runs tcserver in foreground and uncomment the line that runs it in background).
BrowserWeb_MB2.war
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
<PORT>10201</PORT> change to
<PORT>10301</PORT>
<PORT>10202</PORT> change to
<PORT>10302</PORT>
The PORT numbers that you use MUST coincide with the PORT numbers given in the
tcserver.xml that we configured earlier, now file and exit.
OK, that’s pretty much all of the configuration done, so let’s see if it works!!
For TOMCAT -
http://10.5.1.200:8080/BrowserWeb_MB2/servlet/BrowserServlet <cr>
FOR WEBSPSHERE –
http://10.5.1.200:9080/BrowserWeb_MB2/servlet/BrowserServlet<cr>
Where – 10.5.1.200 is the real IP address of the server where we have installed
everything. NB – We used an underscore in the BrowserWeb_MB2.war name so
there is an underscore in the URL’s shown above (though you can’t see it).
All things being equal you should get a T24 Login Screen, login using
AUTHOR/123456 or any other login that you know works. If you get a Websphere (or
Tomcat) error then you have either not started Websphere or you have put a wrong
port number in somewhere. If you see the T24 Login Screen but get a ‘failed to
connect’ error message when you enter the login credentials, you haven’t started
TCS or TCS has failed.
Now fire up the other BrowserWeb instance and ensure that they work side by side
http://10.5.1.200:9080/BrowserWeb/servlet/BrowserServlet <cr>
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
If all this works, then congratulations you have successfully configured multiple self-
contained instances of T24
The rest of this document is aimed at tidying up the environment and putting in
place shortcuts and access methods for Temenos Consultants that come after you
and to make the user/administrator’s life a little easier.
You can use a putty from your desktop – ask the customers unix administrator to
give you ip address details ad well as a user and password that is suitable. Ideally
you will want to just drop to a unix shell and invoke the jshell or t24 yourself.
You now have putty access which is necessary for starting up COB and for other Tech
Cons to get proper access to T24.
This is TOTALLY necessary as Browser is fine but the only way that you will see real
error messages is in Classic, a point worth noting.
Eg –
…\tcs\bin\TCmonitor.sh
TC Monitor will, by default, monitor port 9500. In this case our first environment had
already been changed to 9506 (see above) we need to change the MB2 TC Monitor
to monitor port 9536 (see above) so, invoke the TCMonitor and then click File on the
TC Monitor Menu Bar and choose Connect to…. A dialog box will be displayed which
shows:
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
Localhost 9536
Close the monitor window and then start it up again. With both TC Monitors running
on the server desktop you should have two open windows, one title bar showing:
Testing
Make sure that the environments have been set up properly, and that each
environment has been correctly attached to its separate database. For example go
into a Browser session for the original environment and create a user. Make sure
that this user is not visible in the second environment. Then set up a user in the
copy environment and make sure its not visible in the original environment.
Important
What would happen if you are using both environments from the jsh by changing
path and using EX to go into them each in turn? In this case you must invoke
the .profile for each environment before you go into t24. If you don’t remember to
invoke the .profile of the environment you want to use but simply change path and
use EX you will be accessing the environment of the last .profile that you invoked.
In fact you should exit the shell each time and log on again, so that all
environment variables are cleared out to begin with (some just get values appended
to them each time you run .profile).
Other Info
You may find that each environment shares the same lock tables. The way to fix this
is (the example below uses database names MB1, MB2, MB3 etc) –
$DB-START -n MB1
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3
Now in the .profile of MB1 unix account add the below variable as,
export JBASE_DATABASE=MB1
export JBASE_DATABASE=MB2
Now Exit and relogin and check the locking problem from both environments.
Any queries, comments, or further help that anyone needs with this document, you
can get me on [email protected]
Technical How To – Install Multiple Unix T24 environments on a Single Server – Draft 1.3