IBM Books

Building Applications for UNIX** Environments


Appendix B. Migrating Your Applications

When you upgrade to DB2 Universal Database Version 5 from a previous installation of DB2, DB2 Client Application Enabler, or DB2 Software Developer's Kit, your database and node directories are migrated automatically. 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. 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.

  3. SCO OpenServer. If you are migrating from DB2 for SCO OpenServer to DB2 for SCO UnixWare 7, any existing DB2 applications precompiled on SCO OpenServer should be re-precompiled on SCO UnixWare 7, and all DB2 applications compiled on SCO OpenServer should be recompiled on SCO UnixWare 7.

If you have applications from DB2 Version 1 or DB2 Version 2, and you want them to run in both a database instance of the previous version as well as a DB2 Version 5 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 "Migrated from Previous Versions" chapter in the Quick Beginnings for UNIX book.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]