running oracle imp / exp in Ubuntu 14.04.3

坚强是说给别人听的谎言 提交于 2019-12-05 10:06:51

This is normally caused by your LD_LIBRARY_PATH environment variable missing the Oracle libraries. You need to find the folder in which libclntsh.so.12.1 sits and set this environment variable.

Hopefully it's in your Oracle install directory, in which case you can do this:

find -L /usr/lib/oracle -name libclntsh.so.12.1

The -L switch of find follows symlinks. This is not the default behaviour, however, it's possible that libclntsh.so.12.1 is actually a symlink to libclntsh.so.

If you can't find the file then you'll have to traverse your entire directory structure. It might be worth ditching the -L switch for the first time...

find -L / -name libclntsh.so.12.1

Once you've found the file you need to set your LD_LIBRARY_PATH. As just a one off you can use:

 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/lib/oracle/lib

Where /usr/lib/oracle/lib is replaced with the directory.

If you want to make this change permanent then the normal way on Ubuntu is to add a custom .conf file to /etc/ld.so.conf, see the question "Use shared libraries in /usr/local/lib" on Unix & Linux.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!