发布时间:2019-09-15 10:03:51编辑:auto阅读(1730)
bash: sqlplus: command not found 解决方法
环境变量已经配好,但是仍报错:
# 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
【解决方法】
# 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.
上一篇: 求s=1+1(1+2)+1(1+2+3)
下一篇: 树莓派3 蓝牙连接 PS3手柄
47844
46390
37284
34735
29313
25973
24916
19951
19545
18030
5792°
6413°
5929°
5962°
7064°
5911°
5944°
6438°
6404°
7778°