Chapter 32. Setting Up a Working Environment for Oracle
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
You will need to export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora and other variables are
not present in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
Set the shell search paths
export PATH=$PATH:$ORACLE_HOME/bin
You can add these environment settings to the end of the ~oracle/.bash_profile file if you
use bash. This will ensure that the environment variables are set permanently when you log in as
"oracle", or when you switch to the user "oracle" by executing "su - oracle".
124