0509-036 0509-022 无法加载模块 libclntsh.so

0509-036 0509-022 Cannot load module libclntsh.so

我正在 运行 通过 JUnit 远程编写脚本,我正在接收。

exec(): 0509-036 Cannot load program /u01/app/gg/ggsci because of the following errors:
    0509-150   Dependent module libclntsh.so could not be loaded.
    0509-022 Cannot load module libclntsh.so.
    0509-026 System error: A file or directory in the path name does not exist.

我的脚本直接在机器上运行良好。他的 body(lag_extract.sh):

cd /u01/app/gg
/u01/app/gg/ggsci << EOF
OBEY /u01/app/gg/lag_extract.txt

和我的服从文件 (lag_extract.txt):

LAG EXTRACT *

有什么建议吗?

与缺少系统环境有关。也许这是一种解决方法,但我刚刚导出了一个缺失的系统环境,现在它工作正常。