Oracle 10g RAC Installer 故障之--Oracle软件安装无法发现集群

Oracle 10g RAC Installer 故障之--Oracle软件安装无法发现集群

系统环境:

操作系统: AIX 5300-08

集群软件: CRS 10.2.0.1

数据库:   Oracle 10.2.0.1

一、故障现象

       在安装CRS后,安装Oracle软件时失败,重新安装,删除了/u01/app/oracle下所有的目录,导致Oracle再次安装时不能识别集群环境。

查看Oracle软件安装索引目录:/u01/app/oracle/oraInventory,已经非CRS的集群环境了。

[[email protected]:/u01/app/oracle/oraInventory/ContentsXML]#vi inventory.xml 
"inventory.xml" 12 lines, 409 characters 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2005 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.1.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OUIHome1" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="1"/>
</HOME_LIST>
</INVENTORY>

正常的安装索引目录应该是:

[[email protected] app]#cd oracle/
[[email protected] oracle]#ls
admin         oraInventory  oradata       product
[[email protected] oracle]#cd oraInventory/
[[email protected] oraInventory]#ls
Contents                 logs                     orainstRoot.sh
ContentsXML              oraInst.loc              oui
install.platform         oraInstaller.properties  sessionContext.ser
[[email protected] oraInventory]#cd ContentsXML/
[[email protected] ContentsXML]#ls
comps.xml      inventory.xml  libs.xml

[[email protected] ContentsXML]#more inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2005 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.1.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OUIHome1" LOC="/u01/crs_1" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="aix211"/>
      <NODE NAME="aix212"/>
   </NODE_LIST>
</HOME>
<HOME NAME="OUIHome2" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="2">
   <NODE_LIST>
      <NODE NAME="aix211"/>
      <NODE NAME="aix212"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>

二、解决方法

在一个安装好CRS软件的主机上(aix211),将aix211主机的 inventory.xml文件上传到aix211主机,替代原来的inventory.xml文件

1、通过ftp上传:
[[email protected] ContentsXML]#pwd                 
/u01/app/oracle/oraInventory/ContentsXML
[[email protected] ContentsXML]#ls
comps.xml      inventory.xml  libs.xml
[[email protected] ContentsXML]#ftp 192.168.8.227
Connected to 192.168.8.227.
220 aix227 FTP server (Version 4.2 Sat Sep 8 09:49:58 CDT 2007) ready.
Name (192.168.8.227:root): ^C[[email protected] ContentsXML]#
[[email protected] ContentsXML]#
[[email protected] ContentsXML]#su - oracle
[YOU HAVE NEW MAIL]
[[email protected] W]$bash
[[email protected] ~]$cd /u01/app/oracle/oraInventory/
[[email protected] oraInventory]$ls
Contents                 logs                     orainstRoot.sh
ContentsXML              oraInst.loc              oui
install.platform         oraInstaller.properties  sessionContext.ser
[[email protected] oraInventory]$cd ContentsXML/
[[email protected] ContentsXML]$ls
comps.xml      inventory.xml  libs.xml
[[email protected] ContentsXML]$pwd
/u01/app/oracle/oraInventory/ContentsXML
[[email protected] ContentsXML]$ftp 192.168.8.227
Connected to 192.168.8.227.
220 aix227 FTP server (Version 4.2 Sat Sep 8 09:49:58 CDT 2007) ready.
Name (192.168.8.227:root): oracle
331 Password required for oracle.
Password:
230-Last login: Mon Nov 17 10:36:38 2014 on /dev/pts/2 from 192.168.8.248
230 User oracle logged in.
ftp> bin
200 Type set to I.
ftp> put inventory.xml
200 PORT command successful.
150 Opening data connection for inventory.xml.
226 Transfer complete.
666 bytes sent in 0.001007 seconds (645.9 Kbytes/s)
local: inventory.xml remote: inventory.xml
ftp> 

覆盖以前的inventory.xml:
[[email protected]:/home/oracle]$ls -l
total 8
-rw-r-----    1 oracle   oinstall        666 Nov 17 10:45 inventory.xml
[[email protected]:/home/oracle]$cp inventory.xml /u01/app/oracle/oraInventory/ContentsXML
[[email protected]:/home/oracle]$cd /u01/app/oracle/oraInventory/ContentsXML
[[email protected]:/u01/app/oracle/oraInventory/ContentsXML]$ls 
comps.xml      inventory.xml  libs.xml
[[email protected]:/u01/app/oracle/oraInventory/ContentsXML]$more inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2005 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.1.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OUIHome1" LOC="/u01/crs_1" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="aix211"/>
      <NODE NAME="aix212"/>
   </NODE_LIST>
</HOME>
<HOME NAME="OUIHome2" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="2">
   <NODE_LIST>
      <NODE NAME="aix211"/>
      <NODE NAME="aix212"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>

更新inventory.xml 中node的信息(将aix211,aix212更新为aix227,aix228)

《注意更新命令在图形界面下执行》

执行更新命令:
[[email protected]:/u01/database/Disk1]$/u01/crs_1/oui/bin/runInstaller -updateNOdeList CLUSTER_NODES=‘aix227,aix228‘ ORACLE_HOME=‘/u01/crs_1‘
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
‘UpdateNodeList‘ was successful.

更新成功:
[[email protected]:/u01/app/oracle/oraInventory/ContentsXML]$more inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2005 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.1.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OUIHome1" LOC="/u01/crs_1" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="aix227"/>
      <NODE NAME="aix228"/>
   </NODE_LIST>
</HOME>
<HOME NAME="OUIHome2" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="2">
   <NODE_LIST>
      <NODE NAME="aix211"/>
      <NODE NAME="aix212"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>

[[email protected]:/u01/database/Disk1]$/u01/crs_1/oui/bin/runInstaller -updateNOdeList CLUSTER_NODES=‘aix227,aix228‘ ORACLE_HOME=‘/u01/app/oracle/product/10.2.0/db_1‘
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
‘UpdateNodeList‘ was successful.

[[email protected]:/u01/app/oracle/oraInventory/ContentsXML]$more inventory.xml 
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 2005 Oracle Corporation. All rights Reserved -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>10.2.0.1.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OUIHome1" LOC="/u01/crs_1" TYPE="O" IDX="1" CRS="true">
   <NODE_LIST>
      <NODE NAME="aix227"/>
      <NODE NAME="aix228"/>
   </NODE_LIST>
</HOME>
<HOME NAME="OUIHome2" LOC="/u01/app/oracle/product/10.2.0/db_1" TYPE="O" IDX="2">
   <NODE_LIST>
      <NODE NAME="aix227"/>
      <NODE NAME="aix228"/>
   </NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>

更新错误信息:

三、重新安装Oracle软件

[[email protected]:/u01/database/Disk1/rootpre]$su -
root‘s Password:
readline: warning: turning on OPOST for terminal
readline: warning: turning on OPOST for terminal
[[email protected]:/]#cd /u01/database/Disk1/rootpre/
[[email protected]:/u01/database/Disk1/rootpre]#./rootpre.sh 
./rootpre.sh output will be logged in /tmp/rootpre.out_14-11-17.10:58:29
Kernel extension /etc/pw-syscall.64bit_kernel is loaded.
Unloading the existing extension: /etc/pw-syscall.64bit_kernel....
 Oracle Kernel Extension Loader for AIX 
       Copyright (c) 1998,1999 Oracle Corporation 
 Unconfigured the kernel extension successfully
 Unloaded the kernel extension successfully
Saving the original files in /etc/ora_save_14-11-17.10:58:29....
Copying new kernel extension to /etc....
Loading the kernel extension from /etc
 Oracle Kernel Extension Loader for AIX 
       Copyright (c) 1998,1999 Oracle Corporation 
 Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x41f8b00
 Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x41f8b00
The kernel extension was successfuly loaded.
Configuring Asynchronous I/O....
Asynchronous I/O is already defined
Configuring POSIX Asynchronous I/O....
Posix Asynchronous I/O is already defined
Checking if group services should be configured....
Please confirm your Oracle userid is a member of the group: hagsuser
Configuring HACMP group services socket for possible use by Oracle.
cp: /opt/ORCLcluster/lib/libskgxnr.a: Text file busy
cp: /opt/ORCLcluster/lib/libskgxnr.so: Text file busy
cp: /opt/ORCLcluster/lib32/libskgxnr.so: Text file busy

@至此,已经能正常识别为集群环境


时间: 2024-08-26 16:42:01

Oracle 10g RAC Installer 故障之--Oracle软件安装无法发现集群的相关文章

AIX 5.3下Oracle 10g RAC 启动故障--CRS启动失败

AIX 5.3下Oracle 10g RAC 启动故障--CRS启动失败 系统环境: 操作系统: AIX 5300-09 集群软件: CRS 10.2.0.1 数据库:   Oracle 10.2.0.1                     系统架构图 故障现象: 系统重启后,在节点上CRS 启动失败或CRS服务启动成功,CRS Resource无法ONLINE. [[email protected] racg] cat /etc/hosts 127.0.0.1              

Oracle 10g RAC启动与关闭命令

一. 检查共享设备 一般情况下, 存放OCR 和 Voting Disk 的OCFS2 或者raw 都是自动启动的. 如果他们没有启动,RAC 肯定是启动不了的. 1.1 如果使用ocfs2的,检查ocfs2 状态 /etc/init.d/o2cb status 在挂载之前,/etc/init.d/o2cb status 显示为Checking O2CB heartbeat: Not active. 在格式化和挂载文件系统之前,应验证 O2CB 在两个节点上均联机:O2CB 心跳当前没有 活动,

AIX 5.3 Install Oracle 10g RAC 错误集锦--磁盘I/O 故障

AIX 5.3  Install Oracle 10g RAC 错误集锦--磁盘I/O 故障 系统环境: 操作系统: AIX 5300-09 集群软件: CRS 10.2.0.1 数据库:   Oracle 10.2.0.1                      系统架构图                                        本机采用vg 并发(VG concurrent)作为共享的存储 故障现象: . 当在第一个node(aix211)执行root.sh时,被ha

RedHat EL5 安装Oracle 10g RAC之--Oracle软件安装

系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 三.安装Orancle 软件   在构建.配置完成CRS以后,就可以安装Oracle软件 安装需采用图形化方式,以Oracle用户的身份安装(在node1上): 注意:修改安装配置文件,增加redhat-5的支持 [[email protected] install]$ pwd /home/oracle/dat

AIX 5.3 Install Oracle 10g RAC 错误集锦--9i RAC present

AIX 5.3 Install Oracle 10g RAC 错误集锦--9i RAC Present 系统环境: 操作系统: AIX 5300-08 集群软件: CRS 10.2.0.1 数据库:   Oracle 10.2.0.1                     系统架构图 故障现象: 解决方法: [[email protected] tmp]# cat /etc/oratab # This file is used by ORACLE utilities.  It is creat

RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2)

RedHat EL5 安装Oracle 10g RAC之--系统环境配置(2) 系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 6.通过SSH配置主机间的信任关系 node1: [[email protected] ~]$ mkdir .ssh [[email protected] ~]$ ssh-keygen -t rsa Generating publi

oracle 10g rac 修改public ip、vip和private ip

oracle 10g rac 修改public ip.vip和private ip [TOC] 1.IP地址规划 Hostname 当前IP 修改后IP Public IP node1 192.168.56.20 192.168.100.20 Public IP node2 192.168.56.21 192.168.100.21 VIP node1-vip 192.168.56.98 192.168.100.98 VIP node2-vip 192.168.56.99 192.168.100.

Solaris 10(x86)构建Oracle 10g RAC之--配置系统环境(1)

系统环境: 操作系统:Solaris 10(x86-64) Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 一.操作系统环境 1.网络配置(在所有节点) [[email protected]:/]# cat /etc/inet/ipnodes  # # Internet host table # ::1     localhost        127.0.0.1       localhost   

Oracle 10g RAC 升级(CPU Update)之--升级CRS

Oracle 10g RAC 升级(CPU Update)之--升级CRS 系统环境: 操作系统:RedHat EL5 Cluster: Oracle CRS 10.2.0.1.0 Oracle:  Oracle 10.2.0.1.0 如图所示:RAC 系统架构 案例: 本案例是从 Oracle 10.2.0.1.0 升级到10.2.0.4.0,作为Oracle的补丁升级(CPU Update). 升级步骤:   1.CRS 升级(对于CRS 升级可以采用滚动升级,本案例采用了滚动升级)   2