Files
notes/tiddlywiki/Data Generator & Swing Bench.md

49 lines
1.3 KiB
Markdown
Raw Normal View History

2026-03-12 22:01:38 +01:00
> Author home page: [dominicgiles.com](http://www.dominicgiles.com)
>
Install JDK
```bash
dnf install java-1.8.0-openjdk.x86_64
```
Create linux user and directories for Data Generator & Swing Bench
```bash
groupadd orabench
useradd orabench -g orabench -G orabench
mkdir -p /app/datagenerator
mkdir -p /app/swingbench
chown -R orabench:orabench /app/datagenerator /app/swingbench
```
Download and run Data Generator
```bash
su - orabench
wget http://www.dominicgiles.com/swingbench/datageneratorlatest.zip
unzip datageneratorlatest.zip
rm -rf datageneratorlatest.zip
mv datagenerator stable
export DISPLAY=<your_X_server_IP>:0.0
/app/datagenerator/stable/bin/datagenerator
```
Depending of schemas to install, create corresponding schemas/tablespaces
```sql
create bigfile tablespace SH datafile size 64M autoextend ON next 64M;
create user SH identified by SH default tablespace SH;
grant connect,resource to SH;
create bigfile tablespace SOE datafile size 64M autoextend ON next 64M;
create user SOE identified by SOE default tablespace SOE;
grant connect,resource to SOE;
```
Download and run Swing Bench
```bash
cd /app/swingbench/
wget https://github.com/domgiles/swingbench-public/releases/download/production/swingbenchlatest.zip
unzip swingbenchlatest.zip
rm -rf swingbenchlatest.zip
mv swingbench stable
/app/swingbench/stable/bin/swingbench
```