javasshjschoracle12coracle-golden-gate

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


I'm running script remotly through JUnit and I'm receiving.

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.

My script works great directly on machine. His body(lag_extract.sh):

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

and my obey file (lag_extract.txt):

LAG EXTRACT *

Any suggestions?


Solution

  • It was connected with lack of an system environments. Maybe it's a workaround, but I've just exporeted one missing system environment and now it works fine.