DB2 Loader
- Install the DB2 runtime client with Administrator set up.
- Configure the loader utility as described in the table below.
- Start the Spectrum server.Note: In case the Spectrum server was already running when you started the configuration, you will need to restart the server for the configuration to take effect.
Option Name | Description |
---|---|
Connection | Select a DB2 connection. The dropdown displays all
the connections you have configured. To configure a new connection or edit any
existing connections, click the Manage Connections link. It
takes you to the Connections page in the
Spectrum Management Console. For details on configuring new
connections, see Connections. Note: Click the Refresh icon to update any modification, deletion or addition
to your list of connections. |
Table | Specify the table to which you want to write the
data.
The fields of the selected table are displayed in the
Fields section on the right side of the page. These are
the details displayed:
|
Database/Alias |
This is a variable that catalogues the DB2 server and database.
|
Load method | Indicates the mode of writing data into a DB2 table.
|
Non-recoverable | Indicates if this load transaction is non-recoverable. If you select
Yes:
To restore a table that contains non-recoverable transactions, you must use either a tablespace-level backup or a full backup taken at a commit point following the non-recoverable load. Note: Do not select
Yes if the data contains Datalink columns that have the
File Link Control attribute in them. Note: Default is
No. |
Parallelism A DB2 database can be divided into multiple partitions by cloning the environment onto different physical nodes. Separate database requests for data fetch and update are automatically divided amongst the different partitions and run in parallel for optimized performance. |
|
CPU | Specify the number of parallel threads that the load utility can generate and sustain for loading, parsing and formatting the records, while building table objects in each database partition. |
Disk | Specify the number of parallel threads that the load utility can generate and sustain for writing data to table space containers. |
Fast Parse | Indicates whether syntactical validation on column values must be left out,
thus enhancing performance. If Yes, any syntactical errors in the data are ignored in favor of optimized performance. For example, if a String value 12wxvg56 is encountered in a field mapped to an integer column in an ASCII file, the load utility should normally generate a syntax error. But if Fast Parse is set to Yes, the syntax error is ignored, and a random number is loaded into the integer field. Note: Ensure you use this option only with correct and clean
data. |
Indexing Mode | Indicates the mode of index handling by the load utility.
|
Exception Handling A DB2 database allows you to record the errors and exceptions encountered while running queries and procedures, and also handle those appropriately. For this, a DB2 database provides specific exception tables and schema which store the source as well as the log traces of each database exception. To use the Exception table,
ensure:
|
|
Schema Name | The schema in which the exception tables are stored. |
Table Name | The exception table into which the rows that encountered some error while loading are copied. |
Log file folder | The path of the directory in which the log files are to be stored. A log file contains a list of the database load transactions run by a DB Loader stage in one load session. Click the to specify the desired directory for log files. |
Bad file folder | The path of the directory on the DB2 server in which the bad files are to be
stored. A bad file contains a list of the records that a DB Loader stage fails to load into the database. |
Maximum errors allowed | The maximum number of errors allowed before a load operation is aborted. To abort a load operation as soon as the first error is encountered, set the value of this field to 0. Note: A maximum of 32767 errors are
allowed. |