Total Pageviews

Monday 14 May 2012

Setting up the .bash_profile in oracle 10g


# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi
### User specific environment and startup programs
export ORACLE_BASE=/home/oracle/10.2.0/product
export ORACLE_HOME=$ORACLE_BASE/db_1
export PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_SID=orcl
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export TMP=/home/oracle/tempdir
export TEMPDIR=/home/oracle/tempdir
unset USERNAME

To make the changes in .bash_profile run the belowcommand:

[oracle@Sumit -SERVER ~]$ source ~/.bash_profile

Make sure all the enviornment variables are set properly.You can verify from below:


[oracle@sumit-server ~]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/10.2.0/product/db_1/bin
[oracle@sumit-server ~]$ echo $ORACLE_BASE
/home/oracle/10.2.0/product
[oracle@sumit-server ~]$ echo $ORACLE_HOME
/home/oracle/10.2.0/product/db_1
[oracle@sumit-server ~]$ echo $LD_LIBRARY_PATH
/home/oracle/10.2.0/product/db_1/lib
[oracle@sumit-server ~]$ echo $CLASSPATH
/home/oracle/10.2.0/product/db_1/jre:/home/oracle/10.2.0/product/db_1/jlib:/home/oracle/10.2.0/product/db_1/rdbms/jlib

No comments:

Post a Comment