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.
Note: | If you have run db2imigr on your Administration Server instance, you can skip this section. The Administration Server instance does not contain any databases. |
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.