Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: $ORACLE_HOME

Re: $ORACLE_HOME

From: Gollum <gollum_nospam_at_worldonline.dk>
Date: Fri, 16 Mar 2001 22:06:50 +0100
Message-ID: <Dfvs6.3677$44.314482@news010.worldonline.dk>

Usually, a script /etc/profile is called whenever a user logs into the system. This script will check and "execute" (or "source") a .profile in the user's login-directory (specified in /etc/passwd).

To manually execute the script you will have to "source" it, which in a bourne shell or similar (sh, ksh, bash, and others) is done with the command:
. .profile

Note that if the current directory is not in your path you will need to type:

. ./.profile

(lots of dots here :-).

So I suggest you verify the following:

  1. The script /etc/profile checks and invokes a .profile in the user's home-directory ($HOME/.profile)
  2. That /home/oracle is in fact the oracle user's home-directory (look in /etc/passwd)

HTH,
Gollum

"Harry Tedjo-putranto" <noneharry_tedjo-putranto_at_compuware.com> wrote in message news:3ab27408_at_172.22.1.229...
> ORACLE_HOME Configuration
>
> Hi, I am trying to install 8.1.7 on a HP-UX box. I have created a user
> called oracle to install the product. In the home\oracle area I have a
> .profile for the user oracle. Within the .profile I have the following
> information related to where I want the oracle home directory to be. This
 is
> some of what is in my .profile...
> ##############################################
> # needed to run Ora client stuff
> # ORACLE defs
> ORACLE_BASE=/usr01/u01/oracle
> ORACLE_HOME=$ORACLE_BASE/product/816
> ORACLE_SID=O816
>
> export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
>
> PATH=$PATH:$ORACLE_HOME/bin
>
> # END OF needed to run Ora client stuff
> ##############################################
>
> I think that I have executed this profile correctly (executed ./oraenv),
 but
> when logged in as oracle if I do a CD $ORACLE_HOME
> It will change the directory to home\oracle, when it should be
> /usr01/u01/oracle/product/816
> based on what I have in my .profile
> What am I doing wrong? How should I execute my .profile so it will take
> effect? Thanks in advance
>
>
Received on Fri Mar 16 2001 - 15:06:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US