Command Syntax
.-,-------------.
V |
>>-LOAD FROM------+-filename-+--+--OF--filetype----------------->
+-pipename-+
'-device---'
>-----+-----------------------------+--------------------------->
| .-,-----------. |
| V | |
'-LOBS FROM-----lob-path---+--'
>-----+-----------------------------------+--------------------->
| .-----------------. |
| V | |
'-MODIFIED BY-----filetype-mod---+--'
>-----+-----------------------------------------------------------------------------------------------+>
| .-,---------------------------. |
| V | |
'-METHOD--+-L--(-----column-start--column-end---+---)--+-----------------------------------+-+--'
| | .-,----. | |
| | V | | |
| '-NULL INDICATORS--(-----n---+---)--' |
| .-,--------------. |
| V | |
+-N--(-----column-name---+---)-----------------------------------------------------+
| .-,------------------. |
| V | |
'-P--(-----column-position---+---)-------------------------------------------------'
>-----+---------------+---+--------------+---------------------->
'-SAVECOUNT--n--' '-ROWCOUNT--n--'
>-----+------------------+---+-------------------------+-------->
'-WARNINGCOUNT--n--' '-MESSAGES--message-file--'
>-----+--------------------------------+---+-INSERT----+-------->
'-TEMPFILES PATH--temp-pathname--' +-REPLACE---+
+-RESTART---+
'-TERMINATE-'
>----INTO--table-name----+------------------------------+------->
| .-,----------------. |
| V | |
'-(-----insert-column---+---)--'
>-----+--------------------------------------------+------------>
'-DATALINK SPECIFICATION--| datalink-spec |--'
>-----+----------------------------+---------------------------->
'-FOR EXCEPTION--table-name--'
>-----+-------------------------------------------------------------------------------------------+>
| .-YES-. |
'-STATISTICS--+-+-----+--+-+---------------------------------------------------------+-+-+--'
| | '-WITH DISTRIBUTION--+---------------------------------+--' | |
| | '-AND--+----------+--INDEXES ALL--' | |
| | '-DETAILED-' | |
| '-+---------------------------------------+-------------------' |
| '--+-AND-+---+----------+--INDEXES ALL--' |
| '-FOR-' '-DETAILED-' |
'-NO-----------------------------------------------------------------------'
>-----+------------------------------------------------------------------+>
| .-NO-----------------------------------------------------. |
+-COPY--+-YES--+-USE ADSM--+---------------------------+-------+-+-+
| | '-OPEN--num-sess--SESSIONS--' | |
| | .-,-------------------. | |
| | V | | |
| +-TO-----device/directory---+-------------------+ |
| '-LOAD--lib-name--+---------------------------+-' |
| '-OPEN--num-sess--SESSIONS--' |
'-NONRECOVERABLE---------------------------------------------------'
>-----+---------------+---+--------------------+---------------->
'-HOLD QUIESCE--' '-WITHOUT PROMPTING--'
>-----+---------------------------+---+---------------------+--->
'-DATA BUFFER--buffer-size--' '-CPU_PARALLELISM--n--'
>-----+----------------------+---------------------------------->
'-DISK_PARALLELISM--n--'
>-----+---------------------------------+----------------------><
'-INDEXING MODE--+-AUTOSELECT--+--'
+-REBUILD-----+
+-INCREMENTAL-+
'-DEFERRED----'
datalink-spec
.-,--------------------------------------------------------------------------------------------------.
V |
|------(--+-----------------+--+----------------------------------+---+--------------------------+---)---+->
'-DL_LINKTYPE URL-' +-DL_URL_REPLACE_PREFIX--"prefix"--+ '-DL_URL_SUFFIX--"suffix"--'
'-DL_URL_DEFAULT_PREFIX--"prefix"--'
>---------------------------------------------------------------|
Command Parameters
Notes:
This memory is allocated directly from the utility heap, whose size can be modified through the util_heap_sz database configuration parameter.
If a value is not specified, an intelligent default is calculated by the utility at run time. The default is based on a percentage of the free space available in the utility heap at the instantiation time of the loader, as well as some characteristics of the table.
There can be as many DATALINK column specifications as the number of DATALINK columns defined in the table. The order of specifications follows the order of DATALINK columns found within the insert-column list, or within the table definition (if an insert-column list is not specified).
Examples of prefix are:
"http://server" "file://server" "file:" "http://server:80"
If no prefix is found in the column data, and a default prefix is specified with DL_URL_DEFAULT_PREFIX, the default prefix is prefixed to the column value (if not NULL).
For example, if DL_URL_DEFAULT_PREFIX specifies the default prefix "http://toronto":
For example, if DL_URL_REPLACE_PREFIX specifies the prefix "http://toronto":
Information that is written to the exception table is not written to the dump file (for a description of the dumpfile modifier, see Table 8). In a partitioned database environment, an exception table must be defined for those nodes on which the loading table is defined. The dump file, on the other hand, contains rows that cannot be loaded because they are invalid or have syntax errors. For more information, see Exception Table.
Notes:
db2 quiesce tablespaces for table <tablename> reset
| Note: | Ensure that no phantom quiesces are created (see the Command Reference). |
Incremental indexing is not supported when all of the following conditions is true:
To bypass this restriction, it is recommended that indexes be placed in a separate table space.
Deferred indexing is only supported for tables with non-unique indexes, so that duplicate keys inserted during the load phase are not persistent after the load operation.
The load utility cannot parse columns whose names contain one or more spaces. For example,
db2 load from delfile1 of del modified by noeofchar noheader
method P (1, 2, 3, 4, 5, 6, 7, 8, 9)
insert into table1 (BLOB1, S2, I3, Int 4, I5, I6, DT7, I8, TM9)
will fail because of the Int 4 column. The solution is to enclose such column names with double quotation marks:
db2 load from delfile1 of del modified by noeofchar noheader
method P (1, 2, 3, 4, 5, 6, 7, 8, 9)
insert into table1 (BLOB1, S2, I3, "Int 4", I5, I6, DT7, I8, TM9)
| Note: | This method can only be used with ASC files, and is the only valid option for that file type. |
| Note: | This method can only be used with IXF files. |
| Note: | This method can only be used with IXF or DEL files, and is the only valid option for the DEL file type. |
With this option, table spaces are not put in backup pending state following the load operation, and a copy of the loaded data does not have to be made during the load operation.
This option should not be used when DATALINK columns with the FILE LINK CONTROL attribute are present in, or being added to, the table.
A value of Y in the NULL indicator column specifies that the column data is NULL. Any character other than Y in the NULL indicator column specifies that the column data is not NULL, and that column data specified by the METHOD L option will be loaded.
The NULL indicator character can be changed using the MODIFIED BY option (see the description of the nullindchar modifier in Table 8).
For more information about file formats, see Appendix C. Export/Import/Load Utility File Formats.
This option is not supported for tables with DATALINK columns.
The default value is zero, meaning that no consistency points will be established, unless necessary.
Temporary files take up file system space. Sometimes, this space requirement is quite substantial. Following is an estimate of how much file system space should be allocated for all temporary files:
For more information about temporary files, see Load Temporary Files.
If the table spaces in which the table resides are not in load pending state, this option does not affect the state of the table spaces.
The load terminate option will not remove a backup pending state from table spaces.
If this option is not specified, and the tape device encounters an end of tape for the copy image, or the last item listed is a tape device, the user is prompted for a new tape on that device. Tape is not supported on OS/2.