Linux oraclebash: sqlplus: command not found

    xiaoxiao2026-08-21  5

    Linux oracle  bash: sqlplus: command not found

    解决方法:

    将oracle   /home/oracle/.profile 下的

    export ORACLE_HOME=<your Oracle Home> export PATH=$ORACLE_HOME/bin:$PATH 加入出问题的用户.profile中,如:root

    vi   /root/.bash_profile 用source .profile启用该资源文件。

    重新进入Linux系统,sqlplus命令一切正常。

    参考oracle .bash_profile:

    vi /home/oracle/.bash_profile ORACLE_BASE=/u01/app/oracle   ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1  ORACLE_SID=orcl PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin  LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib  LANG=C  export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH LANG

    转载请注明原文地址: https://ju.6miu.com/read-1311406.html
    最新回复(0)