六笨哥
分类: Oracle
2014-01-06 11:35:29
今天登陆oracle10g的sqlplus发现如下错误:
[oracle@plinuxt19 10g]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Oct 29 11:15:05 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> conn / as sysdba;
oracleirmdb: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
ERROR:
ORA-12547: TNS:lost contact
SQL> quit
Disconnected
错误原因可能是libaio的rpm包没有装,su到root检验一下
[oracle@plinuxt19 ~]$ exit
logout
[root@plinuxt19 ~]# rpm -qa | grep libaio
libaio-devel-0.3.105-2
libaio-0.3.105-2
奇怪明明已经安装了。
后来想到current os version是x86_64位的,我所看到的libaio的包很可能是(i386)的?
[root@plinuxt19 ~]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' libaio
libaio-0.3.105-2 (i386)
果然是这样,但这是为什么呢?难道RHEL 4在安装的时候对于libaio的包只安装32bit的?
随即将libaio对应的x86_64的包装上:
[root@plinuxt19 ~]# rpm -ivh libaio-0.3.105-2.x86_64.rpm
warning: libaio-0.3.105-2.x86_64.rpm: V3 DSA signature: NOKEY, key ID 652e84dc
Preparing... ########################################### [100%]
1:libaio ########################################### [100%]
[oracle@plinuxt19 ~]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Oct 29 12:54:20 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
SQL> conn / as sysdba;
Connected to an idle instance.
由此问题解决,但是疑惑的是,为什么当时没有装64bit的包,也许是相应option没有勾选。基本上就是这样,记录下