IBM Books

Building Applications for UNIX** Environments


Chapter 5. Building HP-UX Embedded SQL Applications

This chapter provides detailed information for building embedded SQL applications on HP-UX. In the script files, commands that begin with db2 are Command Line Processor (CLP) commands. Refer to the Command Reference if you need more information about CLP commands.

General Points for Building and Running DB2 Programs

  1. You must build and run DB2 applications from a window where your environment variables are set. You can do this by running db2profile. Refer to "Setting Your Environment" if you need more information.

  2. To build DB2 programs containing embedded SQL, or to run any DB2 programs, the database manager on the server must be started. Start the database manager, if it is not already running, by entering the following command on the server:
    db2start
    
Note: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.


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

[ DB2 List of Books | Search the DB2 Books ]