如何解决sqlplus上的bash命令"命令未找到"错误

时间:2017-07-25 13:07:44

标签: oracle

我想进入sqlplus运行一些sqlfiles,我运行这些行,当我将sqlplus提供给enec in sqlplus时,我会得到错误, 我没有下载并安装任何其他运行这些命令,所以有人可以帮助我吗?

[root@localhost instances]# export 
ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
[root@localhost instances]#  export ORACLE_SID=XE
[root@localhost instances]# export NLS_LANG=$ORACLE_HOME/bin/nls_lang.sh
[root@localhost instances]# export PATH=$ORACLE_HOME/bin:$PATH
[root@localhost instances]# sqlplus

-bash: sqlplus: command not found

1 个答案:

答案 0 :(得分:0)

export NLS_LANG=$ORACLE_HOME/bin/nls_lang.sh似乎错了。 NLS_LANG是一个格式为language_territory.charset的字符串,请参阅NLS_LANG FAQ

如果$ORACLE_HOME/bin/nls_lang.sh动态提供NLS_LANG值,则应为

export NLS_LANG=`$ORACLE_HOME/bin/nls_lang.sh`
相关问题