sqlplus: error while loading shared libraries: lib
2020-11-25 22:26
1326 查看
想在一台linux上安装一个能使用sqlplus命令的客户端连oracle工具,可以远程连接别的oracle方便执行一些脚本。
步骤;
1、安装rpm -ivh 下面三个rpm包:
oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
oracle-instantclient12.2-sqlplus-12.2.0.1.0-1.x86_64.rpm
2、修改/etc/profile文件,最后添加:
export ORACLE_HOME=/usr/lib/oracle/12.2/client64
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$PATH:$ORACLE_HOME/bin
3、意外出错,在执行sqlplus时提示:
sqlplus: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory
#ldd /usr/lib/oracle/12.2/client64/bin/sqlplus 显示libnsl.so.1 找不到。
我直接到另外一台机,拷贝了libnsl.so.1到本机的/usr/lib64下, 问题就解决了。
相关文章推荐
- sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
- sqlplus: error while loading shared libraries: /var/oracle/product/11.2.0/db_1/lib/libclntsh.so.11.1
- sqlplus64: error while loading shared libraries: libsqlplus.so 解决
- sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No suc
- sqlplus: error while loading shared libraries: /opt/oracle/product/OraHome/lib/libclntsh.so.11.1: ca
- ORACLE11.2.0 SQLPLUS 报 error while loading shared libraries
- ORACLE SQLPLUS 报 error while loading shared libraries
- sqlplus: error while loading shared libraries解决方法
- Oracle:sqlplus: error while loading shared libraries:libdl.so.2:cannot open shared object file......
- ORACLE SQLPLUS 报 error while loading shared libraries
- 连接Oracle出错:sqlplus "/as sysdba" , sqlplus: error while loading shared libraries
- sqlplus: error while loading shared libraries
- sqlplus: error while loading shared libraries
- 报错"sqlplus: error while loading shared libraries"
- 报错"sqlplus: error while loading shared libraries"
- ORACLE11.2.0 SQLPLUS 报 error while loading shared libraries
- 报错"sqlplus: error while loading shared libraries"
- 安装完成oracle 11g R2 后,使用sqlplus 报错"sqlplus: error while loading shared libraries" ...
- QtOpenCV: error while loading shared libraries: libopencv_core.so.3.2: cannot open shared object fil
- nginx启动报错:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory