Converts a DB2® database of the previous version to the formats corresponding to the release run by the instance.
The db2ckupgrade command must be issued before upgrading the instance to verify that your databases are ready for upgrade. The db2iupgrade command implicitly calls the db2ckupgrade. Backup all databases before upgrading, and before the installation of the current version of DB2 database product on Windows operating systems.
SYSADM
This command establishes a database connection.
>>-UPGRADE--+-DATABASE-+--database-alias------------------------> '-DB-------' >--+-------------------------------------+--+-----------+------>< '-USER--username--+-----------------+-' '-REBINDALL-' '-USING--password-'
db2 UPGRADE DATABASE sales
This command will only upgrade a database to a newer version, and cannot be used to convert an upgraded database to its previous version.
The database must be cataloged before upgrade.
If an error occurs during upgrade, it might be necessary to issue the TERMINATE command before attempting the suggested user response. For example, if a log full error occurs during upgrade (SQL1704: Database upgrade 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 upgrade failure occurs after the database has already been relocated (which is likely to be the case when a "log full" error returns).