日期:2014-05-17  浏览次数:20891 次

oracle命令:command not found!
oracle linux x86_64
oracle 11g r2 x86_64
安装完毕,除了配置em时出了个警告,其它都succeed,然后就启动oracle,问题就出来了:
lsnrctl start提示command not found
sqlplus提示command not found
dbca提示command not found

我对天发誓,安装rpm包时没有偷懒(附加软件包没装),在安装前绝对关掉了防火墙,运行以上命令绝对是用的oracle用户。

求解

------解决方案--------------------
.bash_profile的问题

仔细检查$ORACLE_BASE  $ORACLE_HOME  $PATH 是否正确?
------解决方案--------------------
试试全路径:
$ORACLE_HOME/bin/sqlplus  
------解决方案--------------------
估计是path的问题:
export PATH=$PATH:$ORACLE_HOME/bin
重新以oracle用户登录或者执行source ~/.bash_profile
------解决方案--------------------
很明显是环境变量的问题,可以找一下.profile这个文件!