Originally posted by: lech77
> in .profile :
>
> ORACLE_HOME=/appli/oracle/product/10.2.0/db_1
> ORACLE_PATH=/appli/oracle/product/10.2.0/db_1/bin
> PATH=$PATH:$ORACLE_PATH
> set -o vi
> /usr/local/bin/bash
^^^^^^^^^^^^^^^^^^^^^
> ./appli/oracle/.bash_profile
> export ORACLE_HOME ORACLE_PATH PATH ORATEMP ORATMP TMP TEMP
I'm afraid it won't work this way. What this line does
is it invokes bash as a non-login interactive shell,
efectively stopping processing the rest of the ~/.profile
until bash has finished running.
So even if there was a blank separating leading dot from
the slash on the next line .bash_profile would be sourced
by (I assume) ksh right after the completion of bash execution.
> in bash_profile :
>
> export ORACLE_HOME=/appli/oracle/product/10.2.0/db_1
Even if this file is named "~/.bash_profile" it would never
be read by a bash unless it is invoked as a login shell.
> :/appli/oracle#sqlplus / as sysdba
> Error 6 initializing SQL*Plus
> Message file sp1<lang>.msb not found
> SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
I'm afraid sqlplus execution was attempted in bash
(executed from .profile, as seen above). Since
ORACLE_HOME set in the .profile was not exported
yet (exports come after the invocation of bash)
there's no env var named ORACLE_HOME in bash.
#AIX-Forum