• Oracle 11gR2 RAC修改SCAN IP


    一.查看当前环境:
    # grid用户
    检查scan-ip地址的配置
    [grid@node1 ~]$ srvctl config scan
    SCAN name: scan-cluster.com, Network: 1/192.168.0.0/255.255.255.0/eth0
    SCAN VIP name: scan1, IP: /scan-cluster/192.168.0.24
    SCAN VIP name: scan2, IP: /scan-cluster/192.168.0.25
    SCAN VIP name: scan3, IP: /scan-cluster/192.168.0.26
    [grid@node1 ~]$ 
    
    检查scan-ip地址的实际分布及状态
    [grid@node1 ~]$ srvctl status scan
    SCAN VIP scan1 is enabled
    SCAN VIP scan1 is running on node node2
    SCAN VIP scan2 is enabled
    SCAN VIP scan2 is running on node node1
    SCAN VIP scan3 is enabled
    SCAN VIP scan3 is running on node node1
    [grid@node1 ~]$ 
    
    检查scan监听配置
    [grid@node1 ~]$ srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
    [grid@node1 ~]$ 
    
    
    检查scan监听状态
    [grid@node1 ~]$ srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is running on node node2
    SCAN Listener LISTENER_SCAN2 is enabled
    SCAN listener LISTENER_SCAN2 is running on node node1
    SCAN Listener LISTENER_SCAN3 is enabled
    SCAN listener LISTENER_SCAN3 is running on node node1
    [grid@node1 ~]$ 
    
    
    二.修改SCAN IP
    #停掉scan监听
    [grid@node2 ~]$ srvctl stop scan_listener
    [grid@node2 ~]$ srvctl status scan_listener
    SCAN Listener LISTENER_SCAN1 is enabled
    SCAN listener LISTENER_SCAN1 is not running
    SCAN Listener LISTENER_SCAN2 is enabled
    SCAN listener LISTENER_SCAN2 is not running
    SCAN Listener LISTENER_SCAN3 is enabled
    SCAN listener LISTENER_SCAN3 is not running
    
    #停掉scan应用
    [grid@node2 ~]$ srvctl stop scan
    [grid@node2 ~]$ srvctl status scan
    SCAN VIP scan1 is enabled
    SCAN VIP scan1 is not running
    SCAN VIP scan2 is enabled
    SCAN VIP scan2 is not running
    SCAN VIP scan3 is enabled
    SCAN VIP scan3 is not running
    [grid@node2 ~]$
    
    
    
    三.修改DNS中的IP配置(略)
    
    四.重新注册SACN
    #查看SCAN name
    [grid@node2 ~]$ srvctl config scan
    SCAN name: scan-cluster, Network: 1/192.168.0.0/255.255.255.0/eth0
    SCAN VIP name: scan1, IP: /scan-cluster/192.168.0.25
    SCAN VIP name: scan2, IP: /scan-cluster/192.168.0.26
    SCAN VIP name: scan3, IP: /scan-cluster/192.168.0.24
    
    #使用root用户
    [grid@node2 ~]$
    [root@node2 ~]# /u01/app/11.2.0/grid/bin/srvctl modify scan -n scan-cluster
    
    
    五.检查SCAN
    
    # grid用户
    检查scan-ip地址的配置
    [grid@node1 ~]$ srvctl config scan
    检查scan-ip地址的实际分布及状态
    [grid@node1 ~]$ srvctl status scan
    检查scan监听配置
    [grid@node1 ~]$ srvctl config scan_listener
    检查scan监听状态
    [grid@node1 ~]$ srvctl status scan_listener
  • 相关阅读:
    上周热点回顾(2.12-2.18)团队
    上周热点回顾(2.5-2.11)团队
    上周热点回顾(1.29-2.4)团队
    云计算之路-阿里云上:部分服务器未及时续费造成docker swarm集群故障团队
    Git学习系列之Windows上安装Git之后的一些配置(图文详解)
    Git学习系列之Git 的缺点有哪些?
    Git学习系列之Git的功能特性(从一般开发者的角度和主开发者的角度来剖析)
    Git学习系列之经典的Git开发过程
    Git学习系列之Windows上安装Git详细步骤(图文详解)
    Git学习系列之集中式版本控制系统vs分布式版本控制系统
  • 原文地址:https://www.cnblogs.com/polestar/p/4402572.html
Copyright © 2020-2023  润新知