暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

linux 7 安装11.2.0.2

原创 清醒的沉沦 2024-05-23
199

linux 7 安装11.2.0.2 碰到的两个问题
此环境之前安装过11.2.0.4所以检查的时候发现的lib问题全部忽略了,直接进行安装的,安装过程中出现了下面两个问题:

我的操作系统环境:
[root@test software]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.6 (Maipo)

数据库软件:
Release 11.2.0.1.0
安装日志位置:
/u02/app/oraInventory/logs/installActions2024-05-22_10-09-37PM.log

数据库软件安装到83%左右,lib库的时候,报错ins_ctx.mk 有问题
检查日志发现:
INFO: //usr/lib64/libstdc++.so.5: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status
INFO: make: *** [ctxhx] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/u03/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk'. See '/u02/app/oraInventory/logs/installActions2024-05-22_10-09-37PM.log' for details.
我的glibc
[root@test software]# rpm --all --query --queryformat "%{NAME}-%{VERSION}-%{RELEASE}-(%{ARCH})\n" | grep glib
glibc-devel-2.17-317.el7-(x86_64)
glibc-static-2.17-317.el7-(x86_64)
glib2-2.56.1-2.el7-(x86_64)
dbus-glib-0.100-7.el7-(x86_64)
glibc-common-2.17-317.el7-(x86_64)
glibc-headers-2.17-317.el7-(x86_64)
glibc-2.17-317.el7-(i686)
glibc-2.17-317.el7-(x86_64)


怀疑是glibc的问题,解决办法一般来说有两种1 glibc降级 2 安装的时候指定高版本的,查找了网上的解决办法:
修改/u03/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk 文件:
修改后的文件部分内容:
ctxhx: $(CTXHXOBJ)
-static $(LINK_CTXHX) $(CTXHXOBJ) $(INSO_LINK) /usr/lib64/libc.a
保存后retry 继续安装,接下来就是经常见的了,ins_emagent.mk
报错信息:
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'agent nmhs' of makefile '/u03/app/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk'. See '/u02/app/oraInventory/logs/installActions2024-05-22_10-09-37PM.log' for details.
Exception Severity: 1
INFO: Building Agent Libraries
INFO: Building Agent Libraries
INFO: The output of this make operation is also available at: '/u03/app/oracle/product/11.2.0/dbhome_1/install/make.log'
INFO:

修改如下位置:
$(SYSMANBIN)emdctl:
$(MK_EMAGENT_NMECTL) -lnnz11
保存后retry 继续安装

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论