ubuntu创建oracle客户端

出现这样的问题oracle一直报错64-bit Oracle Client library cannot be loaded: "libclntsh.so: cannot open shared object file

未安装异步io,未建立软连接,未配置好环境变量

因此在常规(以12.2为例子)的 安装下还要做如下操作:

1、

cd /opt/oracle/instantclient_12_2
ln -s libclntsh.so.12.2 libclntsh.so
ln -s libocci.so.12.2 libocci.so

2、sudo yum install libaio (ubuntu sudo apt-get libaio-dev)

3、

sudo sh -c "echo /opt/oracle/instantclient_12_2 > \
      /etc/ld.so.conf.d/oracle-instantclient.conf"
  sudo ldconfig

4、export LD_LIBRARY_PATH=/opt/oracle/目录:$LD_LIBRARY_PATH

5、export PATH=/opt/oracle/目录:$PATH

 

 


posted on 2020-05-05 20:46  Zhearts  阅读(307)  评论(0编辑  收藏  举报

导航