Saturday 4 April 2015

oifcfg


11gR2 RAC - oifcfg (Oracle Interface Configuration tool)


Utility is usefull while managing the hostname,IP address changes during datacenter migrations, or network
reconfiguration that require chaing IP address to cluster member. (Return value Global Public and global cluster_interconnect)

[root@rac1 peer]# oifcfg

Name:
        oifcfg - Oracle Interface Configuration Tool.

Usage:  oifcfg iflist [-p [-n]]
        oifcfg setif {-node <nodename> | -global} {<if_name>/<subnet>:<if_type>}...
        oifcfg getif [-node <nodename> | -global] [ -if <if_name>[/<subnet>] [-type <if_type>] ]
        oifcfg delif [{-node <nodename> | -global} [<if_name>[/<subnet>]]]
        oifcfg [-help]

        <nodename> - name of the host, as known to a communications network
        <if_name>  - name by which the interface is configured in the system
        <subnet>   - subnet address of the interface
        <if_type>  - type of the interface { cluster_interconnect | public }


[root@rac1 peer]# oifcfg iflist
eth0  192.168.0.0
eth1  192.168.1.0
eth2  192.168.2.0

[root@rac1 peer]# oifcfg getif
eth0  192.168.0.0  global  public
eth1  192.168.1.0  global  cluster_interconnect


[root@rac1 peer]# oifcfg delif -global 

[root@rac1 peer]# oifcfg setif -global <interface name>/<subnet>:public

[root@rac1 peer]# oifcfg setif -global <interface name>/<subnet>:cluster_interconnect

No comments: