Before invoking the load utility, you must be connected to (or be able to implicitly connect to) the database into which the data will be loaded. Since the utility will issue a COMMIT statement, you should complete all transactions and release all locks by performing either a COMMIT or a ROLLBACK before invoking load.
Since data is loaded in the sequence that appears in the input file, if a particular sequence is desired, the data should be sorted before a load operation is attempted.
If clustering is required, the data should be sorted on the clustering index prior to loading.
The load utility can be invoked through:
Following is an example of the LOAD command issued through the CLP:
db2 load from stafftab.ixf of ixf messages staff.msgs insert into userid.staff copy yes use tsm data buffer 4000
In this example:
Following is another example of the LOAD command issued through the CLP:
db2 load from stafftab.ixf of ixf messages staff.msgs tempfiles path /u/myuser replace into staff
In this example:
Note: | These examples use relative path names for the load input file. Relative path names are only allowed on calls from a client on the same node as the database. The use of fully qualified path names is recommended. |
For general information about the Control Center, see the Administration Guide. Detailed information is provided through the online help facility within the Control Center.