Db2 data migration del, ixf

Source: Internet
Author: User

Db2 data migration del, ixf is using db2 import from test. when del of del insert into table is used to import data, the following error occurs: the number of data entries exported and the number of imported data entries are equal to the number of data entries in the database, it was strange that the del file stored data by row, because a field in the database stores data by text domain, if the text content containing the carriage return is displayed in the del file with another line, the imported data is mistakenly regarded as a data item, but the structure is incorrect, so the data cannot be imported. Later, the data was exported in ixf format, and the import was normal. After turning back to the system, we have taken a look at the DB2 data migration knowledge, which is roughly as follows: export; import: import, load; data movement format: ASC \ DEL text file; WSF worksheet format, it is mainly used for LOTUS software; IXF integrated exchange format; ASC, DEL, WSF may cause data loss across platforms, IXF is used across platforms; DEL files are visible, and IXF files are not visible. Export command: db2 export to test. ixf of ixf select * from table; import command: db2 import from test. ixf of ixf insert_update into table; the insert methods include insert, insert_update, replace, replace_create (only in ixf format), and create (only in ixf format ); db2move can be used to migrate the entire database. The syntax format is db2move <dbname> <action> <option>. Actions include export, import, copy, and load. The command: db2move mydatabase export is imported to the current directory;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.