vi /etc/profile
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=helowin export PATH=$ORACLE_HOME/bin:$PATH
source /etc/profile
如果报错,参考另外一篇文章:环境变量配置 linux-Debian 实测-有效_123hello123的博客-CSDN博客
export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=helowin export PATH=$ORACLE_HOME/bin:$PATH
如果报错,参考另外一篇文章:环境变量配置 linux-Debian 实测-有效_123hello123的博客-CSDN博客