This chapter guides your installation of TG
on the following environment.
Environment
Platform
Linux
JDBC driver
ORACLE JDBC Driver(Type.2)
Target database
ORACLE
Others
Oracle Client has been correctoly installed. TG is executed by operating system user who owns Oracle binary.
Step1
- Install J2RE -
* If you have choosed TG package with J2RE, install it according to the instraction of the installer and apply procedures from "Step2 Determine install directory for TG".
For example, it is assumed that "jre-1_5_0_18-linux-i586.bin" which is downloaded from Oracle Corp(former:Microsystem's inc) web site will be installed to the "/home/oracle/tg" directory.
Make sure the downloaded package is executable. If not, use "chmod" command to give the package "execute" permission
and run it.
*COMMAND-LINE SAMPLE
[oracle@dbsrv1 tg]$ pwd
/home/oracle/tg
[oracle@dbsrv1 tg]$ ls -l
total 13840
-rw-r--r-- 1 oracle oinstall 17198684 Nov 28 22:00 jre-1_5_0_18-linux-i586.bin
[oracle@dbsrv1 tg]$ chmod 755 jre-1_5_0_18-linux-i586.bin
[oracle@dbsrv1 tg]$ ls -l
total 13840
-rwxr-xr-x 1 oracle oinstall 17198684 Nov 28 22:00 jre-1_5_0_18-linux-i586.bin
[oracle@dbsrv1 tg]$ ./jre-1_5_0_18-linux-i586.bin
Sun Microsystems, Inc. Binary Code License Agreement
for the JAVA 2 PLATFORM STANDARD EDITION RUNTIME ENVIRONMENT
5.0
SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT
( * * * * snip * * * * )
For inquiries please contact: Sun Microsystems, Inc., 4150 Network Circle,
Santa Clara, California 95054, U.S.A.
(LFI#130039/Form ID#011801)
Do you agree to the above license terms? [yes or no] yes< input "yes" and press enter here.
Unpacking...
Checksumming...
[oracle@dbsrv1 tg]$ ls
jre1.5.0_18 jre-1_5_0_18-linux-i586.bin
[oracle@dbsrv1 tg]$
To the next, execute "java" command and make sure "java" will run without error.
*COMMAND-LINE SAMPLE
[oracle@dbsrv1 tg]$ cd jre1.5.0_18/bin
[oracle@dbsrv1 bin]$ ./java -version
java version "1.5.0_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot(TM) Client VM (build 1.5.0_18-b02, mixed mode, sharing)
[oracle@dbsrv1 bin]$
Step2
- Determine install directory for TG -
Extract TG ZIP package("tar.gz" package, If you have choosed TG with J2RE Package) to a folder of your choice. In this section, it is assumed that "/home/oracle/tg" directory is used.
Startup TGC - TG Controller - on Windows systems.
Startup TGC - TG Controller - on Linux systems.
Contains classes for TGC.
Startup TG on Windows systems.
Startup TG on Linux, UNIX systems.
Contains parameters for TG.
Contains classes for TG.
Contains scripts for JOB.
Contains java libraries.
Contains confifration files for TG.
Step3
- Create a symbolic link to J2RE -
* If you have choosed TG package with J2RE, install it according to the instraction of the installer and apply procedures from "Step4 Edit the shell script "tg.sh" starting up TG".
Create the symbolic link "/home/oracle/tg/tg09X/j2re" to "/home/oracle/tg/jre1.5.0_18".
Make sure you can run "java" command via the symbolic link.
Loading configuration file... Failed.
ERROR : Configuration file does not exist. : /home/oracle/tg/tg09X/tg.conf
type "HELP" or "h" to print help messages.
TG>
*The example above is assumed that the configuration file of TG (tg.conf) does not exist. Therefore "Loading configuration file... Failed." message is displayed. For the details of "tg.cpmf", please see "Command-line mode" and "Parameter reference" pages.
Step6
- Make sure you can load JDBC driver -
Type "check driver oracle" on TG command prompt and press "Enter" key. When JDBC driver is correctly loaded, the following message will be displayed.
* COMMAND-LINE SAMPLE
TG> check driver oracle
Loading JDBC driver "oracle.jdbc.driver.OracleDriver" ... OK.
TG>
*If you recieved following messages, TG failed to load JDBC driver.
*If you recieved following messages, TGC failed to startup by the access control of X.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] at org.eclipse.swt.SWT.error(Unknown Source) at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source) at org.eclipse.swt.widgets.Display.create(Unknown Source) at org.eclipse.swt.graphics.Device.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.<init>(Unknown Source) at org.eclipse.swt.widgets.Display.<init>(Unknown Source) at tgc.<init>(tgc.java:585) at tgc.main(tgc.java:581)
Type "xhost +" as root user and re-execute "tgc.sh".
* COMMAND-LINE SAMPLE
[oracle@dbsrv1 tg09X]$ su -
Password:
[root@dbsrv1 ~]#xhost +
access control disabled, clients can connect from any host [root@dbsrv1 ~]#