天天看點

在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