Oracle RAC错误之--oifcfg错误案例

系统环境:

操作系统:RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle:  Oracle 11.2.0.1.0


如图所示:RAC 系统架构

错误现象:

[[email protected] ~]# oifcfg delif -global eth0/192.168.6.0:public

PRIF-26: Error in update the profiles in the cluster

RAC修改ip信息出错!

解决方法:

1、检查网络配置

[[email protected] ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 08:00:27:F4:11:8F  
          inet addr:192.168.8.231  Bcast:192.168.8.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fef4:118f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18175 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2965 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1653589 (1.5 MiB)  TX bytes:460593 (449.7 KiB)

[[email protected] ~]# cat /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1                localhost.localdomain localhost
192.168.8.231            zhangqn1
192.168.8.232            zhangqn2
10.10.10.101             zhangqn1-priv
10.10.10.102             zhangqn2-priv
192.168.8.235            zhangqn1-vip
192.168.8.236            zhangqn2-vip
192.168.8.230            zhangqn-scan

2、检查RAC配置

[[email protected] ~]# ocrcheck

Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2936
         Available space (kbytes) :     259184
         ID                       : 1655283749
         Device/File Name         :  +OCR_VOTE
                                    Device/File integrity check succeeded
                                    Device/File not configured
                                    Device/File not configured
                                    Device/File not configured
                                    Device/File not configured
         Cluster registry integrity check succeeded
         Logical corruption check succeeded

[[email protected] ~]# crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   6ba76ea8b6c04f9cbfeeaa13e9d6fab0 (ORCL:OCR_VOTE1) [OCR_VOTE]
 2. ONLINE   7b8307d585724fd8bfe3d1b415c2c0aa (ORCL:OCR_VOTE2) [OCR_VOTE]
 3. ONLINE   619d624c79d34fbdbfe2bb4d0cf488c2 (ORCL:OCR_VOTE3) [OCR_VOTE]
Located 3 voting disk(s).

[[email protected] ~]# crs_stat -t

Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type OFFLINE   OFFLINE               
ora.DG1.dg     ora....up.type OFFLINE   OFFLINE               
ora.DG2.dg     ora....up.type OFFLINE   OFFLINE               
ora.DG3.dg     ora....up.type OFFLINE   OFFLINE               
ora.DG4.dg     ora....up.type OFFLINE   OFFLINE               
ora....ER.lsnr ora....er.type OFFLINE   OFFLINE               
ora....N1.lsnr ora....er.type OFFLINE   OFFLINE               
ora....VOTE.dg ora....up.type ONLINE    ONLINE    zhangqn1    
ora.RCY.dg     ora....up.type OFFLINE   OFFLINE               
ora.asm        ora.asm.type   ONLINE    ONLINE    zhangqn1    
ora.eons       ora.eons.type  ONLINE    ONLINE    zhangqn1    
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    OFFLINE               
ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE               
ora.ons        ora.ons.type   ONLINE    ONLINE    zhangqn1    
ora.proddb.db  ora....se.type OFFLINE   OFFLINE               
ora....ry.acfs ora....fs.type ONLINE    ONLINE    zhangqn1    
ora.scan1.vip  ora....ip.type OFFLINE   OFFLINE               
ora....SM1.asm application    ONLINE    ONLINE    zhangqn1    
ora....N1.lsnr application    OFFLINE   OFFLINE               
ora....qn1.gsd application    OFFLINE   OFFLINE               
ora....qn1.ons application    ONLINE    ONLINE    zhangqn1    
ora....qn1.vip ora....t1.type OFFLINE   OFFLINE               
ora....SM2.asm application    ONLINE    ONLINE    zhangqn2    
ora....N2.lsnr application    OFFLINE   OFFLINE               
ora....qn2.gsd application    OFFLINE   OFFLINE               
ora....qn2.ons application    ONLINE    ONLINE    zhangqn2    
ora....qn2.vip ora....t1.type OFFLINE   OFFLINE

发现ons服务仍处于online状态,ons和RAC网络配置服务有关。

附注:

Oracle Notification Service,分主节点ONS和子节点ONS,就是Oracle分布式集群系统中各服务器上发布和上报因为用户手工初始化、依赖服务失败、运行失败,自动重启等原因产生的"UP,DOWN,Not_restart,Restart_failed,Node_Down,preConn_Up,preConn_Down"事件的进程,是构成高可用性的心跳服务。

ps -ef |grep ons只能看到ONS服务是否在运行中,onsctl ping才能确认ORC服务运行是否正常。

4、停止ons服务  

[[email protected] ~]# crs_stat |grep ons

NAME=ora.eons
TYPE=ora.eons.type
NAME=ora.ons
TYPE=ora.ons.type
NAME=ora.zhangqn1.ons
NAME=ora.zhangqn2.ons
[[email protected] ~]# crs_stop -f ora.zhangqn1.ons
Attempting to stop `ora.ons` on member `zhangqn1`
Stop of `ora.ons` on member `zhangqn1` succeeded.
[[email protected] ~]# crs_stop -f ora.zhangqn2.ons
Attempting to stop `ora.ons` on member `zhangqn2`
Stop of `ora.ons` on member `zhangqn2` succeeded.

[[email protected] ~]# crs_stat -t

Name           Type           Target    State     Host        
------------------------------------------------------------
ora.DATA.dg    ora....up.type OFFLINE   OFFLINE               
ora.DG1.dg     ora....up.type OFFLINE   OFFLINE               
ora.DG2.dg     ora....up.type OFFLINE   OFFLINE               
ora.DG3.dg     ora....up.type OFFLINE   OFFLINE               
ora.DG4.dg     ora....up.type OFFLINE   OFFLINE               
ora....ER.lsnr ora....er.type OFFLINE   OFFLINE               
ora....N1.lsnr ora....er.type OFFLINE   OFFLINE               
ora....VOTE.dg ora....up.type ONLINE    ONLINE    zhangqn1    
ora.RCY.dg     ora....up.type OFFLINE   OFFLINE               
ora.asm        ora.asm.type   ONLINE    ONLINE    zhangqn1    
ora.eons       ora.eons.type  ONLINE    ONLINE    zhangqn1    
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    OFFLINE               
ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE               
ora.ons        ora.ons.type   OFFLINE   OFFLINE               
ora.proddb.db  ora....se.type OFFLINE   OFFLINE               
ora....ry.acfs ora....fs.type ONLINE    ONLINE    zhangqn1    
ora.scan1.vip  ora....ip.type OFFLINE   OFFLINE               
ora....SM1.asm application    ONLINE    ONLINE    zhangqn1    
ora....N1.lsnr application    OFFLINE   OFFLINE               
ora....qn1.gsd application    OFFLINE   OFFLINE               
ora....qn1.ons application    OFFLINE   OFFLINE               
ora....qn1.vip ora....t1.type OFFLINE   OFFLINE               
ora....SM2.asm application    ONLINE    ONLINE    zhangqn2    
ora....N2.lsnr application    OFFLINE   OFFLINE               
ora....qn2.gsd application    OFFLINE   OFFLINE               
ora....qn2.ons application    OFFLINE   OFFLINE               
ora....qn2.vip ora....t1.type OFFLINE   OFFLINE

5、重新通过oifcfg修改网络配置

[[email protected] ~]# oifcfg setif -global eth0/192.168.8.0:public
[[email protected] ~]# ifcfg getif
Missing IP address argument.
[[email protected] ~]# oifcfg getif
eth0  192.168.6.0  global  public
eth1  10.10.10.0  global  cluster_interconnect
eth0  192.168.8.0  global  public
[[email protected] ~]# oifcfg delif -global eth0/192.168.6.0
[[email protected] ~]# oifcfg getif
eth1  10.10.10.0  global  cluster_interconnect
eth0  192.168.8.0  global  public

@配置成功!

时间: 2024-08-25 10:59:04

Oracle RAC错误之--oifcfg错误案例的相关文章

oracle rac 在完成安装错误。

今天是2014.05.26,离别N继续使用长今博客.成交一直忙于最近.该条目加上家庭网络还没有缴纳会费,我开始变得不太安全.学习是一个需要冷静情绪.心脏的声音是. 由于改变笔记本,特别需要重新建立Rac周边环境,几篇日志整理一下.我在安装过程中遇到的错误.可能曾经我整理过其它的问题.而这是我本次遇到的. 实验环境: virtual box+ Oracle 11.2.0.4  +  ASM (Openfiler)+ oracle linux 6.4 问题一:在virtual box克隆系统的时候提

Oracle Rac 11.2.0.3迁移OCR和VOTEDISK

环境:AIX7.1+Oracle Rac 11.2.0.3 迁移描述:今天在装Oracle Rac的时候,错误的将500G的数据盘用作OCRDG了,遂后续比较麻烦,只能讲ocr和votedisk迁移到新建的OCRDG上,并把DATADG删除并格式化该盘.(OCRDG为normal 冗余) 操作如下: [email protected]:/home/grid>/oraapp/grid/gridhome/bin/ocrcheck Status of Oracle Cluster Registry i

Oracle 11gR2 RAC 安装Grid Infrastructure错误

Oracle 11gR2 RAC 安装Grid Infrastructure错误 系统环境: 操作系统:RedHat EL5 Cluster: Oracle GI(Grid Infrastructure) Oracle:  Oracle 11.2.0.1.0 如图所示:RAC 系统架构   对于Oracle 11G构建RAC首先需要构建GI(Grid Infrastructure)的架构 错误现象: 报:node2 检测用户信任关系错误,node2安装目录不可访问! 手工检测,node2与nod

oracle rac 常见安装、管理错误

1. 安装CRS失败,或执行root.sh报错,可能原因: (1) 节点间的时间不同步,解决方法:使用ntp服务 (2) Linux下启用了默认的防火墙,导致执行root.sh报错: Failure at final check of Oracle CRS stack. 10 解决方法:禁用iptables ,注释/etc/pam.d/other ; # service iptables stop; # chkconfig iptables off. (3) 裸设备的权限问题,可能因为操作系统重

中断ORACLE数据库关闭进程导致错误案例

昨晚下班的时候,我准备关闭本机的虚拟机上的ORACLE数据库后准备下班,但是由于我SecureCRT开了多个窗口,结果一不小心,疏忽之下在一个生产服务器上执行了shutdown immediate命令,大概过了6到7秒,发现该命令还没有响应,我才发现我这个命令执行错了服务器.一惊之下,想都没有想直接CTRL+C想中断这个操作. 如下所示: SQL> shutdown immeidate; SP2-0717: illegal SHUTDOWN option SQL> shutdown immed

ETL技术工具kettle入门笔记(一) 之kettle连接oracle rac 报listener does not currently know of sid错误的解决

1 问题现象: 之前做的kettle 连接某个oracle数据库 做表抽取 脚本的表输入信息如下图: 执行时(脚本上传到linux机器 用sh命令执行的)表输入报的错误信息: 但是在机器里面用sqlplus 命令登录却可以成功: 2 解决过程: 出现问题后,一开始联系  源数据系统 厂家 看是不是他们那边数据库做了 限制. 经过他们查看,他们那边没有做限制.这边也查不到原因 后来参照别的系统 发现 134.64.197.198 是rac一个节点的浮动地址  对应的sid是 iprandb1.而i

oracle11.2.0.3.0 RAC aix7100-02-02-1316 crs-4124,crs-4000错误问题解决

原因: 在测试机上首次安装oracle11G RAC,安装完成后正常使用,过了一段时间后重启节点1测试是否可以自启动,解决节点1没有自启动,手工启动也无法启动 过程: 在节点一上运行: # pwd /u01/grid/bin # ./crsctl start crs CRS-4124: Oracle High Availability Services startup failed. CRS-4000: Command Start failed, or completed with errors

Oracle数据泵(Data Dump)错误汇集

Oracle数据泵(Data Dump)使用过程当中经常会遇到一些奇奇怪怪的错误案例,下面总结一些自己使用数据泵(Data Dump)过程当中遇到的问题以及解决方法.都是在使用过程中遇到的问题,以后陆续遇到数据泵(Data Dump)的错误案例,都会补充在此篇. 错误案例1: ORA-39065: DISPATCH 中出现意外的主进程异常错误:ORA-44002: 对象名无效 Windows 平台错误提示: Linux平台错误提示 解决方法: [[email protected] admin]$

Oracle中字符缓冲区相关错误

一.buffer overflow,limit of 10000 bytesdeclarebeginfor c in 1..1000 loop dbms_output.put_line('测试测试测试');end loop;end;缓冲区默认大小为10000 bytes.循环1000次就一共有6000个汉字,也就是12000 bytes.在SQL窗口的输出标签页中设置缓冲区大小. 二.数字或值错误:字符串缓冲区太小declarev varchar2(100):='';beginfor c in