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
  • 相关阅读:
    hihoCoder 1398 : 网络流五·最大权闭合子图
    hihoCoder:1394 : 网络流四·最小路径覆盖
    hihoCoder 1393: 网络流三·二分图多重匹配
    hihoCoder1378:网络流二·最大流最小割定理
    hihoCoder1369:网络流一·Ford-Fulkerson算法(FF算法)
    [NOIP2011]铺地毯(贪心)
    hdu 3452:Bonsai(最小割)
    hdu 3549:Flow Problem(最大流)
    (转载)JavaScript中定义变量
    (转载)浅谈javascript的分号
  • 原文地址:https://www.cnblogs.com/polestar/p/4402572.html
Copyright © 2011-2022 走看看