首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

oracle下令:command not found

2013-03-16 
oracle命令:command not found!oracle linux x86_64oracle 11g r2 x86_64安装完毕,除了配置em时出了个警告

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这个文件!

热点排行