Three DB2 data migration schemes and their shortcomings and precautions

Source: Internet
Author: User

This article mainly shares with you three practical operations on DB2 data migration, as well as descriptions of some precautions and disadvantages in actual operations, the following is a detailed description of the actual operations of DB2 data migration. We hope you will have a better understanding of it after browsing.

Everyone, database, method, migration, Sharing database, migration, sharing

DB2 data migration methods include:

1. Data migration through the backup and restoration of the DB2 database

Note:

1. manually select backup when restoring the file. The time setting of the recovery file must be consistent with the timestamp on the backup file.

2. cross-platform migration is not supported. For example, files backed up from a linux database cannot be recovered to a windows database.

2. Data migration through the export to and import from Methods

Disadvantages:

1. It is troublesome to export and import each table in the database separately.

3. Use the DB2look and DB2move commands for data migration

Note:

1. if the SQL statement exported by the DB2look command contains the ddl statements related to foreign keys, cut the ddl statements of all foreign keys and place them in a separate file, after the data is imported, run the ddl statement related to the primary key. Otherwise, data in some tables cannot be imported due to the primary key issue. The above content will share with you an introduction to the three DB2 data migration methods, and I hope you will have some gains.

The above content will share with you an introduction to the three DB2 data migration methods, and I hope you will have some gains.

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.