Solved

oracle_home

Posted on 2013-02-01
5
685 Views
Last Modified: 2013-02-01
[oracle@term ~]$ cd $ORACLE_HOME
[oracle@term ~]$ ls
Desktop
[oracle@term ~]$ echo $ORACLE_HOME

[oracle@term ~]$

why this command is not working eventhough my

 ~/.bash_profile


is like this


# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
# Oracle settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

# If /tmp doesn't have 1G space free then you can workaround it by
# pointing the variables TMP AND TMPDIR to a location where you have
# sufficient space.

ORACLE_HOSTNAME=ora11g.home.com; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ora11g; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;
export CLASSPATH

if [ $USER = "oracle" ]; then
   if [ $SHELL = "/bin/ksh" ]; then
     ulimit -p 16384
     ulimit -n 65536
   else
     ulimit -u 16384 -n 65536
   fi
fi

umask 022
======================================
also

[oracle@term ~]$ echo $ORACLE_BASE

[oracle@term ~]$


is blank

but software is fine..

I have a doubt

before all the oracle software was installed in another location

I copied to db_1            ok

is that the reason....

please advice to solve this issue...
0
Comment
Question by:walkerdba
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:stergium
Comment Utility
Hello.
Just running export does an oracle var show up ? either ORACLE_BASE  or ORACLE_HOME ?
0
 
LVL 13

Accepted Solution

by:
stergium earned 500 total points
Comment Utility
also can you check for oraInventory\ContentsXML\inventory.xml
You can find ORACLE HOME NAME and ORACLE_HOME from this file. (assuming that there is a difference on what your .bash_profile says  and inventory.xml
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
~/.bash_profile is only executed when starting a login shell.

Could it be that you're in a non-login shell, e. g. after "su" instead of "su -", or in a X environment?

Use ~/.bashrc in such a case.
0
 

Author Closing Comment

by:walkerdba
Comment Utility
Absolutely correct...
0
 
LVL 68

Expert Comment

by:woolmilkporc
Comment Utility
The accepted solution does not contain an explanation why your environment variables would vanish.

Or am I on a completely wron track here and didn't understand your question at all?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now