Converts previous (Version 2.x or higher) versions of DB2 databases to current formats.
Attention: The database pre-migration tool, db2ckmig - Database Pre-migration Tool, must be run prior to DB2 Version 6 installation (on OS/2 or the Windows operating system), or before instance migration (on UNIX based systems), because it cannot be executed on DB2 Version 6. Backup all databases prior to migration, and prior to DB2 Version 6 installation on OS/2 or the Windows operating system.
For detailed information about database migration, see one of the Quick Beginnings books.
Authorization
sysadm
Required Connection
This command establishes a database connection.
Command Syntax
>>-MIGRATE----+-DATABASE-+--database-alias----------------------> '-DB-------' >-----+---------------------------------------+---------------->< '-USER--username--+------------------+--' '-USING--password--'
Command Parameters
Examples
The following example migrates the database cataloged under the database alias sales:
db2 migrate database sales
Usage Notes
This command will only migrate a database to a newer version, and cannot be used to convert a migrated database to its previous version.
The database must be cataloged before migration.
If an error occurs during migration, it may be necessary to issue TERMINATE before attempting the suggested user response. For example, if a log full error occurs during migration (SQL1704: Database migration failed. Reason code "3".), it will be necessary to issue the TERMINATE command before increasing the values of the database configuration parameters LOGPRIMARY and LOGFILSIZ. The CLP must refresh its database directory cache if the migration failure occurs after the database has already been relocated (which is likely to be the case when a "log full" error returns).