你好,游客 登录 注册 搜索
背景:
阅读新闻

Oracle 10g下修改RAC地址

[日期:2014-07-29] 来源:Linux社区  作者:yidian815 [字体:大 中 小]

本测试是基于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笔记 http://www.linuxidc.com/Linux/2013-07/86805.htm

在CentOS 6.4下安装Oracle 11gR2(x64) http://www.linuxidc.com/Linux/2014-02/97374.htm

Oracle 11gR2 在VMWare虚拟机中安装步骤 http://www.linuxidc.com/Linux/2013-09/89579p2.htm

Debian 下 安装 Oracle 11g XE R2 http://www.linuxidc.com/Linux/2014-03/98881.htm

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

使用范例
 查看网口信息
 $ 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

更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2014-07/104828p2.htm

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款