This section applies only if you are migrating databases from Version 5.x to the Version 7.1 format. If you are migrating from Version 6.1 to Version 7.1, you can skip this section.
If you are updating a single-partition Version 7 instance to the Version 7 multipartition format, you do not need to migrate the databases in that instance.
When pre-Version 7 databases are migrated for use in a Version 7 partitioned database system, default nodegroups are created for them. For more information about default nodegroups and how they are used, see Nodegroups and Data Partitioning.
To migrate Version 5.x databases owned by an instance:
DB2 LIST DATABASE DIRECTORY command >>-LIST----+-DATABASE-+--DIRECTORY----+----------------+------->< '-DB-------' '-ON--+-path--+--' '-drive-'The ON path/drive parameter specifies the local database directory from which to list information. If it is not specified, the contents of the system database directory are listed. For more information and examples, refer to the Command Reference.
DB2MIGRATE DATABASE command >>-MIGRATE----+-DATABASE-+--database-alias----------------------> '-DB-------' >-----+---------------------------------------+---------------->< '-USER--username--+------------------+--' '-USING--password--'
For more information and examples, refer to the Command Reference.
If your tablespace does not have enough free space, you may receive the following error:
SQL1704N Database migration failed. Reason code 17.
In this case, you should restore your Version 5 database under a Version 5 instance, add more containers using the ALTER TABLESPACE statement, and migrate the database again. For more information about tablespaces and the ALTER TABLESPACE statement, refer to the Administration Guide and the SQL Reference.