Examples in this guide and in theHeatWave Quickstartuse thetpch
sample database, which is an ad-hoc decision support database derived from theTPC Benchmark™ H (TPC-H)specification. For an overview of thetpch
schema, refer to theLogical Database Designsection of thespecification document.
TheHeatWave Quickstartdescribes how to create thetpch
schema and tables and loadtpch
sample data. The following instructions describe how to generatetpch
sample data using thedbgen
utility. The instructions assume you are on a Linux system that hasgcc
andmake
libraries installed.
To generatetpch
sample data:
Download the TPC-H tools zip file fromTPC Download Current.
Extract the zip file to a location on your system.
Change to the
dbgen
directory and make a copy of the makefile template.$ cd 2.18.0/dbgen $ cp makefile.suite makefile
Configure the following settings in the makefile:
CC = gcc DATABASE= ORACLE MACHINE = LINUX WORKLOAD = TPCH
Runmaketo build the
dbgen
utility:$ make
Issue the following
dbgen
command to generate a 1GB set of data files for thetpch
database:$ ./dbgen -s 1
The operation may take a few minutes. When finished, the following data files appear in the working directory, one for each table in the
tpch
database:$ ls -1 *.tbl customer.tbl lineitem.tbl nation.tbl orders.tbl partsupp.tbl part.tbl region.tbl supplier.tbl