简体   繁体   中英

Importing table into database (DB2)

I have a table which contains an XML type column. I make export for this table using IXF format. when I tried to make import for this table, it gives me error saying you may use File Type Modifier (FORCECREATE) or You should use db2look tool to extract information from the table then make Insert. I do not know how to use File Type Modifier (FORCECREATE)? Can anyone expalin?

What is db2look tool? where can I find this tool? How to use it? I searched alot but no website talks about those tools!

What you wrote could have several possible causes. Without the concrete error message it's hard to find the exact problem. On this page you find several problems that require the use of FORCECREATE: Link

With that you might be able to correct the cause and don't need to use FORCECREATE or DB2LOOK.


Import with FORCECREATE:

The modifier is just an parameter for the import-command:

db2 import from <file> of ixf modified by forcecreate replace_create into <tab>

You can get an short reference for the import-command in the commandline:

db2 ? import

Or read the details in IBMs very comprehensive online docmentation


DB2LOOK-Tool:

The db2look-tool ist part of db2 (at least in v.9.5 on windows). Just enter db2look in commandline, if it is installed you get short parameter overview. Again, the IBM online documentation would provide you with detailed information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM