• 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
  • 相关阅读:
    京东POP店铺使用京东物流,如何拦截订单
    京东POP店铺使用京东物流切仓操作方法
    京东评价系统更新190301
    京东考试题目答案,每次顺序都不一样,一气之下,全部复制出来,满分过
    win10 去掉资源管理器左侧的Creative Cloud Files
    java 截取字符串获取子字符串
    在jsp中如何用request中获取后台传来的数据?
    java 中怎样获取input的值
    获取${}中的值? 比如说var a=${date },无法取出date中的值
    ${}
  • 原文地址:https://www.cnblogs.com/polestar/p/4402572.html
Copyright © 2020-2023  润新知