在linux安装oracle下,报错sqlplus command not found 解决
来源:互联网 发布:cf无限榴弹软件下载 编辑:程序博客网 时间:2024/05/29 04:44
之前在linux 下安装了oracle,今天登录启动的时候,报错sqlplus command not found.
找不到sqlplus 也就是$PATH 环境变量下面没有把oracle_home\bin 目录加到环境变量里面。
直接执行echo $PATH 发现没有。
因为安装的时候记得在安装用户下面是设置过环境变量的。(如果是在系统的环境变量下面设置的就/etc/profile 里面查看下)
进入到安装oracle 的用户的主目录下面,我的在/home/oracle 查看.bash_profile 文件有没有定义这个目录到$PATH。
umask 022
export ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
很明显有的。可是为什么echo $PTAH 却没有呢。
切换到用oracle 重新连接就可以了。
为什么su oracle 却不行呢。 查询后发现su 用户 后并没有切换到该用户的目录下面,也就是说登录环境没有改变。
用su - 用户或者su -l 用户才能把登录环境也切换掉。执行之后成功找到sqlplus.
0 0
- 在linux安装oracle下,报错sqlplus command not found 解决
- [解决]Oracle安装后,sqlplus:command not found
- Linux oracle bash: sqlplus: command not found
- Oracle sqlplus: command not found
- Linux下Oracle11G RAC报错:在安装oracle软件时报file not found一例
- Ubuntu下编译linux内核,报"mkimage" command not found错的解决
- linux下jps报command not found
- Linux下输入命令报错:-bash: command not found
- linux下 的command not found解决
- 解决在Windows下Cygwin Command not found的问题
- bash sqlplus command not found
- 解决linux下"bash:shutdown:command not found"的解决方法
- linux下 command not found 问题的解决
- 在Linux中解决command not found的方法
- oracle xe装好后sqlplus后提示command not found
- bash: sqlplus: command not found 及 oracle 环境变量设置
- shell脚本在cygwin下运行报错: $'\r': command not found
- ubuntu下g++报错 g++:command not found解决办法
- CSS的三角形实现
- 超时问题
- POJ - 3104 Drying(二分)
- linux系统文件权限详解
- poj 1673
- 在linux安装oracle下,报错sqlplus command not found 解决
- KMP算法
- 禅道bug管理工具
- Linux双网卡不能上网
- Q281:字符串的组合形式
- (十三)、ZooKeeper 选主流程
- GIT科普系列3:底层存储机制Internal Objects
- JMeter学习(二十四)linux启动jmeter,执行./jmeter.sh报错解决方法
- 《构建高性能Web站点》笔记二(第7章到第12章)