这两天安装10g遇到新问题。

要说安装oracle 10g也有n多次了,从刚进公司就开始装10.1的oracle,虽然都是for redhat的,但是32/64,redhat9/as 3/as 4都装过几次,
应该也算熟练工种了,这次就没怎么担心,结果遇到新问题了,疑惑我半天。

安装oracle 10.2.0.1 for redhat as 4 u 5的时候,开始是环境检察提示错误:
Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP

网上搜了下,说是/etc/hosts没有配,加上就ok了。

然后是安装到link的时候,大概83%的地方,弹出窗口提示错误,如果忽略,可以继续,总共有三个错误。

make[1]: *** [/home1/oracle/product/10.2.0/db_1/sysman/lib/libnmemso.so] Error 1
make: *** [libnmemso] Error 2
Exception String: Error in invoking target 'agent emsubagent' of makefile '/home1/oracle/product/10.2.0/db_1/sysman/lib/ins_sysman.mk'. See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.
make: *** [ctxhx] Error 1
Exception String: Error in invoking target 'install' of makefile '/home1/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'. See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.
make[1]: *** [/home1/oracle/product/10.2.0/db_1/rdbms/lib/extproc32] Error 1
INFO: make: *** [extproc32] Error 2
Exception String: Error in invoking target 'all_no_orcl ipc_g' of makefile '/home1/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.


安装最后可以成功完成,但是dbca打不开,所以需要手工创建数据库。
dbca提示的错误是:
UnsatisfiedLinkError exception loading native library: njni10
Exception in thread "main" java.lang.UnsatisfiedLinkError: get
at oracle.net.common.NetGetEnv.get(Native Method)
at oracle.net.config.Config.getNetDir(Unknown Source)
at oracle.net.config.Config.initConfig(Unknown Source)
at oracle.net.config.Config.(Unknown Source)
at oracle.sysman.assistants.util.NetworkUtils.(NetworkUtils.java:207)
at oracle.sysman.assistants.util.step.StepContext.(StepContext

relink all也会提示错误。


如果继续进行升级操作,在安装patch10.2.0.3的时候,仍然会在link的时候提示上面的三个错误。
dbua也不能打开,需要手工进行数据库的升级。


在网上搜得时候,大部分都说是缺少32位的包,包括metalink都是这样解释的,要装:
glibc-32bit-8.1-9
glibc-devel-32bit-8.1-9

如果核对安装文档提到的那些包,会发现不缺少什么包,而且版本肯定也比文档提到的都高,这让我疑惑好半天。
然后我又发现这两个包完全不知道哪里下载,如果我下载了最新版本的包,会提示和已有的冲突,不能安装。

最后才发现,其实我缺少的只是32位的glibc-devel,32位的glibc是已经安装过的。
[root@testdb lisa]# rpm -i glibc-devel-2.3.4-2.36.i386.rpm
warning: glibc-devel-2.3.4-2.36.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
[root@testdb lisa]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}  (%{ARCH})\n' binutils compat-db control-center gcc gcc-c++ glibc glibc-common glibc-devel gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio
binutils-2.15.92.0.2-22  (x86_64)
compat-db-4.1.25-9  (i386)
compat-db-4.1.25-9  (x86_64)
control-center-2.8.0-12.rhel4.5  (x86_64)
gcc-3.4.6-8  (x86_64)
gcc-c++-3.4.6-8  (x86_64)
glibc-2.3.4-2.36  (i686)
glibc-2.3.4-2.36  (x86_64)
glibc-common-2.3.4-2.36  (x86_64)
glibc-devel-2.3.4-2.36  (x86_64)
glibc-devel-2.3.4-2.36  (i386)        --原来缺少这个包
gnome-libs-1.4.1.2.90-44.1  (x86_64)
libstdc++-3.4.6-8  (i386)
libstdc++-3.4.6-8  (x86_64)
libstdc++-devel-3.4.6-8  (x86_64)
make-3.80-6.EL4  (x86_64)
pdksh-5.2.14-30.3  (x86_64)
sysstat-5.0.5-14.rhel4  (x86_64)
xscreensaver-4.18-5.rhel4.13  (x86_64)
libaio-0.3.105-2  (i386)

安装glibc-devel-2.3.4-2.36.i386.rpm之后,relink all就不提示错误了。

我卸载掉之前安装的oracle,重新安装,仍然会提示:
Exception String: Error in invoking target 'all_no_orcl ipc_g' of makefile '/home1/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/home1/oracle/oraInventory/logs/installActions2008-02-26_05-27-25PM.log' for details.

[oracle@testdb logs]$ rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}  (%{ARCH})\n' compat-libstdc++-33
compat-libstdc++-33-3.2.3-47.3  (i386)

这次缺少的是64位的compat-libstdc,我从网上下载了compat-libstdc++-33-3.2.3-55.fc5.x86_64.rpm,安装后问题解决。
[root@testdb lisa]# rpm -Uvh compat-libstdc++-33-3.2.3-55.fc5.x86_64.rpm
warning: compat-libstdc++-33-3.2.3-55.fc5.x86_64.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:compat-libstdc++-33    ########################################### [100%]
[root@testdb lisa]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}  (%{ARCH})\n' compat-libstdc++-33
compat-libstdc++-33-3.2.3-47.3  (i386)
compat-libstdc++-33-3.2.3-55.fc5  (x86_64)

我觉得是oracle的安装文档写的不够详细,环境检查的时候也没有发现问题,为什么会有的地方需要32位的包呢?

教训就是以前我们安装需求都只是说标准安装就可以了,以后安装64位的环境,一定记得要标明32、64的包都要。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/51862/viewspace-195954/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/51862/viewspace-195954/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值