This content has been marked as final. Show 3 replies
What happens if you type 'export PATH=$PATH:/u01/app/oracle/product/11.2/db1/bin' and then echo $PATH?
[oracle@zombie ~]$ whoami oracle [oracle@zombie ~]$ export PATH=$PATH:/u01/app/oracle/product/11.2/db1/bin [oracle@zombie ~]$ echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/bin:/u01/app/oracle/product/11.2/db1/bin
The problem is that ORACLE_HOME/bin is not in your PATH environment, which the OS uses to find applications. So after you defined ORACLE_HOME, use export PATH=$ORACLE_HOME/bin:$PATH
Oracle under Unix provides the "oraenv" utility, which exists at least since Oracle 8i. It is by default installed in /usr/local/bin.
The utility will scan your /etc/oratab and set up the appropriate Oracle environment. You can use it in interactive and non-interactive mode. Note that you need to source execute the script. For instance:
Then follow the screen
Or interactive in startup provile or crontask:
. oraenv -s