1 问题概述
数据库已经配置和IPV6和 IPV4双线协议,需要重新配置IPV6
2 关闭相关资源
1 root用户执行
./srvctl stop scan_listener -i 1
./srvctl stop scan
./srvctl stop listener -n orcldb1
./srvctl stop listener -n orcldb2
./srvctl stop vip -n orcldb1
./srvctl stop vip -n orcldb2
3 删除之前的IPV6 配置
./oifcfg getif
eno3 192.168.224.0 global public
ens3f0 10.2.0.0 global cluster_interconnect,asm
eno3 4509:8002:5A06:0120:0010:0000:0002:D000 global public
./oifcfg delif -global eno3/4509:8002:5A06:0120:0010:0000:0002:D000
./oifcfg getif
eno3 192.168.224.0 global public
ens3f0 10.2.0.0 global cluster_interconnect,asm
./srvctl config network
Network 1 exists
Subnet IPv4: 192.168.224.0/255.255.255.192/eno3, static
Subnet IPv6:
Ping Targets:
Network is enabled
Network is individually enabled on nodes:
Network is individually disabled on nodes:
./srvctl config vip -n orcldb1
VIP exists: network number 1, hosting node orcldb1
VIP Name: orcldb1-vip
VIP IPv4 Address: 192.168.224.16
VIP IPv6 Address: 4509:8002:5a06:120:10:0:2:d010 (inactive)
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
4 配置新的IPV6配置
./srvctl modify network -subnet 4509:8002:5A06:0120:0010:0000:0002:D000/116/eno3
oifcfg setif eno3/4509:8002:5A06:0120:0010:0000:0002:D000:::public
./srvctl remove vip -vip orcldb1-vip
Please confirm that you intend to remove the VIPs orcldb1-vip (y/[n]) y
./srvctl remove vip -vip orcldb2-vip
Please confirm that you intend to remove the VIPs orcldb2-vip (y/[n]) y
./srvctl config vip -n orcldb1
./srvctl add vip -node orcldb1 -netnum 1 -address 192.168.224.16/255.255.255.192/eno3
./srvctl add vip -node orcldb2 -netnum 1 -address 192.168.224.17/255.255.255.192/eno3
./srvctl modify vip -node orcldb1 -netnum 1 -address 4509:8002:5A06:0120:0010:0000:0002:D010/116/eno3
./srvctl modify vip -node orcldb2 -netnum 1 -address 4509:8002:5A06:0120:0010:0000:0002:D011/116/eno3
./srvctl config vip -n orcldb1
VIP exists: network number 1, hosting node orcldb1
VIP IPv4 Address: 192.168.224.16
VIP IPv6 Address: 4509:8002:5a06:120:10:0:2:d010 (inactive)
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
./srvctl config vip -n orcldb2
VIP exists: network number 1, hosting node orcldb2
VIP IPv4 Address: 192.168.224.17
VIP IPv6 Address: 4509:8002:5a06:120:10:0:2:d011 (inactive)
VIP is enabled.
VIP is individually enabled on nodes:
VIP is individually disabled on nodes:
./srvctl modify scan -scanname orcldb-scan
5 启动IPV6 IPV4双栈协议
./srvctl modify network -netnum 1 -iptype both
./srvctl start scan
./srvctl start scan_lisener -i 1
./srvctl start scan_listener -i 1
./srvctl start vip -n orcldb1
./srvctl start vip -n orcldb2
[grid@orcldb1 ~]$ ./srvctl start listener -n orcldb1
[grid@orcldb1 ~]$ ./srvctl start listener -n orcldb2文章来源:https://uudwc.com/A/3wWW2
./srvctl start vip -n orcldb1
./srvctl start vip -n orcldb2
[grid@orcldb1 ~]$ ./srvctl start listener -n orcldb1
[grid@orcldb1 ~]$ ./srvctl start listener -n orcldb2
6 配置监听
su - grid
cd $ORACLE_HOME
cd network/network/
vi listener.ora
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))(ADDRESS = (PROTOCOL = TCP)(HOST =4509:8002:5A06:0120:0010:0000:0002:D011)(PORT = 1521)(IP=FIRST))(ADDRESS = (PROTOCOL = TCP)(HOST =4509:8002:5A06:0120:0010:0000:0002:D007)(PORT = 1521)(IP=FIRST))))
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))(ADDRESS = (PROTOCOL = TCP)(HOST =4509:8002:5A06:0120:0010:0000:0002:D011)(PORT = 1521)(IP=FIRST))(ADDRESS = (PROTOCOL = TCP)(HOST =4509:8002:5A06:0120:0010:0000:0002:D007)(PORT = 1521)(IP=FIRST))))
# 增加ipv6的地址文章来源地址https://uudwc.com/A/3wWW2