302 Solving Operational Business Intelligence with InfoSphere Warehouse Advanced Edition
8.4.5 Optim High Performance Unload control files
Optim High Performance Unload processes one single database partition per
node in sequence on each data node in parallel. All the tables in the table space
unload on each data node in the following format:
file.NNN_<tablespace>_<schema>_<table>
where NNN is database partition and <schema> and <table> are the schema
and table names.
When used to unload data from a backup image, the structure of the Optim High
Performance Unload control file will use the GLOBAL and UNLOAD control
blocks.
Global block
The global control block contains configuration data that is common to all unload
blocks in the Optim High Performance Unload control file. There is only one
global block per control file and the global block must be the first block in the
control file.
The db2hpu command references a database catalog to gather details about the
tables to be unloaded. Specify the USING BACKUP CATALOG clause when the
objects being recovered are not available on the existing database catalog
contained in the database referenced. Scenarios for this action include where
objects were dropped, the catalog is corrupted, or you are executing the db2hpu
command on a non-production system where DB2 software is not installed.
Example 8-1 illustrates the content of a control block where the database catalog
backup image for the database CSTINSIGHT is to be used. The backup image
for the database catalog to be used is located on disk and the backup image to
use has all or partial time stamp 2012063106. A semi-colon (;) is used to
terminate the statement and the block.
Example 8-1 Sample Optim High Performance Unload control file showing Global Block
-- Global Block specifies disk location for the database catalog
GLOBAL USING BACKUP CATALOG CSTINSIGHT from "/work0/HPU/catalog_BACKUP" TAKEN
AT 2012063106;
;
Unload blocks
The unload block specifies the table space or tables and the SELECT statement
for which data is to be unloaded. Multiple unload blocks can be used in a single
control file to perform a sequence of unload operations. Scenarios for this usage