We can use dbgen to generate data files with for a specific scale. The use those files to be loaded into informix database.

1 Run dbgen

Now you are ready to generate the tpch files

  • Change to the appropriate directory where you want to generate tpch files. For example, create a subdirectory for data.
    Copy
    $ mkdir data
    $ cd data
  • Copy the dbgen executable file and dists.dss file there.
    Copy
    $ cp ../dbgen .
    $ cp ../dists.dss .
  • Run dbgen for the appropriate database size factor (1GB in the sample).
    Copy
    ./dbgen -s 1
  • Generation may take a while. When completed, you can see the resulting files.
    Copy
    $ ls -l
    total 2150000
    -rw-r--r--  1 deister  staff   24346144 13 may 12:05 customer.tbl
    -rw-r--r--  1 deister  staff  759863287 13 may 12:05 lineitem.tbl
    -rw-r--r--  1 deister  staff       2224 13 may 12:05 nation.tbl
    -rw-r--r--  1 deister  staff  171952161 13 may 12:05 orders.tbl
    -rw-r--r--  1 deister  staff   24135125 13 may 12:05 part.tbl
    -rw-r--r--  1 deister  staff  118984616 13 may 12:05 partsupp.tbl
    -rw-r--r--  1 deister  staff        389 13 may 12:05 region.tbl
    -rw-r--r--  1 deister  staff    1409184 13 may 12:05 supplier.tbl