Tuesday, December 23, 2008

Set Environment Variables

You can set these variables in .bash_profile file on Unix systems or .profile on Linux

[oracle@localhost ~]$ vi .bash_profile

# User specific environment

export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/local/lib
export ORACLE_SID=test

export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

[oracle@localhost ~]$. ./.bash_profile

No comments:

Post a Comment