-
Install JDK 1.8.
-
Decompress the downloaded file.
$ cd Downloads
$ tar -zxvf jdk-8u212-linux-x64.tar.gz
- Add the two lines below (for setting the environment variables) to
~/.bashrc
file.
export JAVA_HOME=/home/mijin/Downloads/jdk1.8.0_211
export PATH=$JAVA_HOME/bin:$PATH
- Check the version of Java.
$ java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
-
Download BenchmarkSQL.
-
Unzip the downloaded file.
$ unzip benchmarksql-5.0.zip
$ cd benchmarksql-5.0
- If you don't have
ant
package in your Ubuntu, download it first. Then, compile the source code.
$ sudo apt-get install ant
$ ant
- Copy 18c drive to benchmark.
$ cp /u01/app/oracle/product/12.2.0/dbhome_1/jdbc/lib/ojdbc8.jar /home/mijin/Downloads/benchmarksql-5.0/lib/oracle/ojdbc8.jar
- Create a database user.
$ sqlplus / as sysdba
...
SQL> create user benchmarksql identified by "benchmarksql";
...
SQL> grant dba, connect to benchmarksql;
...
SQL> alter user benchmarksql default tablespace users;
...
- Modify the configuration file for BenchmarkSQL.
$ cd /home/mijin/Downloads/benchmarksql-5.0/run
$ cp props.ora myprops.ora
$ vi myprops.ora
...
Change each parameter for your preference. Please change host name or port number according to your environment.
- Create tables.
$ ./runSQL.sh myprops.ora ./sql.common/tableCreates.sql
You can skip step 11~13 by just executing the
runDatabaseBuild.sh
script with your configuration file.
- Generate test data with 200 warehouse.
$ ./runLoader.sh myprops.ora numWarehouses 200
- Create indices and finish build.
$ ./runSQL.sh myprops.ora ./sql.common/indexCreates.sql
$ ./runSQL.sh myprops.ora ./sql.common/foreignKeys.sql
$ ./runSQL.sh myprops.ora ./sql.oracle/extraHistID.sql
$ ./runSQL.sh myprops.ora ./sql.common/buildFinish.sql
- Start running.
$ ./runBenchmark.sh myprops.ora