zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    基于tiny4412的Linux内核移植 -- 设备树的展开
    基于tiny4412的Linux内核移植 -- MMA7660驱动移植(九-2)
    tiny4412的中断资源连接关系示意图
    基于tiny4412的Linux内核移植 -- MMA7660驱动移植(九)
    基于tiny4412的Linux内核移植 -- PWM子系统学习(八)
    spring cloud服务发现注解之@EnableDiscoveryClient与@EnableEurekaClient
    springcloud之eureka配置——eureka.instance
    Maven parent.relativePath
    mybatis中大于等于小于等于的写法
    Eureka服务注册过程详解之IpAddress(详解eureka.instance.prefer-ip-address = true 与 eureka.instance.prefer-ip-address)
  • 原文地址:https://www.cnblogs.com/polestar/p/4402572.html
Copyright © 2011-2022 走看看