Skip to Main Content

Oracle Database Discussions

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!

$ORACLE_HOME, echo $ORACLE_SID returns null / won't show anything

User_AAD34Jul 29 2015 — edited Jul 29 2015

hello,

i am new to oracle, and want to install oracle database 11gr2 on oracle linux 7.

Now i am trying to set the oracle environment variables which i found on youtube, which looks like these:

==============================================================

[oracle@linux ~] $ vi /home/oracle/.bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

          .~/.bashrc

fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME

ORACLE_SID=orcl; export ORACLE_SID

PATH=/usr/sbin:$PATH; export PATH

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

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

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

===================================================================

then i restart the OS,

when i invoke $ORACLE_HOME or echo $ORACLE_SID, it doesn't show anything, which supposed to show 'orcl' when invoking ORACLE_SID, and 'bash: /u01/app/oracle/product/11.2.0/db_1: is a directory' when invoking the ORACLE_HOME.

Anyone can help? Thanks in advance!

Best Regards,

Jerry Antonius

This post has been answered by ddf_dba on Jul 29 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2015
Added on Jul 29 2015
11 comments
13,381 views