Application Building Guide


Appendix B. Migrating Your Applications

When you upgrade to DB2 Universal Database Version 7.1 from a Version 2 or later installation of DB2, DB2 Client Application Enabler, or DB2 Software Developer's Kit, your database and node directories are migrated automatically. To migrate from DB2 Version 1, you must first migrate to DB2 Universal Database Version 5. Then you can migrate from Version 5 to Version 7.1. To migrate your existing databases, use the tools described in the Administration Guide.

Notes:

  1. HP-UX. If you are migrating DB2 from HP-UX Version 10 or earlier to HP-UX Version 11, your DB2 programs must be re-precompiled with DB2 on HP-UX Version 11 (if they include embedded SQL), and must be re-compiled. This includes all DB2 applications, stored procedures, user-defined functions and user exit programs. As well, DB2 programs that are compiled on HP-UX Version 11 may not run on HP-UX Version 10 or earlier. DB2 programs that are compiled and run on HP-UX Version 10 may connect remotely to HP-UX Version 11 servers.

  2. Linux. DB2 does not support migration from DB2 Universal Database for Linux Version 5.2 (Beta).

  3. Micro Focus COBOL. Any existing applications precompiled with DB2 Version 2.1.1 or earlier and compiled with Micro Focus COBOL should be re-precompiled with the current version of DB2, and then recompiled with Micro Focus COBOL. If these applications built with the earlier versions of the IBM precompiler are not re-precompiled, there is a possibility of database corruption if abnormal termination occurs.
Note:The following, as well as the "Questions" and "Conditions" sections, apply to UNIX platforms only.

If you have applications from DB2 Version 1, DB2 Version 2, DB2 Version 5, or DB2 Version 6.1, and you want them to run in both a database instance of the previous version as well as a DB2 Version 7.1 instance on the same machine, you may need to make some changes to your environment. To determine what changes to make, answer the following questions, and then review the "Conditions" section to see if any of the conditions apply to your situation.

An AIX system is used to explain the points raised. The same concepts apply to other UNIX platforms, but the details may differ, such as environment variables and specific commands. If you are unfamiliar with these details for your operating system, please see the Administration Guide or the "Migrating from Previous Versions of DB2" section in the 'Planning for Installation' chapter of the DB2 for UNIX Quick Beginnings book.


[ Top of Page | Previous Page | Next Page ]