Scenario: Unloading Db2 data with Optim High Performance Unload
This scenario describes how a DBA can use Optim™ High Performance Unload to unload a table in a format that can be loaded by the Db2® Load utility.
About this task
A banking company in the United States is opening a European branch and needs to transfer its customer accounts to a database in Europe. Steve, a senior DBA at the US branch, needs to unload the CUSTOMER table from the PROD_DB database so that his European colleagues can load the data into their own database.
All of the columns in the CUSTOMER table contain dates in the MM-DD-YYYY format, and Steve wants to unload these records in the European DD-MM-YYYY format. The table contains over 15 millions of rows, and Steve wants to unload the data as fast as possible. Steve will use Optim High Performance Unload to achieve this goal.
- Optim High Performance Unload has an advantage over the Db2 Export utility when Optim High Performance Unload needs to unload large portions of data.
- Any complicated SELECT clauses that require access to Db2 index (such as ORDER BY and WHERE clauses) slow down the unload process because Optim High Performance Unload must pass the syntax to Db2 for interpretation.
The following instructions describe the steps that Steve will take to unload the CUSTOMER table: