19c rac环境第一次修改public、vip和scan ip,和11g还是稍有不同。首先说明下环境
具体步骤如下
1、修改public地址,关闭实例后使用root用户操作
[root@db1 ~]# ./oifcfg getif
bond0 172.20.30.0 global public
bond2 100.100.100.0 global cluster_interconnect,asm
[root@db1 ~]# ./oifcfg delif -global bond0
[root@db1 ~]# ./oifcfg setif -global bond0/172.20.34.0:public
[root@db1 ~]# ./oifcfg getif
bond2 100.100.100.0 global cluster_interconnect,asm
bond0 172.20.34.0 global public
2.停止has服务--两个主机上操作
[root@db1 ~]# ./crsctl stop has
3.通过操作系统命令修改public、vip和scan ip地址----两个主机上都操作
一、编辑/etc/sysconfig/network-scripts/ifcfg-bond0,
完成后重启systemctl restart network
二、修改/etc/hosts文件将public IP地址,VIP地址,SCAN地址
4.启动has,使用#crsctl status res -t查看 ----两个主机上操作
[root@db1 ~]# ./crsctl start has
5.查看和修改网络资源-在节点一上操作
[root@db1 ~]# ./srvctl config nodeapps -a
Network 1 exists
Subnet IPv4: 172.20.30.0/255.255.255.224/bond0, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
VIP exists: network number 1, hosting node db1
VIP Name: db1-vip
VIP IPv4 Address: 172.20.34.3
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
VIP exists: network number 1, hosting node db2
VIP Name: db2-vip
VIP IPv4 Address: 172.20.34.4
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
+ASM1:/root@db1>srvctl modify network -k 1 -S 172.20.34.0/255.255.255.0/bond0 -v
Successfully modified Network.
+ASM1:/root@db1>srvctl config network
Network 1 exists
Subnet IPv4: 172.20.34.0/255.255.255.0/bond0, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
[root@db1 ~]# ./srvctl config nodeapps -a
Network 1 exists
Subnet IPv4: 172.20.34.0/255.255.255.0/bond0, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
VIP exists: network number 1, hosting node db1
VIP Name: db1-vip
VIP IPv4 Address: 172.20.34.3
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
VIP exists: network number 1, hosting node db2
VIP Name: db2-vip
VIP IPv4 Address: 172.20.34.4
VIP IPv6 Address:
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
[root@db1 ~]#
6、. 修改 SCAN IP--在节点一上操作
[root@db1 ~]# ./srvctl config scan
SCAN name: db-scan, Network: 1
Subnet IPv4: 172.20.34.0/255.255.255.0/bond0, static
Subnet IPv6:
SCAN 1 IPv4 VIP: 172.20.30.22
SCAN VIP is enabled.
[root@db1 ~]# ./srvctl stop scan_listener
[root@db1 ~]# ./srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
[root@db1 ~]# ./srvctl stop scan
[root@db1 ~]# ./srvctl modify scan -n db-scan
[root@db1 ~]# ./srvctl config scan
SCAN name: db-scan, Network: 1
Subnet IPv4: 172.20.34.0/255.255.255.0/bond0, static
Subnet IPv6:
SCAN 1 IPv4 VIP: 172.20.34.5
SCAN VIP is enabled.
[root@db1 ~]# ./srvctl start scan
[root@db1 ~]# ./srvctl start scan_listener
7、启动实例,查看实例local_listener已自动更新到最新地址
SYS@orcl1> show parameter local
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener string (ADDRESS=(PROTOCOL=TCP)(HOST=
172.20.34.3)(PORT=1521))
parallel_force_local boolean TRUE
不同于11g 环境主要有点
1、vip是系统自动修改,未手动修改
2、实例中local_listener参数也是自动修改