Oracle 10g下修改RAC地址

來源:互聯網
上載者:User

Oracle 10g下修改RAC地址

本測試是基於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, 2010, Oracle.  All Rights Reserved.


Connected to:
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>

首先來看一下,使用到的命令

[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 }

--------------------------------------------------------------------------------

Linux-6-64下安裝Oracle 12C筆記

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

--------------------------------------------------------------------------------

使用範例
 查看網口資訊
 $ oifcfg iflist
 ce0  172.25.0.0
 ce0  172.25.198.0
 ce1 10.0.0.0
 查看私人網口資訊
 $ oifcfg iflist -p
 ce0  172.25.0.0  PRIVATE
 ce0  172.25.198.0  PRIVATE
 ce1  10.0.0.0  PRIVATE
 查看私人網口資訊並顯示掩碼
 $ 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
 查看當前節點的網口資訊
 $ oifcfg getif
 eth0  192.168.0.0  global  cluster_interconnect
 eth1  192.168.2.0  global  public
 查看public類型的網卡
 $ oifcfg getif -type public
 eth1  192.168.2.0  global  public
 查看eth0的網卡資訊
 $ oifcfg getif -if eth0
 eth0  192.168.0.0  global  cluster_interconnect
 查看node類型的配置資訊,沒有輸出說明沒有配置node類型
 $ oifcfg getif -node czmmiao1
 $ oifcfg getif -node czmmiao2
 刪除介面配置,需要切換到root使用者
 # ./oifcfg delif–global
 添加介面配置,需要切換到root使用者
 # ./oifcfg setif -global eth0/192.168.1.119:public
 
# ./oifcfg setif -global eth1/10.85.10.119:cluster_interconnect

更多詳情見請繼續閱讀下一頁的精彩內容:

  • 1
  • 2
  • 下一頁

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.