本地安装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