执行sqlplus / as sysdba报错:bash: sqlplus: command not found 解决方法 1、在oracle用户下确保环境变量配置正确 【下图为我的环境变量配置】 2、执行source .bash_profile 【使环境变量即刻生效】 3、找到自己安装的oracle路径【如图】 4、执行语句【此语句自行领悟】 ln -
针对您遇到的“bash: sqlplus: command not found”问题,我们可以按照以下步骤进行排查和解决: 1. 确认用户环境变量设置是否正确 在Linux或Unix系统中,如果sqlplus命令无法找到,很可能是因为其安装路径没有被加入到系统的环境变量PATH中。您可以通过打印当前PATH环境变量来检查: bash echo $PATH 如果sqlplus的安装路径...
解决方法: [oracle@dg1 ~]$ sqlplus /nolog bash: sqlplus: command not found [oracle@dg1 ~]$ ln -s $ORACLE_HOME/bin/sqlplus /usr/bin ln: creating symbolic link `/usr/bin/sqlplus' to `/bin/sqlplus': Permission deni ed [oracle@dg1 ~]$ su - root Password: [root@dg1 ~]# ln -s...
方法/步骤 1 1.今天在使用工具进行连接数据库的时候发现无法正常连接,查找原因是因为数据库密码过期了 2 2.登录上服务器进行密码的修改的时候,发现无法使用sqlplus进行数据库的登录,如下图 3 3.查看数据库配置信息的时候发现配置信息也是正确的,并没有错误 4 4.最后在网上查找资料发现需要创建一个软链接,如...
bash: sqlplus: command not found [oracle@dg1 ~]$ ln -s $ORACLE_HOME/bin/sqlplus /usr/bin ln: creating symbolic link `/usr/bin/sqlplus' to `/bin/sqlplus': Permission deni ed [oracle@dg1 ~]$ su - root Password: [root@dg1 ~]# ln -s $ORACLE_HOME/bin/sqlplus /usr/bin ...
1: bash: sqlplus: command not found 解决方法 1) 查看环境.bash_profile 配置 [root@localhost ~]# find -name .bash_profile ./usr/local/oracle11gr2/oracle/.bash_profile ./etc/skel/.bash_profile ./root/.bash_profile ./home/oracle/.bash_profile(这个是我oracle用户的环境变量) ...
bash: sqlplus: command not found 解决方法 bash: sqlplus: command not found 解决方法 在oracle用户下输入:sqlplus 抛出bash: sqlplus: command not found 解决办法: 在root用户下输入如下命令: ln -s $ORACLE_HOME/bin/sqlplus /usr/bin 这样就可以了。
1.现象 2.原因oracle下的oracle_sid没设置环境变量 3.解决办法vi~/.bash_profile添加: exportORACLE_SID=ORCLsource~/.bash_profile再次登录sqlplus/ as sysdba 成功 su-oracle后出现 -bash: export: ` ': not a valid identifier valid identifier 原因是oracle环境变量后面有空格 [oracle@localhost~]$vi.bash...
2.oracle安装完成之后,用普通用户登录终端,再用su命令切换到oracle用户,执行sqlplus命令,提示:bash: sqlplus: command not found... 原因同1所示。直接用oracle用户登录,就能识别sqlplus命令了。 另外注意一点:不要以为root命令能识别所有命令,例如root用户就不能识别这个sqlplus,原因也一样的。
bash: sqlplus: command not found 解决方法 在oracle用户下输入:sqlplus 抛出bash: sqlplus: command not found 解决办法: 在root用户下输入如下命令: ln -s $ORACLE_HOME/bin/sqlplus /usr/bin 这样就可以了。