sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No suc

本地安装oracle 11g,结束执行执行sqlplus,居然报错:

[oracle@aa1 database]$ which sqlplus
/home/oracle/product/11.2.0/db/bin/sqlplus
[oracle@aa1 database]$ sqlplus
sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory
[oracle@aa1 database]$ ldd /home/oracle/product/11.2.0/db/bin/sqlplus
        linux-vdso.so.1 =>  (0x00007fff8b3ff000)
        libsqlplus.so => not found
        libclntsh.so.11.1 => not found
        libnnz11.so => not found
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fd7fe075000)
        libm.so.6 => /lib64/libm.so.6 (0x00007fd7fddf0000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fd7fdbd3000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fd7fd9ba000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fd7fd626000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd7fe281000)
[oracle@aa1 database]$

 

检查安装时的log,发现当时报错如下:

silentInstall2013-10-10_03-11-11AM.log
sNativeVolName:/home/oracle/product/11.2.0/db/
m_asNodeArray:aa1,aa2
m_sLocalNode:aa1
sNativeVolName:/tmp/
m_asNodeArray:aa1,aa2
m_sLocalNode:aa1
Unable to find make utility in location: /usr/bin/make
Unable to find make utility in location: /usr/bin/make
Unable to find make utility in location: /usr/bin/make
Unable to find make utility in location: /usr/bin/make

果然没有make:

[oracle@aa1 database]$ ls /usr/bin/make
ls: cannot access /usr/bin/make: No such file or directory
[oracle@aa1 database]$

 

安装make, yum install make

[root@aa1 ~]# yum install make
Loaded plugins: product-id, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
RHEL6.3_kernel_updates                                                                                    | 1.2 kB     00:00    
RHEL63-core0                                                                                              | 1.8 kB     00:00    
RHEL63-core1                                                                                              | 1.8 kB     00:00    
RHEL63-core2                                                                                              | 1.8 kB     00:00    
RHEL63-core3                                                                                              | 1.8 kB     00:00    
RHEL63-core4                                                                                              | 1.8 kB     00:00    
RHEL63-core5                                                                                              | 1.8 kB     00:00    
cloudservices                                                                                             | 1.2 kB     00:00    
ct63-update                                                                                               | 1.3 kB     00:00    
epel-local                                                                                                | 1.8 kB     00:00    
puppetlabs-deps                                                                                           | 1.2 kB     00:00    
puppetlabs-products                                                                                       | 1.2 kB     00:00    
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package make.x86_64 1:3.81-20.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                  Arch                       Version                              Repository                        Size
=================================================================================================================================
Installing:
 make                     x86_64                     1:3.81-20.el6                        RHEL63-core0                     389 k

Transaction Summary
=================================================================================================================================
Install       1 Package(s)

Total download size: 389 k
Installed size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
make-3.81-20.el6.x86_64.rpm                                                                               | 389 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:make-3.81-20.el6.x86_64                                                                                     1/1
Installed products updated.
  Verifying  : 1:make-3.81-20.el6.x86_64                                                                                     1/1

Installed:
  make.x86_64 1:3.81-20.el6                                                                                                     

Complete!
[root@aa1 ~]# ls -l /usr/bin/make
-rwxr-xr-x 1 root root 170576 Dec 13  2011 /usr/bin/make
[root@aa1 ~]#

 

删掉重新安装DB。OK

 

 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值