PRCT-1302 the OCR has an invalid ip address

1. 报错信息

an internal error occurred within cluster verification framework unable to obtain network interface list from oracle clusterware PRCT-1302 the OCR has an invalid ip address format

11.2.0.3OracleRAC软件图形化安装检测报错

在群集验证框架内发生的内部错误无法从Oracle CuultWorksPRCT-1302获得网络接口列表。OCR具有无效的IP地址格式。

--文档借鉴LOB

http://debugo.com/%E5%88%A9%E7%94%A8oifcfg%E4%BF%AE%E5%A4%8D%E9%94%99%E8%AF%AF%E7%9A%84%E7%BD%91%E5%8D%A1%E9%85%8D%E7%BD%AE/

2. 环境描述

--本次安装是VMware虚拟机上安装一套11.2.0.3版本的RAC,网卡配置节点一eth0 public/eth1 priv

节点二是eth2/eth3,想尝试一下安装是否报错,当然两个节点的Public/priv都可以正常通讯,只是网卡不同而已

--在本次安装中,图形化安装GI成功,且服务正常,在图形化安装Oracle软件时,报错如上

---解决思路- 因为本次测试很明确是网卡不同造成的,进行网卡修改操作即可

--由于解决时遇到操作有误,很多不必要的步骤进行省略

3. 操作流程

3.1修改操作系统物理网卡

--查询集群的网络、网卡配置

jx1:/home/oracle$ oifcfg getif

*  192.168.60.0  global  public

*  10.0.0.0  global  cluster_interconnect

Only in OCR: eth0  192.168.60.0  global  public

Only in OCR: eth1  10.0.0.0  global  cluster_interconnect

PRIF-29: Warning: wildcard in network parameters can cause mismatch among GPnP profile, OCR, and system  --发现看起来是正常的,但事实上节点二并没有网卡eth0/eth1

--搜索信息

网上搜索,大部分问题在于私有网段、公有网段分错了

[root@vmac1 ~]# oifcfg delif -global */172.168.1.0

[root@vmac1 ~]# oifcfg setif -global eth1/172.168.1.0:cluster_interconnect

[root@vmac1 ~]# oifcfg delif -global */192.168.1.0

[root@vmac1 ~]# oifcfg setif -global eth0/192.168.1.0:public

--当前环境

本次是由于节点一、二的网卡不同导致

VMWARE虚拟机,节点一网卡eth0/eth1、 节点二网卡eth2/eth3

jx2:/home/oracle$ /sbin/ifconfig eth2

jx2:/home/oracle$ /sbin/ifconfig eth3

--对当前环境进行修改网卡网卡及配置

[root@jx2 network-scripts]# cat ifcfg-eth0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=static

HWADDR=00:0C:29:8F:B5:EA

IPADDR=192.168.60.101

PREFIX=24

GATEWAY=192.168.60.10

[root@jx2 network-scripts]# cat ifcfg-eth1

DEVICE=eth1

ONBOOT=yes

HWADDR=00:0C:29:8F:B5:E0

IPADDR=10.0.0.101

IPV4_FAILURE_FATAL=yes

NAME="System eth1"

--重启操作并不能解决问题,Oracle修改网卡,除了物理网卡配置正常外,还需要两个地方需要配置,网卡启动读取文件及OCR Profile.xml初始化文件

--重启系统,集群网络未好转

jx1:/u01/app/11.2.0/grid/bin$ oifcfg getif

*  192.168.60.0  global  public

*  10.0.0.0  global  cluster_interconnect

Only in OCR: eth0  192.168.60.0  global  public

Only in OCR: eth1  10.0.0.0  global  cluster_interconnect

PRIF-29: Warning: wildcard in network parameters can cause mismatch among GPnP profile, OCR, and system

3.2修改Oracle读取网卡配置文件

--还是报错,查询集群网卡绑定配置文件

--节点一   正常

jx1:/u01/app/11.2.0/grid/bin$ cat /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a5:20:22", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a5:20:2c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

--节点二   异常

[root@jx2 ~]#  cat /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a5:20:2c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8f:b5:ea", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8f:b5:e0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"

--发现节点二的集群网卡配置文件有误,进行编辑后,如下

[root@jx2 ~]# cat /etc/udev/rules.d/70-persistent-net.rules--添加当前主机的HWaddr地址

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0C:29:8F:B5:EA", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0C:29:8F:B5:E0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

--重启集群验证   还是报错

jx1:/u01/app/11.2.0/grid/bin$ ./crsctl stop cluster -all

jx1:/u01/app/11.2.0/grid/bin$ ./crsctl start cluster -all

--

jx1:/u01/app/11.2.0/grid/bin$ oifcfg getif

*  192.168.60.0  global  public

*  10.0.0.0  global  cluster_interconnect

Only in OCR: eth0  192.168.60.0  global  public

Only in OCR: eth1  10.0.0.0  global  cluster_interconnect

PRIF-29: Warning: wildcard in network parameters can cause mismatch among GPnP profile, OCR, and system

3.3修改Oracle集群初始化profile.xml文件

--说明:此文件路径

/u01/app/11.2.0/grid/gpnp/jx1/profiles/peer

profile.xml --文件名称

--此文件,可以vi编辑,但是重启集群不生效,因此必须使用oracle集群任何的修改命令才OK

--修改网卡001 --此操作步骤有问题,作为操作记录

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg setif -global eth0/192.168.60.0:public

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg setif -global eth1/10.0.0.0:cluster_interconnect

jx1:/u01/app/11.2.0/grid/bin$ oifcfg getif

*  192.168.60.0  global  public

*  10.0.0.0  global  cluster_interconnect

eth0  192.168.60.0  global  public

eth1  10.0.0.0  global  cluster_interconnect

Only in OCR: eth0  192.168.60.0  global  cluster_interconnect,public

PRIF-51: interface [eth0] is set to both public and cluster_interconnect

PRIF-29: Warning: wildcard in network parameters can cause mismatch among GPnP profile, OCR, and system

--由于添加网卡过程中,可能存在异常,报如上错误,查询Profile文件,发现存在多个网卡配置文件

--使用备份的Profile.xml文件进行还原操作

--修改网卡002-- 正确操作步骤 --修改前先备份

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg setif -global eth0/192.168.60.0:public

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg setif -global eth1/10.0.0.0:cluster_interconnect

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg getif

*  192.168.60.0  global  public

*  10.0.0.0  global  cluster_interconnect

eth1  10.0.0.0  global  cluster_interconnect

eth0  192.168.60.0  global  public

PRIF-29: Warning: wi

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg delif -global */192.168.60.0

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg delif -global */10.0.0.0

[root@jx1 peer]# /u01/app/11.2.0/grid/bin/oifcfg getif

eth1  10.0.0.0  global  cluster_interconnect

eth0  192.168.60.0  global  public

--当使用delif时,可能存在profile.xml文件未删除情况,可以还原profile.xml文件,再次尝试,如还不行,则重启集群后,在进行修改

--RAC维护命令

--停止、启动集群

./crsctl stop cluster -all

./crsctl start cluster -all

--查询集群资源状态

./crsctl stat res -t

--集群高可用资源状态监测

jx1:/u01/app/11.2.0/grid/bin$ ./crsctl check has

jx1:/u01/app/11.2.0/grid/bin$ ./crsctl check crs

PRCT-1302 the OCR has an invalid ip address的更多相关文章

  1. Java Regex match IP address

    Reference: [1] https://www.mkyong.com/regular-expressions/how-to-validate-ip-address-with-regular-ex ...

  2. Java微信开发_Exception_02_"errcode":40164,"errmsg":"invalid ip 61.172.68.219, not in whitelist hint

    ip查询网址: http://www.ip.cn/ 一.异常现象 今天开始做微信开发,在办公室时能正常获取access_token,晚上回家之后获取access_token时却报出下列错误信息: {& ...

  3. 获取access_token时却报出下列错误信息:{"errcode":40164,"errmsg":"invalid ip 61.172.68.219, not in whitelist hint: [KJZfAa0644e575]"},以及一些其他报错

    获取access_token时却报出下列错误信息:{"errcode":40164,"errmsg":"invalid ip 61.172.68.21 ...

  4. 微信开发_Exception_02_"errcode":40164,"errmsg":"invalid ip 61.172.68.219, not in whitelist hint

    ip查询网址: http://www.ip.cn/ 一.异常现象 今天开始做微信开发,在办公室时能正常获取access_token,晚上回家之后获取access_token时却报出下列错误信息: {& ...

  5. [LeetCode] Validate IP Address 验证IP地址

    In this problem, your job to write a function to check whether a input string is a valid IPv4 addres ...

  6. oracle 11g RAC安装节点二执行结果错误CRS-5005: IP Address: 192.168.1.24 is already in use in the network

    [root@testdb11b ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInvento ...

  7. Leetcode: Validate IP Address

    In this problem, your job to write a function to check whether a input string is a valid IPv4 addres ...

  8. [Swift]LeetCode468. 验证IP地址 | Validate IP Address

    Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither ...

  9. Get Region Information from IP Address with Taobao API

    通过淘宝的API "http://ip.taobao.com/service/getIpInfo.php?ip=*.*.*.*" 来获得你要查询的IP地址的国家,地区,城市,ISP ...

随机推荐

  1. 十七、Spring框架(IOC/DI)

    一.Spring框架 Spring是一个基于IOC和AOP的结构J2EE系统的框架. 1.IOC反转控制是Spring的基础(Inversion Of Control).也就是说创建对象由以前的程序员 ...

  2. RocketMQ安装教程

    1.下载 http://mirror.bit.edu.cn/apache/rocketmq/ 2.安装 .tar.gz cd alibaba-rocketmq/bin chmod u+x * 3.配置 ...

  3. linux查看主机最后启动时间

    1.使用who查看最后重启时间 who -b 2.使用last查看近几次重启时间 last reboot 第一条即为最后一次重启日期 last其实是查询用户的登录记录,reboot是一个伪用户:也就是 ...

  4. maven打包上传到本地中央库

    pom文件中添加插件如下 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins< ...

  5. 文件操作_26th,Nov 2018

    文件:操作系统问应用程序或用户提供一种操作硬盘的虚拟单位 --文件时操作系统提供的虚拟单位 --应用程序或用户对文件的读写操作都是向操作系统发送指令 --文件包括文本文件和二进制文件 为何要用文件:文 ...

  6. python xlrd使用

    python xlrd使用 1● xlrd安装   管理员模式           success 2● 引用 import xlrd    

  7. Unity中物体碰撞后去掉相互之间的反弹力

    最近自制了一个的角色控制器(没有重力的角色)时发现,角色碰撞到墙壁之后会有一个小小的反弹力导致角色有一个微弱的反弹位移,这样给人一种不好的感觉.研究了一下,除了限制坐标轴( Rigidbody---C ...

  8. 数据库-->记录操作

    一.概览 MySQL数据操作: DML 在MySQL管理软件中,可以通过SQL语句中的DML语言来实现数据的操作,包括 使用INSERT实现数据的插入 UPDATE实现数据的更新 使用DELETE实现 ...

  9. hMailServer 配置

    本例记录如何通过  [hMailServer] 在私有服务器中搭建邮件服务器 1.下载安装包 版本: hMailServer-5.6.7-B2425.exe (支持使用内置数据库) , 安装时,设置管 ...

  10. 踩坑 net core

    webclient   可以替换为 HttpClient 下载获取url的内容: 证书: https://stackoverflow.com/questions/40014047/add-client ...