Oracle 12.2 RAC修改public ip address或public ip(subnet (netmask) or interface)
Oracle 12.2 RAC修改public ip
address
或public ip(subnet (netmask) or interface)方法
場景: Oracle 12.2 RAC修改IP資訊一般有2種場景
第一種場景:oracle rac 中修改public ip/vip/pirv ip/scan ip 但不修改 (subnet (netmask) or interface) 的方法
public ip => 僅os修改主機ip和/etc/hosts
vip => 僅修改/etc/hosts
pirv ip => 僅os修改主機ip和/etc/hosts
scan ip => 修改/etc/hosts和 srvctl modify scan -n scan-newdb
注:解析均使用/etc/hosts
第二種場景:oracle rac 修改public ip和 pirv ip的 (subnet (netmask) or interface) 的方法
#public ip/vip/scan ip均在一個網段內,故public ip修改完成後,vip/scan ip均需修改
public ip => oifcfg setif/ delif
vip => root修改VIP資源
scan ip => srvctl modify scan -n scan-newdb
pirv ip => oifcfg setif/ delif
#以下是修改方法,其中os修改的步驟均省略。
1.IP (subnet (netmask) or interface) 更改方法(單節點執行,叢集生效) oifcfg delif -global eth0/10.x.156.0 oifcfg setif -global eth0/10.x.166.0:public 2.IP (subnet (netmask) or interface) 更改後VIP更改方法(單節點執行,叢集生效) 2.1 收集VIP資訊 srvctl config nodeapps -a 2.2 檢驗VIP狀態 crsctl stat res -t ifconfig -a 2.3 停止VIP資源 $ srvctl stop instance -d <DBNAME> -n <nodename>1 $ srvctl stop vip -n <nodename>1 -f 2.4 檢驗VIP狀態為OFFLINE $ crsctl stat res -t 2.5 修改VIP相關的配置 /etc/hosts 2.6 修改VIP資源,使用ROOT srvctl modify nodeapps -n <nodename>1 -A <nodename>1-nvip/255.255.255.0/<if_name> 2.7 驗證VIP修改 $ srvctl config nodeapps -a 2.8 重啟VIP資源 $srvctl start vip -n <nodename>1 $srvctl start listener -n <nodename>1 $srvct start instance -d <DBNAME> -n <nodename>1 2.9 檢驗VIP狀態為ONLINE和public network interface crsctl stat res-t ifconfig-a 2.10 Modify listener.ora,tnsnames,ora and LOCAL_LISTENER/REMOTE_LISTENER parameter to reflect the VIP change if necessary. 3.Modify scan(單節點執行,叢集生效) ./srvctl config scan ./srvctl stop scan_listener ./srvctl stop_scan ./srvctl modify scan -n scan-newdb ./srvctl start scan ./srvctl start scan_listener ./srvctl config scan 4.PRIV IP (subnet (netmask) or interface) 更改方法(單節點執行,叢集生效) $ cd $GRID_HOME/gpnp/<hostname>/profiles/peer/ $ cp -p profile.xml profile.xml.bk $ oifcfg getif $ oifcfg setif -global <interface>/<subnet>:cluster_interconnect[,asm] $ srvctl config listener -asmlistener $ srvctl config asm # crsctl stop crs # crsctl disable crs $ ifconfig -a $ ping <private hostname> # crsctl enable crs # crsctl start crs $ oifcfg delif -global <interfacename>[/<subnet>] 參考: How to Modify Private Network Information in Oracle Clusterware (Doc ID 283684.1) How to Modify Public Network Information including VIP in Oracle Clusterware (Doc ID 276434.1) How to Modify SCAN Setting or SCAN Listener Port after Installation (Doc ID 972500.1) How to Update the IP Address of the SCAN VIP Resources (ora.scan{n}.vip) (Doc ID 952903.1)
########################################################################################
版權所有,文章允許轉載,但必須以連結方式註明源地址,否則追究法律責任!【QQ交流群:53993419】
QQ:14040928 E-mail:dbadoudou@163.com
本文連結: http://blog.itpub.net/26442936/viewspace-2733154/
########################################################################################
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-2733154/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC修改public, VIP, SCAN IPOracle
- Oracle RAC修改Scan IP,Public IP的方法Oracle
- 11g RAC 修改PUBLIC-IP、VIP、PRIV-IP、SCAN-IP
- rac 新增第二public ip 和 vip
- Oracle 12. 2 RAC public IP與vip 互換方法Oracle
- public interface View介面和public interface ViewResolver介面介紹View
- RAC修改IP地址
- public @interface xxx 定義註解
- 【RAC】Oracle rac修改IP地址及埠號命令參考Oracle
- [LeetCode] Validate IP AddressLeetCode
- Check the existence of public synonyms Remove the public synonymsREM
- 修改 Laravel 的預設 public 路徑Laravel
- 【RAC】如何修改SCAN IP的IP地址、名稱、埠等資訊
- gitlab伺服器IP調整後修改domian或ipGitlab伺服器
- cluster-wide IP address managementIDE
- TestFlight Public Link
- Oracle 12.2 RAC on Linux Best Practice DocumentationOracleLinux
- Oracle 11G 修改scan_ipOracle
- RAC 增加SCAN IP
- RAC架構中public網路卡down後發生什麼和RAC如何自愈?架構
- public-image-mirror
- 2.2.4.4 Grants to PUBLIC in a CDB
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- SSL - SSLHandshakeException: No subject alternative names matching IP address foundException
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- Linux虛擬機器配置IP時提示:determining ip information for ip xxx.xxx.xxx.xxx address is alreadyLinux虛擬機ORM
- Centos 7 檢視本機IP 編輯IP 修改ipCentOS
- 更改rac scanIP IP的地址
- 【DB寶44】Oracle rac叢集中的IP型別簡介Oracle型別
- 【RAC】Oracle RAC如何修改心跳網路Oracle
- Angular Public API 介面設計AngularAPI
- 如何找到真正的 public 方法
- var和public的區別
- Python 訪問限制 private publicPython
- 【Java小疑問】類和方法 前面新增public和不新增public的區別Java
- 【RAC】Oracle rac 如何修改公網及vipOracle
- Linux修改IP永久生效Linux
- Public Easy Round #2 E. 2048