IBM Books

Quick Beginnings for DB2 Extended Enterprise Edition for UNIX

Set Up the DB2 Operating Environment

You must execute a script to set the DB2 operating environment and select an instance before starting DB2. On AIX, HP-UX, and Solaris, see Chapter 21. "Controlling Your DB2 Environment" for more information on how to do this. For other UNIX operating systems, the sample scripts, db2profile (for Bourne or Korn shell) and db2cshrc (for C shell) are provided to help you set up the operating environment for a DB2 instance.

The instance owner may customize these scripts for all users of an instance. These scripts are available in the INSTHOME/sqllib directory, where INSTHOME is the home directory of the instance.

Determine the most appropriate way to execute the commands in the sample db2profile script in your environment and instruct your users to do it; for example you could add the following to the startup script:

   . INSTHOME/sqllib/db2profile    (for Bourne or Korn shell)
   source INSTHOME/sqllib/db2cshrc (for C shell)

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

[ DB2 List of Books | Search the DB2 Books ]