|
This chapter guides your installation of TG
using JDBC Thin(Type.4) driver on MS-Windows platform. |
  |
|
Step1 |
- Install J2RE and make sure PATH - |
                                  |
* If you have choosed TG package with J2RE, skip this step and proceed next.
Execute the package downloaded from Sun Microsystem's Inc site and install it according to the instraction of the installer. If you use "j2re-1_4_2_01-windows-i586.exe", java binaries are installed in : C:\Program Files\Java\j2re1.4.2_01" by default.
Startup command prompt - cmd.exe - and make sure "java" will run without error.
|
| |
※ COMMAND-LINE SAMPLE
|
C:\>java -version
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)
C:\>
|
|
| |
*if you entountered errors, try following steps to set path for your installed java executable binaries.
1. Right-click My Computer icon on the desktop.
2. Select "Advanced" tab.
3. Click the "Environment variable" button.
4. Scroll down the "System variables" list to the
"Path" variable.
5. Double click on "Path".
6. Type (beginning with a semicolon separator) ";C:\j2sdk1.4.2_01\bin"
to the end of line.
7. Click "OK" button.
8. Click "OK" to close the System Properties window.
|
| |
  |
|
Step2 |
- Determine install directory for TG - |
                                  |
Extract TG ZIP package to a folder of your choice. That directory contains these subdirectories and files :
|
| |
- tgc.bat
- tgc.jar
- tg.bat
- tg.sh
- tg.conf
- tg.jar
- jobs
- lib
- conf
- j2re
|
:
:
:
:
:
:
:
:
:
: |
Startup TGC - TG Controller -.
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.
Contains Sun Microsystems Java Runtime environments.* |
|
| |
* It assumes that you have choosed TG package with J2RE. |
| |
  |
|
Step3 |
- Copy Oracle JDBC Driver file ( ojdbc14.jar ) - |
                                  |
This section assumes that you have installed TG in "C:\tg07X". Copy Oracle JDBC driver into the "C:\tg06X\lib" directory. JDBC driver classes for use with J2RE1.4 is contained in the "ojdbc14.jar" file.
If you had already installed the Oracle Client software to your system, This JDBC driver file is in a "$ORACLE_HOME\jdbc\lib" directory.
Or it is also possible to download the driver file from Oracle Technological site : "http://otn.oracle.co.jp".
*You can change the directory which contains Oracle JDBC driver. If you want to do so, you mast set the CLASSPATH for your installed JDBC driver in the "tg.bat" script which startup TG.
eg.)
set CLASSPATH=.\tg.jar;.\lib\ojdbc14.jar;.
↓
set CLASSPATH=.\tg.jar;c:\oracle\jdbc\lib\ojdbc14.jar;. |
| |
  |
|
Step4 |
- Make sure you can run TGC - |
                                  |
Run TGC. Double-click "tgc.exe" or Enter at the command prompt :
C:\tg07X> tgc
TG setup finished when following message displayed on TGC window. |
| |
TG - Transaction Generator - [ Version 0.70 ] Tue Nov 01 01:43:03 JST 2005
Loading configration file... ...OK.
Registerd transactions:4 , variables:2 , jobs:18
Loading Oracle JDBC driver... .OK.
Checking specified address & Port is possible to use... ..OK.
Now TG is running in "Slave Mode".
- Listening Address : 0.0.0.0
- Port : 11111
TG - Transaction Generator - [ Version 0.60 ] Tue Nov 01 01:43:09 JST 2005
logged in.
TG> |
|
| |
|