348 Solving Operational Business Intelligence with InfoSphere Warehouse Advanced Edition
Here, we build on the concepts introduced earlier and describe how Optim High
Performance Unload can be used to archive data and migrate data from one
database to another.
When data is no longer needed in the data warehouse, or where the cost of
storage and maintenance has exceeded the value to be gained from the data, it
is advisable to archive the data. In archiving data, it is important that you have a
clear and simple method for reinstating the data if required.
Maintaining database or table space backup images, tapes and history can be
prone to error. IBM Optim High Performance Unload can be used to quickly and
effectively unload the data to be archived to a file or files. When completed, the
files can be retained and the database object removed, which frees space for
warmer data.
9.4.1 Archive cold data
Data archiving is discussed in the context of archiving data out of the data
warehouse. The target destination can be a file, backup image, or a federated
server if data access to the archived data is required.
The goals when archiving data are to have a minimal effect on the production
server, and to be able to realize the storage capacity made available as a result
of the archiving process.
By using storage groups in conjunction with table partitioning and table space
usage as described earlier, a data partition can be detached without affecting the
data availability of the remaining data partitions in the table. After it is detached,
the data partition can be dropped along with the associated table space. Data in
table spaces can then be asynchronously migrated from other storage groups.
Data can be archived in many ways. The traditional method is to perform and
keep a full database or table space backup. An alternate method is to use Optim
High Performance Unload to unload data for the individual data partition and
store the data in flat files for future reference or for migration to another
database.
The following example shows how to use the Optim High Performance Unload
utility to unload data from a table space container for a single data partition.