更改公用/互联 IP 子网配置
使用 oifcfg 添加或删除 OCR 中的网络接口信息:
示例:
--retrieve specific OIFCFG information with a getif keyword
RACDB1@rac1 /home/oracle$ oifcfg getif
eth0 192.168.1.0 global public
eth1 192.168.2.0 global cluster_interconnect
--deletes the global interface named eth0 and eth1
RACDB1@rac1 /home/oracle$ oifcfg delif -global eth0
RACDB1@rac1 /home/oracle$ oifcfg delif -global eth1
--store a new interface use the setif keyword
RACDB1@rac1 /home/oracle$ oifcfg getif
RACDB1@rac1 /home/oracle$ oifcfg setif -global eth0/192.168.1.0:public
RACDB1@rac1 /home/oracle$ oifcfg setif -global eth1/192.168.2.0:cluster_interconnect
RACDB1@rac1 /home/oracle$ oifcfg getif
eth0 192.168.1.0 global public
eth1 192.168.2.0 global cluster_interconnect
参考:
Administering System and Network Interfaces with OIFCFG
http://docs.oracle.com/cd/B19306_01/rac.102/b14197/adminopt.htm#RACAD922