在RedHat AS 4下安装Oracle 10G RAC遇到的问题集
问题 1:无法激活以太网设备。
错误消息为“Cannot activate network device eth0!Device eth0 has different MAC address than expected, ignoring.”
解决方法:
“ifconfig”报告的 MAC 地址与 /etc/sysconfig/network-scripts/ifcfg-eth0 不匹配。您可以使用新的 MAC 地址更新文件,或者只需通过 system-config-network 工具探测新的 MAC 地址。
问题 2:无法生成 OCFS2 配置文件。
在尝试生成 OCFS2 配置文件时,出现错误消息“Could not start cluster stack.This must be resolved before any OCFS2 filesystem can be mounted”。
解决方法:
以 root 用户身份(而非 oracle 用户身份)执行 ocfs2console。
问题 3:无法在远程节点上安装 Oracle 集群件或 Oracle 数据库软件。
在 Oracle 集群件软件安装期间,出现错误消息“/bin/tar:. /inventory/Components21/oracle.ordim.server/10.2.0.1.0:time stamp 2006-11-04 06:24:04 is 25 s in the future”。
解决方法:
通过安装 VMware 工具来同步客户 OS 与主机 OS 的时间,并在 /boot/grub/grub.conf 中包含选项“clock=pit nosmp noapic nolapic”。请参阅第 3 部分,以获得更多信息。
问题 4:无法挂载 OCFS2 文件系统。
在尝试挂载 ocfs2 文件系统时,出现错误消息“mount.ocfs2:Transport endpoint is not connected while mounting”。
解决方法:
执行 /usr/bin/system-config-securitylevel 以禁用防火墙。
问题 5:无法启动 ONS 资源。
当 VIPCA 尝试启动 ONS 应用程序资源时,出现错误消息“CRS-0215:Could not start resource ‘ora.rac2.ons’”。
解决方法:
ONS 尝试访问本地主机,但无法解析 IP 地址。将以下项添加到 /etc/hosts 中。
127.0.0.1 localhost
问题 6:配置ocfs2 时出错, 不能ADD NODE
# ocfs2console
Configure Nodes --> Add --> 输入NODE名和IP --> OK --> Apply
出现如下错误:
o2cb_ctl: Unable to access cluster service while creating node
Could not add node node1
解决方法:
将/etc/ocfs2/下的不正确的cluster.conf文件删掉,重新用ocfs2console 配置
问题 7:Loading module "oracleasm": Unable to load module "oracleasm"[FAILED]
# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: [ OK ]
Loading module "oracleasm": Unable to load module "oracleasm"[FAILED]
解决方法:
出现这个问题可能有2方面的原因:
1. 下载的asm和linux内核不一致,这时候需要下载相应的asm来安装,也可以升级linux内核
2. 查询/lib/modules/2.6.9-22.ELsmp/kernel/drivers/addon/oracleasm下是否有oracleasm.ko,如果有,还出现这个问题需要修改/etc/SElinux/config文件里面的:
SELINUX=enforcing -----> SELINUX=disabled
或者:
Applications -> System Settings -> Security Level -> Security Level Configuration -> SELinux tab
and the unclick the 'Enabled' box.
重启系统,OK
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人