1
1
I am running Ubuntu 12.04.2 LTS and am having problems with getting a command to execute. I have set up the variable in /etc/environment which looks like this:
FEDORA_HOME="/var/lib/fedora"
CATALINA_HOME="/var/lib/tomcat6"
ORACLE_HOME="/usr/lib/oracle/11.2/client64"
JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MaxPermSize=128m - Djavax.net.ssl.trustStore=/usr/local/fedora/truststore -Djavax.net.ssl.trustStorePassword=tomcat"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$FEDORA_HOME/server:$FEDORA_HOME/client/bin:$ORACLE_HOME:$ORACLE_HOME/bin"
The issue is with the $ORACLE_HOME in the PATH variable. I can cd to the correct directory using:
cd $ORACLE_HOME/bin
But when I try to run sqlplus (the program I am having problems with), the system can't find it. And before anyone asks, yes I have rebooted the system and the file sqlplus does exist in $ORACLE_HOME/bin and is executable by everyone.
This should work, but obviously isn't. Any ideas as to what the issue might be? It is like it doesn't exist in the path although it is clearly there. I can't figure this out. Please help!
Thanks
You cannot use variables in
/etc/environment
. – wisbucky – 2019-04-18T16:54:08.737