Before invoking the import utility, you must be connected to (or be able to implicitly connect to) the database into which the data will be imported. Since the utility will issue a COMMIT or a ROLLBACK statement, you should complete all transactions and release all locks by performing either a COMMIT or a ROLLBACK before invoking import.
The import utility can be invoked through:
Following is an example of the IMPORT command issued through the CLP:
db2 import from stafftab.ixf of ixf insert into userid.staff
For general information about the Control Center, see the Administration Guide. Detailed information is provided through the online help facility within the Control Center.
When you import a file to a remote database, a stored procedure can be called to perform the import on the server. A stored procedure will not be called when:
When import uses a stored procedure, messages are created in the message file using the default language installed on the server. The messages are in the language of the application if the language at the client and the server are the same.
The import utility creates two temporary files in the tmp subdirectory of the sqllib directory (or the directory indicated by the DB2INSTPROF registry variable, if specified). One file is for data, and the other file is for messages generated by the import utility.
If you receive an error about writing or opening data on the server, ensure that: