Modify the RAC address in Oracle 10 GB
This test is based on Oracle 10.2.0.5
SQL * Plus: Release 10.2.0.5.0-Production on Tue Jul 29 20:45:16 2014
Copyright (c) 1982,201 0, Oracle. All Rights Reserved.
Connected:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0-64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
And Real Application Testing options
SQL>
First, let's take a look at the commands used.
[Root @ node1 bin] #./oifcfg-help
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 | storage}
--------------------------------------------------------------------------------
Installing Oracle 12C in Linux-6-64
Install Oracle 11gR2 (x64) in CentOS 6.4)
Steps for installing Oracle 11gR2 in vmwarevm
Install Oracle 11g XE R2 In Debian
--------------------------------------------------------------------------------
Example
View network port information
$ Oifcfg iflist
Ce0 172.25.0.0
Ce0 172.25.198.0
Ce1 10.0.0.0
View private network port information
$ Oifcfg iflist-p
Ce0 172.25.0.0 PRIVATE
Ce0 172.25.198.0 PRIVATE
Ce1 10.0.0.0 PRIVATE
View private network port information and display mask
$ Oifcfg iflist-p-n
Ce0 172.25.0.0 PRIVATE 255.255.0.0
Ce0 172.25.198.0 PRIVATE 255.255.255.0
Ce1 10.0.0.0 PRIVATE 255.255.255.0
View the network port information of the current node
$ Oifcfg getif
Eth0 192.168.0.0 global cluster_interconnect
Eth1 192.168.2.0 global public
View public network cards
$ Oifcfg getif-type public
Eth1 192.168.2.0 global public
View eth0 Nic Information
$ Oifcfg getif-if eth0
Eth0 192.168.0.0 global cluster_interconnect
View the node type configuration information. If no output is displayed, the node type is not configured.
$ Oifcfg getif-node czmmiao1
$ Oifcfg getif-node czmmiao2
To delete the interface configuration, you must switch to the root user
#./Oifcfg delif-global
To add interface configuration, you need to switch to the root user
#./Oifcfg setif-global eth0/192.168.1.119: public
#./Oifcfg setif-global eth1/10.85.10.119: cluster_interconnect
For more details, please continue to read the highlights on the next page: