11G RAC物理IP和VIP的修改

停止数据库:
[grid@yq ~]$ srvctl stop db -d orcl
查看ip信息
#public ip              
192.168.56.120  lzl     eth0
192.168.56.123  yq      eth0
#virtual ip             
192.168.56.121  lzl-vip 
192.168.56.124  yq-vip  
#private ip             
192.168.0.110   lzl-priv
192.168.0.111   yq-priv 
#scan ip                
192.168.56.125  rac-scan        
停掉集群
       [root@lzl ~]# /u01/11.2.0/grid/bin/crsctl stop crs                                             
       CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'lzl'    
       CRS-2673: Attempting to stop 'ora.crsd' on 'lzl'                                               
       CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'lzl'               
       CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'lzl'                                
       CRS-2672: Attempting to start 'ora.net1.network' on 'yq'                                       
       CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'lzl'                                      
       CRS-2673: Attempting to stop 'ora.oc4j' on 'lzl'                                               
       CRS-2673: Attempting to stop 'ora.OCR_VOTE.dg' on 'lzl'                                        
       CRS-2673: Attempting to stop 'ora.registry.acfs' on 'lzl'                                      
       CRS-2673: Attempting to stop 'ora.DATADG.dg' on 'lzl'                                          
       CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'lzl' succeeded                                 
       CRS-2676: Start of 'ora.net1.network' on 'yq' succeeded                                        
       CRS-2672: Attempting to start 'ora.ons' on 'yq'                                                
       CRS-2673: Attempting to stop 'ora.scan1.vip' on 'lzl'                                          
       CRS-2673: Attempting to stop 'ora.lzl.vip' on 'lzl'                                            
       CRS-2673: Attempting to stop 'ora.cvu' on 'lzl'                                                
       CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'lzl' succeeded                                       
       CRS-2677: Stop of 'ora.cvu' on 'lzl' succeeded                                                 
       CRS-2672: Attempting to start 'ora.cvu' on 'yq'                                                
       CRS-2676: Start of 'ora.ons' on 'yq' succeeded                                                 
       CRS-2676: Start of 'ora.cvu' on 'yq' succeeded                                                 
       CRS-2677: Stop of 'ora.lzl.vip' on 'lzl' succeeded                                             
       CRS-2672: Attempting to start 'ora.lzl.vip' on 'yq'                                            
       CRS-2677: Stop of 'ora.scan1.vip' on 'lzl' succeeded                                           
       CRS-2672: Attempting to start 'ora.scan1.vip' on 'yq'                                          
       CRS-2677: Stop of 'ora.registry.acfs' on 'lzl' succeeded                                       
       CRS-2676: Start of 'ora.lzl.vip' on 'yq' succeeded                                             
       CRS-2676: Start of 'ora.scan1.vip' on 'yq' succeeded                                           
       CRS-2673: Attempting to stop 'ora.yq.vip' on 'lzl'                                             
       CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'yq'                                
       CRS-2677: Stop of 'ora.yq.vip' on 'lzl' succeeded                                              
       CRS-2672: Attempting to start 'ora.yq.vip' on 'yq'                                             
       CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'yq' succeeded                                 
       CRS-2676: Start of 'ora.yq.vip' on 'yq' succeeded                                              
       CRS-2672: Attempting to start 'ora.LISTENER.lsnr' on 'yq'                                      
       CRS-2677: Stop of 'ora.DATADG.dg' on 'lzl' succeeded                                           
       CRS-2676: Start of 'ora.LISTENER.lsnr' on 'yq' succeeded                                       
       CRS-2677: Stop of 'ora.OCR_VOTE.dg' on 'lzl' succeeded                                         
       CRS-2673: Attempting to stop 'ora.asm' on 'lzl'                                                
       CRS-2677: Stop of 'ora.asm' on 'lzl' succeeded                                                 
       CRS-2677: Stop of 'ora.oc4j' on 'lzl' succeeded                                                
       CRS-2672: Attempting to start 'ora.oc4j' on 'yq'                                                                                                                                              
       CRS-2674: Start of 'ora.oc4j' on 'yq' failed                                                   
       CRS-2679: Attempting to clean 'ora.oc4j' on 'yq'                                               
       CRS-2681: Clean of 'ora.oc4j' on 'yq' succeeded                                                
       CRS-2673: Attempting to stop 'ora.ons' on 'lzl'                                                
       CRS-2677: Stop of 'ora.ons' on 'lzl' succeeded                                                 
       CRS-2673: Attempting to stop 'ora.net1.network' on 'lzl'                                       
       CRS-2677: Stop of 'ora.net1.network' on 'lzl' succeeded                                        
       CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'lzl' has completed          
       CRS-2677: Stop of 'ora.crsd' on 'lzl' succeeded                                                
       CRS-2673: Attempting to stop 'ora.mdnsd' on 'lzl'                                              
       CRS-2673: Attempting to stop 'ora.crf' on 'lzl'                                                
       CRS-2673: Attempting to stop 'ora.ctssd' on 'lzl'                                              
       CRS-2673: Attempting to stop 'ora.evmd' on 'lzl'                                               
       CRS-2673: Attempting to stop 'ora.asm' on 'lzl'                                                
       CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'lzl'                                       
       CRS-2677: Stop of 'ora.crf' on 'lzl' succeeded                                                 
       CRS-2677: Stop of 'ora.evmd' on 'lzl' succeeded                                                
       CRS-2677: Stop of 'ora.mdnsd' on 'lzl' succeeded                                               
       CRS-2677: Stop of 'ora.ctssd' on 'lzl' succeeded                                               
       CRS-2677: Stop of 'ora.drivers.acfs' on 'lzl' succeeded                                        
       CRS-2677: Stop of 'ora.asm' on 'lzl' succeeded                                                 
       CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'lzl'                          
       CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'lzl' succeeded                           
       CRS-2673: Attempting to stop 'ora.cssd' on 'lzl'                                               
       CRS-2677: Stop of 'ora.cssd' on 'lzl' succeeded                                                
       CRS-2673: Attempting to stop 'ora.gipcd' on 'lzl'                                              
       CRS-2677: Stop of 'ora.gipcd' on 'lzl' succeeded                                               
       CRS-2673: Attempting to stop 'ora.gpnpd' on 'lzl'                                              
       CRS-2677: Stop of 'ora.gpnpd' on 'lzl' succeeded                                               
       CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'lzl' has completed
       CRS-4133: Oracle High Availability Services has been stopped.                                  
       [root@lzl ~]#                        
      
修改成以下的IP地址
#public ip              
192.168.56.130  lzl     eth0
192.168.56.133  yq      eth0
#virtual ip             
192.168.56.131  lzl-vip 
192.168.56.134  yq-vip  
#private ip             
192.168.0.110   lzl-priv
192.168.0.111   yq-priv 
#scan ip                
192.168.56.125  rac-scan 
停掉集群(我是2个节点都做)
[root@lzl ~]# /u01/11.2.0/grid/bin/crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[grid@lzl ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4529: Cluster Synchronization Services is online
CRS-4534: Cannot communicate with Event Manager
修改PUBLIC ip和VIP
[root@lzl bin]# ./oifcfg getif
eth0  192.168.56.0  global  public
eth1  192.168.0.0  global  cluster_interconnect
[root@lzl bin]# ./oifcfg delif -global eth0
[root@lzl bin]# ./oifcfg setif -global eth0/192.168.56.1:public
[root@lzl bin]#
[root@lzl bin]# ./oifcfg getif
eth1  192.168.0.0  global  cluster_interconnect
eth0  192.168.56.1  global  public
[root@lzl bin]# ./oifcfg setif -global eth0/192.168.56.0:public
[root@lzl bin]# ./oifcfg getif
eth1  192.168.0.0  global  cluster_interconnect
eth0  192.168.56.1  global  public
eth0  192.168.56.0  global  public
定义VIP
[root@lzl bin]# ./srvctl config vip -n lzl
VIP exists: /lzl-vip/192.168.56.131/192.168.56.0/255.255.255.0/eth0, hosting node lzl
[root@yq ~]# /u01/11.2.0/grid/bin/srvctl config vip -n yq
VIP exists: /yq-vip/192.168.56.134/192.168.56.0/255.255.255.0/eth0, hosting node yq
停止监听和vip并重设VIP
[root@yq bin]# ./srvctl stop listener -n yq
[root@yq bin]# ./srvctl stop vip -n yq
[root@yq bin]# ./srvctl modify nodeapps -n yq -A 192.168.56.134/255.255.255.0/eth0
[root@lzl bin]# ./srvctl stop listener -n lzl
[root@lzl bin]# ./srvctl stop vip -n lzl
[root@lzl bin]# ./srvctl modify nodeapps -n lzl -A 192.168.56.131/255.255.255.0/eth0
[root@yq bin]# ./srvctl config vip -n lzl
VIP exists: /lzl-vip/192.168.56.131/192.168.56.0/255.255.255.0/eth0, hosting node lzl
[root@yq bin]# ./srvctl config vip -n yq
VIP exists: /yq-vip/192.168.56.134/192.168.56.0/255.255.255.0/eth0, hosting node yq
[root@yq bin]#

[root@lzl bin]# ./srvctl start vip -n lzl
[root@lzl bin]# ./srvctl start vip -n yq
[root@lzl bin]# ./srvctl start listener -n lzl
[root@lzl bin]# ./srvctl start listener -n yq
[root@lzl bin]# ./srvctl start database -d orcl
VIP已经自动注册
[oracle@lzl ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Mon Jun 5 18:09:26 2017
Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
SQL>
SQL> show parameter local_listener
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
local_listener                       string       (ADDRESS=(PROTOCOL=TCP)(HOST=
                                                 192.168.56.131)(PORT=1521))
SQL> show parameter local_listener
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
local_listener                       string       (ADDRESS=(PROTOCOL=TCP)(HOST=
                                                 192.168.56.134)(PORT=1521))
                                                

                                                         

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31467250/viewspace-2140574/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31467250/viewspace-2140574/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在本地自己的操作系统上,完全模拟生产环境,让学员跟着视频一步一步搭建一套在RHEL7操作系统上面的oracle19c的rac环境。同时学员还会学会DNS服务器,DNS客户端,NTP服务器,NTP客户端等操作系统知识。让学员在短时间内,oracle和操作系统知识,有一定的提升。让学员可以独自轻松安装一套oracle rac环境。一课程主题 模拟生产环境,用多路径共享存储,用虚拟软件安装一套RHEL7.5+oracle19c+rac+打补丁二课程特色 完成模拟生产环境,用openfiler软件模拟生产惠普的3par存储,用2个虚拟网卡模拟数据库服务器的2个HBA卡。课程以实践为主,从头到尾一步一步教学员怎样操作,实践性强模拟生产需求,完全可以把这套环境拿到生产环境安装三课程内容 1.课程结束成果演示    1.1 用workstation,安装一套rhel7+oracle19c+rac+multipath+共享存储+DNS服务器+DNS客户端+NTP服务器+NTP客户端的生产环境    1.2 怎样打oracle19c的rac补丁(包括GI补丁,oracle补丁,数据库补丁,OJVM补丁,bug补丁)2.安装openfiler软件,模拟共享存储+配置多路径访问    2.1安装openfiler软件   2.2配置openfiler软件(配置2个虚拟网卡,模拟服务器的2个HBA卡)   2.3创建ocr磁盘   2.4创建mgmt磁盘   2.5创建数据文件磁盘   2.6创建归档日志磁盘3.安装2台数据库服务器    3.1安装2台数据库服务器RHEL7.5   3.2配置服务器双网卡绑定+配置服务器心跳线4.安装多路径软件识别共享存储中的磁盘     4.1安装服务器本地yum源    4.2安装iscsi软件,配置多路径配置文件,识别共享存储中的磁盘    4.3识别ocr磁盘    4.4识别mgmt磁盘    4.5识别数据文件磁盘    4.6识别归档日志磁盘5.oracle19c的rac环境系统参数官方说明     5.1如何配置oracle19c的rac的系统参数(我们参考官方说明)    5.2oracle19c+rac环境Best Practices 官方说明文档6.安装oracle19c+rac之前的准备工作     6.1修改/etc/hosts文件    6.2配置DNS服务器+DNS客户端+NTP服务器+NTP客户端    6.3创建用户和组    6.4创建目录    6.5修改用户环境变量    6.6安装相关软件包    6.7配置ssh互信    6.9禁用服务器透明大页7.安装oracle+19c+rac软件    7.1安装GI软件   7.2创建ASM磁盘,主要是数据文件磁盘和归档日志磁盘   7.3安装数据库软件   7.4创建数据库实例   7.5日常常用维护集群命令(启停数据库,启停集群,查看监听,教同学们怎样不死记命令,而且命令还正确)8.打补丁   8.1打GI和ORACLE的操作系统补丁  8.2打OJVM补丁  8.3打ORA600的bug补丁9.课程总结和成果演示  9.1课程总结和成果演示 四学习必要工具 安装workstation软件  官网下载openfiler,rhel7.5软件下载oracle软件(包括19.3的rac安装包,19.4的补丁)以上软件我都已经在视频里面做了下载地址说明五课程纠错1)rac的私有ip应该是不同的网段,我在视频中设置错误。Ensure all private Ethernet interfaces are set to different subnets on each node. If different subnets are not used and connectivity is lost, this can cause a node reboot within the cluster2)配置好multipath,以及多路径的别名后,还要增加如下配置文件。[root@hellorac1 rules.d]# cat /etc/udev/rules.d/99-persistent.rulesENV==data, OWNER:=grid, GROUP:=asmadmin, MODE:=660上面的配置文件增加成功后,运行如下命令:#udevadm control --reload-rules#/sbin/udevadm trigger --type=devices --action=change执行完成之后,会发现/dev/dm*相应的磁盘权限变成grid.asmadmin. 视频中只运行了udevadm control --reload-rules。3)安装GI部分1和部分2,先看部分2,再看部分1.特此纠正上面的3个错误。谢谢大家的支持和厚爱。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值