These steps will help you to ensure that all databases on your system can be migrated to the new DB2 Version 6 format. Before installing your new version of DB2, perform the following steps:
You should back up all databases before installing your new version of DB2. To back up the databases, perform the following steps:
step 1. | Complete all database transactions. | ||
step 2. | Ensure all applications disconnect from each database. To list all applications that are connected to a database, enter the db2 list applications command. If all applications are disconnected, this command will return the following message: SQL1611W No data was returned by the Database System Monitor. SQLSTATE=00000 To force all applications to disconnect from the database, enter the db2 force applications all command. | ||
step 3. | Ensure all databases are cataloged. To view a list of all the cataloged databases in the current instance, enter the following command: db2 list database directory | ||
step 4. | Make a backup copy of all databases. For more information on
backing up databases, refer to the Administration Guide for the DB2
version you are backing up. For the syntax of the backup command, refer
to the Command Reference for the DB2 version you are backing
up.
| ||
step 5. | Stop the database manager by entering the db2stop command.
|
DB2 provides the db2ckmig command to check that databases can be migrated. This command must be run prior to installation. The command is located on the product CD-ROM.
To run the db2ckmig command:
| If you are installing DB2 on a Windows NT workstation, the setup program might be started automatically via the operating system's autorun feature. In this case, do not proceed with the install. Instead, cancel and proceed to the next step. |
|
You can enter the db2ckmig command on remote systems. The
database parameter must specify the database_alias name of the remote
database. You can run this command from any database partition
server. The file will be written on your local system.
|
For example, to check that all databases cataloged on your system can be migrated and to log all the messages from this command to the c:\temp\message.txt file, enter the following command:
x:\db2\common\db2ckmig /e /l c:\temp\message.txt
where x: represents your CD-ROM drive.
Table 7. Correcting Error Messages
|
These instructions apply only to the DB2 Version 2.x
db2uexit user exit program. If you are not using the Version
2.x db2uexit user exit program, skip this section and go to Installing DB2 Version 6.
|
DB2 Version 6 uses the db2uexit user exit program to archive and retreive log files. For more information on the db2uexit interfaces, refer to the Administration Guide.
The following should be considered before migrating from Version 2.x to Version 6 .
If you are migrating from DB2 Version 2.x, you should modify your user exit program to use the DB2 Version 6 interfaces. The new user exit program db2uexit should replace db2uext2 in the sqllib\bin directory.
After you have successfully completed the pre-installation checks, you can now start installing DB2 Version 6 using either the interactive or distributed method. During the installation of DB2 Version 6, instance migration for instances created in previous versions of DB2 occurs. For installation procedures, see the following sections: