Converts previous (Version 2.x or higher) versions of DB2 databases to current formats.
Authorization
sysadm
Required Connection
This API establishes a database connection.
Version
sqlenv.h
C API Syntax
/* File: sqlenv.h */ /* API: Migrate Database */ /* ... */ SQL_API_RC SQL_API_FN sqlemgdb ( _SQLOLDCHAR * pDbAlias, _SQLOLDCHAR * pUserName, _SQLOLDCHAR * pPassword, struct sqlca * pSqlca); /* ... */ |
Generic API Syntax
/* File: sqlenv.h */ /* API: Migrate Database */ /* ... */ 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); /* ... */ |
API Parameters
REXX API Syntax
MIGRATE DATABASE dbalias [USER username USING password] |
REXX API Parameters
Sample Programs
Usage Notes
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.
For detailed information about database migration, see one of the Quick Beginnings books.