设为首页 加入收藏

TOP

Oracle 10g下修改RAC地址
2014-11-24 17:16:24 】 浏览:1572
Tags:Oracle 10g 修改 RAC 地址

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 | -global} {/:}...
oifcfg getif [-node | -global] [ -if [/] [-type ] ]
oifcfg delif [-node | -global] [[/]]
oifcfg [-help]


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


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


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


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


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Linux中对MySQL优化 下一篇Oracle 中极易混淆的几个 NAME 的..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目