oracle instant client 安裝 libaio.so.1: cannot open shared object file____oracle

來源:互聯網
上載者:User

本地安裝oracle instant client,下載,解壓,配置環境變數之後,執行sqlplus,報錯如下:

 

[root@abc ~]# sqlplus
sqlplus: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
[root@abc ~]# which sqlplus
/usr/local/instantclient_11_2/sqlplus
[root@abc ~]# ldd /usr/local/instantclient_11_2/sqlplus
        linux-vdso.so.1 =>  (0x00007fff8b381000)
        libsqlplus.so => /usr/local/instantclient_11_2/libsqlplus.so (0x00007f79c4005000)
        libclntsh.so.11.1 => /usr/local/instantclient_11_2/libclntsh.so.11.1 (0x00007f79c1695000)
        libnnz11.so => /usr/local/instantclient_11_2/libnnz11.so (0x00007f79c12c8000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f79c10c0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f79c0e3b000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f79c0c1e000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f79c0a05000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f79c0671000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f79c41eb000)
        libaio.so.1 => not found
[root@abc ~]#

 

網上下載一個rpm包“libaio-0.3.107-10.el6.x86_64.rpm”,安裝:

[root@abc instantclient_11_2]# rpm -ivh libaio-0.3.107-10.el6.x86_64.rpm
warning: libaio-0.3.107-10.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing...                ########################################### [100%]
   1:libaio                 ########################################### [100%]
[root@abc instantclient_11_2]#
[root@abc instantclient_11_2]# which sqlplus
/usr/local/instantclient_11_2/sqlplus
[root@abc instantclient_11_2]# sqlplus

SQL*Plus: Release 11.2.0.4.0 Production on Mon Sep 30 03:37:29 2013

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Enter user-name: ^C
[root@abc instantclient_11_2]#

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.