This article mainly describes the three practical methods of DB2 data migration. If you are curious about the actual methods of these three DB2 data migration, the following articles will unveil its secrets. The following is a detailed description of the article. I hope you can learn from it.
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 to migrate DB2 data
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, execute the ddl related to the primary key after the data is imported. Otherwise, data in some tables cannot be imported due to primary key issues.
The above content is an introduction to the three DB2 data migration methods. I hope you will have some gains.