將公網 IP 的網段由 192.168.56.0 改為 192.168.60.0 子網掩碼 255.255.255.0
1. 刪除OCR網卡信息
從 OCR 中刪除已有的的網卡信息,然后添加正確的信息
[global bond0/192.168.56.0 ]$ oifcfg delif -
[global bond0/192.168.60.0:public ]$ oifcfg setif -
[ ]$ oifcfg getif
bond1 10.10.10.0 global cluster_interconnect
bond0 192.168.60.0 global public
注意:運行上面的命令時,需要集群在所有的節(jié)點 running,不然會報錯
PRIF-32: Error in checking for profile availability for host racnode2
CRS-02306: GPnP service on host "zrac2" not found.
PRIF-33: Failed to set or delete interface because hosts could not be discov
CRS-02307: No GPnP services on requested remote hosts.
~]# vim /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
TYPE=Ethernet
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.60.31
NETMASK=255.255.255.0
GATEWAY=192.168.60.1
USERCTL=no
ifdown bond0;ifup bond0
#Public IP
192.168.60.31 zrac1
192.168.56.41 zrac2
#Private IP
10.10.10.31 zrac1-priv
10.10.10.41 zrac2-priv
# VIP
192.168.56.35 zrac1-vip
192.168.56.45 zrac2-vip
# SCAN
192.168.56.90 scan
[grid ~]$ srvctl config nodeapps -a
Network exists: 1/192.168.56.0/255.255.255.0/bond0, type static
VIP exists: /zrac1-vip/192.168.56.35/192.168.56.0/255.255.255.0/bond0, hosti
VIP exists: /zrac2-vip/192.168.56.45/192.168.56.0/255.255.255.0/bond0, hosti
VIP 漂移到其他的可用節(jié)點上
[grid@zrac1 ~]$ crsctl stat res -t
ora.zrac1.vip
1 ONLINE INTERMEDIATE zrac2 FAILED OVER
[grid// 可選項 ~]$ srvctl stop instance -d rac -n zrac1
[grid ~]$ srvctl stop vip -n zrac1 -f
注意:(先修改 /etc/hosts 文件中的 VIP)
[grid@zrac1 ~]$ srvctl modify nodeapps -n zrac1 -A zrac1-vip/255.255.255.0/b
[root@zrac1 grid]# srvctl config nodeapps -a
Network exists: 1/192.168.60.0/255.255.255.0/bond0, type static
VIP exists: /zrac1-vip/192.168.60.35/192.168.60.0/255.255.255.0/bond0, hosti
VIP exists: /zrac2-vip/192.168.56.45/192.168.60.0/255.255.255.0/bond0, hosti
[root@zrac1 grid]# srvctl start vip -n zrac1
[root@zrac1 grid]# srvctl start listener -n zrac1
[root@zrac1 grid]# srvctl start instance -d rac -n zrac1 // 可選項
查看 VIP 資源狀態(tài)
[ ]
ora.zrac1.vip 1
ONLINE ONLINE zrac1
查看網絡信息
grid]# ifconfig
bond0 Link encap:Ethernet HWaddr 08:00:27:44:AF:3C
inet addr:192.168.60.31 Bcast:192.168.60.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe44:af3c/64 Scope:Link
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
RX packets:6876 errors:0 dropped:0 overruns:0 frame:0
TX packets:2884 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:663094 (647.5 KiB) TX bytes:359866 (351.4 KiB)
bond0:1 Link encap:Ethernet HWaddr 08:00:27:44:AF:3C
inet addr:192.168.60.35 Bcast:192.168.60.255 Mask:255.255.255.0
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
查看監(jiān)聽信息
grid@zrac1 admin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 14-MAY-2017 11:22:50
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))
STATUS of the LISTENER
-------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date 14-MAY-2017 11:22:46
Uptime 0 days 0 hr. 0 min. 4 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/zrac1/listener/alert/
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.31)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.35)(PORT=1521)))
Services Summary...
Service "rac" has 1 instance(s).
Instance "rac1", status READY, has 1 handler(s) for this service...
Service "racXDB" has 1 instance(s).
Instance "rac1", status READY, has 1 handler(s) for this service...
The command completed successfully
注意:如果需要的話,修改 listener.ora 文件、tnsnames.ora 文件、LOCAL_LISTENER/REMOTE_LISTENER 參數(shù)來映射 VIP 的改變,如果不停實例的話,需要修改 LOCAL_LISTENER 參數(shù);不修改的話 listener 監(jiān)聽不到服務
set local_listener="(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.6 alter system
在其他節(jié)點也進行上述操作
[grid@zrac1 admin]$ srvctl stop scan_listener
[grid@zrac1 admin]$ srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
[grid@zrac1 admin]$ srvctl stop scan
[grid@zrac1 admin]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
3. 修改所有節(jié)點的 /etc/hosts 文件
# SCAN VIP
192.168.60.90 scan
4. 更新 SCAN VIP 資源
admin]# srvctl modify scan -n scan
admin]# srvctl config scan
SCAN name: scan, Network: 1/192.168.60.0/255.255.255.0/bond0
SCAN VIP name: scan1, IP: /scan/192.168.60.90
5. 啟動 SCAN VIP 和 SCAN 監(jiān)聽資源
[root@zrac1 admin]# srvctl start scan
[root@zrac1 admin]# srvctl start scan_listener
6. 查看 SCAN 監(jiān)聽狀態(tài)(發(fā)現(xiàn)沒有服務)
[ ]
LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 14-MAY-2017 11:43:58
Copyright (c) 1991, 2013, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))
STATUS of the LISTENER 12
Alias LISTENER_SCAN1
Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production
15 Start Date 14-MAY-2017 11:40:32
Uptime 0 days 0 hr. 3 min. 26 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/11.2.0/grid/log/diag/tnslsnr/zrac1/listener_s
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_SCAN1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.60.90)(PORT=1521)))
The listener supports no services
The command completed successfully
7. 解決方式:重啟實例或者修改 remote_listener 參數(shù)
[ ]
[ ]
8. 修改完成后,/etc/hosts 文件
#Public IP
192.168.60.31 zrac1
192.168.60.41 zrac2
#Private IP
10.10.10.31 zrac1-priv
10.10.10.41 zrac2-priv
更多精彩干貨分享
點擊下方名片關注
IT那活兒
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/yun/129844.html
摘要:新晉技術專家下面是墨天輪部分新晉的技術專家。大家可以點擊往期閱讀墨天輪技術專家邀請函了解詳情,申請成為我們的技術專家,加入專家團隊,與我們一起創(chuàng)建一個開放互助的數(shù)據(jù)庫技術社區(qū)。新關聯(lián)公眾號墨天輪是一個開放互助的數(shù)據(jù)庫技術社區(qū)。 引言 近期我們在DBASK小程序增加了數(shù)據(jù)庫 MongoDB、Redis、 Elasticsearch、DB2、Weblogic 等新的的專題欄目和一些新的技術...
閱讀 1346·2023-01-11 13:20
閱讀 1684·2023-01-11 13:20
閱讀 1132·2023-01-11 13:20
閱讀 1860·2023-01-11 13:20
閱讀 4100·2023-01-11 13:20
閱讀 2704·2023-01-11 13:20
閱讀 1385·2023-01-11 13:20
閱讀 3597·2023-01-11 13:20