Converts a previous (Version 8 or higher) version of a DB2® database to the current release. The sqlemgdb and sqlgmgdb APIs are deprecated and will be discontinued in a future release. You should use the new db2DatabaseUpgrade API instead.
SYSADM
This API establishes a database connection.
sqlenv.h
SQL_API_RC SQL_API_FN
sqlemgdb (
_SQLOLDCHAR * pDbAlias,
_SQLOLDCHAR * pUserName,
_SQLOLDCHAR * pPassword,
struct sqlca * pSqlca);
SQL_API_RC SQL_API_FN
sqlgmgdb (
unsigned short PasswordLen,
unsigned short UserNameLen,
unsigned short DbAliasLen,
struct sqlca * pSqlca,
_SQLOLDCHAR * pPassword,
_SQLOLDCHAR * pUserName,
_SQLOLDCHAR * pDbAlias);
This API 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.
MIGRATE DATABASE dbalias [USER username USING password]