Bash:sqlplus:command not found workaround
Environment variables are well-established, but still error:
# VI. bash_profile
#. Bash_profile
# Get The Aliasesand functions
If [-F ~/.BASHRC];then
. ~/.bashrc
Fi
# User Specificenvironment and startup programs
Path= $PATH: $HOME/bin
#AddORACLE_SID, Oracle_base,oracle_home and PATH
Exportpath
Unsetusername
Exporteditor = VI
Exportoracle_sid = ORCL
Export Oracle_base =/u01/app/oracle
Exportoracle_home = $ORACLE _base/product/11.2.0/dbhome_1/
Export PATH = $PATH:/u01/app/oracle/product/11.2.0/dbhome_1/bin
Umask 022
"Workaround"
# Su-root
# ln-s / u01 /app/oracle/product/11.2.0/dbhome_1/bin /sqlplus/usr/bin
# su-oracle
$sqlplus/nolog
Sql>conn/as SYSDBA
Connected to an idleinstance.
Sql>startup
Oracleinstance started.
......
Database mounted.
databaseopened.
This article is from the "struggle more than" blog, please be sure to keep this source http://peenboo.blog.51cto.com/2865551/1790114
3, Ora_Q3_bash:sqlplus:command not found solution