ORACEL 12C 更改vip,scan,public ip
oracle 12c
修改scan
qc1[/home/grid]srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node qc1
qc1[/home/grid]srvctl stop scan
PRCR-1065 : Failed to stop resource ora.scan1.vip
CRS-2529: Unable to act on 'ora.scan1.vip' because that would require stopping or relocating 'ora.LISTENER_SCAN1.lsnr', but the force option was not specified
qc1[/home/grid]srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node qc1
qc1[/home/grid]
qc1[/home/grid]srvctl stop scan_listener
qc1[/home/grid]srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
qc1[/home/grid]
qc1[/home/grid]srvctl stop scan
qc1[/home/grid]srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
qc1[/home/grid]
修改scan ip 为10.0.2.108(原来为107)
qc1[/home/grid]srvctl config scan
SCAN name: qc-scan, Network: 1
Subnet IPv4: 10.0.2.0/255.255.255.0/eth0, static
Subnet IPv6:
SCAN 0 IPv4 VIP: 10.0.2.107
SCAN VIP is enabled.
SCAN VIP is individually enabled on nodes:
SCAN VIP is individually disabled on nodes:
#srvctl modify scan -n 10.0.2.108
qc1[/home/grid]srvctl start scan
qc1[/home/grid]srvctl config scan
SCAN name: 10.0.2.108, Network: 1
Subnet IPv4: 10.0.2.0/255.255.255.0/eth0, static
Subnet IPv6:
SCAN 0 IPv4 VIP: 10.0.2.108
SCAN VIP is enabled.
SCAN VIP is individually enabled on nodes:
SCAN VIP is individually disabled on nodes:
qc1[/home/grid]srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node qc2
qc1[/home/grid]srvctl start scan_listener
qc1[/home/grid]srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node qc2
qc1[/home/grid]
========================================================
修改vip
srvctl stop listener -n qc2
srvctl stop vip -n qc2
srvctl modify nodeapps -n qc2 -A 10.0.2.9/255.255.255.0/eth0
hosts文件更改vip
srvctl start vip -n qc2
srvctl start listener -n qc2
srvctl config vip -n qc2
qc2[/home/grid]srvctl config vip -n qc2
VIP exists: network number 1, hosting node qc2
VIP Name: qc2-vip
VIP IPv4 Address: 10.0.2.9
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
qc2[/home/grid]
更改public ip 更改 qc1 10.0.2.101 为99
10.0.2.101 qc1
10.0.2.10 qc1-vip
192.168.168.5 qc1-priv1
192.168.169.5 qc1-priv2
10.0.2.102 qc2
10.0.2.9 qc2-vip
192.168.168.6 qc2-priv1
192.168.169.6 qc2-priv2
10.0.2.103 qc3
10.0.2.106 qc3-vip
192.168.168.7 qc3-priv1
192.168.169.7 qc3-priv2
10.0.2.108 qc-scan
更改qc1 eth地址为99
qc1[/home/grid]oifcfg getif
eth0 10.0.2.0 global public
eth1 192.168.168.0 global cluster_interconnect,asm
eth2 192.168.169.0 global cluster_interconnect,asm
qc1[/home/grid]oifcfg delif -global eth0
qc1[/home/grid]oifcfg getif
eth1 192.168.168.0 global cluster_interconnect,asm
eth2 192.168.169.0 global cluster_interconnect,asm
qc1[/home/grid]
oifcfg setif -global eth0/10.0.2.0:public
qc1[/home/grid]oifcfg getif
eth1 192.168.168.0 global cluster_interconnect,asm
eth2 192.168.169.0 global cluster_interconnect,asm
eth0 10.0.2.0 global public