linux下oracle 10g的sqlplus无法使用

问题如标题所示。

解决办法,

1,root用户登录,建立软连接

cd /

cd /usr/bin

ln -s /home/oracle/product/10.2.0/db_1/bin/sqlplus

2,配置ORACLE_HOME

export ORACLE_HOME=/home/oracle/product/10.2.0/db_1

完了之后在root用户下面就可以sqlplus了。

如果是oracle_home已经配置到profile文件,但是没有生效的话

1,那我们首先查看下oracle用户下的文件是否已经有profile

ls -a

如果有,比如.profile(其他版本可能是.bash_profile),可以执行该文件

./.profile

就OK了。

2,或者直接运行 bash --login

3,或者source .profile

原文地址:https://www.cnblogs.com/niutouzdq/p/4755182.html