[Oracle] oracle11g scan ip relocate

tolilong發表於2016-06-06


[root@xxxxxdb2 ~]# crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.FRA.dg
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.LISTENER.lsnr
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.OCR_VOT.dg
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.ORADATA.dg
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.asm
               ONLINE  ONLINE       xxxxxdb1                 Started             
               ONLINE  ONLINE       xxxxxdb2                                     
ora.eons
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.gsd
               OFFLINE OFFLINE      xxxxxdb1                                     
               OFFLINE OFFLINE      xxxxxdb2                                     
ora.net1.network
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.ons
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       xxxxxdb2                                     
ora.oc4j
      1        OFFLINE OFFLINE                                                   
ora.scan1.vip
      1        ONLINE  ONLINE       xxxxxdb2                                     
ora.xxxxxdb.db
      1        ONLINE  ONLINE       xxxxxdb1                 Open                
      2        ONLINE  ONLINE       xxxxxdb2                 Open                
ora.xxxxxdb1.vip
      1        ONLINE  ONLINE       xxxxxdb1                                     
ora.xxxxxdb2.vip
      1        ONLINE  ONLINE       xxxxxdb2                                     


[root@xxxxxdb2 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node xxxxxdb2

[root@xxxxxdb2 ~]# srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node xxxxxdb2
You have mail in /var/spool/mail/root

[root@xxxxxdb2 ~]#
[root@xxxxxdb2 ~]# srvctl relocate scan_listener -h

Temporarily relocate SCAN listener from one node of the cluster to another.

Usage: srvctl relocate scan_listener -i <ordinal_number> [-n <node_name>]
    -i <scan_ordinal_number> Ordinal number of IP address
    -n <node_name>           SCAN VIP node name
    -h                       Print usage
    
[root@xxxxxdb2 ~]# srvctl relocate scan_listener -i 1 -n xxxxxdb1

[root@xxxxxdb2 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node xxxxxdb1

[root@xxxxxdb2 ~]# srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node xxxxxdb1
You have mail in /var/spool/mail/root

[root@xxxxxdb2 ~]# crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.FRA.dg
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.LISTENER.lsnr
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.OCR_VOT.dg
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.ORADATA.dg
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.asm
               ONLINE  ONLINE       xxxxxdb1                 Started             
               ONLINE  ONLINE       xxxxxdb2                                     
ora.eons
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.gsd
               OFFLINE OFFLINE      xxxxxdb1                                     
               OFFLINE OFFLINE      xxxxxdb2                                     
ora.net1.network
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
ora.ons
               ONLINE  ONLINE       xxxxxdb1                                     
               ONLINE  ONLINE       xxxxxdb2                                     
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       xxxxxdb1                                     
ora.oc4j
      1        OFFLINE OFFLINE                                                   
ora.scan1.vip
      1        ONLINE  ONLINE       xxxxxdb1                                     
ora.xxxxxdb.db
      1        ONLINE  ONLINE       xxxxxdb1                 Open                
      2        ONLINE  ONLINE       xxxxxdb2                 Open                
ora.xxxxxdb1.vip
      1        ONLINE  ONLINE       xxxxxdb1                                     
ora.xxxxxdb2.vip
      1        ONLINE  ONLINE       xxxxxdb2     

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-2116358/,如需轉載,請註明出處,否則將追究法律責任。

相關文章