Installation
To install datagenerator a Java environment, either a SDK or runtime, must be installed on the target platform. Ideally this should be the latest release available. At the time or writing this was Java 6. Earlier releases of Java had some concurrency issues under very high load these appear to have disappeared in later builds.
If you plan to insert data directly into the database in preferences you'll also need some form of Oracle client. This could be either a standard Oracle client or the smaller instant client. You can download it from here.
http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
If you intend to generate and insert directly into a TimesTen database you'll also need to ensure that all of these libraries are installed too.
Datagenerator is supplied in a single zip file downloaded from here. To uncompress this file issue the command (Unix/Linux)
[oracle@dgiles-uk oracle]$ unzip datagenerator040140.zip
On Microsoft Windows use WinZip to perform this operation. The default installation of datagenerator is performed by modifying the values in the $DATAGENHOME/datagenerator.env file under Linux/Unix and in $DATAGENHOME/datagenerator.bat file under Windows. The contents of an example datagenerator.env are shown below.
#!/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
datagenerator
export DATAGENHOME=/Users/dgiles/datagenerator
# Set the following to the location of your TimesTen
install (optional)
export TTHOME=/opt/TimesTen/tt70
#
export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/lib:$TTHOME/lib
export
CLASSPATH=$JAVAHOME/lib/rt.jar:$JAVAHOME/lib/tools.jar:$DATAGENHOME/lib/datagenerator.jar
# The following is needed for 10g environments
export
CLASSPATH=$CLASSPATH:$ORACLE_HOME/jdbc/lib/ojdbc14.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.