Installation...
To run swingbench a Java Virtual Machine (JVM) must be installed on the client platform. It is a requirement that the JVM be at least Java 5 (1.5) for both Swingbench 2.2 and Swingbench 2.3. Swingbench also requires an Oracle client. This can either be in the form of a full blown Oracle database install or the Oracle instant client down loadable from the Oracle technology network.
http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
If you intend to run test against a TimesTen database (Swingbench 2.3 only) you'll also need to ensure that all of these libraries are installed too.
Swingbench is supplied in a single zip file downloaded from here. To uncompress this file issue the command (Unix/Linux)
[oracle@dgiles-uk swingbench]$ unzip swingbench
On Microsoft Windows use WinZip to perform this operation. The default installation of swingbench is performed by modifying the values in the $SWINGHOME/swingbench.env file under inux/Unix and in $SWINGHOME/swingbenchenv.bat file under Windows. The contents of an example swingbench.env are shown below.
#!/bin/bash
#!/bin/bash
# Set the following to reflect the root directory of your
Java installation
export
JAVAHOME=/usr/java/latest
# Set the following to the directory where you installed
swingbench
export
SWINGHOME=/Users/dgiles/swingbench
# Set the following to the location of your TimesTen
install (optional)
export TTHOME=/opt/TimesTen/tt70
# If you don't have the ORACLE_HOME environment variable
set uncomment the following and change it to reflect your
environment
# export
ORACLE_HOME=/home/oracle
#
export ANTHOME=$SWINGHOME/lib
export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/lib:$TTHOME/lib
export
CLASSPATH=$JAVAHOME/lib/rt.jar:$JAVAHOME/lib/tools.jar:$SWINGHOME/lib/mytransactions.jar:${SWINGHOME}/lib/swingbench.jar:$ANTHOME/ant.jar:
# The following is needed for 10g environments
export
CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib/ojdbc14.jar:$ORACLE_HOME/opmn/lib/ons.jar
# The following is only needed for 11g environments
export
CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib/ojdbc5.jar
# The following is only needed for TimesTen environments
export
CLASSPATH=$CLASSPATH:$TTHOME/lib/classes15.jar
The values shown in red need to be modified to reflect the file structure into which the software has been installed.