修改grid scan ip地址

xychong123發表於2016-12-13
原系統使用hosts檔案解析,改為使用dns解析。

[BEGIN] 12/13/2016 10:24:39 AM
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl config scan
SCAN name: scan, name: 1/10.138.16.0/255.255.255.0/bond0
SCAN VIP name: scan1, IP: /scan/192.0.2.16

[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl config scan_listener
SCAN namename LISTENER_SCAN1 namenamename: TCP:1521
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl status scan_listener
SCAN namename LISTENER_SCAN1 name
SCAN namename LISTENER_SCAN1 namename rrsjkptapp04 name
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl status scan
SCAN VIP scan1  is enabled
SCAN VIP scan1 is running  rrsjkptapp04 name
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl stop scan_listener
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl stop scan
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl status scan
SCAN VIP scan1  is disable
 
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl stop scan_listener
PRCC-1016 : LISTENER_SCAN1 
PRCR-1005 : name ora.LISTENER_SCAN1.lsnr 


[root@app02~]# /u01/app/11.2.0/grid/bin/srvctl modify scan  jkptapp.jxjg.corp.com
PRKO-2002 : namenamename?: rrsjkptapp.jxjg.corp.haier.com
[root@app02~]# /u01/app/11.2.0/grid/bin/srvctl modify scan -n jkptapp.jxjg.corp.com
[root@app02~]# /u01/app/11.2.0/grid/bin/srvctl modify scan_listener -u
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl config scan
SCAN name: rrsjkptapp.jxjg.corp.haier.com, name: 1/192.0.2.0/255.255.255.0/bond0
SCAN VIP name: scan1, IP: /jkptapp.jxjg.corpcom/192.0.2.16
SCAN VIP name: scan2, IP: /jkptapp.jxjg.corp.com/192.0.2.17
SCAN VIP name: scan3, IP: /jkptapp.jxjg.corpcom/192.0.2.18
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl config scan_listener
SCAN namename LISTENER_SCAN1 namenamename: TCP:1521
SCAN namename LISTENER_SCAN2 namenamename: TCP:1521
SCAN namename LISTENER_SCAN3 namenamename: TCP:1521
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl status scan_listener
SCAN namename LISTENER_SCAN1 name?
SCAN namename LISTENER_SCAN1 name?
SCAN namename LISTENER_SCAN2 name?
SCAN namename LISTENER_SCAN2 name?
SCAN namename LISTENER_SCAN3 name?
SCAN namename LISTENER_SCAN3 name?
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl status scan
SCAN VIP scan1 name?
SCAN VIP scan1 name?
SCAN VIP scan2 name?
SCAN VIP scan2 name?
SCAN VIP scan3 name?
SCAN VIP scan3 name?
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl start scan_listener
[root@app02~]#   /u01/app/11.2.0/grid/bin/srvctl status scan_listener
SCAN namename LISTENER_SCAN1 name?
SCAN namename LISTENER_SCAN1 namename app02name?
SCAN namename LISTENER_SCAN2 name?
SCAN namename LISTENER_SCAN2 namename app04 name?
SCAN namename LISTENER_SCAN3 name?
SCAN namename LISTENER_SCAN3 namename app04 name?


[root@app02~]#   /u01/app/11.2.0/grid/bin/crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       app04                                 
               ONLINE  ONLINE       app02                                
ora.LISTENER.lsnr
               ONLINE  ONLINE       app04                                 
               ONLINE  ONLINE       app02                                
ora.SYS.dg
               ONLINE  ONLINE       app04                                 
               ONLINE  ONLINE       app02                                
ora.asm
               ONLINE  ONLINE       app04             Started             
               ONLINE  ONLINE       app02            Started             
ora.gsd
               OFFLINE OFFLINE     tapp04                                 
               OFFLINE OFFLINE      app02                                
ora.net1.network
               ONLINE  ONLINE      app04                                 
               ONLINE  ONLINE       app02                                
ora.ons
               ONLINE  ONLINE       app04                                 
               ONLINE  ONLINE       app02                                
ora.registry.acfs
               ONLINE  ONLINE      app04                                 
               ONLINE  ONLINE       app02                                
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       app02                                
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       app04                                 
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       app04                                 
ora.cvu
      1        ONLINE  ONLINE       tapp04                                 
ora.oc4j
      1        ONLINE  ONLINE      app04                                 
ora.rrsjkptapp04.vip
      1        ONLINE  ONLINE       app04                                 
ora.rrsjkptapp05.vip
      1        ONLINE  ONLINE       app02                                
ora.scan1.vip
      1        ONLINE  ONLINE       app02                                
ora.scan2.vip
      1        ONLINE  ONLINE       app04                                 
ora.scan3.vip
      1        ONLINE  ONLINE       app04                                 


[END] 12/13/2016 10:28:04 AM


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

相關文章