代码改变世界

adadmin: error while loading shared libraries: libclntsh.so.10.1

2015-12-01 15:46  abce  阅读(2475)  评论(0)    收藏  举报

EBS R12.2运行adadmin报错:

$ adadmin
adadmin: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory

问题产因是在设置环境变量的时候,对.base_profile进行了如下配置:

$ more .bash_profile 
# .bash_profile
...
. /app/oracle/apps/VIS/fs1/EBSapps/appl/VIS_erptest.env
...
$ 

而在appl目录下有两个env文件,真正应该配置的是APPSVIS_erptest.env:

$ cd /app/oracle/apps/VIS/fs1/EBSapps/appl
$ ll |grep env
-rw-r--r-- 1 applvis dba  1041 Nov 27 17:43 APPSVIS_erptest.env
-rw-r--r-- 1 applvis dba 18362 Nov 27 17:43 VIS_erptest.env

 

解决方法:

修改.bash_profile文件中的.evn文件名