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.