DB2 Version 9.7 for Linux, UNIX, and Windows

Imported table re-creation

You can use the import utility's CREATE mode to re-create a table that was saved through the export utility. However, there are a number of limitations on the process, as many of the input table's attributes are not retained.

For import to be able to re-create the table, the export operation must meet some requirements. The original table must have been exported to an IXF file. If you export files with DEL or ASC file formats, the output files do not contain descriptions of the target table, but they contain the record data. To re-create a table with data stored in these file formats, create the target table, then use the load or import utility to populate the table from these files. You can use the db2look utility to capture the original table definitions and to generate the corresponding data definition language (DDL). As well, the SELECT statement used during the export can only contain certain action strings. For example, no column names can be used in the SELECT clause and only SELECT * is permitted.
Note: Import's CREATE mode is being deprecated. Use the db2look utility to capture and re-create your tables.
Retained attributes
The re-created table will retain the following attributes of the original table:
Note: No index information is retained if the column names in the index contain the characters - or +, in which case SQL27984W is returned.

Lost attributes
The re-created table does not retain several attributes of the original table, including:

Note: This list is not exhaustive, use with care.

If the import fails and SQL3311N is returned, you can still re-create the table using the file type modifier forcecreate. This modifier allows you to create the table with missing or limited information.