Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

.bash profile is not setting correctly

kcrrgaNov 19 2016 — edited Nov 19 2016

Hi,

I am trying to set the environment variables for the oracle user on oracle linux 7.3.

I have setup the variables as mentioned below.

# Oracle Settings

export TMP=/tmp

export TMPDIR=$TMP

export ORACLE_HOSTNAME=ol6-121-rac1.localdomain

export ORACLE_UNQNAME=CDBRAC

export ORACLE_BASE=/u01/app/oracle

export GRID_HOME=/u01/app/12.1.0.2/grid

export DB_HOME=$ORACLE_BASE/product/12.1.0.2/db_1

export ORACLE_HOME=$DB_HOME

export ORACLE_SID=cdbrac1

export ORACLE_TERM=xterm

export BASE_PATH=/usr/sbin:$PATH

export PATH=$ORACLE_HOME/bin:$BASE_PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

alias grid_env='. /home/oracle/grid_env'

alias db_env='. /home/oracle/db_env'

I logged in as user "oracle" and then ran the ./.bash_profile

[oracle@ol6 ~]$./.bash_profile

[oracle@ol6 ~]$ echo $ORACLE_HOME

The echo $ORACLE_HOME returns empty line

Any help will be appreciated.

Regards,

kccrga

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2016
Added on Nov 19 2016
8 comments
3,037 views