首页 > 数据库 > Oracle > GI的oifcfg命令
HAIP(highly
available IP)是Oracle
GI集群对私有网络冗余的解决方案,自Oracle
11.2.0.2起可用。配置GI集群时,最多可配置4个私有网络接口,这些网络接口必须使用IPv4的IP地址。ASM实例使用这些接口的IP地址在所有节点之间进行通讯,实现高可用性、负载均衡。缺省情况下,GI会使用所有的HAIP地址。如果其中的一个私有网络接口不能工作了,GI会把它相应的HAIP地址漂移到其它可用的私有网络接口上。
Oracle GI的oifcfg命令用于管理GI的网络接口,接口类型有公用的public、私有的 cluster_interconnect、ASM实例的asm等,以下是对私有网络接口的配置例子。
oifcfg的getif选项可以获取当前节点的配置
# /u01/app/12.1.0/grid/bin/oifcfg getif
ipmp0 10.134.146.0 global public
net2 192.168.17.0 global cluster_interconnect,asm
net3 192.168.27.0 global cluster_interconnect,asm
net9 192.168.37.0 global cluster_interconnect,asm
net10 192.168.47.0 global cluster_interconnect,asm
oifcfg的delif选项可删除网络接口
#
/u01/app/12.1.0/grid/bin/oifcfg delif -global net9
#
/u01/app/12.1.0/grid/bin/oifcfg delif -global net10
# /u01/app/12.1.0/grid/bin/oifcfg getif
ipmp0 10.134.146.0 global public
net2 192.168.17.0 global cluster_interconnect,asm
net3 192.168.27.0 global cluster_interconnect,asm
oifcfg的setif选项可添加网络接口
# /u01/app/12.1.0/grid/bin/oifcfg setif -global net9/192.168.37.0:cluster_interconnect,asm
# /u01/app/12.1.0/grid/bin/oifcfg setif -global net10/192.168.47.0:cluster_interconnect,asm
# /u01/app/12.1.0/grid/bin/oifcfg getif
ipmp0 10.134.146.0 global public
net2 192.168.17.0 global cluster_interconnect,asm
net3 192.168.27.0 global cluster_interconnect,asm
net9 192.168.37.0 global cluster_interconnect,asm
net10 192.168.47.0 global cluster_interconnect,asm
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29960937/viewspace-1338557/ ,如需转载,请注明出处,否则将追究法律责任。