输出跟字符串 oracle 匹配的环境变量:export | grep ORCALE 。

设置全局环境变量:export ORACLE_HOME=/u01/app/oracle/product/10.2.0 。