If you upgraded your installed DB2 product by applying a PTF or a FixPak, you should update instances, using the db2iupdt command, instead of migrating them. Instance updates do not apply to DB2 Product Documentation and DB2 Product Messages.
Before you can migrate an instance to use the latest version of DB2, you
must install DB2 Version 5 on your system.
![]() |
If there are several DB2 instances using previous versions of DB2, you do
not need to migrate all of these instances at this time. Instances that
are not migrated will continue to use previous versions of DB2.
|
Each DB2 instance must be migrated separately. To successfully migrate a DB2 instance, you need to perform the following steps:
If you want to migrate several instances, you must repeat these steps for each instance.
Before you can migrate a DB2 instance, all applications using any databases owned by this instance must be completed. To prepare a DB2 instance for migration, you need to perform the following steps:
The DB2 instance is now ready for migration.
After an instance is ready for migration, use the db2imigr command to migrate the instance as follows:
![]() |
If the library_path environment variable is set to /usr/lib on AIX or /opt/lib on HP-UX, SCO UnixWare 7, or Solaris, and there is a link in /usr/lib or /opt/lib to the Version 5 libdb2.a DB2 library, this can cause an error when using the db2imigr command. To fix the error, you should reset the library_path environment variable so that it does not reference the libraries in those paths by entering the following command: unset library_path where library_path is:
After migrating the DB2 instance, you should reset LIBPATH to its
original setting.
|
DB2DIR/instance/db2imigr [-d] [-a AuthType] [-u fencedID] InstName
|
| where DB2DIR | = /usr/lpp/db2_05_00 | on AIX |
|
|
| = /opt/IBMdb2/V5.0 | on HP-UX, SCO UnixWare 7, or Solaris |
and where:
Notes:
![]() |
If you are migrating a DB2 Version 2.1 instance, created on AIX, and the instance uses the environment variable DB2SORT set to a keyword SMARTSORT, you must set the registry value db2sort after the instance is migrated to Version 5. Set the db2sort registry value to the run time library for the sort command as follows: db2set DB2SORT="/usr/lib/libsort.a" |
![]() |
To install clients, see Chapter 2. Installing DB2 Clients.
|