Oracle rac listener启动出错

问题症状
在二节点启动一节点监听出错
[quote][oracle@racsvr2 bdump]$ srvctl start listener -n racsvr1
CRS-0215: Could not start resource 'ora.racsvr1.LISTENER_RACSVR1.lsnr'.[/quote]
查看crs资源状态,发现一节点vip启动在二节点上
[quote]# su - oracle
[oracle@racsvr1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application ONLINE OFFLINE
ora....R1.lsnr application ONLINE OFFLINE
ora....vr1.gsd application ONLINE ONLINE racsvr1
ora....vr1.ons application ONLINE ONLINE racsvr1
[color=red]ora....vr1.vip application ONLINE ONLINE racsvr2 [/color]
ora....SM2.asm application ONLINE ONLINE racsvr2
ora....R2.lsnr application ONLINE ONLINE racsvr2
ora....vr2.gsd application ONLINE ONLINE racsvr2
ora....vr2.ons application ONLINE ONLINE racsvr2
ora....vr2.vip application ONLINE ONLINE racsvr2 [/quote]
查看二节点网卡情况,crs状态反映真实
[quote]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0C:29:1B:8B:60
inet addr:130.36.21.3 Bcast:130.36.21.255 Mask:255.255.255.0
inet6 addr: fec0::e:20c:29ff:fe1b:8b60/64 Scope:Site
inet6 addr: 2002:8224:1501:e:20c:29ff:fe1b:8b60/64 Scope:Global
inet6 addr: fe80::20c:29ff:fe1b:8b60/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3122 errors:0 dropped:0 overruns:0 frame:0
TX packets:3033 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:444832 (434.4 KiB) TX bytes:505264 (493.4 KiB)
Interrupt:67 Base address:0x2424

eth0:1 Link encap:Ethernet HWaddr 00:0C:29:1B:8B:60
inet addr:130.36.21.222 Bcast:130.36.21.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:67 Base address:0x2424

eth0:2 Link encap:Ethernet HWaddr 00:0C:29:1B:8B:60
inet addr:130.36.21.111 Bcast:130.36.21.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:67 Base address:0x2424

eth1 Link encap:Ethernet HWaddr 00:0C:29:1B:8B:6A
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fec0::e:20c:29ff:fe1b:8b6a/64 Scope:Site
inet6 addr: 2002:8224:1501:e:20c:29ff:fe1b:8b6a/64 Scope:Global
inet6 addr: fe80::20c:29ff:fe1b:8b6a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32620 errors:0 dropped:0 overruns:0 frame:0
TX packets:26075 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31691043 (30.2 MiB) TX bytes:19874273 (18.9 MiB)
Interrupt:75 Base address:0x24a4

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:20619 errors:0 dropped:0 overruns:0 frame:0
TX packets:20619 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13941404 (13.2 MiB) TX bytes:13941404 (13.2 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) [/quote]
一节点重新分配vip资源
[quote]# ./crs_relocate ora.racsvr1.vip -c racsvr1
Attempting to stop `ora.racsvr1.vip` on member `racsvr2`
Stop of `ora.racsvr1.vip` on member `racsvr2` succeeded.
Attempting to start `ora.racsvr1.vip` on member `racsvr1`
Start of `ora.racsvr1.vip` on member `racsvr1` succeeded.
# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application ONLINE OFFLINE
ora....R1.lsnr application ONLINE OFFLINE
ora....vr1.gsd application ONLINE ONLINE racsvr1
ora....vr1.ons application ONLINE ONLINE racsvr1
ora....vr1.vip application ONLINE ONLINE racsvr1
ora....SM2.asm application ONLINE ONLINE racsvr2
ora....R2.lsnr application ONLINE ONLINE racsvr2
ora....vr2.gsd application ONLINE ONLINE racsvr2
ora....vr2.ons application ONLINE ONLINE racsvr2
ora....vr2.vip application ONLINE ONLINE racsvr2 [/quote]
接下来启动资源正常
[quote]# srvctl start asm -n racsvr1
# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application ONLINE ONLINE racsvr1
ora....R1.lsnr application ONLINE OFFLINE
ora....vr1.gsd application ONLINE ONLINE racsvr1
ora....vr1.ons application ONLINE ONLINE racsvr1
ora....vr1.vip application ONLINE ONLINE racsvr1
ora....SM2.asm application ONLINE ONLINE racsvr2
ora....R2.lsnr application ONLINE ONLINE racsvr2
ora....vr2.gsd application ONLINE ONLINE racsvr2
ora....vr2.ons application ONLINE ONLINE racsvr2
ora....vr2.vip application ONLINE ONLINE racsvr2
# srvctl start listener -n racsvr1
# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....SM1.asm application ONLINE ONLINE racsvr1
ora....R1.lsnr application ONLINE ONLINE racsvr1
ora....vr1.gsd application ONLINE ONLINE racsvr1
ora....vr1.ons application ONLINE ONLINE racsvr1
ora....vr1.vip application ONLINE ONLINE racsvr1
ora....SM2.asm application ONLINE ONLINE racsvr2
ora....R2.lsnr application ONLINE ONLINE racsvr2
ora....vr2.gsd application ONLINE ONLINE racsvr2
ora....vr2.ons application ONLINE ONLINE racsvr2
ora....vr2.vip application ONLINE ONLINE racsvr2 [/quote]

你可能感兴趣的:(ORACLE管理,Oracle,UP)