IBM Books

Building Applications for UNIX** Environments


Setting Your Environment

You need to set environment variables so you can access the database instance that was created when the database manager was installed. Each database manager instance has two files, db2profile and db2cshrc, which contain scripts to set the environment variable for that instance. The Quick Beginnings book provides general information about setting environment variables. This section provides specific instructions to set environment variables to access a database instance.

Run the script by entering:

For Korn shell:
. $HOME/sqllib/db2profile

For C shell:
source $HOME/sqllib/db2cshrc

where $HOME is the home directory of the instance owner.

For your convenience, you may want to include this command in your .profile file, so that it runs automatically when you log in.


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

[ DB2 List of Books | Search the DB2 Books ]