Oracle 11G RAC 修改IP
实验环境
类别 | 修改前 | 修改后 |
---|---|---|
PUBLIC | 172.18.4.182 rac1 | 192.168.56.10 rac1 |
172.18.4.184 rac2 | 192.168.56.20 rac2 | |
PRIVATE | 10.10.10.10 rac1priv | 20.20.20.10 rac1priv |
10.10.10.20 rac2priv | 20.20.20.20 rac1priv | |
VIP | 172.18.4.186 rac1vip | 192.168.56.30 rac1vip |
172.18.4.187 rac2vip | 192.168.56.40 rac2vip | |
SCAN | 172.18.4. 172 scanip | 192.168.56.50 scanip |
修改Public Ip
- 1) 查看当前集群 Ip信息
[grid@rac1 ~]$ su root
Password:
[root@rac1 grid]# oifcfg getif
eth1 10.10.10.0 global cluster_interconnect
eth0 172.18.4.0 global public
- 2) 利用oifcfg命令,进行删除,修改public ip
[grid@rac1 ~]$ oifcfg delif -global eth0/172.18.4.0
[grid@rac1 ~]$ oifcfg setif -global eth0/192.168.56.0:public
[grid@rac1 ~]$ oifcfg getif
eth1 10.10.10.0 global cluster_interconnect
eth0 192.168.56.0 global public
- 3) OS修改/etc/hosts, ifcfg-eth0文件(On all node)
# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# PUBLIC
192.168.56.10 rac1
192.168.56.20 rac2
--------------------------------------------------
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:00:27:2e:0e:4e
IPADDR=192.168.56.10
NETMASK=255.255.255.0
--------------------------------------------------
重启网络服务
# service network restart
修改vip
- 1) 停止节点1的实例和vip资源
[grid@rac1 ~]$ srvctl stop instance -d orcl -n rac1
[grid@rac1 ~]$ srvctl stop vip -n rac1 -f
- 2) 查看原始vip资源配置
[grid@rac1 ~]$ srvctl config nodeapps -a
VIP exists.:rac1
VIP exists.: /rac1vip/192.168.56.30/255.255.255.0/eth0
VIP exists.:rac2
VIP exists.: /rac2vip/192.168.56.40/255.255.255.0/eth0
- 3) 修改/etc/hosts文件中的 vip
#VIP
192.168.56.30 rac1vip
192.168.56.40 rac2vip
- 4) 使用root用户修改vip资源
[grid@rac1 ~]$ srvctl modify nodeapps -n rac1 -A 192.168.56.30/255.255.255.0/eth0
PRCN-2018 : Current user grid is not a privileged user
[grid@rac1 ~]$ su root
Password:
[root@rac1 grid]# srvctl modify nodeapps -n rac1 -A 192.168.56.30/255.255.255.0/eth0
- 5) 启动服务
[grid@rac1 ~]$ srvctl start vip -n rac1
[grid@rac1 ~]$ srvctl start listener -n rac1
[grid@rac1 ~]$ srvctl start instance -d orcl -n rac1
- 6) 集群其他节点请重复以上1-5的动作
修改SCAN IP
- 1) 以grid用户停止资源
[grid@rac1 ~]$ srvctl stop scan_listener
[grid@rac1 ~]$ srvctl stop scan
- 2) 修改/etc/hosts文件中的SCAN IP
#SCAN IP
192.168.56.50 scanip
- 3) 以root用户更改SCAN IP
[grid@rac1 ~]$ su root
Password:
[root@rac1 grid]# srvctl modify scan -n scanip
- 4) 以grid用户更改及启动资源
[grid@rac1 ~]$ srvctl modify scan_listener -u
[grid@rac1 ~]$ srvctl start scan_listener
- 5) 确认更改
[grid@rac1 ~]$ srvctl config scan
SCAN name: scanip, Network: 1/192.168.56.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /scanip/192.168.56.50
[grid@rac1 ~]$ srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
修改Private IP
'在对集群中所有节点操作之前,请先备份 profile.xml 配置文件。作为 grid 用户执行':
[grid@rac1 ~]$ cd /u01/11.2.0/grid/gpnp/rac1/profiles/peer/
[grid@rac1 peer]$ cp -p profile.xml profile.xml.bak
- 1) 确保集群中所有节点都已经启动并正常运行
- 2) 使用grid用户,获取以下信息,例如:
[grid@rac1 peer]$ oifcfg getif
eth1 10.10.10.0 global cluster_interconnect
eth0 192.168.56.0 global public
- 3) 加入新的private ip
[grid@rac1 peer]$ oifcfg setif -global eth1/20.20.20.0:cluster_interconnect
[grid@rac1 peer]$ oifcfg getif
eth1 10.10.10.0 global cluster_interconnect
eth0 192.168.56.0 global public
eth1 20.20.20.0 global cluster_interconnect
- 4) 使用root用户关闭集群中所有节点并禁用集群(每个节点)
[grid@rac1 peer]$ su root
Password:
[root@rac1 peer]# crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'
CRS-2673: Attempting to stop 'ora.CRSDG.dg' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac1' succeeded
…
CRS-4133: Oracle High Availability Services has been stopped.
[root@rac1 peer]# crsctl disable crs
CRS-4621: Oracle High Availability Services autostart is disabled.
- 5) 更改/etc/hosts,ifcfg-eth1文件(两个节点)
# vi /etc/hosts
# PRIVATE
20.20.20.10 rac1priv
20.20.20.20 rac2priv
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=08:00:27:b1:33:73
IPADDR=20.20.20.10
NETMASK=255.255.255.0
重启网络服务
# service network restart
确保能相互ping 通
[root@rac1 ~]# ping rac1priv
[root@rac1 ~]# ping rac2priv
- 6) 使用root用户激活集群并重新启动集群中所有节点(每个节点)
[grid@rac1 ~]$ su root
Password:
[root@rac1 grid]# crsctl enable crs
CRS-4622: Oracle High Availability Services autostart is enabled.
[root@rac1 grid]# crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
- 7) 删除旧的private ip
[grid@rac2 ~]$ oifcfg delif -global eth1/10.10.10.0
[grid@rac2 ~]$ oifcfg getif
eth0 192.168.56.0 global public
eth1 20.20.20.0 global cluster_interconnect
Oracle 11G RAC 修改IP的更多相关文章
- Oracle 11g RAC 修改各类IP地址
Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...
- 转载:细说oracle 11g rac 的ip地址
本文转载自:细说oracle 11g rac 的ip地址 http://blog.sina.com.cn/s/blog_4fe6d4250102v5fa.html 以前搭建oracle rac的时候( ...
- [转]Oracle 11g RAC SCAN ip的原理及配置
原文地址:http://tiany.blog.51cto.com/513694/1421917/ Oracle 11g RAC SCAN ip的原理及配置 Oracle 11g RAC网格即插即用 ...
- oracle 11g rac 修改VIP、scan VIP、priv IP
11GR2 RAC modify vip,public ip,private ip,scan vip实施步骤1 修改目的 根据业务的需求,需要由原来的临时IP改为生产ip,以下为调整前后对应的I ...
- oracle 11g rac 修改字符集
系统版本: Oracle Linux Server release 5.7 数据库版本: Oracle Database 11g Enterprise Edition Release 11.2.0.3 ...
- oracle 11g rac修改监听端口(远程监听和本地监听)
转至:https://www.cnblogs.com/yj411511/p/12459533.html 目录 1.修改远程监听端口 1.1 查看远程监听状态 1.2 修改SCAN listener端口 ...
- Oracle 11g RAC环境下Private IP修改方法及异常处理
Oracle 11g RAC环境下Private IP修改方法及异常处理 Oracle 11g RAC环境下Private IP修改方法及异常处理 一. 修改方法 1. 确认所有节点CRS服务以启动 ...
- oracle 11g RAC安装节点二执行结果错误CRS-5005: IP Address: 192.168.1.24 is already in use in the network
[root@testdb11b ~]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInvento ...
- 安装Oracle 11g RAC R2 之Linux DNS 配置
Oracle 11g RAC 集群中引入了SCAN(Single Client Access Name)的概念,也就是指集群的单客户端访问名称.SCAN 这个特性为客户端提供了单一的主机名,用于访问集 ...
随机推荐
- MySQL 错误码对照
1005:创建表失败 1006:创建数据库失败 1007:数据库已存在,创建数据库失败 1008:数据库不存在,删除数据库失败 1009:不能删除数据库文件导致删除数据库失败 1010:不能删除数据目 ...
- 手机测试用例-wap测试用例
Software Test Case P/F comment tester test time P/F comment tester ID 功能描述 操作步骤 预期结果 备注 wap_001 wap ...
- 浅谈线段树 (例题:[USACO08FEB]酒店Hotel)By cellur925
今天我们说说线段树. 我个人还是非常欣赏这种数据结构的.(逃)因为它足够优美,有递归结构,有左子树和右子树,还有二分的思想. emm这个文章打算自用,就不写那些基本的操作了... 1° 简单的懒标记( ...
- dubbo中Hessian方法重载问题处理
dubbo中Hessian方法重载,报出如下错误信息: 十一月 , :: 下午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Ser ...
- Object类的几个方法
1.protected Object clone()创建并返回此对象的一个副本. 2. boolean equals(Object obj)指示其他某个对象是否与此对象“相等”. 3. protect ...
- 组件的 render 方法
React.js 中一切皆组件,用 React.js 写的其实就是 React.js 组件.我们在编写 React.js 组件的时候,一般都需要继承 React.js 的 Component(还有别的 ...
- 基于Java实现的冒泡排序算法
冒泡排序是一种简单基础的排序算法,相信在大学课堂里老师已经讲过了,现在我基于Java来实现一遍. 简述 冒泡排序正如其关键词一样,杂乱的气泡经过浮动,最后大的气泡飘到了上面而小的气泡在下面,无序的元素 ...
- PHP设计模式 原型模式(Prototype)
定义 和工厂模式类似,用来创建对象.但实现机制不同,原型模式是先创建一个对象,采用clone的方式进行新对象的创建. 场景 大对象的创建. 优点 1.可以在运行时刻增加和删除产品 2.可以改变值或结构 ...
- checkbox:click事件触发文本框显示隐藏
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- git 配置免密上传,配置ssh key
1.windows 打开git bash 控制台,linux 直接打开命令控制台,输入 ssh-keygen 一直enter 下一步 2.生成的文件windows 存放在c://users 路径下,l ...