LoginSignup
2
0

More than 5 years have passed since last update.

SwingBenchの OrderEntry Wizard (oewizard)をコマンドラインモードで実行する

Last updated at Posted at 2018-02-05

oewizardをコマンドラインモードで実行するには?

SwingBenchの 公式サイトの「Command Line Options...」のページにはcharbench などのベンチマークの実行例はありますが、データ生成ウィザードのOrderEntry Wizard (oewizard)をコマンドラインモードで実行する例は書いていません。

oewizard実行時に「-cl」オプション(run in character mode)と必要なパラメータを指定することで可能です。

実行例

ここでは「-cl」のほかに「-df」オプション(datafile name used to create schema in、データファイルの場所)、「-cs」オプション(connectring for database、接続文字列)、「-dbap」オプション(password for schema creation、作成ユーザのパスワード、デフォルトではSYSユーザ)を指定しています。

$ ./oewizard -cl -create  -cs //<hostname>:1521/orcl -dbap oracle -df /u01/app/oracle/oradata/orcl/test.dbf

SwingBench Wizard
Author  :        Dominic Giles
Version :        2.6.0.1076

Running in Lights Out Mode using config file : ../wizardconfigs/oewizard.xml

============================================
|           Datagenerator Run Stats        |
============================================
Connection Time                        0:00:00.002
Data Generation Time                   0:06:36.332

<中略>

Schema Created

指定可能なオプションは ./oewizard --helpで確認可能です。

$ ./oewizard --help
usage: parameters:
 -allindexes             build all indexes for schema
 -async_off              run without async transactions
 -async_on               run with async transactions (default)
 -bigfile                use big file tablespaces
 -c <filename>           wizard config file
 -cf <file>              the location of a crendentials file for Oracle
                         Exadata Express
 -cl                     run in character mode
以下略

指定しなかった場合のデフォルト値は構成ファイル「./wizardconfigs/oewizard.xml」にて指定されています。
これを変種するか、別名で編集したものを「-c 」オプションで指定可能です。

中略
   <DefaultParameters>
      <Parameter Key="datatablespacesexists" Value="true"/>
      <Parameter Key="password" Value="soe"/>
      <Parameter Key="username" Value="soe"/>
      <Parameter Key="datafile" Value=""/>
      <Parameter Key="userexists" Value="true"/>
      <Parameter Key="connectionstring" Value="//oraclelinux/orcl"/>
      <Parameter Key="connectiontype" Value="thin"/>
      <Parameter Key="onlydropuser" Value="false"/>
      <Parameter Key="operation" Value="create"/>
      <Parameter Key="tablespace" Value="SOE"/>
      <Parameter Key="dbausername" Value="sys as sysdba"/>
      <Parameter Key="dbapassword" Value="welcome1"/>
      <Parameter Key="output" Value="Verbose"/>
   </DefaultParameters>
以下略

参考

Swingbench(公式)
http://dominicgiles.com/swingbench.html

SwingBench Reference and User Guide
http://dominicgiles.com/swingbench/swingbench21f.pdf

Swingbenchを使ってみる
https://qiita.com/mon_tu/items/9ca9f50b69ca5ea4c18e

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0